@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface ElasticLoadBalancingV2Client extends SdkClient
builder()
method.
A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.
Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, Gateway Load Balancers, and Classic Load Balancers. This reference covers the following load balancer types:
Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS.
Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP.
Gateway Load Balancer - Operates at the network layer (layer 3).
For more information, see the Elastic Load Balancing User Guide.
All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default AddListenerCertificatesResponse |
addListenerCertificates(AddListenerCertificatesRequest addListenerCertificatesRequest)
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
|
default AddListenerCertificatesResponse |
addListenerCertificates(Consumer<AddListenerCertificatesRequest.Builder> addListenerCertificatesRequest)
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
|
default AddTagsResponse |
addTags(AddTagsRequest addTagsRequest)
Adds the specified tags to the specified Elastic Load Balancing resource.
|
default AddTagsResponse |
addTags(Consumer<AddTagsRequest.Builder> addTagsRequest)
Adds the specified tags to the specified Elastic Load Balancing resource.
|
static ElasticLoadBalancingV2ClientBuilder |
builder()
Create a builder that can be used to configure and create a
ElasticLoadBalancingV2Client. |
static ElasticLoadBalancingV2Client |
create()
Create a
ElasticLoadBalancingV2Client with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateListenerResponse |
createListener(Consumer<CreateListenerRequest.Builder> createListenerRequest)
Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
|
default CreateListenerResponse |
createListener(CreateListenerRequest createListenerRequest)
Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
|
default CreateLoadBalancerResponse |
createLoadBalancer(Consumer<CreateLoadBalancerRequest.Builder> createLoadBalancerRequest)
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
|
default CreateLoadBalancerResponse |
createLoadBalancer(CreateLoadBalancerRequest createLoadBalancerRequest)
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
|
default CreateRuleResponse |
createRule(Consumer<CreateRuleRequest.Builder> createRuleRequest)
Creates a rule for the specified listener.
|
default CreateRuleResponse |
createRule(CreateRuleRequest createRuleRequest)
Creates a rule for the specified listener.
|
default CreateTargetGroupResponse |
createTargetGroup(Consumer<CreateTargetGroupRequest.Builder> createTargetGroupRequest)
Creates a target group.
|
default CreateTargetGroupResponse |
createTargetGroup(CreateTargetGroupRequest createTargetGroupRequest)
Creates a target group.
|
default DeleteListenerResponse |
deleteListener(Consumer<DeleteListenerRequest.Builder> deleteListenerRequest)
Deletes the specified listener.
|
default DeleteListenerResponse |
deleteListener(DeleteListenerRequest deleteListenerRequest)
Deletes the specified listener.
|
default DeleteLoadBalancerResponse |
deleteLoadBalancer(Consumer<DeleteLoadBalancerRequest.Builder> deleteLoadBalancerRequest)
Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
|
default DeleteLoadBalancerResponse |
deleteLoadBalancer(DeleteLoadBalancerRequest deleteLoadBalancerRequest)
Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
|
default DeleteRuleResponse |
deleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest)
Deletes the specified rule.
|
default DeleteRuleResponse |
deleteRule(DeleteRuleRequest deleteRuleRequest)
Deletes the specified rule.
|
default DeleteTargetGroupResponse |
deleteTargetGroup(Consumer<DeleteTargetGroupRequest.Builder> deleteTargetGroupRequest)
Deletes the specified target group.
|
default DeleteTargetGroupResponse |
deleteTargetGroup(DeleteTargetGroupRequest deleteTargetGroupRequest)
Deletes the specified target group.
|
default DeregisterTargetsResponse |
deregisterTargets(Consumer<DeregisterTargetsRequest.Builder> deregisterTargetsRequest)
Deregisters the specified targets from the specified target group.
|
default DeregisterTargetsResponse |
deregisterTargets(DeregisterTargetsRequest deregisterTargetsRequest)
Deregisters the specified targets from the specified target group.
|
default DescribeAccountLimitsResponse |
describeAccountLimits()
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
|
default DescribeAccountLimitsResponse |
describeAccountLimits(Consumer<DescribeAccountLimitsRequest.Builder> describeAccountLimitsRequest)
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
|
default DescribeAccountLimitsResponse |
describeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest)
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
|
default DescribeListenerCertificatesResponse |
describeListenerCertificates(Consumer<DescribeListenerCertificatesRequest.Builder> describeListenerCertificatesRequest)
Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.
|
default DescribeListenerCertificatesResponse |
describeListenerCertificates(DescribeListenerCertificatesRequest describeListenerCertificatesRequest)
Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.
|
default DescribeListenersResponse |
describeListeners(Consumer<DescribeListenersRequest.Builder> describeListenersRequest)
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load
Balancer, or Gateway Load Balancer.
|
default DescribeListenersResponse |
describeListeners(DescribeListenersRequest describeListenersRequest)
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load
Balancer, or Gateway Load Balancer.
|
default DescribeListenersIterable |
describeListenersPaginator(Consumer<DescribeListenersRequest.Builder> describeListenersRequest)
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load
Balancer, or Gateway Load Balancer.
|
default DescribeListenersIterable |
describeListenersPaginator(DescribeListenersRequest describeListenersRequest)
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load
Balancer, or Gateway Load Balancer.
|
default DescribeLoadBalancerAttributesResponse |
describeLoadBalancerAttributes(Consumer<DescribeLoadBalancerAttributesRequest.Builder> describeLoadBalancerAttributesRequest)
Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load
Balancer.
|
default DescribeLoadBalancerAttributesResponse |
describeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest describeLoadBalancerAttributesRequest)
Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load
Balancer.
|
default DescribeLoadBalancersResponse |
describeLoadBalancers()
Describes the specified load balancers or all of your load balancers.
|
default DescribeLoadBalancersResponse |
describeLoadBalancers(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest)
Describes the specified load balancers or all of your load balancers.
|
default DescribeLoadBalancersResponse |
describeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest)
Describes the specified load balancers or all of your load balancers.
|
default DescribeLoadBalancersIterable |
describeLoadBalancersPaginator()
Describes the specified load balancers or all of your load balancers.
|
default DescribeLoadBalancersIterable |
describeLoadBalancersPaginator(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest)
Describes the specified load balancers or all of your load balancers.
|
default DescribeLoadBalancersIterable |
describeLoadBalancersPaginator(DescribeLoadBalancersRequest describeLoadBalancersRequest)
Describes the specified load balancers or all of your load balancers.
|
default DescribeRulesResponse |
describeRules(Consumer<DescribeRulesRequest.Builder> describeRulesRequest)
Describes the specified rules or the rules for the specified listener.
|
default DescribeRulesResponse |
describeRules(DescribeRulesRequest describeRulesRequest)
Describes the specified rules or the rules for the specified listener.
|
default DescribeSslPoliciesResponse |
describeSSLPolicies()
Describes the specified policies or all policies used for SSL negotiation.
|
default DescribeSslPoliciesResponse |
describeSSLPolicies(Consumer<DescribeSslPoliciesRequest.Builder> describeSslPoliciesRequest)
Describes the specified policies or all policies used for SSL negotiation.
|
default DescribeSslPoliciesResponse |
describeSSLPolicies(DescribeSslPoliciesRequest describeSslPoliciesRequest)
Describes the specified policies or all policies used for SSL negotiation.
|
default DescribeTagsResponse |
describeTags(Consumer<DescribeTagsRequest.Builder> describeTagsRequest)
Describes the tags for the specified Elastic Load Balancing resources.
|
default DescribeTagsResponse |
describeTags(DescribeTagsRequest describeTagsRequest)
Describes the tags for the specified Elastic Load Balancing resources.
|
default DescribeTargetGroupAttributesResponse |
describeTargetGroupAttributes(Consumer<DescribeTargetGroupAttributesRequest.Builder> describeTargetGroupAttributesRequest)
Describes the attributes for the specified target group.
|
default DescribeTargetGroupAttributesResponse |
describeTargetGroupAttributes(DescribeTargetGroupAttributesRequest describeTargetGroupAttributesRequest)
Describes the attributes for the specified target group.
|
default DescribeTargetGroupsResponse |
describeTargetGroups()
Describes the specified target groups or all of your target groups.
|
default DescribeTargetGroupsResponse |
describeTargetGroups(Consumer<DescribeTargetGroupsRequest.Builder> describeTargetGroupsRequest)
Describes the specified target groups or all of your target groups.
|
default DescribeTargetGroupsResponse |
describeTargetGroups(DescribeTargetGroupsRequest describeTargetGroupsRequest)
Describes the specified target groups or all of your target groups.
|
default DescribeTargetGroupsIterable |
describeTargetGroupsPaginator()
Describes the specified target groups or all of your target groups.
|
default DescribeTargetGroupsIterable |
describeTargetGroupsPaginator(Consumer<DescribeTargetGroupsRequest.Builder> describeTargetGroupsRequest)
Describes the specified target groups or all of your target groups.
|
default DescribeTargetGroupsIterable |
describeTargetGroupsPaginator(DescribeTargetGroupsRequest describeTargetGroupsRequest)
Describes the specified target groups or all of your target groups.
|
default DescribeTargetHealthResponse |
describeTargetHealth(Consumer<DescribeTargetHealthRequest.Builder> describeTargetHealthRequest)
Describes the health of the specified targets or all of your targets.
|
default DescribeTargetHealthResponse |
describeTargetHealth(DescribeTargetHealthRequest describeTargetHealthRequest)
Describes the health of the specified targets or all of your targets.
|
default ModifyListenerResponse |
modifyListener(Consumer<ModifyListenerRequest.Builder> modifyListenerRequest)
Replaces the specified properties of the specified listener.
|
default ModifyListenerResponse |
modifyListener(ModifyListenerRequest modifyListenerRequest)
Replaces the specified properties of the specified listener.
|
default ModifyLoadBalancerAttributesResponse |
modifyLoadBalancerAttributes(Consumer<ModifyLoadBalancerAttributesRequest.Builder> modifyLoadBalancerAttributesRequest)
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway
Load Balancer.
|
default ModifyLoadBalancerAttributesResponse |
modifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest modifyLoadBalancerAttributesRequest)
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway
Load Balancer.
|
default ModifyRuleResponse |
modifyRule(Consumer<ModifyRuleRequest.Builder> modifyRuleRequest)
Replaces the specified properties of the specified rule.
|
default ModifyRuleResponse |
modifyRule(ModifyRuleRequest modifyRuleRequest)
Replaces the specified properties of the specified rule.
|
default ModifyTargetGroupResponse |
modifyTargetGroup(Consumer<ModifyTargetGroupRequest.Builder> modifyTargetGroupRequest)
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
|
default ModifyTargetGroupResponse |
modifyTargetGroup(ModifyTargetGroupRequest modifyTargetGroupRequest)
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
|
default ModifyTargetGroupAttributesResponse |
modifyTargetGroupAttributes(Consumer<ModifyTargetGroupAttributesRequest.Builder> modifyTargetGroupAttributesRequest)
Modifies the specified attributes of the specified target group.
|
default ModifyTargetGroupAttributesResponse |
modifyTargetGroupAttributes(ModifyTargetGroupAttributesRequest modifyTargetGroupAttributesRequest)
Modifies the specified attributes of the specified target group.
|
default RegisterTargetsResponse |
registerTargets(Consumer<RegisterTargetsRequest.Builder> registerTargetsRequest)
Registers the specified targets with the specified target group.
|
default RegisterTargetsResponse |
registerTargets(RegisterTargetsRequest registerTargetsRequest)
Registers the specified targets with the specified target group.
|
default RemoveListenerCertificatesResponse |
removeListenerCertificates(Consumer<RemoveListenerCertificatesRequest.Builder> removeListenerCertificatesRequest)
Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.
|
default RemoveListenerCertificatesResponse |
removeListenerCertificates(RemoveListenerCertificatesRequest removeListenerCertificatesRequest)
Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.
|
default RemoveTagsResponse |
removeTags(Consumer<RemoveTagsRequest.Builder> removeTagsRequest)
Removes the specified tags from the specified Elastic Load Balancing resources.
|
default RemoveTagsResponse |
removeTags(RemoveTagsRequest removeTagsRequest)
Removes the specified tags from the specified Elastic Load Balancing resources.
|
static ServiceMetadata |
serviceMetadata() |
default SetIpAddressTypeResponse |
setIpAddressType(Consumer<SetIpAddressTypeRequest.Builder> setIpAddressTypeRequest)
Sets the type of IP addresses used by the subnets of the specified load balancer.
|
default SetIpAddressTypeResponse |
setIpAddressType(SetIpAddressTypeRequest setIpAddressTypeRequest)
Sets the type of IP addresses used by the subnets of the specified load balancer.
|
default SetRulePrioritiesResponse |
setRulePriorities(Consumer<SetRulePrioritiesRequest.Builder> setRulePrioritiesRequest)
Sets the priorities of the specified rules.
|
default SetRulePrioritiesResponse |
setRulePriorities(SetRulePrioritiesRequest setRulePrioritiesRequest)
Sets the priorities of the specified rules.
|
default SetSecurityGroupsResponse |
setSecurityGroups(Consumer<SetSecurityGroupsRequest.Builder> setSecurityGroupsRequest)
Associates the specified security groups with the specified Application Load Balancer.
|
default SetSecurityGroupsResponse |
setSecurityGroups(SetSecurityGroupsRequest setSecurityGroupsRequest)
Associates the specified security groups with the specified Application Load Balancer.
|
default SetSubnetsResponse |
setSubnets(Consumer<SetSubnetsRequest.Builder> setSubnetsRequest)
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or
Network Load Balancer.
|
default SetSubnetsResponse |
setSubnets(SetSubnetsRequest setSubnetsRequest)
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or
Network Load Balancer.
|
default ElasticLoadBalancingV2Waiter |
waiter()
Create an instance of
ElasticLoadBalancingV2Waiter using this client. |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static ElasticLoadBalancingV2Client create()
ElasticLoadBalancingV2Client with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static ElasticLoadBalancingV2ClientBuilder builder()
ElasticLoadBalancingV2Client.default AddListenerCertificatesResponse addListenerCertificates(AddListenerCertificatesRequest addListenerCertificatesRequest) throws ListenerNotFoundException, TooManyCertificatesException, CertificateNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
If the certificate in already in the certificate list, the call is successful but the certificate is not added again.
For more information, see HTTPS listeners in the Application Load Balancers Guide or TLS listeners in the Network Load Balancers Guide.
addListenerCertificatesRequest - ListenerNotFoundException - The specified listener does not exist.TooManyCertificatesException - You've reached the limit on the number of certificates per load balancer.CertificateNotFoundException - The specified certificate does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AddListenerCertificatesResponse addListenerCertificates(Consumer<AddListenerCertificatesRequest.Builder> addListenerCertificatesRequest) throws ListenerNotFoundException, TooManyCertificatesException, CertificateNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
If the certificate in already in the certificate list, the call is successful but the certificate is not added again.
For more information, see HTTPS listeners in the Application Load Balancers Guide or TLS listeners in the Network Load Balancers Guide.
This is a convenience which creates an instance of the AddListenerCertificatesRequest.Builder avoiding
the need to create one manually via AddListenerCertificatesRequest.builder()
addListenerCertificatesRequest - A Consumer that will call methods on AddListenerCertificatesInput.Builder to create a
request.ListenerNotFoundException - The specified listener does not exist.TooManyCertificatesException - You've reached the limit on the number of certificates per load balancer.CertificateNotFoundException - The specified certificate does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AddTagsResponse addTags(AddTagsRequest addTagsRequest) throws DuplicateTagKeysException, TooManyTagsException, LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, and rules.
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.
addTagsRequest - DuplicateTagKeysException - A tag key was specified more than once.TooManyTagsException - You've reached the limit on the number of tags per load balancer.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault AddTagsResponse addTags(Consumer<AddTagsRequest.Builder> addTagsRequest) throws DuplicateTagKeysException, TooManyTagsException, LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, and rules.
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.
This is a convenience which creates an instance of the AddTagsRequest.Builder avoiding the need to create
one manually via AddTagsRequest.builder()
addTagsRequest - A Consumer that will call methods on AddTagsInput.Builder to create a request.DuplicateTagKeysException - A tag key was specified more than once.TooManyTagsException - You've reached the limit on the number of tags per load balancer.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateListenerResponse createListener(CreateListenerRequest createListenerRequest) throws DuplicateListenerException, TooManyListenersException, TooManyCertificatesException, LoadBalancerNotFoundException, TargetGroupNotFoundException, TargetGroupAssociationLimitException, InvalidConfigurationRequestException, IncompatibleProtocolsException, SslPolicyNotFoundException, CertificateNotFoundException, UnsupportedProtocolException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AlpnPolicyNotSupportedException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
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.
createListenerRequest - DuplicateListenerException - A listener with the specified port already exists.TooManyListenersException - You've reached the limit on the number of listeners per load balancer.TooManyCertificatesException - You've reached the limit on the number of certificates per load balancer.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.InvalidConfigurationRequestException - The requested configuration is not valid.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.SslPolicyNotFoundException - The specified SSL policy does not exist.CertificateNotFoundException - The specified certificate does not exist.UnsupportedProtocolException - The specified protocol is not supported.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.AlpnPolicyNotSupportedException - The specified ALPN policy is not supported.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateListenerResponse createListener(Consumer<CreateListenerRequest.Builder> createListenerRequest) throws DuplicateListenerException, TooManyListenersException, TooManyCertificatesException, LoadBalancerNotFoundException, TargetGroupNotFoundException, TargetGroupAssociationLimitException, InvalidConfigurationRequestException, IncompatibleProtocolsException, SslPolicyNotFoundException, CertificateNotFoundException, UnsupportedProtocolException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AlpnPolicyNotSupportedException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
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.
This is a convenience which creates an instance of the CreateListenerRequest.Builder avoiding the need to
create one manually via CreateListenerRequest.builder()
createListenerRequest - A Consumer that will call methods on CreateListenerInput.Builder to create a request.DuplicateListenerException - A listener with the specified port already exists.TooManyListenersException - You've reached the limit on the number of listeners per load balancer.TooManyCertificatesException - You've reached the limit on the number of certificates per load balancer.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.InvalidConfigurationRequestException - The requested configuration is not valid.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.SslPolicyNotFoundException - The specified SSL policy does not exist.CertificateNotFoundException - The specified certificate does not exist.UnsupportedProtocolException - The specified protocol is not supported.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.AlpnPolicyNotSupportedException - The specified ALPN policy is not supported.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateLoadBalancerResponse createLoadBalancer(CreateLoadBalancerRequest createLoadBalancerRequest) throws DuplicateLoadBalancerNameException, TooManyLoadBalancersException, InvalidConfigurationRequestException, SubnetNotFoundException, InvalidSubnetException, InvalidSecurityGroupException, InvalidSchemeException, TooManyTagsException, DuplicateTagKeysException, ResourceInUseException, AllocationIdNotFoundException, AvailabilityZoneNotSupportedException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
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.
createLoadBalancerRequest - DuplicateLoadBalancerNameException - A load balancer with the specified name already exists.TooManyLoadBalancersException - You've reached the limit on the number of load balancers for your Amazon Web Services account.InvalidConfigurationRequestException - The requested configuration is not valid.SubnetNotFoundException - The specified subnet does not exist.InvalidSubnetException - The specified subnet is out of available addresses.InvalidSecurityGroupException - The specified security group does not exist.InvalidSchemeException - The requested scheme is not valid.TooManyTagsException - You've reached the limit on the number of tags per load balancer.DuplicateTagKeysException - A tag key was specified more than once.ResourceInUseException - A specified resource is in use.AllocationIdNotFoundException - The specified allocation ID does not exist.AvailabilityZoneNotSupportedException - The specified Availability Zone is not supported.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateLoadBalancerResponse createLoadBalancer(Consumer<CreateLoadBalancerRequest.Builder> createLoadBalancerRequest) throws DuplicateLoadBalancerNameException, TooManyLoadBalancersException, InvalidConfigurationRequestException, SubnetNotFoundException, InvalidSubnetException, InvalidSecurityGroupException, InvalidSchemeException, TooManyTagsException, DuplicateTagKeysException, ResourceInUseException, AllocationIdNotFoundException, AvailabilityZoneNotSupportedException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
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.
This is a convenience which creates an instance of the CreateLoadBalancerRequest.Builder avoiding the
need to create one manually via CreateLoadBalancerRequest.builder()
createLoadBalancerRequest - A Consumer that will call methods on CreateLoadBalancerInput.Builder to create a request.DuplicateLoadBalancerNameException - A load balancer with the specified name already exists.TooManyLoadBalancersException - You've reached the limit on the number of load balancers for your Amazon Web Services account.InvalidConfigurationRequestException - The requested configuration is not valid.SubnetNotFoundException - The specified subnet does not exist.InvalidSubnetException - The specified subnet is out of available addresses.InvalidSecurityGroupException - The specified security group does not exist.InvalidSchemeException - The requested scheme is not valid.TooManyTagsException - You've reached the limit on the number of tags per load balancer.DuplicateTagKeysException - A tag key was specified more than once.ResourceInUseException - A specified resource is in use.AllocationIdNotFoundException - The specified allocation ID does not exist.AvailabilityZoneNotSupportedException - The specified Availability Zone is not supported.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateRuleResponse createRule(CreateRuleRequest createRuleRequest) throws PriorityInUseException, TooManyTargetGroupsException, TooManyRulesException, TargetGroupAssociationLimitException, IncompatibleProtocolsException, ListenerNotFoundException, TargetGroupNotFoundException, InvalidConfigurationRequestException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, UnsupportedProtocolException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.
Each rule consists of a priority, one or more actions, and one or more conditions. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, its actions are performed. If the conditions for no rules are met, the actions for the default rule are performed. For more information, see Listener rules in the Application Load Balancers Guide.
createRuleRequest - PriorityInUseException - The specified priority is in use.TooManyTargetGroupsException - You've reached the limit on the number of target groups for your Amazon Web Services account.TooManyRulesException - You've reached the limit on the number of rules per load balancer.TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.ListenerNotFoundException - The specified listener does not exist.TargetGroupNotFoundException - The specified target group does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.UnsupportedProtocolException - The specified protocol is not supported.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateRuleResponse createRule(Consumer<CreateRuleRequest.Builder> createRuleRequest) throws PriorityInUseException, TooManyTargetGroupsException, TooManyRulesException, TargetGroupAssociationLimitException, IncompatibleProtocolsException, ListenerNotFoundException, TargetGroupNotFoundException, InvalidConfigurationRequestException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, UnsupportedProtocolException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.
Each rule consists of a priority, one or more actions, and one or more conditions. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, its actions are performed. If the conditions for no rules are met, the actions for the default rule are performed. For more information, see Listener rules in the Application Load Balancers Guide.
This is a convenience which creates an instance of the CreateRuleRequest.Builder avoiding the need to
create one manually via CreateRuleRequest.builder()
createRuleRequest - A Consumer that will call methods on CreateRuleInput.Builder to create a request.PriorityInUseException - The specified priority is in use.TooManyTargetGroupsException - You've reached the limit on the number of target groups for your Amazon Web Services account.TooManyRulesException - You've reached the limit on the number of rules per load balancer.TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.ListenerNotFoundException - The specified listener does not exist.TargetGroupNotFoundException - The specified target group does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.UnsupportedProtocolException - The specified protocol is not supported.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateTargetGroupResponse createTargetGroup(CreateTargetGroupRequest createTargetGroupRequest) throws DuplicateTargetGroupNameException, TooManyTargetGroupsException, InvalidConfigurationRequestException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a target group.
For more information, see the following:
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.
createTargetGroupRequest - DuplicateTargetGroupNameException - A target group with the specified name already exists.TooManyTargetGroupsException - You've reached the limit on the number of target groups for your Amazon Web Services account.InvalidConfigurationRequestException - The requested configuration is not valid.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateTargetGroupResponse createTargetGroup(Consumer<CreateTargetGroupRequest.Builder> createTargetGroupRequest) throws DuplicateTargetGroupNameException, TooManyTargetGroupsException, InvalidConfigurationRequestException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a target group.
For more information, see the following:
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.
This is a convenience which creates an instance of the CreateTargetGroupRequest.Builder avoiding the need
to create one manually via CreateTargetGroupRequest.builder()
createTargetGroupRequest - A Consumer that will call methods on CreateTargetGroupInput.Builder to create a request.DuplicateTargetGroupNameException - A target group with the specified name already exists.TooManyTargetGroupsException - You've reached the limit on the number of target groups for your Amazon Web Services account.InvalidConfigurationRequestException - The requested configuration is not valid.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteListenerResponse deleteListener(DeleteListenerRequest deleteListenerRequest) throws ListenerNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes the specified listener.
Alternatively, your listener is deleted when you delete the load balancer to which it is attached.
deleteListenerRequest - ListenerNotFoundException - The specified listener does not exist.ResourceInUseException - A specified resource is in use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteListenerResponse deleteListener(Consumer<DeleteListenerRequest.Builder> deleteListenerRequest) throws ListenerNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes the specified listener.
Alternatively, your listener is deleted when you delete the load balancer to which it is attached.
This is a convenience which creates an instance of the DeleteListenerRequest.Builder avoiding the need to
create one manually via DeleteListenerRequest.builder()
deleteListenerRequest - A Consumer that will call methods on DeleteListenerInput.Builder to create a request.ListenerNotFoundException - The specified listener does not exist.ResourceInUseException - A specified resource is in use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteLoadBalancerResponse deleteLoadBalancer(DeleteLoadBalancerRequest deleteLoadBalancerRequest) throws LoadBalancerNotFoundException, OperationNotPermittedException, ResourceInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. Deleting a load balancer also deletes its 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.
deleteLoadBalancerRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.OperationNotPermittedException - This operation is not allowed.ResourceInUseException - A specified resource is in use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteLoadBalancerResponse deleteLoadBalancer(Consumer<DeleteLoadBalancerRequest.Builder> deleteLoadBalancerRequest) throws LoadBalancerNotFoundException, OperationNotPermittedException, ResourceInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. Deleting a load balancer also deletes its 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.
This is a convenience which creates an instance of the DeleteLoadBalancerRequest.Builder avoiding the
need to create one manually via DeleteLoadBalancerRequest.builder()
deleteLoadBalancerRequest - A Consumer that will call methods on DeleteLoadBalancerInput.Builder to create a request.LoadBalancerNotFoundException - The specified load balancer does not exist.OperationNotPermittedException - This operation is not allowed.ResourceInUseException - A specified resource is in use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteRuleResponse deleteRule(DeleteRuleRequest deleteRuleRequest) throws RuleNotFoundException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes the specified rule.
You can't delete the default rule.
deleteRuleRequest - RuleNotFoundException - The specified rule does not exist.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteRuleResponse deleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest) throws RuleNotFoundException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes the specified rule.
You can't delete the default rule.
This is a convenience which creates an instance of the DeleteRuleRequest.Builder avoiding the need to
create one manually via DeleteRuleRequest.builder()
deleteRuleRequest - A Consumer that will call methods on DeleteRuleInput.Builder to create a request.RuleNotFoundException - The specified rule does not exist.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteTargetGroupResponse deleteTargetGroup(DeleteTargetGroupRequest deleteTargetGroupRequest) throws ResourceInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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. Deleting a target group does not affect its registered targets. For example, any EC2 instances continue to run until you stop or terminate them.
deleteTargetGroupRequest - ResourceInUseException - A specified resource is in use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteTargetGroupResponse deleteTargetGroup(Consumer<DeleteTargetGroupRequest.Builder> deleteTargetGroupRequest) throws ResourceInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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. Deleting a target group does not affect its registered targets. For example, any EC2 instances continue to run until you stop or terminate them.
This is a convenience which creates an instance of the DeleteTargetGroupRequest.Builder avoiding the need
to create one manually via DeleteTargetGroupRequest.builder()
deleteTargetGroupRequest - A Consumer that will call methods on DeleteTargetGroupInput.Builder to create a request.ResourceInUseException - A specified resource is in use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeregisterTargetsResponse deregisterTargets(DeregisterTargetsRequest deregisterTargetsRequest) throws TargetGroupNotFoundException, InvalidTargetException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.
deregisterTargetsRequest - TargetGroupNotFoundException - The specified target group does not exist.InvalidTargetException - The specified target does not exist, is not in the same VPC as the target group, or has an unsupported
instance type.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeregisterTargetsResponse deregisterTargets(Consumer<DeregisterTargetsRequest.Builder> deregisterTargetsRequest) throws TargetGroupNotFoundException, InvalidTargetException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.
This is a convenience which creates an instance of the DeregisterTargetsRequest.Builder avoiding the need
to create one manually via DeregisterTargetsRequest.builder()
deregisterTargetsRequest - A Consumer that will call methods on DeregisterTargetsInput.Builder to create a request.TargetGroupNotFoundException - The specified target group does not exist.InvalidTargetException - The specified target does not exist, is not in the same VPC as the target group, or has an unsupported
instance type.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeAccountLimitsResponse describeAccountLimits() throws AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
For more information, see the following:
SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondescribeAccountLimits(DescribeAccountLimitsRequest),
AWS API Documentationdefault DescribeAccountLimitsResponse describeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest) throws AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
For more information, see the following:
describeAccountLimitsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeAccountLimitsResponse describeAccountLimits(Consumer<DescribeAccountLimitsRequest.Builder> describeAccountLimitsRequest) throws AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
For more information, see the following:
This is a convenience which creates an instance of the DescribeAccountLimitsRequest.Builder avoiding the
need to create one manually via DescribeAccountLimitsRequest.builder()
describeAccountLimitsRequest - A Consumer that will call methods on DescribeAccountLimitsInput.Builder to create a
request.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeListenerCertificatesResponse describeListenerCertificates(DescribeListenerCertificatesRequest describeListenerCertificatesRequest) throws ListenerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.
If the default certificate is also in the certificate list, it appears twice in the results (once with
IsDefault set to true and once with IsDefault set to false).
For more information, see SSL certificates in the Application Load Balancers Guide or Server certificates in the Network Load Balancers Guide.
describeListenerCertificatesRequest - ListenerNotFoundException - The specified listener does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeListenerCertificatesResponse describeListenerCertificates(Consumer<DescribeListenerCertificatesRequest.Builder> describeListenerCertificatesRequest) throws ListenerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.
If the default certificate is also in the certificate list, it appears twice in the results (once with
IsDefault set to true and once with IsDefault set to false).
For more information, see SSL certificates in the Application Load Balancers Guide or Server certificates in the Network Load Balancers Guide.
This is a convenience which creates an instance of the DescribeListenerCertificatesRequest.Builder
avoiding the need to create one manually via DescribeListenerCertificatesRequest.builder()
describeListenerCertificatesRequest - A Consumer that will call methods on DescribeListenerCertificatesInput.Builder to create a
request.ListenerNotFoundException - The specified listener does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeListenersResponse describeListeners(DescribeListenersRequest describeListenersRequest) throws ListenerNotFoundException, LoadBalancerNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. You must specify either a load balancer or one or more listeners.
describeListenersRequest - ListenerNotFoundException - The specified listener does not exist.LoadBalancerNotFoundException - The specified load balancer does not exist.UnsupportedProtocolException - The specified protocol is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeListenersResponse describeListeners(Consumer<DescribeListenersRequest.Builder> describeListenersRequest) throws ListenerNotFoundException, LoadBalancerNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. You must specify either a load balancer or one or more listeners.
This is a convenience which creates an instance of the DescribeListenersRequest.Builder avoiding the need
to create one manually via DescribeListenersRequest.builder()
describeListenersRequest - A Consumer that will call methods on DescribeListenersInput.Builder to create a request.ListenerNotFoundException - The specified listener does not exist.LoadBalancerNotFoundException - The specified load balancer does not exist.UnsupportedProtocolException - The specified protocol is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeListenersIterable describeListenersPaginator(DescribeListenersRequest describeListenersRequest) throws ListenerNotFoundException, LoadBalancerNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. You must specify either a load balancer or one or more listeners.
This is a variant of
describeListeners(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client.describeListenersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client
.describeListenersPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client.describeListenersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeListeners(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersRequest)
operation.
describeListenersRequest - ListenerNotFoundException - The specified listener does not exist.LoadBalancerNotFoundException - The specified load balancer does not exist.UnsupportedProtocolException - The specified protocol is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeListenersIterable describeListenersPaginator(Consumer<DescribeListenersRequest.Builder> describeListenersRequest) throws ListenerNotFoundException, LoadBalancerNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. You must specify either a load balancer or one or more listeners.
This is a variant of
describeListeners(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client.describeListenersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client
.describeListenersPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client.describeListenersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeListeners(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersRequest)
operation.
This is a convenience which creates an instance of the DescribeListenersRequest.Builder avoiding the need
to create one manually via DescribeListenersRequest.builder()
describeListenersRequest - A Consumer that will call methods on DescribeListenersInput.Builder to create a request.ListenerNotFoundException - The specified listener does not exist.LoadBalancerNotFoundException - The specified load balancer does not exist.UnsupportedProtocolException - The specified protocol is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeLoadBalancerAttributesResponse describeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest describeLoadBalancerAttributesRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
Load balancer attributes in the Application Load Balancers Guide
Load balancer attributes in the Network Load Balancers Guide
Load balancer attributes in the Gateway Load Balancers Guide
describeLoadBalancerAttributesRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeLoadBalancerAttributesResponse describeLoadBalancerAttributes(Consumer<DescribeLoadBalancerAttributesRequest.Builder> describeLoadBalancerAttributesRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
Load balancer attributes in the Application Load Balancers Guide
Load balancer attributes in the Network Load Balancers Guide
Load balancer attributes in the Gateway Load Balancers Guide
This is a convenience which creates an instance of the DescribeLoadBalancerAttributesRequest.Builder
avoiding the need to create one manually via DescribeLoadBalancerAttributesRequest.builder()
describeLoadBalancerAttributesRequest - A Consumer that will call methods on DescribeLoadBalancerAttributesInput.Builder to create
a request.LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeLoadBalancersResponse describeLoadBalancers() throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondescribeLoadBalancers(DescribeLoadBalancersRequest),
AWS API Documentationdefault DescribeLoadBalancersResponse describeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
describeLoadBalancersRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeLoadBalancersResponse describeLoadBalancers(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
This is a convenience which creates an instance of the DescribeLoadBalancersRequest.Builder avoiding the
need to create one manually via DescribeLoadBalancersRequest.builder()
describeLoadBalancersRequest - A Consumer that will call methods on DescribeLoadBalancersInput.Builder to create a
request.LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeLoadBalancersIterable describeLoadBalancersPaginator() throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
This is a variant of
describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client
.describeLoadBalancersPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
operation.
LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondescribeLoadBalancersPaginator(DescribeLoadBalancersRequest),
AWS API Documentationdefault DescribeLoadBalancersIterable describeLoadBalancersPaginator(DescribeLoadBalancersRequest describeLoadBalancersRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
This is a variant of
describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client
.describeLoadBalancersPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
operation.
describeLoadBalancersRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeLoadBalancersIterable describeLoadBalancersPaginator(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
This is a variant of
describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client
.describeLoadBalancersPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)
operation.
This is a convenience which creates an instance of the DescribeLoadBalancersRequest.Builder avoiding the
need to create one manually via DescribeLoadBalancersRequest.builder()
describeLoadBalancersRequest - A Consumer that will call methods on DescribeLoadBalancersInput.Builder to create a
request.LoadBalancerNotFoundException - The specified load balancer does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeRulesResponse describeRules(DescribeRulesRequest describeRulesRequest) throws ListenerNotFoundException, RuleNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules.
describeRulesRequest - ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.UnsupportedProtocolException - The specified protocol is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeRulesResponse describeRules(Consumer<DescribeRulesRequest.Builder> describeRulesRequest) throws ListenerNotFoundException, RuleNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules.
This is a convenience which creates an instance of the DescribeRulesRequest.Builder avoiding the need to
create one manually via DescribeRulesRequest.builder()
describeRulesRequest - A Consumer that will call methods on DescribeRulesInput.Builder to create a request.ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.UnsupportedProtocolException - The specified protocol is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeSslPoliciesResponse describeSSLPolicies() throws SslPolicyNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified policies or all policies used for SSL negotiation.
For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.
SslPolicyNotFoundException - The specified SSL policy does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondescribeSSLPolicies(DescribeSslPoliciesRequest),
AWS API Documentationdefault DescribeSslPoliciesResponse describeSSLPolicies(DescribeSslPoliciesRequest describeSslPoliciesRequest) throws SslPolicyNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified policies or all policies used for SSL negotiation.
For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.
describeSslPoliciesRequest - SslPolicyNotFoundException - The specified SSL policy does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeSslPoliciesResponse describeSSLPolicies(Consumer<DescribeSslPoliciesRequest.Builder> describeSslPoliciesRequest) throws SslPolicyNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified policies or all policies used for SSL negotiation.
For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.
This is a convenience which creates an instance of the DescribeSslPoliciesRequest.Builder avoiding the
need to create one manually via DescribeSslPoliciesRequest.builder()
describeSslPoliciesRequest - A Consumer that will call methods on DescribeSSLPoliciesInput.Builder to create a request.SslPolicyNotFoundException - The specified SSL policy does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTagsResponse describeTags(DescribeTagsRequest describeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the tags for the specified Elastic Load Balancing resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
describeTagsRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTagsResponse describeTags(Consumer<DescribeTagsRequest.Builder> describeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the tags for the specified Elastic Load Balancing resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
This is a convenience which creates an instance of the DescribeTagsRequest.Builder avoiding the need to
create one manually via DescribeTagsRequest.builder()
describeTagsRequest - A Consumer that will call methods on DescribeTagsInput.Builder to create a request.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetGroupAttributesResponse describeTargetGroupAttributes(DescribeTargetGroupAttributesRequest describeTargetGroupAttributesRequest) throws TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the attributes for the specified target group.
For more information, see the following:
Target group attributes in the Application Load Balancers Guide
Target group attributes in the Network Load Balancers Guide
Target group attributes in the Gateway Load Balancers Guide
describeTargetGroupAttributesRequest - TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetGroupAttributesResponse describeTargetGroupAttributes(Consumer<DescribeTargetGroupAttributesRequest.Builder> describeTargetGroupAttributesRequest) throws TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the attributes for the specified target group.
For more information, see the following:
Target group attributes in the Application Load Balancers Guide
Target group attributes in the Network Load Balancers Guide
Target group attributes in the Gateway Load Balancers Guide
This is a convenience which creates an instance of the DescribeTargetGroupAttributesRequest.Builder
avoiding the need to create one manually via DescribeTargetGroupAttributesRequest.builder()
describeTargetGroupAttributesRequest - A Consumer that will call methods on DescribeTargetGroupAttributesInput.Builder to create
a request.TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetGroupsResponse describeTargetGroups() throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondescribeTargetGroups(DescribeTargetGroupsRequest),
AWS API Documentationdefault DescribeTargetGroupsResponse describeTargetGroups(DescribeTargetGroupsRequest describeTargetGroupsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
describeTargetGroupsRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetGroupsResponse describeTargetGroups(Consumer<DescribeTargetGroupsRequest.Builder> describeTargetGroupsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
This is a convenience which creates an instance of the DescribeTargetGroupsRequest.Builder avoiding the
need to create one manually via DescribeTargetGroupsRequest.builder()
describeTargetGroupsRequest - A Consumer that will call methods on DescribeTargetGroupsInput.Builder to create a
request.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetGroupsIterable describeTargetGroupsPaginator() throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
This is a variant of
describeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client
.describeTargetGroupsPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)
operation.
LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondescribeTargetGroupsPaginator(DescribeTargetGroupsRequest),
AWS API Documentationdefault DescribeTargetGroupsIterable describeTargetGroupsPaginator(DescribeTargetGroupsRequest describeTargetGroupsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
This is a variant of
describeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client
.describeTargetGroupsPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)
operation.
describeTargetGroupsRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetGroupsIterable describeTargetGroupsPaginator(Consumer<DescribeTargetGroupsRequest.Builder> describeTargetGroupsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
This is a variant of
describeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client
.describeTargetGroupsPaginator(request);
for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)
operation.
This is a convenience which creates an instance of the DescribeTargetGroupsRequest.Builder avoiding the
need to create one manually via DescribeTargetGroupsRequest.builder()
describeTargetGroupsRequest - A Consumer that will call methods on DescribeTargetGroupsInput.Builder to create a
request.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetHealthResponse describeTargetHealth(DescribeTargetHealthRequest describeTargetHealthRequest) throws InvalidTargetException, TargetGroupNotFoundException, HealthUnavailableException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the health of the specified targets or all of your targets.
describeTargetHealthRequest - InvalidTargetException - The specified target does not exist, is not in the same VPC as the target group, or has an unsupported
instance type.TargetGroupNotFoundException - The specified target group does not exist.HealthUnavailableException - The health of the specified targets could not be retrieved due to an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DescribeTargetHealthResponse describeTargetHealth(Consumer<DescribeTargetHealthRequest.Builder> describeTargetHealthRequest) throws InvalidTargetException, TargetGroupNotFoundException, HealthUnavailableException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the health of the specified targets or all of your targets.
This is a convenience which creates an instance of the DescribeTargetHealthRequest.Builder avoiding the
need to create one manually via DescribeTargetHealthRequest.builder()
describeTargetHealthRequest - A Consumer that will call methods on DescribeTargetHealthInput.Builder to create a
request.InvalidTargetException - The specified target does not exist, is not in the same VPC as the target group, or has an unsupported
instance type.TargetGroupNotFoundException - The specified target group does not exist.HealthUnavailableException - The health of the specified targets could not be retrieved due to an internal error.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyListenerResponse modifyListener(ModifyListenerRequest modifyListenerRequest) throws DuplicateListenerException, TooManyListenersException, TooManyCertificatesException, ListenerNotFoundException, TargetGroupNotFoundException, TargetGroupAssociationLimitException, IncompatibleProtocolsException, SslPolicyNotFoundException, CertificateNotFoundException, InvalidConfigurationRequestException, UnsupportedProtocolException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AlpnPolicyNotSupportedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Replaces the specified properties of the specified listener. Any properties that you do not specify remain unchanged.
Changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes the security policy and default certificate properties. If you change the protocol from HTTP to HTTPS, or from TCP to TLS, you must add the security policy and default certificate properties.
To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.
modifyListenerRequest - DuplicateListenerException - A listener with the specified port already exists.TooManyListenersException - You've reached the limit on the number of listeners per load balancer.TooManyCertificatesException - You've reached the limit on the number of certificates per load balancer.ListenerNotFoundException - The specified listener does not exist.TargetGroupNotFoundException - The specified target group does not exist.TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.SslPolicyNotFoundException - The specified SSL policy does not exist.CertificateNotFoundException - The specified certificate does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.UnsupportedProtocolException - The specified protocol is not supported.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.AlpnPolicyNotSupportedException - The specified ALPN policy is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyListenerResponse modifyListener(Consumer<ModifyListenerRequest.Builder> modifyListenerRequest) throws DuplicateListenerException, TooManyListenersException, TooManyCertificatesException, ListenerNotFoundException, TargetGroupNotFoundException, TargetGroupAssociationLimitException, IncompatibleProtocolsException, SslPolicyNotFoundException, CertificateNotFoundException, InvalidConfigurationRequestException, UnsupportedProtocolException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AlpnPolicyNotSupportedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Replaces the specified properties of the specified listener. Any properties that you do not specify remain unchanged.
Changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes the security policy and default certificate properties. If you change the protocol from HTTP to HTTPS, or from TCP to TLS, you must add the security policy and default certificate properties.
To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.
This is a convenience which creates an instance of the ModifyListenerRequest.Builder avoiding the need to
create one manually via ModifyListenerRequest.builder()
modifyListenerRequest - A Consumer that will call methods on ModifyListenerInput.Builder to create a request.DuplicateListenerException - A listener with the specified port already exists.TooManyListenersException - You've reached the limit on the number of listeners per load balancer.TooManyCertificatesException - You've reached the limit on the number of certificates per load balancer.ListenerNotFoundException - The specified listener does not exist.TargetGroupNotFoundException - The specified target group does not exist.TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.SslPolicyNotFoundException - The specified SSL policy does not exist.CertificateNotFoundException - The specified certificate does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.UnsupportedProtocolException - The specified protocol is not supported.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.AlpnPolicyNotSupportedException - The specified ALPN policy is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyLoadBalancerAttributesResponse modifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest modifyLoadBalancerAttributesRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway 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.
modifyLoadBalancerAttributesRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyLoadBalancerAttributesResponse modifyLoadBalancerAttributes(Consumer<ModifyLoadBalancerAttributesRequest.Builder> modifyLoadBalancerAttributesRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway 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.
This is a convenience which creates an instance of the ModifyLoadBalancerAttributesRequest.Builder
avoiding the need to create one manually via ModifyLoadBalancerAttributesRequest.builder()
modifyLoadBalancerAttributesRequest - A Consumer that will call methods on ModifyLoadBalancerAttributesInput.Builder to create a
request.LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyRuleResponse modifyRule(ModifyRuleRequest modifyRuleRequest) throws TargetGroupAssociationLimitException, IncompatibleProtocolsException, RuleNotFoundException, OperationNotPermittedException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TargetGroupNotFoundException, UnsupportedProtocolException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Replaces the specified properties of the specified rule. Any properties that you do not specify are unchanged.
To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.
modifyRuleRequest - TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.RuleNotFoundException - The specified rule does not exist.OperationNotPermittedException - This operation is not allowed.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.TargetGroupNotFoundException - The specified target group does not exist.UnsupportedProtocolException - The specified protocol is not supported.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyRuleResponse modifyRule(Consumer<ModifyRuleRequest.Builder> modifyRuleRequest) throws TargetGroupAssociationLimitException, IncompatibleProtocolsException, RuleNotFoundException, OperationNotPermittedException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TargetGroupNotFoundException, UnsupportedProtocolException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Replaces the specified properties of the specified rule. Any properties that you do not specify are unchanged.
To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.
This is a convenience which creates an instance of the ModifyRuleRequest.Builder avoiding the need to
create one manually via ModifyRuleRequest.builder()
modifyRuleRequest - A Consumer that will call methods on ModifyRuleInput.Builder to create a request.TargetGroupAssociationLimitException - You've reached the limit on the number of load balancers per target group.IncompatibleProtocolsException - The specified configuration is not valid with this protocol.RuleNotFoundException - The specified rule does not exist.OperationNotPermittedException - This operation is not allowed.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.TooManyTargetsException - You've reached the limit on the number of targets.TargetGroupNotFoundException - The specified target group does not exist.UnsupportedProtocolException - The specified protocol is not supported.TooManyActionsException - You've reached the limit on the number of actions per rule.InvalidLoadBalancerActionException - The requested action is not valid.TooManyUniqueTargetGroupsPerLoadBalancerException - You've reached the limit on the number of unique target groups per load balancer across all listeners. If
a target group is used by multiple actions for a load balancer, it is counted as only one use.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyTargetGroupResponse modifyTargetGroup(ModifyTargetGroupRequest modifyTargetGroupRequest) throws TargetGroupNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
modifyTargetGroupRequest - TargetGroupNotFoundException - The specified target group does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyTargetGroupResponse modifyTargetGroup(Consumer<ModifyTargetGroupRequest.Builder> modifyTargetGroupRequest) throws TargetGroupNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
This is a convenience which creates an instance of the ModifyTargetGroupRequest.Builder avoiding the need
to create one manually via ModifyTargetGroupRequest.builder()
modifyTargetGroupRequest - A Consumer that will call methods on ModifyTargetGroupInput.Builder to create a request.TargetGroupNotFoundException - The specified target group does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyTargetGroupAttributesResponse modifyTargetGroupAttributes(ModifyTargetGroupAttributesRequest modifyTargetGroupAttributesRequest) throws TargetGroupNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the specified attributes of the specified target group.
modifyTargetGroupAttributesRequest - TargetGroupNotFoundException - The specified target group does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ModifyTargetGroupAttributesResponse modifyTargetGroupAttributes(Consumer<ModifyTargetGroupAttributesRequest.Builder> modifyTargetGroupAttributesRequest) throws TargetGroupNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the specified attributes of the specified target group.
This is a convenience which creates an instance of the ModifyTargetGroupAttributesRequest.Builder
avoiding the need to create one manually via ModifyTargetGroupAttributesRequest.builder()
modifyTargetGroupAttributesRequest - A Consumer that will call methods on ModifyTargetGroupAttributesInput.Builder to create a
request.TargetGroupNotFoundException - The specified target group does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RegisterTargetsResponse registerTargets(RegisterTargetsRequest registerTargetsRequest) throws TargetGroupNotFoundException, TooManyTargetsException, InvalidTargetException, TooManyRegistrationsForTargetIdException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Registers the specified targets with the specified target group.
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.
registerTargetsRequest - TargetGroupNotFoundException - The specified target group does not exist.TooManyTargetsException - You've reached the limit on the number of targets.InvalidTargetException - The specified target does not exist, is not in the same VPC as the target group, or has an unsupported
instance type.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RegisterTargetsResponse registerTargets(Consumer<RegisterTargetsRequest.Builder> registerTargetsRequest) throws TargetGroupNotFoundException, TooManyTargetsException, InvalidTargetException, TooManyRegistrationsForTargetIdException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Registers the specified targets with the specified target group.
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.
This is a convenience which creates an instance of the RegisterTargetsRequest.Builder avoiding the need
to create one manually via RegisterTargetsRequest.builder()
registerTargetsRequest - A Consumer that will call methods on RegisterTargetsInput.Builder to create a request.TargetGroupNotFoundException - The specified target group does not exist.TooManyTargetsException - You've reached the limit on the number of targets.InvalidTargetException - The specified target does not exist, is not in the same VPC as the target group, or has an unsupported
instance type.TooManyRegistrationsForTargetIdException - You've reached the limit on the number of times a target can be registered with a load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemoveListenerCertificatesResponse removeListenerCertificates(RemoveListenerCertificatesRequest removeListenerCertificatesRequest) throws ListenerNotFoundException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.
removeListenerCertificatesRequest - ListenerNotFoundException - The specified listener does not exist.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemoveListenerCertificatesResponse removeListenerCertificates(Consumer<RemoveListenerCertificatesRequest.Builder> removeListenerCertificatesRequest) throws ListenerNotFoundException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.
This is a convenience which creates an instance of the RemoveListenerCertificatesRequest.Builder avoiding
the need to create one manually via RemoveListenerCertificatesRequest.builder()
removeListenerCertificatesRequest - A Consumer that will call methods on RemoveListenerCertificatesInput.Builder to create a
request.ListenerNotFoundException - The specified listener does not exist.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemoveTagsResponse removeTags(RemoveTagsRequest removeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
removeTagsRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault RemoveTagsResponse removeTags(Consumer<RemoveTagsRequest.Builder> removeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TooManyTagsException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
This is a convenience which creates an instance of the RemoveTagsRequest.Builder avoiding the need to
create one manually via RemoveTagsRequest.builder()
removeTagsRequest - A Consumer that will call methods on RemoveTagsInput.Builder to create a request.LoadBalancerNotFoundException - The specified load balancer does not exist.TargetGroupNotFoundException - The specified target group does not exist.ListenerNotFoundException - The specified listener does not exist.RuleNotFoundException - The specified rule does not exist.TooManyTagsException - You've reached the limit on the number of tags per load balancer.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetIpAddressTypeResponse setIpAddressType(SetIpAddressTypeRequest setIpAddressTypeRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, InvalidSubnetException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Sets the type of IP addresses used by the subnets of the specified load balancer.
setIpAddressTypeRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.InvalidSubnetException - The specified subnet is out of available addresses.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetIpAddressTypeResponse setIpAddressType(Consumer<SetIpAddressTypeRequest.Builder> setIpAddressTypeRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, InvalidSubnetException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Sets the type of IP addresses used by the subnets of the specified load balancer.
This is a convenience which creates an instance of the SetIpAddressTypeRequest.Builder avoiding the need
to create one manually via SetIpAddressTypeRequest.builder()
setIpAddressTypeRequest - A Consumer that will call methods on SetIpAddressTypeInput.Builder to create a request.LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.InvalidSubnetException - The specified subnet is out of available addresses.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetRulePrioritiesResponse setRulePriorities(SetRulePrioritiesRequest setRulePrioritiesRequest) throws RuleNotFoundException, PriorityInUseException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
setRulePrioritiesRequest - RuleNotFoundException - The specified rule does not exist.PriorityInUseException - The specified priority is in use.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetRulePrioritiesResponse setRulePriorities(Consumer<SetRulePrioritiesRequest.Builder> setRulePrioritiesRequest) throws RuleNotFoundException, PriorityInUseException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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.
This is a convenience which creates an instance of the SetRulePrioritiesRequest.Builder avoiding the need
to create one manually via SetRulePrioritiesRequest.builder()
setRulePrioritiesRequest - A Consumer that will call methods on SetRulePrioritiesInput.Builder to create a request.RuleNotFoundException - The specified rule does not exist.PriorityInUseException - The specified priority is in use.OperationNotPermittedException - This operation is not allowed.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetSecurityGroupsResponse setSecurityGroups(SetSecurityGroupsRequest setSecurityGroupsRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, InvalidSecurityGroupException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.
You can't specify a security group for a Network Load Balancer or Gateway Load Balancer.
setSecurityGroupsRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.InvalidSecurityGroupException - The specified security group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetSecurityGroupsResponse setSecurityGroups(Consumer<SetSecurityGroupsRequest.Builder> setSecurityGroupsRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, InvalidSecurityGroupException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.
You can't specify a security group for a Network Load Balancer or Gateway Load Balancer.
This is a convenience which creates an instance of the SetSecurityGroupsRequest.Builder avoiding the need
to create one manually via SetSecurityGroupsRequest.builder()
setSecurityGroupsRequest - A Consumer that will call methods on SetSecurityGroupsInput.Builder to create a request.LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.InvalidSecurityGroupException - The specified security group does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetSubnetsResponse setSubnets(SetSubnetsRequest setSubnetsRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, SubnetNotFoundException, InvalidSubnetException, AllocationIdNotFoundException, AvailabilityZoneNotSupportedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer. The specified subnets replace the previously enabled subnets.
When you specify subnets for a Network Load Balancer, you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.
setSubnetsRequest - LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SubnetNotFoundException - The specified subnet does not exist.InvalidSubnetException - The specified subnet is out of available addresses.AllocationIdNotFoundException - The specified allocation ID does not exist.AvailabilityZoneNotSupportedException - The specified Availability Zone is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SetSubnetsResponse setSubnets(Consumer<SetSubnetsRequest.Builder> setSubnetsRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, SubnetNotFoundException, InvalidSubnetException, AllocationIdNotFoundException, AvailabilityZoneNotSupportedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer. The specified subnets replace the previously enabled subnets.
When you specify subnets for a Network Load Balancer, you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.
This is a convenience which creates an instance of the SetSubnetsRequest.Builder avoiding the need to
create one manually via SetSubnetsRequest.builder()
setSubnetsRequest - A Consumer that will call methods on SetSubnetsInput.Builder to create a request.LoadBalancerNotFoundException - The specified load balancer does not exist.InvalidConfigurationRequestException - The requested configuration is not valid.SubnetNotFoundException - The specified subnet does not exist.InvalidSubnetException - The specified subnet is out of available addresses.AllocationIdNotFoundException - The specified allocation ID does not exist.AvailabilityZoneNotSupportedException - The specified Availability Zone is not supported.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.ElasticLoadBalancingV2Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
default ElasticLoadBalancingV2Waiter waiter()
ElasticLoadBalancingV2Waiter using this client.
Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
ElasticLoadBalancingV2WaiterCopyright © 2023. All rights reserved.