Installation guide

Iterators 12
Comparing Code Samples from Both SDKs 12
Example 1 - Amazon S3 ListParts Operation 12
From Version 1 of the SDK 12
From Version 2 of the SDK 13
Example 2 - Amazon DynamoDB Scan Operation 13
From Version 1 of the SDK 13
From Version 2 of the SDK 15
Side-by-side Guide 15
Installing and Including the SDKs 15
Using Composer 15
Without Composer 16
Configuring and Instantiating the SDKs 16
Instantiating Clients via the Service Builder 16
Instantiating Clients via Client Factories 17
Complete Examples 17
Example 1 - Dual Amazon S3 Clients 18
Example 2 - Amazon DynamoDB and Amazon SNS Clients 18
Final Notes 19
Providing Credentials to the SDK 19
Introduction 19
Which technique should you choose? 19
Using credentials from environment variables 20
Using IAM roles for Amazon EC2 instances 20
Caching IAM role credentials 20
Setting credentials explicitly in your code 21
Using a configuration file with the service builder 21
Passing credentials into a client factory method 22
Setting credentials after instantiation 23
Using temporary credentials from AWS STS 23
Getting temporary credentials 24
Providing temporary credentials to the SDK 24
Configuring the SDK 25
Configuration files 25
How configuration files work 25
Using a custom configuration file 26
Client configuration options 27
Specifying a region 28
Setting a custom endpoint 28
Using a proxy 29
Command Objects 29
Typical SDK usage 29