User guide
AWS SDK for Java Basics
This section provides important general information about programming with the AWS SDK for Java.
Information in this section applies to all services that you might be using with the SDK for Java.
For information that is specific to a particular service (EC2, SWF, etc.), see the Using AWS Services (p.20)
section.
Topics
• Providing AWS Credentials in the AWS SDK for Java (p. 8)
• AWS Region Selection (p. 11)
• Client Networking Configuration (p. 12)
• Setting the JVM TTL for DNS Name Lookups (p. 13)
• Exception Handling (p. 13)
• Logging AWS SDK for Java Calls (p. 15)
• Access Control Policies (p. 17)
Providing AWS Credentials in the AWS SDK for
Java
To make requests to Amazon Web Services, you will need to supply AWS credentials to the SDK for
Java.There are a number of ways to do this:
• Use the default credential provider chain (recommended)
• Use a specific credential provider or provider chain (or create your own).
• Supply the credentials yourself.
This topic provides information about how to load credentials for AWS using the SDK for Java.
Topics
• Using the Default Credential Provider Chain (p. 9)
• Specifying a Credential Provider or Provider Chain (p. 10)
• Explicitly Specifying Credentials (p. 10)
• See Also (p. 11)
Version v1.0.0
8
AWS SDK for Java Developer Guide
Providing Credentials