1 Star 0 Fork 0

develop-kit/aws-sdk-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Amazon SQS Sample

This is a sample that demonstrates how to make basic requests to Amazon SQS using the AWS SDK for Java.

Prerequisites

  • You must have a valid Amazon Web Services developer account.
  • Requires the AWS SDK for Java. For more information on the AWS SDK for Java, see http://aws.amazon.com/sdkforjava.
  • You must be signed up to use Amazon SQS. For more information on Amazon SQS, see http://aws.amazon.com/sqs.

Running the Sample

The basic steps for running the Amazon SQS sample are:

  1. Create a credentials file in the location ~/.aws with name "credentials".

  2. Under the default profile fill in your Access Key ID and Secret Access Key:

[default]
aws_access_key_id =
aws_secret_access_key =
  1. Save the file.

  2. Run the SimpleQueueServiceSample.java file, located in the same directory as the properties file. The sample prints information to the standard output.

NOTE: The sample also includes an Ant build.xml file to run the sample.

For detailed descriptions on how to work with Amazon SQS using Java, see the tutorials in the Amazon SQS Developer Guide.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/develop-kit/aws-sdk-java.git
git@gitee.com:develop-kit/aws-sdk-java.git
develop-kit
aws-sdk-java
aws-sdk-java
master

搜索帮助