@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonElasticLoadBalancing extends Object implements AmazonElasticLoadBalancing
AmazonElasticLoadBalancing
. Convenient method forms pass through to the
corresponding overload that takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
AddListenerCertificatesResult |
addListenerCertificates(AddListenerCertificatesRequest request)
Adds the specified certificate to the specified secure listener.
|
AddTagsResult |
addTags(AddTagsRequest request)
Adds the specified tags to the specified Elastic Load Balancing resource.
|
CreateListenerResult |
createListener(CreateListenerRequest request)
Creates a listener for the specified Application Load Balancer or Network Load Balancer.
|
CreateLoadBalancerResult |
createLoadBalancer(CreateLoadBalancerRequest request)
Creates an Application Load Balancer or a Network Load Balancer.
|
CreateRuleResult |
createRule(CreateRuleRequest request)
Creates a rule for the specified listener.
|
CreateTargetGroupResult |
createTargetGroup(CreateTargetGroupRequest request)
Creates a target group.
|
DeleteListenerResult |
deleteListener(DeleteListenerRequest request)
Deletes the specified listener.
|
DeleteLoadBalancerResult |
deleteLoadBalancer(DeleteLoadBalancerRequest request)
Deletes the specified Application Load Balancer or Network Load Balancer and its attached listeners.
|
DeleteRuleResult |
deleteRule(DeleteRuleRequest request)
Deletes the specified rule.
|
DeleteTargetGroupResult |
deleteTargetGroup(DeleteTargetGroupRequest request)
Deletes the specified target group.
|
DeregisterTargetsResult |
deregisterTargets(DeregisterTargetsRequest request)
Deregisters the specified targets from the specified target group.
|
DescribeAccountLimitsResult |
describeAccountLimits(DescribeAccountLimitsRequest request)
Describes the current Elastic Load Balancing resource limits for your AWS account.
|
DescribeListenerCertificatesResult |
describeListenerCertificates(DescribeListenerCertificatesRequest request)
Describes the certificates for the specified secure listener.
|
DescribeListenersResult |
describeListeners(DescribeListenersRequest request)
Describes the specified listeners or the listeners for the specified Application Load Balancer or Network Load
Balancer.
|
DescribeLoadBalancerAttributesResult |
describeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest request)
Describes the attributes for the specified Application Load Balancer or Network Load Balancer.
|
DescribeLoadBalancersResult |
describeLoadBalancers(DescribeLoadBalancersRequest request)
Describes the specified load balancers or all of your load balancers.
|
DescribeRulesResult |
describeRules(DescribeRulesRequest request)
Describes the specified rules or the rules for the specified listener.
|
DescribeSSLPoliciesResult |
describeSSLPolicies(DescribeSSLPoliciesRequest request)
Describes the specified policies or all policies used for SSL negotiation.
|
DescribeTagsResult |
describeTags(DescribeTagsRequest request)
Describes the tags for the specified resources.
|
DescribeTargetGroupAttributesResult |
describeTargetGroupAttributes(DescribeTargetGroupAttributesRequest request)
Describes the attributes for the specified target group.
|
DescribeTargetGroupsResult |
describeTargetGroups(DescribeTargetGroupsRequest request)
Describes the specified target groups or all of your target groups.
|
DescribeTargetHealthResult |
describeTargetHealth(DescribeTargetHealthRequest request)
Describes the health of the specified targets or all of your targets.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
ModifyListenerResult |
modifyListener(ModifyListenerRequest request)
Modifies the specified properties of the specified listener.
|
ModifyLoadBalancerAttributesResult |
modifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest request)
Modifies the specified attributes of the specified Application Load Balancer or Network Load Balancer.
|
ModifyRuleResult |
modifyRule(ModifyRuleRequest request)
Modifies the specified rule.
|
ModifyTargetGroupResult |
modifyTargetGroup(ModifyTargetGroupRequest request)
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
|
ModifyTargetGroupAttributesResult |
modifyTargetGroupAttributes(ModifyTargetGroupAttributesRequest request)
Modifies the specified attributes of the specified target group.
|
RegisterTargetsResult |
registerTargets(RegisterTargetsRequest request)
Registers the specified targets with the specified target group.
|
RemoveListenerCertificatesResult |
removeListenerCertificates(RemoveListenerCertificatesRequest request)
Removes the specified certificate from the specified secure listener.
|
RemoveTagsResult |
removeTags(RemoveTagsRequest request)
Removes the specified tags from the specified Elastic Load Balancing resource.
|
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("elasticloadbalancing.us-east-1.amazonaws.com").
|
SetIpAddressTypeResult |
setIpAddressType(SetIpAddressTypeRequest request)
Sets the type of IP addresses used by the subnets of the specified Application Load Balancer or Network Load
Balancer.
|
void |
setRegion(Region region)
An alternative to
AmazonElasticLoadBalancing.setEndpoint(String) , sets the regional endpoint for this
client's service calls. |
SetRulePrioritiesResult |
setRulePriorities(SetRulePrioritiesRequest request)
Sets the priorities of the specified rules.
|
SetSecurityGroupsResult |
setSecurityGroups(SetSecurityGroupsRequest request)
Associates the specified security groups with the specified Application Load Balancer.
|
SetSubnetsResult |
setSubnets(SetSubnetsRequest request)
Enables the Availability Zone for the specified subnets for the specified Application Load Balancer.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
AmazonElasticLoadBalancingWaiters |
waiters() |
public void setEndpoint(String endpoint)
AmazonElasticLoadBalancing
Callers can pass in just the endpoint (ex: "elasticloadbalancing.us-east-1.amazonaws.com") or a full URL,
including the protocol (ex: "elasticloadbalancing.us-east-1.amazonaws.com"). If the protocol is not specified
here, the default protocol from this client's ClientConfiguration
will be used, which by default is
HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setEndpoint
in interface AmazonElasticLoadBalancing
endpoint
- The endpoint (ex: "elasticloadbalancing.us-east-1.amazonaws.com") or a full URL, including the protocol
(ex: "elasticloadbalancing.us-east-1.amazonaws.com") of the region specific AWS endpoint this client will
communicate with.public void setRegion(Region region)
AmazonElasticLoadBalancing
AmazonElasticLoadBalancing.setEndpoint(String)
, sets the regional endpoint for this
client's service calls. Callers can use this method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the
ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setRegion
in interface AmazonElasticLoadBalancing
region
- The region this client will communicate with. See Region.getRegion(com.amazonaws.regions.Regions)
for accessing a given region. Must not be null and must be a region where the service is available.Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,
Region.isServiceSupported(String)
public AddListenerCertificatesResult addListenerCertificates(AddListenerCertificatesRequest request)
AmazonElasticLoadBalancing
Adds the specified certificate to the specified secure listener.
If the certificate was already added, the call is successful but the certificate is not added again.
To list the certificates for your listener, use DescribeListenerCertificates. To remove certificates from your listener, use RemoveListenerCertificates.
addListenerCertificates
in interface AmazonElasticLoadBalancing
public AddTagsResult addTags(AddTagsRequest request)
AmazonElasticLoadBalancing
Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, and your target groups.
Each tag consists of a key and an optional value. If a resource already has a tag with the same key,
AddTags
updates its value.
To list the current tags for your resources, use DescribeTags. To remove tags from your resources, use RemoveTags.
addTags
in interface AmazonElasticLoadBalancing
public CreateListenerResult createListener(CreateListenerRequest request)
AmazonElasticLoadBalancing
Creates a listener for the specified Application Load Balancer or Network Load Balancer.
To update a listener, use ModifyListener. When you are finished with a listener, you can delete it using DeleteListener. If you are finished with both the listener and the load balancer, you can delete them both using DeleteLoadBalancer.
This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple listeners with the same settings, each call succeeds.
For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide and Listeners for Your Network Load Balancers in the Network Load Balancers Guide.
createListener
in interface AmazonElasticLoadBalancing
public CreateLoadBalancerResult createLoadBalancer(CreateLoadBalancerRequest request)
AmazonElasticLoadBalancing
Creates an Application Load Balancer or a Network Load Balancer.
When you create a load balancer, you can specify security groups, subnets, IP address type, and tags. Otherwise, you could do so later using SetSecurityGroups, SetSubnets, SetIpAddressType, and AddTags.
To create listeners for your load balancer, use CreateListener. To describe your current load balancers, see DescribeLoadBalancers. When you are finished with a load balancer, you can delete it using DeleteLoadBalancer.
For limit information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide and Limits for Your Network Load Balancer in the Network Load Balancers Guide.
This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple load balancers with the same settings, each call succeeds.
For more information, see Application Load Balancers in the Application Load Balancers Guide and Network Load Balancers in the Network Load Balancers Guide.
createLoadBalancer
in interface AmazonElasticLoadBalancing
public CreateRuleResult createRule(CreateRuleRequest request)
AmazonElasticLoadBalancing
Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.
Rules are evaluated in priority order, from the lowest value to the highest value. When the condition for a rule is met, the specified action is taken. If no conditions are met, the action for the default rule is taken. For more information, see Listener Rules in the Application Load Balancers Guide.
To view your current rules, use DescribeRules. To update a rule, use ModifyRule. To set the priorities of your rules, use SetRulePriorities. To delete a rule, use DeleteRule.
createRule
in interface AmazonElasticLoadBalancing
public CreateTargetGroupResult createTargetGroup(CreateTargetGroupRequest request)
AmazonElasticLoadBalancing
Creates a target group.
To register targets with the target group, use RegisterTargets. To update the health check settings for the target group, use ModifyTargetGroup. To monitor the health of targets in the target group, use DescribeTargetHealth.
To route traffic to the targets in a target group, specify the target group in an action using CreateListener or CreateRule.
To delete a target group, use DeleteTargetGroup.
This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple target groups with the same settings, each call succeeds.
For more information, see Target Groups for Your Application Load Balancers in the Application Load Balancers Guide or Target Groups for Your Network Load Balancers in the Network Load Balancers Guide.
createTargetGroup
in interface AmazonElasticLoadBalancing
public DeleteListenerResult deleteListener(DeleteListenerRequest request)
AmazonElasticLoadBalancing
Deletes the specified listener.
Alternatively, your listener is deleted when you delete the load balancer it is attached to using DeleteLoadBalancer.
deleteListener
in interface AmazonElasticLoadBalancing
public DeleteLoadBalancerResult deleteLoadBalancer(DeleteLoadBalancerRequest request)
AmazonElasticLoadBalancing
Deletes the specified Application Load Balancer or Network Load Balancer and its attached listeners.
You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds.
Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them.
deleteLoadBalancer
in interface AmazonElasticLoadBalancing
public DeleteRuleResult deleteRule(DeleteRuleRequest request)
AmazonElasticLoadBalancing
Deletes the specified rule.
deleteRule
in interface AmazonElasticLoadBalancing
public DeleteTargetGroupResult deleteTargetGroup(DeleteTargetGroupRequest request)
AmazonElasticLoadBalancing
Deletes the specified target group.
You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks.
deleteTargetGroup
in interface AmazonElasticLoadBalancing
public DeregisterTargetsResult deregisterTargets(DeregisterTargetsRequest request)
AmazonElasticLoadBalancing
Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.
deregisterTargets
in interface AmazonElasticLoadBalancing
public DescribeAccountLimitsResult describeAccountLimits(DescribeAccountLimitsRequest request)
AmazonElasticLoadBalancing
Describes the current Elastic Load Balancing resource limits for your AWS account.
For more information, see Limits for Your Application Load Balancers in the Application Load Balancer Guide or Limits for Your Network Load Balancers in the Network Load Balancers Guide.
describeAccountLimits
in interface AmazonElasticLoadBalancing
public DescribeListenerCertificatesResult describeListenerCertificates(DescribeListenerCertificatesRequest request)
AmazonElasticLoadBalancing
Describes the certificates for the specified secure listener.
describeListenerCertificates
in interface AmazonElasticLoadBalancing
public DescribeListenersResult describeListeners(DescribeListenersRequest request)
AmazonElasticLoadBalancing
Describes the specified listeners or the listeners for the specified Application Load Balancer or Network Load Balancer. You must specify either a load balancer or one or more listeners.
describeListeners
in interface AmazonElasticLoadBalancing
public DescribeLoadBalancerAttributesResult describeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest request)
AmazonElasticLoadBalancing
Describes the attributes for the specified Application Load Balancer or Network Load Balancer.
describeLoadBalancerAttributes
in interface AmazonElasticLoadBalancing
public DescribeLoadBalancersResult describeLoadBalancers(DescribeLoadBalancersRequest request)
AmazonElasticLoadBalancing
Describes the specified load balancers or all of your load balancers.
To describe the listeners for a load balancer, use DescribeListeners. To describe the attributes for a load balancer, use DescribeLoadBalancerAttributes.
describeLoadBalancers
in interface AmazonElasticLoadBalancing
public DescribeRulesResult describeRules(DescribeRulesRequest request)
AmazonElasticLoadBalancing
Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules.
describeRules
in interface AmazonElasticLoadBalancing
public DescribeSSLPoliciesResult describeSSLPolicies(DescribeSSLPoliciesRequest request)
AmazonElasticLoadBalancing
Describes the specified policies or all policies used for SSL negotiation.
For more information, see Security Policies in the Application Load Balancers Guide.
describeSSLPolicies
in interface AmazonElasticLoadBalancing
public DescribeTagsResult describeTags(DescribeTagsRequest request)
AmazonElasticLoadBalancing
Describes the tags for the specified resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, and target groups.
describeTags
in interface AmazonElasticLoadBalancing
public DescribeTargetGroupAttributesResult describeTargetGroupAttributes(DescribeTargetGroupAttributesRequest request)
AmazonElasticLoadBalancing
Describes the attributes for the specified target group.
describeTargetGroupAttributes
in interface AmazonElasticLoadBalancing
public DescribeTargetGroupsResult describeTargetGroups(DescribeTargetGroupsRequest request)
AmazonElasticLoadBalancing
Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups.
To describe the targets for a target group, use DescribeTargetHealth. To describe the attributes of a target group, use DescribeTargetGroupAttributes.
describeTargetGroups
in interface AmazonElasticLoadBalancing
public DescribeTargetHealthResult describeTargetHealth(DescribeTargetHealthRequest request)
AmazonElasticLoadBalancing
Describes the health of the specified targets or all of your targets.
describeTargetHealth
in interface AmazonElasticLoadBalancing
public ModifyListenerResult modifyListener(ModifyListenerRequest request)
AmazonElasticLoadBalancing
Modifies the specified properties of the specified listener.
Any properties that you do not specify retain their current values. However, changing the protocol from HTTPS to HTTP removes the security policy and SSL certificate properties. If you change the protocol from HTTP to HTTPS, you must add the security policy and server certificate.
modifyListener
in interface AmazonElasticLoadBalancing
public ModifyLoadBalancerAttributesResult modifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest request)
AmazonElasticLoadBalancing
Modifies the specified attributes of the specified Application Load Balancer or Network Load Balancer.
If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.
modifyLoadBalancerAttributes
in interface AmazonElasticLoadBalancing
public ModifyRuleResult modifyRule(ModifyRuleRequest request)
AmazonElasticLoadBalancing
Modifies the specified rule.
Any existing properties that you do not modify retain their current values.
To modify the default action, use ModifyListener.
modifyRule
in interface AmazonElasticLoadBalancing
public ModifyTargetGroupResult modifyTargetGroup(ModifyTargetGroupRequest request)
AmazonElasticLoadBalancing
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
To monitor the health of the targets, use DescribeTargetHealth.
modifyTargetGroup
in interface AmazonElasticLoadBalancing
public ModifyTargetGroupAttributesResult modifyTargetGroupAttributes(ModifyTargetGroupAttributesRequest request)
AmazonElasticLoadBalancing
Modifies the specified attributes of the specified target group.
modifyTargetGroupAttributes
in interface AmazonElasticLoadBalancing
public RegisterTargetsResult registerTargets(RegisterTargetsRequest request)
AmazonElasticLoadBalancing
Registers the specified targets with the specified target group.
You can register targets by instance ID or by IP address. If the target is an EC2 instance, it must be in the
running
state when you register it.
By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.
With a Network Load Balancer, you cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these types by IP address.
To remove a target from a target group, use DeregisterTargets.
registerTargets
in interface AmazonElasticLoadBalancing
public RemoveListenerCertificatesResult removeListenerCertificates(RemoveListenerCertificatesRequest request)
AmazonElasticLoadBalancing
Removes the specified certificate from the specified secure listener.
You can't remove the default certificate for a listener. To replace the default certificate, call ModifyListener.
To list the certificates for your listener, use DescribeListenerCertificates.
removeListenerCertificates
in interface AmazonElasticLoadBalancing
public RemoveTagsResult removeTags(RemoveTagsRequest request)
AmazonElasticLoadBalancing
Removes the specified tags from the specified Elastic Load Balancing resource.
To list the current tags for your resources, use DescribeTags.
removeTags
in interface AmazonElasticLoadBalancing
public SetIpAddressTypeResult setIpAddressType(SetIpAddressTypeRequest request)
AmazonElasticLoadBalancing
Sets the type of IP addresses used by the subnets of the specified Application Load Balancer or Network Load Balancer.
Note that Network Load Balancers must use ipv4
.
setIpAddressType
in interface AmazonElasticLoadBalancing
public SetRulePrioritiesResult setRulePriorities(SetRulePrioritiesRequest request)
AmazonElasticLoadBalancing
Sets the priorities of the specified rules.
You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority.
setRulePriorities
in interface AmazonElasticLoadBalancing
public SetSecurityGroupsResult setSecurityGroups(SetSecurityGroupsRequest request)
AmazonElasticLoadBalancing
Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.
Note that you can't specify a security group for a Network Load Balancer.
setSecurityGroups
in interface AmazonElasticLoadBalancing
public SetSubnetsResult setSubnets(SetSubnetsRequest request)
AmazonElasticLoadBalancing
Enables the Availability Zone for the specified subnets for the specified Application Load Balancer. The specified subnets replace the previously enabled subnets.
Note that you can't change the subnets for a Network Load Balancer.
setSubnets
in interface AmazonElasticLoadBalancing
public void shutdown()
AmazonElasticLoadBalancing
shutdown
in interface AmazonElasticLoadBalancing
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonElasticLoadBalancing
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata
in interface AmazonElasticLoadBalancing
request
- The originally executed request.public AmazonElasticLoadBalancingWaiters waiters()
waiters
in interface AmazonElasticLoadBalancing
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.