Class ElasticLoadBalancingClient
Client to interact with Elastic Load Balancing
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Http\Client implements Guzzle\Http\ClientInterface
- Guzzle\Service\Client implements Guzzle\Service\ClientInterface
- Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
- Aws\ElasticLoadBalancing\ElasticLoadBalancingClient
Link: User guide
Link: API docs
Located at Aws/ElasticLoadBalancing/ElasticLoadBalancingClient.php
Methods summary
-
public static
factory ( array|Collection $config = array() )
Factory method to create a new Elastic Load Balancing client using an array of configuration options.
-
public
addTags ( array $args = array() )
Executes the AddTags operation.
-
public
applySecurityGroupsToLoadBalancer ( array $args = array() )
Executes the ApplySecurityGroupsToLoadBalancer operation.
-
public
attachLoadBalancerToSubnets ( array $args = array() )
Executes the AttachLoadBalancerToSubnets operation.
-
public
configureHealthCheck ( array $args = array() )
Executes the ConfigureHealthCheck operation.
-
public
createAppCookieStickinessPolicy ( array $args = array() )
Executes the CreateAppCookieStickinessPolicy operation.
-
public
createLBCookieStickinessPolicy ( array $args = array() )
Executes the CreateLBCookieStickinessPolicy operation.
-
public
createLoadBalancer ( array $args = array() )
Executes the CreateLoadBalancer operation.
-
public
createLoadBalancerListeners ( array $args = array() )
Executes the CreateLoadBalancerListeners operation.
-
public
createLoadBalancerPolicy ( array $args = array() )
Executes the CreateLoadBalancerPolicy operation.
-
public
deleteLoadBalancer ( array $args = array() )
Executes the DeleteLoadBalancer operation.
-
public
deleteLoadBalancerListeners ( array $args = array() )
Executes the DeleteLoadBalancerListeners operation.
-
public
deleteLoadBalancerPolicy ( array $args = array() )
Executes the DeleteLoadBalancerPolicy operation.
-
public
deregisterInstancesFromLoadBalancer ( array $args = array() )
Executes the DeregisterInstancesFromLoadBalancer operation.
-
public
describeInstanceHealth ( array $args = array() )
Executes the DescribeInstanceHealth operation.
-
public
describeLoadBalancerAttributes ( array $args = array() )
Executes the DescribeLoadBalancerAttributes operation.
-
public
describeLoadBalancerPolicies ( array $args = array() )
Executes the DescribeLoadBalancerPolicies operation.
-
public
describeLoadBalancerPolicyTypes ( array $args = array() )
Executes the DescribeLoadBalancerPolicyTypes operation.
-
public
describeLoadBalancers ( array $args = array() )
Executes the DescribeLoadBalancers operation.
-
public
describeTags ( array $args = array() )
Executes the DescribeTags operation.
-
public
detachLoadBalancerFromSubnets ( array $args = array() )
Executes the DetachLoadBalancerFromSubnets operation.
-
public
disableAvailabilityZonesForLoadBalancer ( array $args = array() )
Executes the DisableAvailabilityZonesForLoadBalancer operation.
-
public
enableAvailabilityZonesForLoadBalancer ( array $args = array() )
Executes the EnableAvailabilityZonesForLoadBalancer operation.
-
public
modifyLoadBalancerAttributes ( array $args = array() )
Executes the ModifyLoadBalancerAttributes operation.
-
public
registerInstancesWithLoadBalancer ( array $args = array() )
Executes the RegisterInstancesWithLoadBalancer operation.
-
public
removeTags ( array $args = array() )
Executes the RemoveTags operation.
-
public
setLoadBalancerListenerSSLCertificate ( array $args = array() )
Executes the SetLoadBalancerListenerSSLCertificate operation.
-
public
setLoadBalancerPoliciesForBackendServer ( array $args = array() )
Executes the SetLoadBalancerPoliciesForBackendServer operation.
-
public
setLoadBalancerPoliciesOfListener ( array $args = array() )
Executes the SetLoadBalancerPoliciesOfListener operation.
-
public
getDescribeInstanceHealthIterator ( array $args = array() )
The input array uses the parameters of the DescribeInstanceHealth operation
-
public
getDescribeLoadBalancerPoliciesIterator ( array $args = array() )
The input array uses the parameters of the DescribeLoadBalancerPolicies operation
-
public
getDescribeLoadBalancerPolicyTypesIterator ( array $args = array() )
The input array uses the parameters of the DescribeLoadBalancerPolicyTypes operation
-
public
getDescribeLoadBalancersIterator ( array $args = array() )
The input array uses the parameters of the DescribeLoadBalancers operation
Methods detail
public static
Aws\ElasticLoadBalancing\ElasticLoadBalancingClient
factory( array|Guzzle\Common\Collection
$config = array() )
Factory method to create a new Elastic Load Balancing client using an array of configuration options.
Parameters
- $config
array|
Guzzle\Common\Collection
$config Client configuration data
Returns
Link
Overrides
Executes the AddTags operation.
Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.
Each tag consists of a key and an optional value. If a tag with the same key
is already associated with the load balancer,
For more information, see Tag Your Load Balancer in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->addTags(array( // LoadBalancerNames is required 'LoadBalancerNames' => array('string', ... ), // Tags is required 'Tags' => array( array( // Key is required 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerNames => (array<string>)The name of the load balancer. You can specify one load balancer only.
-
Tags => (array<associative-array>)The tags.
- (associative-array)
Information about a tag.
-
Key => (string)The key of the tag.
-
Value => (string)The value of the tag.
-
- (associative-array)
-
Returns
Executes the ApplySecurityGroupsToLoadBalancer operation.
Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.
For more information, see Security Groups for Load Balancers in a VPC in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->applySecurityGroupsToLoadBalancer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // SecurityGroups is required 'SecurityGroups' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
SecurityGroups => (array<string>)The IDs of the security groups to associate with the load balancer. Note that you cannot specify the name of the security group.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
SecurityGroups => (array<string>)The IDs of the security groups associated with the load balancer.
Executes the AttachLoadBalancerToSubnets operation.
Adds one or more subnets to the set of configured subnets for the specified load balancer.
The load balancer evenly distributes requests across all registered subnets. For more information, see Add or Remove Subnets for Your Load Balancer in a VPC in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->attachLoadBalancerToSubnets(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // Subnets is required 'Subnets' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Subnets => (array<string>)The IDs of the subnets to add for the load balancer. You can add only one subnet per Availability Zone.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Subnets => (array<string>)The IDs of the subnets attached to the load balancer.
Executes the ConfigureHealthCheck operation.
Specifies the health check settings to use when evaluating the health state of your back-end instances.
For more information, see Configure Health Checks in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->configureHealthCheck(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // HealthCheck is required 'HealthCheck' => array( // Target is required 'Target' => 'string', // Interval is required 'Interval' => integer, // Timeout is required 'Timeout' => integer, // UnhealthyThreshold is required 'UnhealthyThreshold' => integer, // HealthyThreshold is required 'HealthyThreshold' => integer, ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
HealthCheck => (associative-array)The configuration information for the new health check.
-
Target => (string)The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.
TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case, a health check simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target must be 1024 16-bit Unicode characters or less.
-
Interval => (int)The approximate interval, in seconds, between health checks of an individual instance.
-
Timeout => (int)The amount of time, in seconds, during which no response means a failed health check.
This value must be less than the Interval value.
-
UnhealthyThreshold => (int)The number of consecutive health check failures required before moving the instance to the Unhealthy state.
-
HealthyThreshold => (int)The number of consecutive health checks successes required before moving the instance to the Healthy state.
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
HealthCheck => (associative-array)The updated health check.
-
Target => (string)The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.
TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case, a health check simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target must be 1024 16-bit Unicode characters or less.
-
Interval => (int)The approximate interval, in seconds, between health checks of an individual instance.
-
Timeout => (int)The amount of time, in seconds, during which no response means a failed health check.
This value must be less than the Interval value.
-
UnhealthyThreshold => (int)The number of consecutive health check failures required before moving the instance to the Unhealthy state.
-
HealthyThreshold => (int)The number of consecutive health checks successes required before moving the instance to the Healthy state.
-
Executes the CreateAppCookieStickinessPolicy operation.
Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.
This policy is similar to the policy created by
CreateLBCookieStickinessPolicy, except that the lifetime of the special Elastic
Load Balancing cookie,
If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.
For more information, see Application-Controlled Session Stickiness in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->createAppCookieStickinessPolicy(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // PolicyName is required 'PolicyName' => 'string', // CookieName is required 'CookieName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
PolicyName => (string)The name of the policy being created. This name must be unique within the set of policies for this load balancer.
-
CookieName => (string)The name of the application cookie used for stickiness.
-
Returns
Executes the CreateLBCookieStickinessPolicy operation.
Generates a stickiness policy with sticky session lifetimes controlled by the lifetime of the browser (user-agent) or a specified expiration period. This policy can be associated only with HTTP/HTTPS listeners.
When a load balancer implements this policy, the load balancer uses a special cookie to track the back-end server instance for each request. When the load balancer receives a request, it first checks to see if this cookie is present in the request. If so, the load balancer sends the request to the application server specified in the cookie. If not, the load balancer sends the request to a server that is chosen based on the existing load-balancing algorithm.
A cookie is inserted into the response for binding subsequent requests from the same user to that server. The validity of the cookie is based on the cookie expiration time, which is specified in the policy configuration.
For more information, see Duration-Based Session Stickiness in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->createLBCookieStickinessPolicy(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // PolicyName is required 'PolicyName' => 'string', 'CookieExpirationPeriod' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
PolicyName => (string)The name of the policy being created. This name must be unique within the set of policies for this load balancer.
-
CookieExpirationPeriod => (int)The time period, in seconds, after which the cookie should be considered stale. If you do not specify this parameter, the sticky session lasts for the duration of the browser session.
-
Returns
Executes the CreateLoadBalancer operation.
Creates a load balancer.
If the call completes successfully, a new load balancer is created with a unique Domain Name Service (DNS) name. The load balancer receives incoming traffic and routes it to the registered instances. For more information, see How Elastic Load Balancing Works in the Elastic Load Balancing Developer Guide.
You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Elastic Load Balancing Limits in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->createLoadBalancer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // Listeners is required 'Listeners' => array( array( // Protocol is required 'Protocol' => 'string', // LoadBalancerPort is required 'LoadBalancerPort' => integer, 'InstanceProtocol' => 'string', // InstancePort is required 'InstancePort' => integer, 'SSLCertificateId' => 'string', ), // ... repeated ), 'AvailabilityZones' => array('string', ... ), 'Subnets' => array('string', ... ), 'SecurityGroups' => array('string', ... ), 'Scheme' => 'string', 'Tags' => array( array( // Key is required 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
This name must be unique within your AWS account, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
-
Listeners => (array<associative-array>)The listeners.
For more information, see Listeners for Your Load Balancer in the Elastic Load Balancing Developer Guide.
- (associative-array)
Information about a listener.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
-
Protocol => (string)The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
-
LoadBalancerPort => (int)The port on which the load balancer is listening. The supported ports are: 25, 80, 443, 465, 587, and 1024-65535.
-
InstanceProtocol => (string)The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must be at the same protocol.
If there is another listener with the same InstancePort whose InstanceProtocol is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
If there is another listener with the same InstancePort whose InstanceProtocol is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
-
InstancePort => (int)The port on which the instance is listening.
-
SSLCertificateId => (string)The Amazon Resource Name (ARN) of the server certificate.
-
- (associative-array)
-
AvailabilityZones => (array<string>)One or more Availability Zones from the same region as the load balancer. Traffic is equally distributed across all specified Availability Zones.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
-
Subnets => (array<string>)The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in AvailabilityZones.
-
SecurityGroups => (array<string>)The IDs of the security groups to assign to the load balancer.
-
Scheme => (string)The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS name, which resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Internet-facing and Internal Load Balancers in the Elastic Load Balancing Developer Guide.
-
Tags => (array<associative-array>)A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tagging in the Elastic Load Balancing Developer Guide.
- (associative-array)
Information about a tag.
-
Key => (string)The key of the tag.
-
Value => (string)The value of the tag.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
DNSName => (string)The DNS name of the load balancer.
Executes the CreateLoadBalancerListeners operation.
Creates one or more listeners for the specified load balancer. If a listener with the specified port does not already exist, it is created; otherwise, the properties of the new listener must match the properties of the existing listener.
For more information, see Add a Listener to Your Load Balancer in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->createLoadBalancerListeners(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // Listeners is required 'Listeners' => array( array( // Protocol is required 'Protocol' => 'string', // LoadBalancerPort is required 'LoadBalancerPort' => integer, 'InstanceProtocol' => 'string', // InstancePort is required 'InstancePort' => integer, 'SSLCertificateId' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Listeners => (array<associative-array>)The listeners.
- (associative-array)
Information about a listener.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
-
Protocol => (string)The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
-
LoadBalancerPort => (int)The port on which the load balancer is listening. The supported ports are: 25, 80, 443, 465, 587, and 1024-65535.
-
InstanceProtocol => (string)The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must be at the same protocol.
If there is another listener with the same InstancePort whose InstanceProtocol is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
If there is another listener with the same InstancePort whose InstanceProtocol is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
-
InstancePort => (int)The port on which the instance is listening.
-
SSLCertificateId => (string)The Amazon Resource Name (ARN) of the server certificate.
-
- (associative-array)
-
Returns
Executes the CreateLoadBalancerPolicy operation.
Creates a policy with the specified attributes for the specified load balancer.
Policies are settings that are saved for your load balancer and that can be applied to the front-end listener or the back-end application server, depending on the policy type.
Examples
- Basic formatting example
$result = $client->createLoadBalancerPolicy(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // PolicyName is required 'PolicyName' => 'string', // PolicyTypeName is required 'PolicyTypeName' => 'string', 'PolicyAttributes' => array( array( 'AttributeName' => 'string', 'AttributeValue' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
PolicyName => (string)The name of the load balancer policy to be created. This name must be unique within the set of policies for this load balancer.
-
PolicyTypeName => (string)The name of the base policy type. To get the list of policy types, use DescribeLoadBalancerPolicyTypes.
-
PolicyAttributes => (array<associative-array>)The attributes for the policy.
- (associative-array)
Information about a policy attribute.
-
AttributeName => (string)The name of the attribute.
-
AttributeValue => (string)The value of the attribute.
-
- (associative-array)
-
Returns
Executes the DeleteLoadBalancer operation.
Deletes the specified load balancer.
If you are attempting to recreate a load balancer, you must reconfigure all settings. The DNS name associated with a deleted load balancer are no longer usable. The name and associated DNS record of the deleted load balancer no longer exist and traffic sent to any of its IP addresses is no longer delivered to back-end instances.
If the load balancer does not exist or has already been deleted, the call to
Examples
- Basic formatting example
$result = $client->deleteLoadBalancer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Returns
Executes the DeleteLoadBalancerListeners operation.
Deletes the specified listeners from the specified load balancer.
Examples
- Basic formatting example
$result = $client->deleteLoadBalancerListeners(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // LoadBalancerPorts is required 'LoadBalancerPorts' => array(integer, ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
LoadBalancerPorts => (array<int>)The client port numbers of the listeners.
-
Returns
Executes the DeleteLoadBalancerPolicy operation.
Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.
Examples
- Basic formatting example
$result = $client->deleteLoadBalancerPolicy(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // PolicyName is required 'PolicyName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
PolicyName => (string)The name of the policy.
-
Returns
Executes the DeregisterInstancesFromLoadBalancer operation.
Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.
You can use DescribeLoadBalancers to verify that the instance is deregistered from the load balancer.
For more information, see Deregister and Register Amazon EC2 Instances in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->deregisterInstancesFromLoadBalancer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // Instances is required 'Instances' => array( array( 'InstanceId' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Instances => (array<associative-array>)The IDs of the instances.
- (associative-array)
The ID of a back-end instance.
-
InstanceId => (string)The ID of the instance.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Instances => (array<associative-array>)The remaining instances registered with the load balancer.
- (associative-array)
The ID of a back-end instance.
-
InstanceId => (string)The ID of the instance.
-
- (associative-array)
Executes the DescribeInstanceHealth operation.
Describes the state of the specified instances registered with the specified load balancer. If no instances are specified, the call describes the state of all instances registered with the load balancer, not including any terminated instances.
Examples
- Basic formatting example
$result = $client->describeInstanceHealth(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', 'Instances' => array( array( 'InstanceId' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Instances => (array<associative-array>)The IDs of the instances.
- (associative-array)
The ID of a back-end instance.
-
InstanceId => (string)The ID of the instance.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
InstanceStates => (array<associative-array>)Information about the health of the instances.
- (associative-array)
Information about the state of a back-end instance.
-
InstanceId => (string)The ID of the instance.
-
State => (string)The current state of the instance.
Valid values: InService | OutOfService | Unknown
-
ReasonCode => (string)Information about the cause of OutOfService instances. Specifically, whether the cause is Elastic Load Balancing or the instance.
Valid values: ELB | Instance | N/A
-
Description => (string)A description of the instance state. This string can contain one or more of the following messages.
-
N/A
-
A transient error occurred. Please try again later.
-
Instance has failed at least the UnhealthyThreshold number of health checks consecutively.
-
Instance has not passed the configured HealthyThreshold number of health checks consecutively.
-
Instance registration is still in progress.
-
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to.
-
Instance is not currently registered with the LoadBalancer.
-
Instance deregistration currently in progress.
-
Disable Availability Zone is currently in progress.
-
Instance is in pending state.
-
Instance is in stopped state.
-
Instance is in terminated state.
-
-
- (associative-array)
Executes the DescribeLoadBalancerAttributes operation.
Describes the attributes for the specified load balancer.
Examples
- Basic formatting example
$result = $client->describeLoadBalancerAttributes(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
LoadBalancerAttributes => (associative-array)Information about the load balancer attributes.
-
CrossZoneLoadBalancing => (associative-array)If enabled, the load balancer routes the request traffic evenly across all back-end instances regardless of the Availability Zones.
For more information, see Enable Cross-Zone Load Balancing in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether cross-zone load balancing is enabled for the load balancer.
-
-
AccessLog => (associative-array)If enabled, the load balancer captures detailed information of all requests and delivers the information to the Amazon S3 bucket that you specify.
For more information, see Enable Access Logs in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether access log is enabled for the load balancer.
-
S3BucketName => (string)The name of the Amazon S3 bucket where the access logs are stored.
-
EmitInterval => (int)The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
-
S3BucketPrefix => (string)The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod. If the prefix is not provided, the log is placed at the root level of the bucket.
-
-
ConnectionDraining => (associative-array)If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy back-end instance.
For more information, see Enable Connection Draining in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether connection draining is enabled for the load balancer.
-
Timeout => (int)The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
-
-
ConnectionSettings => (associative-array)If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.
By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure Idle Connection Timeout in the Elastic Load Balancing Developer Guide.
-
IdleTimeout => (int)The time, in seconds, that the connection is allowed to be idle (no data has been sent over the connection) before it is closed by the load balancer.
-
-
AdditionalAttributes => (array<associative-array>)This parameter is reserved.
- (associative-array)
This data type is reserved.
-
Key => (string)This parameter is reserved.
-
Value => (string)This parameter is reserved.
-
- (associative-array)
-
Executes the DescribeLoadBalancerPolicies operation.
Describes the specified policies.
If you specify a load balancer name, the action returns the descriptions of
all policies created for the load balancer. If you specify a policy name
associated with your load balancer, the action returns the description of that
policy. If you don't specify a load balancer name, the action returns
descriptions of the specified sample policies, or descriptions of all sample
policies. The names of the sample policies have the
Examples
- Basic formatting example
$result = $client->describeLoadBalancerPolicies(array( 'LoadBalancerName' => 'string', 'PolicyNames' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
PolicyNames => (array<string>)The names of the policies.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
PolicyDescriptions => (array<associative-array>)Information about the policies.
- (associative-array)
Information about a policy.
-
PolicyName => (string)The name of the policy.
-
PolicyTypeName => (string)The name of the policy type.
-
PolicyAttributeDescriptions => (array<associative-array>)The policy attributes.
- (associative-array)
Information about a policy attribute.
-
AttributeName => (string)The name of the attribute.
-
AttributeValue => (string)The value of the attribute.
-
- (associative-array)
-
- (associative-array)
Executes the DescribeLoadBalancerPolicyTypes operation.
Describes the specified load balancer policy types.
You can use these policy types with CreateLoadBalancerPolicy to create policy configurations for a load balancer.
Examples
- Basic formatting example
$result = $client->describeLoadBalancerPolicyTypes(array( 'PolicyTypeNames' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
PolicyTypeNames => (array<string>)The names of the policy types. If no names are specified, describes all policy types defined by Elastic Load Balancing.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
PolicyTypeDescriptions => (array<associative-array>)Information about the policy types.
- (associative-array)
Information about a policy type.
-
PolicyTypeName => (string)The name of the policy type.
-
Description => (string)A description of the policy type.
-
PolicyAttributeTypeDescriptions => (array<associative-array>)The description of the policy attributes associated with the policies defined by Elastic Load Balancing.
- (associative-array)
Information about a policy attribute type.
-
AttributeName => (string)The name of the attribute.
-
AttributeType => (string)The type of the attribute. For example, Boolean or Integer.
-
Description => (string)A description of the attribute.
-
DefaultValue => (string)The default value of the attribute, if applicable.
-
Cardinality => (string)The cardinality of the attribute.
Valid values:
- ONE(1) : Single value required
- ZERO_OR_ONE(0..1) : Up to one value can be supplied
- ZERO_OR_MORE(0..*) : Optional. Multiple values are allowed
- ONE_OR_MORE(1..*0) : Required. Multiple values are allowed
-
- (associative-array)
-
- (associative-array)
Executes the DescribeLoadBalancers operation.
Describes the specified the load balancers. If no load balancers are specified, the call describes all of your load balancers.
Examples
- Basic formatting example
$result = $client->describeLoadBalancers(array( 'LoadBalancerNames' => array('string', ... ), 'Marker' => 'string', 'PageSize' => integer, ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerNames => (array<string>)The names of the load balancers.
-
Marker => (string)The marker for the next set of results. (You received this marker from a previous call.)
-
PageSize => (int)The maximum number of results to return with this call (a number from 1 to 400). The default is 400.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
LoadBalancerDescriptions => (array<associative-array>)Information about the load balancers.
- (associative-array)
Information about a load balancer.
-
LoadBalancerName => (string)The name of the load balancer.
-
DNSName => (string)The external DNS name of the load balancer.
-
CanonicalHostedZoneName => (string)The Amazon Route 53 hosted zone associated with the load balancer.
For more information, see Using Domain Names With Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
-
CanonicalHostedZoneNameID => (string)The ID of the Amazon Route 53 hosted zone name associated with the load balancer.
-
ListenerDescriptions => (array<associative-array>)The listeners for the load balancer.
- (associative-array)
The policies enabled for a listener.
-
Listener => (associative-array)Information about a listener.
For information about the protocols and the ports supported by Elastic Load Balancing, see Listener Configurations for Elastic Load Balancing in the Elastic Load Balancing Developer Guide.
-
Protocol => (string)The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
-
LoadBalancerPort => (int)The port on which the load balancer is listening. The supported ports are: 25, 80, 443, 465, 587, and 1024-65535.
-
InstanceProtocol => (string)The protocol to use for routing traffic to back-end instances: HTTP, HTTPS, TCP, or SSL.
If the front-end protocol is HTTP, HTTPS, TCP, or SSL, InstanceProtocol must be at the same protocol.
If there is another listener with the same InstancePort whose InstanceProtocol is secure, (HTTPS or SSL), the listener's InstanceProtocol must also be secure.
If there is another listener with the same InstancePort whose InstanceProtocol is HTTP or TCP, the listener's InstanceProtocol must be HTTP or TCP.
-
InstancePort => (int)The port on which the instance is listening.
-
SSLCertificateId => (string)The Amazon Resource Name (ARN) of the server certificate.
-
-
PolicyNames => (array<string>)The policies. If there are no policies enabled, the list is empty.
-
- (associative-array)
-
Policies => (associative-array)The policies defined for the load balancer.
-
AppCookieStickinessPolicies => (array<associative-array>)The stickiness policies created using CreateAppCookieStickinessPolicy.
- (associative-array)
Information about a policy for application-controlled session stickiness.
-
PolicyName => (string)The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
-
CookieName => (string)The name of the application cookie used for stickiness.
-
- (associative-array)
-
LBCookieStickinessPolicies => (array<associative-array>)The stickiness policies created using CreateLBCookieStickinessPolicy.
- (associative-array)
Information about a policy for duration-based session stickiness.
-
PolicyName => (string)The name for the policy being created. The name must be unique within the set of policies for this load balancer.
-
CookieExpirationPeriod => (int)The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
-
- (associative-array)
-
OtherPolicies => (array<string>)The policies other than the stickiness policies.
-
-
BackendServerDescriptions => (array<associative-array>)Information about the back-end servers.
- (associative-array)
Information about the configuration of a back-end server.
-
InstancePort => (int)The port on which the back-end server is listening.
-
PolicyNames => (array<string>)The names of the policies enabled for the back-end server.
-
- (associative-array)
-
AvailabilityZones => (array<string>)The Availability Zones for the load balancer.
-
Subnets => (array<string>)The IDs of the subnets for the load balancer.
-
VPCId => (string)The ID of the VPC for the load balancer.
-
Instances => (array<associative-array>)The IDs of the instances for the load balancer.
- (associative-array)
The ID of a back-end instance.
-
InstanceId => (string)The ID of the instance.
-
- (associative-array)
-
HealthCheck => (associative-array)Information about the health checks conducted on the load balancer.
-
Target => (string)The instance being checked. The protocol is either TCP, HTTP, HTTPS, or SSL. The range of valid ports is one (1) through 65535.
TCP is the default, specified as a TCP: port pair, for example "TCP:5000". In this case, a health check simply attempts to open a TCP connection to the instance on the specified port. Failure to connect within the configured timeout is considered unhealthy.
SSL is also specified as SSL: port pair, for example, SSL:5000.
For HTTP/HTTPS, you must include a ping path in the string. HTTP is specified as a HTTP:port;/;PathToPing; grouping, for example "HTTP:80/weather/us/wa/seattle". In this case, a HTTP GET request is issued to the instance on the given port and path. Any answer other than "200 OK" within the timeout period is considered unhealthy.
The total length of the HTTP ping target must be 1024 16-bit Unicode characters or less.
-
Interval => (int)The approximate interval, in seconds, between health checks of an individual instance.
-
Timeout => (int)The amount of time, in seconds, during which no response means a failed health check.
This value must be less than the Interval value.
-
UnhealthyThreshold => (int)The number of consecutive health check failures required before moving the instance to the Unhealthy state.
-
HealthyThreshold => (int)The number of consecutive health checks successes required before moving the instance to the Healthy state.
-
-
SourceSecurityGroup => (associative-array)The security group that you can use as part of your inbound rules for your load balancer's back-end application instances. To only allow traffic from load balancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.
-
OwnerAlias => (string)The owner of the security group.
-
GroupName => (string)The name of the security group.
-
-
SecurityGroups => (array<string>)The security groups for the load balancer. Valid only for load balancers in a VPC.
-
CreatedTime => (string)The date and time the load balancer was created.
-
Scheme => (string)The type of load balancer. Valid only for load balancers in a VPC.
If Scheme is internet-facing, the load balancer has a public DNS name that resolves to a public IP address.
If Scheme is internal, the load balancer has a public DNS name that resolves to a private IP address.
-
- (associative-array)
-
NextMarker => (string)The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
Executes the DescribeTags operation.
Describes the tags associated with the specified load balancers.
Examples
- Basic formatting example
$result = $client->describeTags(array( // LoadBalancerNames is required 'LoadBalancerNames' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerNames => (array<string>)The names of the load balancers.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
TagDescriptions => (array<associative-array>)Information about the tags.
- (associative-array)
The tags associated with a load balancer.
-
LoadBalancerName => (string)The name of the load balancer.
-
Tags => (array<associative-array>)The tags.
- (associative-array)
Information about a tag.
-
Key => (string)The key of the tag.
-
Value => (string)The value of the tag.
-
- (associative-array)
-
- (associative-array)
Executes the DetachLoadBalancerFromSubnets operation.
Removes the specified subnets from the set of configured subnets for the load balancer.
After a subnet is removed, all EC2 instances registered with the load
balancer in the removed subnet go into the
Examples
- Basic formatting example
$result = $client->detachLoadBalancerFromSubnets(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // Subnets is required 'Subnets' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Subnets => (array<string>)The IDs of the subnets.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Subnets => (array<string>)The IDs of the remaining subnets for the load balancer.
public
Guzzle\Service\Resource\Model
disableAvailabilityZonesForLoadBalancer( array $args = array() )
Executes the DisableAvailabilityZonesForLoadBalancer operation.
Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer.
There must be at least one Availability Zone registered with a load balancer
at all times. After an Availability Zone is removed, all instances registered
with the load balancer that are in the removed Availability Zone go into the
For more information, see Disable an Availability Zone from a Load-Balanced Application in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->disableAvailabilityZonesForLoadBalancer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // AvailabilityZones is required 'AvailabilityZones' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
AvailabilityZones => (array<string>)The Availability Zones.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AvailabilityZones => (array<string>)The remaining Availability Zones for the load balancer.
public
Guzzle\Service\Resource\Model
enableAvailabilityZonesForLoadBalancer( array $args = array() )
Executes the EnableAvailabilityZonesForLoadBalancer operation.
Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer.
The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.
For more information, see Add Availability Zone in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->enableAvailabilityZonesForLoadBalancer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // AvailabilityZones is required 'AvailabilityZones' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
AvailabilityZones => (array<string>)The Availability Zones. These must be in the same region as the load balancer.
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
AvailabilityZones => (array<string>)The updated list of Availability Zones for the load balancer.
Executes the ModifyLoadBalancerAttributes operation.
Modifies the attributes of the specified load balancer.
You can modify the load balancer attributes, such as
For more information, see the following in the Elastic Load Balancing Developer Guide:
Examples
- Basic formatting example
$result = $client->modifyLoadBalancerAttributes(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // LoadBalancerAttributes is required 'LoadBalancerAttributes' => array( 'CrossZoneLoadBalancing' => array( // Enabled is required 'Enabled' => true || false, ), 'AccessLog' => array( // Enabled is required 'Enabled' => true || false, 'S3BucketName' => 'string', 'EmitInterval' => integer, 'S3BucketPrefix' => 'string', ), 'ConnectionDraining' => array( // Enabled is required 'Enabled' => true || false, 'Timeout' => integer, ), 'ConnectionSettings' => array( // IdleTimeout is required 'IdleTimeout' => integer, ), 'AdditionalAttributes' => array( array( 'Key' => 'string', 'Value' => 'string', ), // ... repeated ), ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
LoadBalancerAttributes => (associative-array)The attributes of the load balancer.
-
CrossZoneLoadBalancing => (associative-array)If enabled, the load balancer routes the request traffic evenly across all back-end instances regardless of the Availability Zones.
For more information, see Enable Cross-Zone Load Balancing in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether cross-zone load balancing is enabled for the load balancer.
-
-
AccessLog => (associative-array)If enabled, the load balancer captures detailed information of all requests and delivers the information to the Amazon S3 bucket that you specify.
For more information, see Enable Access Logs in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether access log is enabled for the load balancer.
-
S3BucketName => (string)The name of the Amazon S3 bucket where the access logs are stored.
-
EmitInterval => (int)The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
-
S3BucketPrefix => (string)The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod. If the prefix is not provided, the log is placed at the root level of the bucket.
-
-
ConnectionDraining => (associative-array)If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy back-end instance.
For more information, see Enable Connection Draining in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether connection draining is enabled for the load balancer.
-
Timeout => (int)The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
-
-
ConnectionSettings => (associative-array)If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.
By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure Idle Connection Timeout in the Elastic Load Balancing Developer Guide.
-
IdleTimeout => (int)The time, in seconds, that the connection is allowed to be idle (no data has been sent over the connection) before it is closed by the load balancer.
-
-
AdditionalAttributes => (array<associative-array>)This parameter is reserved.
- (associative-array)
This data type is reserved.
-
Key => (string)This parameter is reserved.
-
Value => (string)This parameter is reserved.
-
- (associative-array)
-
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
LoadBalancerName => (string)The name of the load balancer.
-
LoadBalancerAttributes => (associative-array)The attributes for a load balancer.
-
CrossZoneLoadBalancing => (associative-array)If enabled, the load balancer routes the request traffic evenly across all back-end instances regardless of the Availability Zones.
For more information, see Enable Cross-Zone Load Balancing in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether cross-zone load balancing is enabled for the load balancer.
-
-
AccessLog => (associative-array)If enabled, the load balancer captures detailed information of all requests and delivers the information to the Amazon S3 bucket that you specify.
For more information, see Enable Access Logs in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether access log is enabled for the load balancer.
-
S3BucketName => (string)The name of the Amazon S3 bucket where the access logs are stored.
-
EmitInterval => (int)The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
-
S3BucketPrefix => (string)The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod. If the prefix is not provided, the log is placed at the root level of the bucket.
-
-
ConnectionDraining => (associative-array)If enabled, the load balancer allows existing requests to complete before the load balancer shifts traffic away from a deregistered or unhealthy back-end instance.
For more information, see Enable Connection Draining in the Elastic Load Balancing Developer Guide.
-
Enabled => (bool)Specifies whether connection draining is enabled for the load balancer.
-
Timeout => (int)The maximum time, in seconds, to keep the existing connections open before deregistering the instances.
-
-
ConnectionSettings => (associative-array)If enabled, the load balancer allows the connections to remain idle (no data is sent over the connection) for the specified duration.
By default, Elastic Load Balancing maintains a 60-second idle connection timeout for both front-end and back-end connections of your load balancer. For more information, see Configure Idle Connection Timeout in the Elastic Load Balancing Developer Guide.
-
IdleTimeout => (int)The time, in seconds, that the connection is allowed to be idle (no data has been sent over the connection) before it is closed by the load balancer.
-
-
AdditionalAttributes => (array<associative-array>)This parameter is reserved.
- (associative-array)
This data type is reserved.
-
Key => (string)This parameter is reserved.
-
Value => (string)This parameter is reserved.
-
- (associative-array)
-
Executes the RegisterInstancesWithLoadBalancer operation.
Adds the specified instances to the specified load balancer.
The instance must be a running instance in the same network as the load balancer (EC2-Classic or the same VPC). If you have EC2-Classic instances and a load balancer in a VPC with ClassicLink enabled, you can link the EC2-Classic instances to that VPC and then register the linked EC2-Classic instances with the load balancer in the VPC.
Note that
After the instance is registered, it starts receiving traffic and requests
from the load balancer. Any instance that is not in one of the Availability
Zones registered for the load balancer is moved to the
If you stop an instance registered with a load balancer and then start it, the IP addresses associated with the instance changes. Elastic Load Balancing cannot recognize the new IP address, which prevents it from routing traffic to the instances. We recommend that you use the following sequence: stop the instance, deregister the instance, start the instance, and then register the instance. To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
For more information, see Deregister and Register EC2 Instances in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->registerInstancesWithLoadBalancer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // Instances is required 'Instances' => array( array( 'InstanceId' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
Instances => (array<associative-array>)The IDs of the instances.
- (associative-array)
The ID of a back-end instance.
-
InstanceId => (string)The ID of the instance.
-
- (associative-array)
-
Returns
Guzzle\Service\Resource\Model
Returns a response Model object
-
Instances => (array<associative-array>)The updated list of instances for the load balancer.
- (associative-array)
The ID of a back-end instance.
-
InstanceId => (string)The ID of the instance.
-
- (associative-array)
Executes the RemoveTags operation.
Removes one or more tags from the specified load balancer.
Examples
- Basic formatting example
$result = $client->removeTags(array( // LoadBalancerNames is required 'LoadBalancerNames' => array('string', ... ), // Tags is required 'Tags' => array( array( 'Key' => 'string', ), // ... repeated ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerNames => (array<string>)The name of the load balancer. You can specify a maximum of one load balancer name.
-
Tags => (array<associative-array>)The list of tag keys to remove.
- (associative-array)
The key of a tag.
-
Key => (string)The name of the key.
-
- (associative-array)
-
Returns
public
Guzzle\Service\Resource\Model
setLoadBalancerListenerSSLCertificate( array $args = array() )
Executes the SetLoadBalancerListenerSSLCertificate operation.
Sets the certificate that terminates the specified listener's SSL connections. The specified certificate replaces any prior certificate that was used on the same load balancer and port.
For more information about updating your SSL certificate, see Updating an SSL Certificate for a Load Balancer in the Elastic Load Balancing Developer Guide.
Examples
- Basic formatting example
$result = $client->setLoadBalancerListenerSSLCertificate(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // LoadBalancerPort is required 'LoadBalancerPort' => integer, // SSLCertificateId is required 'SSLCertificateId' => 'string', ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
LoadBalancerPort => (int)The port that uses the specified SSL certificate.
-
SSLCertificateId => (string)The Amazon Resource Name (ARN) of the SSL certificate.
-
Returns
public
Guzzle\Service\Resource\Model
setLoadBalancerPoliciesForBackendServer( array $args = array() )
Executes the SetLoadBalancerPoliciesForBackendServer operation.
Replaces the set of policies associated with the specified port on which the back-end server is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the back-end ports; this policy type is composed of multiple public key policies.
Each time you use
You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy is associated with the back-end server.
Examples
- Basic formatting example
$result = $client->setLoadBalancerPoliciesForBackendServer(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // InstancePort is required 'InstancePort' => integer, // PolicyNames is required 'PolicyNames' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
InstancePort => (int)The port number associated with the back-end server.
-
PolicyNames => (array<string>)The names of the policies. If the list is empty, then all current polices are removed from the back-end server.
-
Returns
Executes the SetLoadBalancerPoliciesOfListener operation.
Associates, updates, or disables a policy with a listener for the specified load balancer. You can associate multiple policies with a listener.
Examples
- Basic formatting example
$result = $client->setLoadBalancerPoliciesOfListener(array( // LoadBalancerName is required 'LoadBalancerName' => 'string', // LoadBalancerPort is required 'LoadBalancerPort' => integer, // PolicyNames is required 'PolicyNames' => array('string', ... ), ));
Parameters
- $args
array
$arg Associative array containing the following keys (required keys are bold):-
LoadBalancerName => (string)The name of the load balancer.
-
LoadBalancerPort => (int)The external port of the load balancer for the policy.
-
PolicyNames => (array<string>)The names of the policies. If the list is empty, the current policy is removed from the listener.
-
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeInstanceHealthIterator( array $args = array() )
The input array uses the parameters of the DescribeInstanceHealth operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeLoadBalancerPoliciesIterator( array $args = array() )
The input array uses the parameters of the DescribeLoadBalancerPolicies operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeLoadBalancerPolicyTypesIterator( array $args = array() )
The input array uses the parameters of the DescribeLoadBalancerPolicyTypes operation
Parameters
- $args
array
$args
Returns
public
Guzzle\Service\Resource\ResourceIteratorInterface
getDescribeLoadBalancersIterator( array $args = array() )
The input array uses the parameters of the DescribeLoadBalancers operation
Parameters
- $args
array
$args
Returns
Methods inherited from Aws\Common\Client\AbstractClient
__call()
,
__construct()
,
createRequest()
,
getAllEvents()
,
getApiVersion()
,
getCredentials()
,
getRegion()
,
getRegions()
,
getSignature()
,
getWaiter()
,
getWaiterFactory()
,
send()
,
setCredentials()
,
setRegion()
,
setWaiterFactory()
,
waitUntil()
Methods inherited from Guzzle\Service\Client
execute()
,
executeMultiple()
,
getCommand()
,
getCommandFactory()
,
getDescription()
,
getInflector()
,
getIterator()
,
getResourceIteratorFactory()
,
prepareCommand()
,
setCommandFactory()
,
setDescription()
,
setInflector()
,
setResourceIteratorFactory()
Methods inherited from Guzzle\Http\Client
delete()
,
expandTemplate()
,
extractPharCacert()
,
get()
,
getBaseUrl()
,
getConfig()
,
getCurlMulti()
,
getDefaultOption()
,
getDefaultUserAgent()
,
getUriTemplate()
,
head()
,
initSsl()
,
options()
,
patch()
,
post()
,
prepareRequest()
,
put()
,
sendMultiple()
,
setBaseUrl()
,
setConfig()
,
setCurlMulti()
,
setDefaultOption()
,
setRequestFactory()
,
setSslVerification()
,
setUriTemplate()
,
setUserAgent()
Methods inherited from Guzzle\Common\AbstractHasDispatcher
addSubscriber()
,
dispatch()
,
getEventDispatcher()
,
setEventDispatcher()
Magic methods summary
Constants summary
string |
LATEST_API_VERSION |
'2012-06-01' |
Constants inherited from Guzzle\Service\Client
Constants inherited from Guzzle\Http\Client
CURL_OPTIONS
,
DEFAULT_SELECT_TIMEOUT
,
DISABLE_REDIRECTS
,
MAX_HANDLES
,
REQUEST_OPTIONS
,
SSL_CERT_AUTHORITY
Constants inherited from Guzzle\Http\ClientInterface
Properties summary
Properties inherited from Aws\Common\Client\AbstractClient
$aggregator
,
$credentials
,
$signature
,
$waiterFactory
Properties inherited from Guzzle\Service\Client
$commandFactory
,
$inflector
,
$resourceIteratorFactory
,
$serviceDescription
Properties inherited from Guzzle\Http\Client
$defaultHeaders
,
$requestFactory
,
$userAgent