Configuring service clients in the Amazon SDK for PHP Version 3
To programmatically access Amazon Web Services services, the Amazon SDK for PHP Version 3 uses a client object for each Amazon Web Services service. For example, if your application needs to access Amazon EC2, you create an Amazon EC2 client object—an instance of the Ec2Client class—to interface with that service. You then use the service client to make requests to that Amazon Web Services service.
There are many ways to configure SDK behavior, but ultimately everything has to do with the behavior of service clients. Any configuration has no effect until your code creates a service client that uses the configuration.
Examples of the configuration that you provide are:
-
How your code authenticates with Amazon when you call a service
-
The Amazon Web Services Region you want a service client to use
-
Retry and timeout settings for service calls
-
HTTP proxy configuration
Refer to the Amazon SDKs and Tools Reference Guide for settings, features, and other foundational concepts common to many of the Amazon SDKs.