Installation guide
ReStructuredText and generated using Sphinx. Feel free to add some content to our documentation and send a
pull request to https://github.com/aws/aws-sdk-php. You can view our documentation sources at
https://github.com/aws/aws-sdk-php/tree/master/docs.
API Reference
Please see the AWS Elastic Beanstalk Client API reference for a details about all of the available methods, including
descriptions of the inputs and outputs.
CheckDNSAvailability CreateApplication
CreateApplicationVersion CreateConfigurationTemplate
CreateEnvironment CreateStorageLocation
DeleteApplication DeleteApplicationVersion
DeleteConfigurationTemplate DeleteEnvironmentConfiguration
DescribeApplicationVersions DescribeApplications
DescribeConfigurationOptions DescribeConfigurationSettings
DescribeEnvironmentResources DescribeEnvironments
DescribeEvents ListAvailableSolutionStacks
RebuildEnvironment RequestEnvironmentInfo
RestartAppServer RetrieveEnvironmentInfo
SwapEnvironmentCNAMEs TerminateEnvironment
UpdateApplication UpdateApplicationVersion
UpdateConfigurationTemplate UpdateEnvironment
ValidateConfigurationSettings
Elastic Load Balancing
This guide focuses on the AWS SDK for PHP client for Elastic Load Balancing. This guide assumes that you have
already downloaded and installed the AWS SDK for PHP. See Installation for more information on getting started.
Creating a client
First you need to create a client object using one of the following techniques.
Factory method
The easiest way to get up and running quickly is to use the
Aws\ElasticLoadBalancing\ElasticLoadBalancingClient::factory() method and provide your
credentials (key and secret).
A region parameter is also required and must be set to one of the following values: us-east-1,
ap-northeast-1, sa-east-1, ap-southeast-1, ap-southeast-2, us-west-2, us-gov-west-1,
us-west-1, cn-north-1, eu-west-1
use Aws\ElasticLoadBalancing\ElasticLoadBalancingClient;
$client = ElasticLoadBalancingClient::factory(array(
'key' => '<aws access key>',
'secret' => '<aws secret key>',
'region' => '<region name>'
));
Elastic Load Balancing
85