Interface ElasticLoadBalancingV2Client
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface ElasticLoadBalancingV2Client extends AwsClient
Service client for accessing Elastic Load Balancing v2. This can be created using the staticbuilder()method.Elastic Load Balancing 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.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default AddListenerCertificatesResponseaddListenerCertificates(Consumer<AddListenerCertificatesRequest.Builder> addListenerCertificatesRequest)Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.default AddListenerCertificatesResponseaddListenerCertificates(AddListenerCertificatesRequest addListenerCertificatesRequest)Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.default AddTagsResponseaddTags(Consumer<AddTagsRequest.Builder> addTagsRequest)Adds the specified tags to the specified Elastic Load Balancing resource.default AddTagsResponseaddTags(AddTagsRequest addTagsRequest)Adds the specified tags to the specified Elastic Load Balancing resource.default AddTrustStoreRevocationsResponseaddTrustStoreRevocations(Consumer<AddTrustStoreRevocationsRequest.Builder> addTrustStoreRevocationsRequest)Adds the specified revocation file to the specified trust store.default AddTrustStoreRevocationsResponseaddTrustStoreRevocations(AddTrustStoreRevocationsRequest addTrustStoreRevocationsRequest)Adds the specified revocation file to the specified trust store.static ElasticLoadBalancingV2ClientBuilderbuilder()Create a builder that can be used to configure and create aElasticLoadBalancingV2Client.static ElasticLoadBalancingV2Clientcreate()Create aElasticLoadBalancingV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateListenerResponsecreateListener(Consumer<CreateListenerRequest.Builder> createListenerRequest)Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default CreateListenerResponsecreateListener(CreateListenerRequest createListenerRequest)Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default CreateLoadBalancerResponsecreateLoadBalancer(Consumer<CreateLoadBalancerRequest.Builder> createLoadBalancerRequest)Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default CreateLoadBalancerResponsecreateLoadBalancer(CreateLoadBalancerRequest createLoadBalancerRequest)Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default CreateRuleResponsecreateRule(Consumer<CreateRuleRequest.Builder> createRuleRequest)Creates a rule for the specified listener.default CreateRuleResponsecreateRule(CreateRuleRequest createRuleRequest)Creates a rule for the specified listener.default CreateTargetGroupResponsecreateTargetGroup(Consumer<CreateTargetGroupRequest.Builder> createTargetGroupRequest)Creates a target group.default CreateTargetGroupResponsecreateTargetGroup(CreateTargetGroupRequest createTargetGroupRequest)Creates a target group.default CreateTrustStoreResponsecreateTrustStore(Consumer<CreateTrustStoreRequest.Builder> createTrustStoreRequest)Creates a trust store.default CreateTrustStoreResponsecreateTrustStore(CreateTrustStoreRequest createTrustStoreRequest)Creates a trust store.default DeleteListenerResponsedeleteListener(Consumer<DeleteListenerRequest.Builder> deleteListenerRequest)Deletes the specified listener.default DeleteListenerResponsedeleteListener(DeleteListenerRequest deleteListenerRequest)Deletes the specified listener.default DeleteLoadBalancerResponsedeleteLoadBalancer(Consumer<DeleteLoadBalancerRequest.Builder> deleteLoadBalancerRequest)Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default DeleteLoadBalancerResponsedeleteLoadBalancer(DeleteLoadBalancerRequest deleteLoadBalancerRequest)Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default DeleteRuleResponsedeleteRule(Consumer<DeleteRuleRequest.Builder> deleteRuleRequest)Deletes the specified rule.default DeleteRuleResponsedeleteRule(DeleteRuleRequest deleteRuleRequest)Deletes the specified rule.default DeleteSharedTrustStoreAssociationResponsedeleteSharedTrustStoreAssociation(Consumer<DeleteSharedTrustStoreAssociationRequest.Builder> deleteSharedTrustStoreAssociationRequest)Deletes a shared trust store association.default DeleteSharedTrustStoreAssociationResponsedeleteSharedTrustStoreAssociation(DeleteSharedTrustStoreAssociationRequest deleteSharedTrustStoreAssociationRequest)Deletes a shared trust store association.default DeleteTargetGroupResponsedeleteTargetGroup(Consumer<DeleteTargetGroupRequest.Builder> deleteTargetGroupRequest)Deletes the specified target group.default DeleteTargetGroupResponsedeleteTargetGroup(DeleteTargetGroupRequest deleteTargetGroupRequest)Deletes the specified target group.default DeleteTrustStoreResponsedeleteTrustStore(Consumer<DeleteTrustStoreRequest.Builder> deleteTrustStoreRequest)Deletes a trust store.default DeleteTrustStoreResponsedeleteTrustStore(DeleteTrustStoreRequest deleteTrustStoreRequest)Deletes a trust store.default DeregisterTargetsResponsederegisterTargets(Consumer<DeregisterTargetsRequest.Builder> deregisterTargetsRequest)Deregisters the specified targets from the specified target group.default DeregisterTargetsResponsederegisterTargets(DeregisterTargetsRequest deregisterTargetsRequest)Deregisters the specified targets from the specified target group.default DescribeAccountLimitsResponsedescribeAccountLimits()Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.default DescribeAccountLimitsResponsedescribeAccountLimits(Consumer<DescribeAccountLimitsRequest.Builder> describeAccountLimitsRequest)Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.default DescribeAccountLimitsResponsedescribeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest)Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.default DescribeListenerAttributesResponsedescribeListenerAttributes(Consumer<DescribeListenerAttributesRequest.Builder> describeListenerAttributesRequest)Describes the attributes for the specified listener.default DescribeListenerAttributesResponsedescribeListenerAttributes(DescribeListenerAttributesRequest describeListenerAttributesRequest)Describes the attributes for the specified listener.default DescribeListenerCertificatesResponsedescribeListenerCertificates(Consumer<DescribeListenerCertificatesRequest.Builder> describeListenerCertificatesRequest)Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.default DescribeListenerCertificatesResponsedescribeListenerCertificates(DescribeListenerCertificatesRequest describeListenerCertificatesRequest)Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.default DescribeListenerCertificatesIterabledescribeListenerCertificatesPaginator(Consumer<DescribeListenerCertificatesRequest.Builder> describeListenerCertificatesRequest)This is a variant ofdescribeListenerCertificates(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesRequest)operation.default DescribeListenerCertificatesIterabledescribeListenerCertificatesPaginator(DescribeListenerCertificatesRequest describeListenerCertificatesRequest)This is a variant ofdescribeListenerCertificates(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesRequest)operation.default DescribeListenersResponsedescribeListeners(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 DescribeListenersResponsedescribeListeners(DescribeListenersRequest describeListenersRequest)Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default DescribeListenersIterabledescribeListenersPaginator(Consumer<DescribeListenersRequest.Builder> describeListenersRequest)This is a variant ofdescribeListeners(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersRequest)operation.default DescribeListenersIterabledescribeListenersPaginator(DescribeListenersRequest describeListenersRequest)This is a variant ofdescribeListeners(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenersRequest)operation.default DescribeLoadBalancerAttributesResponsedescribeLoadBalancerAttributes(Consumer<DescribeLoadBalancerAttributesRequest.Builder> describeLoadBalancerAttributesRequest)Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default DescribeLoadBalancerAttributesResponsedescribeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest describeLoadBalancerAttributesRequest)Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default DescribeLoadBalancersResponsedescribeLoadBalancers()Describes the specified load balancers or all of your load balancers.default DescribeLoadBalancersResponsedescribeLoadBalancers(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest)Describes the specified load balancers or all of your load balancers.default DescribeLoadBalancersResponsedescribeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest)Describes the specified load balancers or all of your load balancers.default DescribeLoadBalancersIterabledescribeLoadBalancersPaginator()This is a variant ofdescribeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)operation.default DescribeLoadBalancersIterabledescribeLoadBalancersPaginator(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest)This is a variant ofdescribeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)operation.default DescribeLoadBalancersIterabledescribeLoadBalancersPaginator(DescribeLoadBalancersRequest describeLoadBalancersRequest)This is a variant ofdescribeLoadBalancers(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeLoadBalancersRequest)operation.default DescribeRulesResponsedescribeRules(Consumer<DescribeRulesRequest.Builder> describeRulesRequest)Describes the specified rules or the rules for the specified listener.default DescribeRulesResponsedescribeRules(DescribeRulesRequest describeRulesRequest)Describes the specified rules or the rules for the specified listener.default DescribeRulesIterabledescribeRulesPaginator(Consumer<DescribeRulesRequest.Builder> describeRulesRequest)This is a variant ofdescribeRules(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesRequest)operation.default DescribeRulesIterabledescribeRulesPaginator(DescribeRulesRequest describeRulesRequest)This is a variant ofdescribeRules(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesRequest)operation.default DescribeSslPoliciesResponsedescribeSSLPolicies()Describes the specified policies or all policies used for SSL negotiation.default DescribeSslPoliciesResponsedescribeSSLPolicies(Consumer<DescribeSslPoliciesRequest.Builder> describeSslPoliciesRequest)Describes the specified policies or all policies used for SSL negotiation.default DescribeSslPoliciesResponsedescribeSSLPolicies(DescribeSslPoliciesRequest describeSslPoliciesRequest)Describes the specified policies or all policies used for SSL negotiation.default DescribeTagsResponsedescribeTags(Consumer<DescribeTagsRequest.Builder> describeTagsRequest)Describes the tags for the specified Elastic Load Balancing resources.default DescribeTagsResponsedescribeTags(DescribeTagsRequest describeTagsRequest)Describes the tags for the specified Elastic Load Balancing resources.default DescribeTargetGroupAttributesResponsedescribeTargetGroupAttributes(Consumer<DescribeTargetGroupAttributesRequest.Builder> describeTargetGroupAttributesRequest)Describes the attributes for the specified target group.default DescribeTargetGroupAttributesResponsedescribeTargetGroupAttributes(DescribeTargetGroupAttributesRequest describeTargetGroupAttributesRequest)Describes the attributes for the specified target group.default DescribeTargetGroupsResponsedescribeTargetGroups()Describes the specified target groups or all of your target groups.default DescribeTargetGroupsResponsedescribeTargetGroups(Consumer<DescribeTargetGroupsRequest.Builder> describeTargetGroupsRequest)Describes the specified target groups or all of your target groups.default DescribeTargetGroupsResponsedescribeTargetGroups(DescribeTargetGroupsRequest describeTargetGroupsRequest)Describes the specified target groups or all of your target groups.default DescribeTargetGroupsIterabledescribeTargetGroupsPaginator()This is a variant ofdescribeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)operation.default DescribeTargetGroupsIterabledescribeTargetGroupsPaginator(Consumer<DescribeTargetGroupsRequest.Builder> describeTargetGroupsRequest)This is a variant ofdescribeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)operation.default DescribeTargetGroupsIterabledescribeTargetGroupsPaginator(DescribeTargetGroupsRequest describeTargetGroupsRequest)This is a variant ofdescribeTargetGroups(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTargetGroupsRequest)operation.default DescribeTargetHealthResponsedescribeTargetHealth(Consumer<DescribeTargetHealthRequest.Builder> describeTargetHealthRequest)Describes the health of the specified targets or all of your targets.default DescribeTargetHealthResponsedescribeTargetHealth(DescribeTargetHealthRequest describeTargetHealthRequest)Describes the health of the specified targets or all of your targets.default DescribeTrustStoreAssociationsResponsedescribeTrustStoreAssociations(Consumer<DescribeTrustStoreAssociationsRequest.Builder> describeTrustStoreAssociationsRequest)Describes all resources associated with the specified trust store.default DescribeTrustStoreAssociationsResponsedescribeTrustStoreAssociations(DescribeTrustStoreAssociationsRequest describeTrustStoreAssociationsRequest)Describes all resources associated with the specified trust store.default DescribeTrustStoreAssociationsIterabledescribeTrustStoreAssociationsPaginator(Consumer<DescribeTrustStoreAssociationsRequest.Builder> describeTrustStoreAssociationsRequest)default DescribeTrustStoreAssociationsIterabledescribeTrustStoreAssociationsPaginator(DescribeTrustStoreAssociationsRequest describeTrustStoreAssociationsRequest)default DescribeTrustStoreRevocationsResponsedescribeTrustStoreRevocations(Consumer<DescribeTrustStoreRevocationsRequest.Builder> describeTrustStoreRevocationsRequest)Describes the revocation files in use by the specified trust store or revocation files.default DescribeTrustStoreRevocationsResponsedescribeTrustStoreRevocations(DescribeTrustStoreRevocationsRequest describeTrustStoreRevocationsRequest)Describes the revocation files in use by the specified trust store or revocation files.default DescribeTrustStoreRevocationsIterabledescribeTrustStoreRevocationsPaginator(Consumer<DescribeTrustStoreRevocationsRequest.Builder> describeTrustStoreRevocationsRequest)This is a variant ofdescribeTrustStoreRevocations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsRequest)operation.default DescribeTrustStoreRevocationsIterabledescribeTrustStoreRevocationsPaginator(DescribeTrustStoreRevocationsRequest describeTrustStoreRevocationsRequest)This is a variant ofdescribeTrustStoreRevocations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsRequest)operation.default DescribeTrustStoresResponsedescribeTrustStores(Consumer<DescribeTrustStoresRequest.Builder> describeTrustStoresRequest)Describes all trust stores for the specified account.default DescribeTrustStoresResponsedescribeTrustStores(DescribeTrustStoresRequest describeTrustStoresRequest)Describes all trust stores for the specified account.default DescribeTrustStoresIterabledescribeTrustStoresPaginator(Consumer<DescribeTrustStoresRequest.Builder> describeTrustStoresRequest)This is a variant ofdescribeTrustStores(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresRequest)operation.default DescribeTrustStoresIterabledescribeTrustStoresPaginator(DescribeTrustStoresRequest describeTrustStoresRequest)This is a variant ofdescribeTrustStores(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresRequest)operation.default GetResourcePolicyResponsegetResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest)Retrieves the resource policy for a specified resource.default GetResourcePolicyResponsegetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest)Retrieves the resource policy for a specified resource.default GetTrustStoreCaCertificatesBundleResponsegetTrustStoreCaCertificatesBundle(Consumer<GetTrustStoreCaCertificatesBundleRequest.Builder> getTrustStoreCaCertificatesBundleRequest)Retrieves the ca certificate bundle.default GetTrustStoreCaCertificatesBundleResponsegetTrustStoreCaCertificatesBundle(GetTrustStoreCaCertificatesBundleRequest getTrustStoreCaCertificatesBundleRequest)Retrieves the ca certificate bundle.default GetTrustStoreRevocationContentResponsegetTrustStoreRevocationContent(Consumer<GetTrustStoreRevocationContentRequest.Builder> getTrustStoreRevocationContentRequest)Retrieves the specified revocation file.default GetTrustStoreRevocationContentResponsegetTrustStoreRevocationContent(GetTrustStoreRevocationContentRequest getTrustStoreRevocationContentRequest)Retrieves the specified revocation file.default ModifyListenerResponsemodifyListener(Consumer<ModifyListenerRequest.Builder> modifyListenerRequest)Replaces the specified properties of the specified listener.default ModifyListenerResponsemodifyListener(ModifyListenerRequest modifyListenerRequest)Replaces the specified properties of the specified listener.default ModifyListenerAttributesResponsemodifyListenerAttributes(Consumer<ModifyListenerAttributesRequest.Builder> modifyListenerAttributesRequest)Modifies the specified attributes of the specified listener.default ModifyListenerAttributesResponsemodifyListenerAttributes(ModifyListenerAttributesRequest modifyListenerAttributesRequest)Modifies the specified attributes of the specified listener.default ModifyLoadBalancerAttributesResponsemodifyLoadBalancerAttributes(Consumer<ModifyLoadBalancerAttributesRequest.Builder> modifyLoadBalancerAttributesRequest)Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default ModifyLoadBalancerAttributesResponsemodifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest modifyLoadBalancerAttributesRequest)Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.default ModifyRuleResponsemodifyRule(Consumer<ModifyRuleRequest.Builder> modifyRuleRequest)Replaces the specified properties of the specified rule.default ModifyRuleResponsemodifyRule(ModifyRuleRequest modifyRuleRequest)Replaces the specified properties of the specified rule.default ModifyTargetGroupResponsemodifyTargetGroup(Consumer<ModifyTargetGroupRequest.Builder> modifyTargetGroupRequest)Modifies the health checks used when evaluating the health state of the targets in the specified target group.default ModifyTargetGroupResponsemodifyTargetGroup(ModifyTargetGroupRequest modifyTargetGroupRequest)Modifies the health checks used when evaluating the health state of the targets in the specified target group.default ModifyTargetGroupAttributesResponsemodifyTargetGroupAttributes(Consumer<ModifyTargetGroupAttributesRequest.Builder> modifyTargetGroupAttributesRequest)Modifies the specified attributes of the specified target group.default ModifyTargetGroupAttributesResponsemodifyTargetGroupAttributes(ModifyTargetGroupAttributesRequest modifyTargetGroupAttributesRequest)Modifies the specified attributes of the specified target group.default ModifyTrustStoreResponsemodifyTrustStore(Consumer<ModifyTrustStoreRequest.Builder> modifyTrustStoreRequest)Update the ca certificate bundle for the specified trust store.default ModifyTrustStoreResponsemodifyTrustStore(ModifyTrustStoreRequest modifyTrustStoreRequest)Update the ca certificate bundle for the specified trust store.default RegisterTargetsResponseregisterTargets(Consumer<RegisterTargetsRequest.Builder> registerTargetsRequest)Registers the specified targets with the specified target group.default RegisterTargetsResponseregisterTargets(RegisterTargetsRequest registerTargetsRequest)Registers the specified targets with the specified target group.default RemoveListenerCertificatesResponseremoveListenerCertificates(Consumer<RemoveListenerCertificatesRequest.Builder> removeListenerCertificatesRequest)Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.default RemoveListenerCertificatesResponseremoveListenerCertificates(RemoveListenerCertificatesRequest removeListenerCertificatesRequest)Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.default RemoveTagsResponseremoveTags(Consumer<RemoveTagsRequest.Builder> removeTagsRequest)Removes the specified tags from the specified Elastic Load Balancing resources.default RemoveTagsResponseremoveTags(RemoveTagsRequest removeTagsRequest)Removes the specified tags from the specified Elastic Load Balancing resources.default RemoveTrustStoreRevocationsResponseremoveTrustStoreRevocations(Consumer<RemoveTrustStoreRevocationsRequest.Builder> removeTrustStoreRevocationsRequest)Removes the specified revocation file from the specified trust store.default RemoveTrustStoreRevocationsResponseremoveTrustStoreRevocations(RemoveTrustStoreRevocationsRequest removeTrustStoreRevocationsRequest)Removes the specified revocation file from the specified trust store.default ElasticLoadBalancingV2ServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default SetIpAddressTypeResponsesetIpAddressType(Consumer<SetIpAddressTypeRequest.Builder> setIpAddressTypeRequest)Sets the type of IP addresses used by the subnets of the specified load balancer.default SetIpAddressTypeResponsesetIpAddressType(SetIpAddressTypeRequest setIpAddressTypeRequest)Sets the type of IP addresses used by the subnets of the specified load balancer.default SetRulePrioritiesResponsesetRulePriorities(Consumer<SetRulePrioritiesRequest.Builder> setRulePrioritiesRequest)Sets the priorities of the specified rules.default SetRulePrioritiesResponsesetRulePriorities(SetRulePrioritiesRequest setRulePrioritiesRequest)Sets the priorities of the specified rules.default SetSecurityGroupsResponsesetSecurityGroups(Consumer<SetSecurityGroupsRequest.Builder> setSecurityGroupsRequest)Associates the specified security groups with the specified Application Load Balancer or Network Load Balancer.default SetSecurityGroupsResponsesetSecurityGroups(SetSecurityGroupsRequest setSecurityGroupsRequest)Associates the specified security groups with the specified Application Load Balancer or Network Load Balancer.default SetSubnetsResponsesetSubnets(Consumer<SetSubnetsRequest.Builder> setSubnetsRequest)Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer, Network Load Balancer or Gateway Load Balancer.default SetSubnetsResponsesetSubnets(SetSubnetsRequest setSubnetsRequest)Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer, Network Load Balancer or Gateway Load Balancer.default ElasticLoadBalancingV2Waiterwaiter()Create an instance ofElasticLoadBalancingV2Waiterusing this client.-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
addListenerCertificates
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.
- Parameters:
addListenerCertificatesRequest-- Returns:
- Result of the AddListenerCertificates operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
addListenerCertificates
default 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.Builderavoiding the need to create one manually viaAddListenerCertificatesRequest.builder()- Parameters:
addListenerCertificatesRequest- AConsumerthat will call methods onAddListenerCertificatesRequest.Builderto create a request.- Returns:
- Result of the AddListenerCertificates operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
addTags
default AddTagsResponse addTags(AddTagsRequest addTagsRequest) throws DuplicateTagKeysException, TooManyTagsException, LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TrustStoreNotFoundException, 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, trust stores, listeners, and rules.
Each tag consists of a key and an optional value. If a resource already has a tag with the same key,
AddTagsupdates its value.- Parameters:
addTagsRequest-- Returns:
- Result of the AddTags operation returned by the service.
- Throws:
DuplicateTagKeysException- A tag key was specified more than once.TooManyTagsException- You've reached the limit on the number of tags for this resource.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.TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
addTags
default AddTagsResponse addTags(Consumer<AddTagsRequest.Builder> addTagsRequest) throws DuplicateTagKeysException, TooManyTagsException, LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TrustStoreNotFoundException, 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, trust stores, listeners, and rules.
Each tag consists of a key and an optional value. If a resource already has a tag with the same key,
AddTagsupdates its value.
This is a convenience which creates an instance of the
AddTagsRequest.Builderavoiding the need to create one manually viaAddTagsRequest.builder()- Parameters:
addTagsRequest- AConsumerthat will call methods onAddTagsRequest.Builderto create a request.- Returns:
- Result of the AddTags operation returned by the service.
- Throws:
DuplicateTagKeysException- A tag key was specified more than once.TooManyTagsException- You've reached the limit on the number of tags for this resource.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.TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
addTrustStoreRevocations
default AddTrustStoreRevocationsResponse addTrustStoreRevocations(AddTrustStoreRevocationsRequest addTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, InvalidRevocationContentException, TooManyTrustStoreRevocationEntriesException, RevocationContentNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Adds the specified revocation file to the specified trust store.
- Parameters:
addTrustStoreRevocationsRequest-- Returns:
- Result of the AddTrustStoreRevocations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.InvalidRevocationContentException- The provided revocation file is an invalid format, or uses an incorrect algorithm.TooManyTrustStoreRevocationEntriesException- The specified trust store has too many revocation entries.RevocationContentNotFoundException- The specified revocation file 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.AwsServiceException- See Also:
- AWS API Documentation
-
addTrustStoreRevocations
default AddTrustStoreRevocationsResponse addTrustStoreRevocations(Consumer<AddTrustStoreRevocationsRequest.Builder> addTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, InvalidRevocationContentException, TooManyTrustStoreRevocationEntriesException, RevocationContentNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Adds the specified revocation file to the specified trust store.
This is a convenience which creates an instance of the
AddTrustStoreRevocationsRequest.Builderavoiding the need to create one manually viaAddTrustStoreRevocationsRequest.builder()- Parameters:
addTrustStoreRevocationsRequest- AConsumerthat will call methods onAddTrustStoreRevocationsRequest.Builderto create a request.- Returns:
- Result of the AddTrustStoreRevocations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.InvalidRevocationContentException- The provided revocation file is an invalid format, or uses an incorrect algorithm.TooManyTrustStoreRevocationEntriesException- The specified trust store has too many revocation entries.RevocationContentNotFoundException- The specified revocation file 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.AwsServiceException- See Also:
- AWS API Documentation
-
createListener
default CreateListenerResponse createListener(CreateListenerRequest createListenerRequest) throws DuplicateListenerException, TooManyListenersException, TooManyCertificatesException, LoadBalancerNotFoundException, TargetGroupNotFoundException, TargetGroupAssociationLimitException, InvalidConfigurationRequestException, IncompatibleProtocolsException, SslPolicyNotFoundException, CertificateNotFoundException, UnsupportedProtocolException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AlpnPolicyNotSupportedException, TooManyTagsException, TrustStoreNotFoundException, TrustStoreNotReadyException, 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.
- Parameters:
createListenerRequest-- Returns:
- Result of the CreateListener operation returned by the service.
- Throws:
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 for this resource.TrustStoreNotFoundException- The specified trust store does not exist.TrustStoreNotReadyException- The specified trust store is not active.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.AwsServiceException- See Also:
- AWS API Documentation
-
createListener
default 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, TrustStoreNotFoundException, TrustStoreNotReadyException, 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.Builderavoiding the need to create one manually viaCreateListenerRequest.builder()- Parameters:
createListenerRequest- AConsumerthat will call methods onCreateListenerRequest.Builderto create a request.- Returns:
- Result of the CreateListener operation returned by the service.
- Throws:
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 for this resource.TrustStoreNotFoundException- The specified trust store does not exist.TrustStoreNotReadyException- The specified trust store is not active.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.AwsServiceException- See Also:
- AWS API Documentation
-
createLoadBalancer
default 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.
- Parameters:
createLoadBalancerRequest-- Returns:
- Result of the CreateLoadBalancer operation returned by the service.
- Throws:
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 for this resource.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.AwsServiceException- See Also:
- AWS API Documentation
-
createLoadBalancer
default 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.Builderavoiding the need to create one manually viaCreateLoadBalancerRequest.builder()- Parameters:
createLoadBalancerRequest- AConsumerthat will call methods onCreateLoadBalancerRequest.Builderto create a request.- Returns:
- Result of the CreateLoadBalancer operation returned by the service.
- Throws:
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 for this resource.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.AwsServiceException- See Also:
- AWS API Documentation
-
createRule
default 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.
- Parameters:
createRuleRequest-- Returns:
- Result of the CreateRule operation returned by the service.
- Throws:
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 for this resource.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.AwsServiceException- See Also:
- AWS API Documentation
-
createRule
default 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.Builderavoiding the need to create one manually viaCreateRuleRequest.builder()- Parameters:
createRuleRequest- AConsumerthat will call methods onCreateRuleRequest.Builderto create a request.- Returns:
- Result of the CreateRule operation returned by the service.
- Throws:
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 for this resource.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.AwsServiceException- See Also:
- AWS API Documentation
-
createTargetGroup
default 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.
- Parameters:
createTargetGroupRequest-- Returns:
- Result of the CreateTargetGroup operation returned by the service.
- Throws:
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 for this resource.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.AwsServiceException- See Also:
- AWS API Documentation
-
createTargetGroup
default 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.Builderavoiding the need to create one manually viaCreateTargetGroupRequest.builder()- Parameters:
createTargetGroupRequest- AConsumerthat will call methods onCreateTargetGroupRequest.Builderto create a request.- Returns:
- Result of the CreateTargetGroup operation returned by the service.
- Throws:
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 for this resource.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.AwsServiceException- See Also:
- AWS API Documentation
-
createTrustStore
default CreateTrustStoreResponse createTrustStore(CreateTrustStoreRequest createTrustStoreRequest) throws DuplicateTrustStoreNameException, TooManyTrustStoresException, InvalidCaCertificatesBundleException, CaCertificatesBundleNotFoundException, TooManyTagsException, DuplicateTagKeysException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a trust store.
- Parameters:
createTrustStoreRequest-- Returns:
- Result of the CreateTrustStore operation returned by the service.
- Throws:
DuplicateTrustStoreNameException- A trust store with the specified name already exists.TooManyTrustStoresException- You've reached the limit on the number of trust stores for your Amazon Web Services account.InvalidCaCertificatesBundleException- The specified ca certificate bundle is in an invalid format, or corrupt.CaCertificatesBundleNotFoundException- The specified ca certificate bundle does not exist.TooManyTagsException- You've reached the limit on the number of tags for this resource.DuplicateTagKeysException- A tag key was specified more than once.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.AwsServiceException- See Also:
- AWS API Documentation
-
createTrustStore
default CreateTrustStoreResponse createTrustStore(Consumer<CreateTrustStoreRequest.Builder> createTrustStoreRequest) throws DuplicateTrustStoreNameException, TooManyTrustStoresException, InvalidCaCertificatesBundleException, CaCertificatesBundleNotFoundException, TooManyTagsException, DuplicateTagKeysException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Creates a trust store.
This is a convenience which creates an instance of the
CreateTrustStoreRequest.Builderavoiding the need to create one manually viaCreateTrustStoreRequest.builder()- Parameters:
createTrustStoreRequest- AConsumerthat will call methods onCreateTrustStoreRequest.Builderto create a request.- Returns:
- Result of the CreateTrustStore operation returned by the service.
- Throws:
DuplicateTrustStoreNameException- A trust store with the specified name already exists.TooManyTrustStoresException- You've reached the limit on the number of trust stores for your Amazon Web Services account.InvalidCaCertificatesBundleException- The specified ca certificate bundle is in an invalid format, or corrupt.CaCertificatesBundleNotFoundException- The specified ca certificate bundle does not exist.TooManyTagsException- You've reached the limit on the number of tags for this resource.DuplicateTagKeysException- A tag key was specified more than once.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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteListener
default 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.
- Parameters:
deleteListenerRequest-- Returns:
- Result of the DeleteListener operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteListener
default 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.Builderavoiding the need to create one manually viaDeleteListenerRequest.builder()- Parameters:
deleteListenerRequest- AConsumerthat will call methods onDeleteListenerRequest.Builderto create a request.- Returns:
- Result of the DeleteListener operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteLoadBalancer
default 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.
- Parameters:
deleteLoadBalancerRequest-- Returns:
- Result of the DeleteLoadBalancer operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteLoadBalancer
default 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.Builderavoiding the need to create one manually viaDeleteLoadBalancerRequest.builder()- Parameters:
deleteLoadBalancerRequest- AConsumerthat will call methods onDeleteLoadBalancerRequest.Builderto create a request.- Returns:
- Result of the DeleteLoadBalancer operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteRule
default DeleteRuleResponse deleteRule(DeleteRuleRequest deleteRuleRequest) throws RuleNotFoundException, OperationNotPermittedException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes the specified rule.
You can't delete the default rule.
- Parameters:
deleteRuleRequest-- Returns:
- Result of the DeleteRule operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteRule
default 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.Builderavoiding the need to create one manually viaDeleteRuleRequest.builder()- Parameters:
deleteRuleRequest- AConsumerthat will call methods onDeleteRuleRequest.Builderto create a request.- Returns:
- Result of the DeleteRule operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSharedTrustStoreAssociation
default DeleteSharedTrustStoreAssociationResponse deleteSharedTrustStoreAssociation(DeleteSharedTrustStoreAssociationRequest deleteSharedTrustStoreAssociationRequest) throws TrustStoreNotFoundException, DeleteAssociationSameAccountException, TrustStoreAssociationNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes a shared trust store association.
- Parameters:
deleteSharedTrustStoreAssociationRequest-- Returns:
- Result of the DeleteSharedTrustStoreAssociation operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.DeleteAssociationSameAccountException- The specified association can't be within the same account.TrustStoreAssociationNotFoundException- The specified association 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSharedTrustStoreAssociation
default DeleteSharedTrustStoreAssociationResponse deleteSharedTrustStoreAssociation(Consumer<DeleteSharedTrustStoreAssociationRequest.Builder> deleteSharedTrustStoreAssociationRequest) throws TrustStoreNotFoundException, DeleteAssociationSameAccountException, TrustStoreAssociationNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes a shared trust store association.
This is a convenience which creates an instance of the
DeleteSharedTrustStoreAssociationRequest.Builderavoiding the need to create one manually viaDeleteSharedTrustStoreAssociationRequest.builder()- Parameters:
deleteSharedTrustStoreAssociationRequest- AConsumerthat will call methods onDeleteSharedTrustStoreAssociationRequest.Builderto create a request.- Returns:
- Result of the DeleteSharedTrustStoreAssociation operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.DeleteAssociationSameAccountException- The specified association can't be within the same account.TrustStoreAssociationNotFoundException- The specified association 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteTargetGroup
default 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.
- Parameters:
deleteTargetGroupRequest-- Returns:
- Result of the DeleteTargetGroup operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteTargetGroup
default 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.Builderavoiding the need to create one manually viaDeleteTargetGroupRequest.builder()- Parameters:
deleteTargetGroupRequest- AConsumerthat will call methods onDeleteTargetGroupRequest.Builderto create a request.- Returns:
- Result of the DeleteTargetGroup operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteTrustStore
default DeleteTrustStoreResponse deleteTrustStore(DeleteTrustStoreRequest deleteTrustStoreRequest) throws TrustStoreNotFoundException, TrustStoreInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes a trust store.
- Parameters:
deleteTrustStoreRequest-- Returns:
- Result of the DeleteTrustStore operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.TrustStoreInUseException- The specified trust store is currently 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.AwsServiceException- See Also:
- AWS API Documentation
-
deleteTrustStore
default DeleteTrustStoreResponse deleteTrustStore(Consumer<DeleteTrustStoreRequest.Builder> deleteTrustStoreRequest) throws TrustStoreNotFoundException, TrustStoreInUseException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Deletes a trust store.
This is a convenience which creates an instance of the
DeleteTrustStoreRequest.Builderavoiding the need to create one manually viaDeleteTrustStoreRequest.builder()- Parameters:
deleteTrustStoreRequest- AConsumerthat will call methods onDeleteTrustStoreRequest.Builderto create a request.- Returns:
- Result of the DeleteTrustStore operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.TrustStoreInUseException- The specified trust store is currently 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.AwsServiceException- See Also:
- AWS API Documentation
-
deregisterTargets
default 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.
The load balancer stops sending requests to targets that are deregistering, but uses connection draining to ensure that in-flight traffic completes on the existing connections. This deregistration delay is configured by default but can be updated for each target group.
For more information, see the following:
-
Deregistration delay in the Application Load Balancers User Guide
-
Deregistration delay in the Network Load Balancers User Guide
-
Deregistration delay in the Gateway Load Balancers User Guide
Note: If the specified target does not exist, the action returns successfully.
- Parameters:
deregisterTargetsRequest-- Returns:
- Result of the DeregisterTargets operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
-
deregisterTargets
default 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.
The load balancer stops sending requests to targets that are deregistering, but uses connection draining to ensure that in-flight traffic completes on the existing connections. This deregistration delay is configured by default but can be updated for each target group.
For more information, see the following:
-
Deregistration delay in the Application Load Balancers User Guide
-
Deregistration delay in the Network Load Balancers User Guide
-
Deregistration delay in the Gateway Load Balancers User Guide
Note: If the specified target does not exist, the action returns successfully.
This is a convenience which creates an instance of the
DeregisterTargetsRequest.Builderavoiding the need to create one manually viaDeregisterTargetsRequest.builder()- Parameters:
deregisterTargetsRequest- AConsumerthat will call methods onDeregisterTargetsRequest.Builderto create a request.- Returns:
- Result of the DeregisterTargets operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
-
describeAccountLimits
default 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:
- Parameters:
describeAccountLimitsRequest-- Returns:
- Result of the DescribeAccountLimits operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeAccountLimits
default 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.Builderavoiding the need to create one manually viaDescribeAccountLimitsRequest.builder()- Parameters:
describeAccountLimitsRequest- AConsumerthat will call methods onDescribeAccountLimitsRequest.Builderto create a request.- Returns:
- Result of the DescribeAccountLimits operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeAccountLimits
default 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:
- Returns:
- Result of the DescribeAccountLimits operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
describeAccountLimits(DescribeAccountLimitsRequest), AWS API Documentation
-
describeListenerAttributes
default DescribeListenerAttributesResponse describeListenerAttributes(DescribeListenerAttributesRequest describeListenerAttributesRequest) throws ListenerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the attributes for the specified listener.
- Parameters:
describeListenerAttributesRequest-- Returns:
- Result of the DescribeListenerAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListenerAttributes
default DescribeListenerAttributesResponse describeListenerAttributes(Consumer<DescribeListenerAttributesRequest.Builder> describeListenerAttributesRequest) throws ListenerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the attributes for the specified listener.
This is a convenience which creates an instance of the
DescribeListenerAttributesRequest.Builderavoiding the need to create one manually viaDescribeListenerAttributesRequest.builder()- Parameters:
describeListenerAttributesRequest- AConsumerthat will call methods onDescribeListenerAttributesRequest.Builderto create a request.- Returns:
- Result of the DescribeListenerAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListenerCertificates
default 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
IsDefaultset to true and once withIsDefaultset to false).For more information, see SSL certificates in the Application Load Balancers Guide or Server certificates in the Network Load Balancers Guide.
- Parameters:
describeListenerCertificatesRequest-- Returns:
- Result of the DescribeListenerCertificates operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListenerCertificates
default 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
IsDefaultset to true and once withIsDefaultset 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.Builderavoiding the need to create one manually viaDescribeListenerCertificatesRequest.builder()- Parameters:
describeListenerCertificatesRequest- AConsumerthat will call methods onDescribeListenerCertificatesRequest.Builderto create a request.- Returns:
- Result of the DescribeListenerCertificates operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListenerCertificatesPaginator
default DescribeListenerCertificatesIterable describeListenerCertificatesPaginator(DescribeListenerCertificatesRequest describeListenerCertificatesRequest) throws ListenerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeListenerCertificates(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenerCertificatesIterable responses = client.describeListenerCertificatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenerCertificatesIterable responses = client .describeListenerCertificatesPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenerCertificatesIterable responses = client.describeListenerCertificatesPaginator(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
describeListenerCertificates(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesRequest)operation.- Parameters:
describeListenerCertificatesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListenerCertificatesPaginator
default DescribeListenerCertificatesIterable describeListenerCertificatesPaginator(Consumer<DescribeListenerCertificatesRequest.Builder> describeListenerCertificatesRequest) throws ListenerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeListenerCertificates(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenerCertificatesIterable responses = client.describeListenerCertificatesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenerCertificatesIterable responses = client .describeListenerCertificatesPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenerCertificatesIterable responses = client.describeListenerCertificatesPaginator(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
describeListenerCertificates(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeListenerCertificatesRequest)operation.
This is a convenience which creates an instance of the
DescribeListenerCertificatesRequest.Builderavoiding the need to create one manually viaDescribeListenerCertificatesRequest.builder()- Parameters:
describeListenerCertificatesRequest- AConsumerthat will call methods onDescribeListenerCertificatesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListeners
default 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.
- Parameters:
describeListenersRequest-- Returns:
- Result of the DescribeListeners operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListeners
default 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.Builderavoiding the need to create one manually viaDescribeListenersRequest.builder()- Parameters:
describeListenersRequest- AConsumerthat will call methods onDescribeListenersRequest.Builderto create a request.- Returns:
- Result of the DescribeListeners operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListenersPaginator
default DescribeListenersIterable describeListenersPaginator(DescribeListenersRequest describeListenersRequest) throws ListenerNotFoundException, LoadBalancerNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client.describeListenersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
describeListenersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeListenersPaginator
default DescribeListenersIterable describeListenersPaginator(Consumer<DescribeListenersRequest.Builder> describeListenersRequest) throws ListenerNotFoundException, LoadBalancerNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeListenersIterable responses = client.describeListenersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaDescribeListenersRequest.builder()- Parameters:
describeListenersRequest- AConsumerthat will call methods onDescribeListenersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeLoadBalancerAttributes
default 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
- Parameters:
describeLoadBalancerAttributesRequest-- Returns:
- Result of the DescribeLoadBalancerAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
-
describeLoadBalancerAttributes
default 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.Builderavoiding the need to create one manually viaDescribeLoadBalancerAttributesRequest.builder()- Parameters:
describeLoadBalancerAttributesRequest- AConsumerthat will call methods onDescribeLoadBalancerAttributesRequest.Builderto create a request.- Returns:
- Result of the DescribeLoadBalancerAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
-
describeLoadBalancers
default DescribeLoadBalancersResponse describeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
- Parameters:
describeLoadBalancersRequest-- Returns:
- Result of the DescribeLoadBalancers operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeLoadBalancers
default 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.Builderavoiding the need to create one manually viaDescribeLoadBalancersRequest.builder()- Parameters:
describeLoadBalancersRequest- AConsumerthat will call methods onDescribeLoadBalancersRequest.Builderto create a request.- Returns:
- Result of the DescribeLoadBalancers operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeLoadBalancers
default DescribeLoadBalancersResponse describeLoadBalancers() throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the specified load balancers or all of your load balancers.
- Returns:
- Result of the DescribeLoadBalancers operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
describeLoadBalancers(DescribeLoadBalancersRequest), AWS API Documentation
-
describeLoadBalancersPaginator
default DescribeLoadBalancersIterable describeLoadBalancersPaginator() throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
describeLoadBalancersPaginator(DescribeLoadBalancersRequest), AWS API Documentation
-
describeLoadBalancersPaginator
default DescribeLoadBalancersIterable describeLoadBalancersPaginator(DescribeLoadBalancersRequest describeLoadBalancersRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
describeLoadBalancersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeLoadBalancersPaginator
default DescribeLoadBalancersIterable describeLoadBalancersPaginator(Consumer<DescribeLoadBalancersRequest.Builder> describeLoadBalancersRequest) throws LoadBalancerNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaDescribeLoadBalancersRequest.builder()- Parameters:
describeLoadBalancersRequest- AConsumerthat will call methods onDescribeLoadBalancersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRules
default 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.
- Parameters:
describeRulesRequest-- Returns:
- Result of the DescribeRules operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRules
default 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.Builderavoiding the need to create one manually viaDescribeRulesRequest.builder()- Parameters:
describeRulesRequest- AConsumerthat will call methods onDescribeRulesRequest.Builderto create a request.- Returns:
- Result of the DescribeRules operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRulesPaginator
default DescribeRulesIterable describeRulesPaginator(DescribeRulesRequest describeRulesRequest) throws ListenerNotFoundException, RuleNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeRules(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeRulesIterable responses = client.describeRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeRulesIterable responses = client .describeRulesPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeRulesIterable responses = client.describeRulesPaginator(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
describeRules(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesRequest)operation.- Parameters:
describeRulesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRulesPaginator
default DescribeRulesIterable describeRulesPaginator(Consumer<DescribeRulesRequest.Builder> describeRulesRequest) throws ListenerNotFoundException, RuleNotFoundException, UnsupportedProtocolException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeRules(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeRulesIterable responses = client.describeRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeRulesIterable responses = client .describeRulesPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeRulesIterable responses = client.describeRulesPaginator(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
describeRules(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeRulesRequest)operation.
This is a convenience which creates an instance of the
DescribeRulesRequest.Builderavoiding the need to create one manually viaDescribeRulesRequest.builder()- Parameters:
describeRulesRequest- AConsumerthat will call methods onDescribeRulesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeSSLPolicies
default 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.
- Parameters:
describeSslPoliciesRequest-- Returns:
- Result of the DescribeSSLPolicies operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeSSLPolicies
default 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.Builderavoiding the need to create one manually viaDescribeSslPoliciesRequest.builder()- Parameters:
describeSslPoliciesRequest- AConsumerthat will call methods onDescribeSslPoliciesRequest.Builderto create a request.- Returns:
- Result of the DescribeSSLPolicies operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeSSLPolicies
default 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.
- Returns:
- Result of the DescribeSSLPolicies operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
describeSSLPolicies(DescribeSslPoliciesRequest), AWS API Documentation
-
describeTags
default DescribeTagsResponse describeTags(DescribeTagsRequest describeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TrustStoreNotFoundException, 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.
- Parameters:
describeTagsRequest-- Returns:
- Result of the DescribeTags operation returned by the service.
- Throws:
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.TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTags
default DescribeTagsResponse describeTags(Consumer<DescribeTagsRequest.Builder> describeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TrustStoreNotFoundException, 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.Builderavoiding the need to create one manually viaDescribeTagsRequest.builder()- Parameters:
describeTagsRequest- AConsumerthat will call methods onDescribeTagsRequest.Builderto create a request.- Returns:
- Result of the DescribeTags operation returned by the service.
- Throws:
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.TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTargetGroupAttributes
default 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
- Parameters:
describeTargetGroupAttributesRequest-- Returns:
- Result of the DescribeTargetGroupAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
-
describeTargetGroupAttributes
default 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.Builderavoiding the need to create one manually viaDescribeTargetGroupAttributesRequest.builder()- Parameters:
describeTargetGroupAttributesRequest- AConsumerthat will call methods onDescribeTargetGroupAttributesRequest.Builderto create a request.- Returns:
- Result of the DescribeTargetGroupAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
-
describeTargetGroups
default 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.
- Parameters:
describeTargetGroupsRequest-- Returns:
- Result of the DescribeTargetGroups operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTargetGroups
default 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.Builderavoiding the need to create one manually viaDescribeTargetGroupsRequest.builder()- Parameters:
describeTargetGroupsRequest- AConsumerthat will call methods onDescribeTargetGroupsRequest.Builderto create a request.- Returns:
- Result of the DescribeTargetGroups operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTargetGroups
default 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.
- Returns:
- Result of the DescribeTargetGroups operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
describeTargetGroups(DescribeTargetGroupsRequest), AWS API Documentation
-
describeTargetGroupsPaginator
default DescribeTargetGroupsIterable describeTargetGroupsPaginator() throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
describeTargetGroupsPaginator(DescribeTargetGroupsRequest), AWS API Documentation
-
describeTargetGroupsPaginator
default DescribeTargetGroupsIterable describeTargetGroupsPaginator(DescribeTargetGroupsRequest describeTargetGroupsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.- Parameters:
describeTargetGroupsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTargetGroupsPaginator
default DescribeTargetGroupsIterable describeTargetGroupsPaginator(Consumer<DescribeTargetGroupsRequest.Builder> describeTargetGroupsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTargetGroupsIterable responses = client.describeTargetGroupsPaginator(request); responses.stream().forEach(....);{ @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 directlysoftware.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.Builderavoiding the need to create one manually viaDescribeTargetGroupsRequest.builder()- Parameters:
describeTargetGroupsRequest- AConsumerthat will call methods onDescribeTargetGroupsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTargetHealth
default DescribeTargetHealthResponse describeTargetHealth(DescribeTargetHealthRequest describeTargetHealthRequest) throws InvalidTargetException, TargetGroupNotFoundException, HealthUnavailableException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the health of the specified targets or all of your targets.
- Parameters:
describeTargetHealthRequest-- Returns:
- Result of the DescribeTargetHealth operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTargetHealth
default 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.Builderavoiding the need to create one manually viaDescribeTargetHealthRequest.builder()- Parameters:
describeTargetHealthRequest- AConsumerthat will call methods onDescribeTargetHealthRequest.Builderto create a request.- Returns:
- Result of the DescribeTargetHealth operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreAssociations
default DescribeTrustStoreAssociationsResponse describeTrustStoreAssociations(DescribeTrustStoreAssociationsRequest describeTrustStoreAssociationsRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes all resources associated with the specified trust store.
- Parameters:
describeTrustStoreAssociationsRequest-- Returns:
- Result of the DescribeTrustStoreAssociations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreAssociations
default DescribeTrustStoreAssociationsResponse describeTrustStoreAssociations(Consumer<DescribeTrustStoreAssociationsRequest.Builder> describeTrustStoreAssociationsRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes all resources associated with the specified trust store.
This is a convenience which creates an instance of the
DescribeTrustStoreAssociationsRequest.Builderavoiding the need to create one manually viaDescribeTrustStoreAssociationsRequest.builder()- Parameters:
describeTrustStoreAssociationsRequest- AConsumerthat will call methods onDescribeTrustStoreAssociationsRequest.Builderto create a request.- Returns:
- Result of the DescribeTrustStoreAssociations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreAssociationsPaginator
default DescribeTrustStoreAssociationsIterable describeTrustStoreAssociationsPaginator(DescribeTrustStoreAssociationsRequest describeTrustStoreAssociationsRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeTrustStoreAssociations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreAssociationsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreAssociationsIterable responses = client.describeTrustStoreAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreAssociationsIterable responses = client .describeTrustStoreAssociationsPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreAssociationsIterable responses = client.describeTrustStoreAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of PageSize 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
describeTrustStoreAssociations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreAssociationsRequest)operation.- Parameters:
describeTrustStoreAssociationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreAssociationsPaginator
default DescribeTrustStoreAssociationsIterable describeTrustStoreAssociationsPaginator(Consumer<DescribeTrustStoreAssociationsRequest.Builder> describeTrustStoreAssociationsRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeTrustStoreAssociations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreAssociationsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreAssociationsIterable responses = client.describeTrustStoreAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreAssociationsIterable responses = client .describeTrustStoreAssociationsPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreAssociationsIterable responses = client.describeTrustStoreAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of PageSize 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
describeTrustStoreAssociations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreAssociationsRequest)operation.
This is a convenience which creates an instance of the
DescribeTrustStoreAssociationsRequest.Builderavoiding the need to create one manually viaDescribeTrustStoreAssociationsRequest.builder()- Parameters:
describeTrustStoreAssociationsRequest- AConsumerthat will call methods onDescribeTrustStoreAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreRevocations
default DescribeTrustStoreRevocationsResponse describeTrustStoreRevocations(DescribeTrustStoreRevocationsRequest describeTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the revocation files in use by the specified trust store or revocation files.
- Parameters:
describeTrustStoreRevocationsRequest-- Returns:
- Result of the DescribeTrustStoreRevocations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreRevocations
default DescribeTrustStoreRevocationsResponse describeTrustStoreRevocations(Consumer<DescribeTrustStoreRevocationsRequest.Builder> describeTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes the revocation files in use by the specified trust store or revocation files.
This is a convenience which creates an instance of the
DescribeTrustStoreRevocationsRequest.Builderavoiding the need to create one manually viaDescribeTrustStoreRevocationsRequest.builder()- Parameters:
describeTrustStoreRevocationsRequest- AConsumerthat will call methods onDescribeTrustStoreRevocationsRequest.Builderto create a request.- Returns:
- Result of the DescribeTrustStoreRevocations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreRevocationsPaginator
default DescribeTrustStoreRevocationsIterable describeTrustStoreRevocationsPaginator(DescribeTrustStoreRevocationsRequest describeTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeTrustStoreRevocations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreRevocationsIterable responses = client.describeTrustStoreRevocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreRevocationsIterable responses = client .describeTrustStoreRevocationsPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreRevocationsIterable responses = client.describeTrustStoreRevocationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of PageSize 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
describeTrustStoreRevocations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsRequest)operation.- Parameters:
describeTrustStoreRevocationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoreRevocationsPaginator
default DescribeTrustStoreRevocationsIterable describeTrustStoreRevocationsPaginator(Consumer<DescribeTrustStoreRevocationsRequest.Builder> describeTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeTrustStoreRevocations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreRevocationsIterable responses = client.describeTrustStoreRevocationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreRevocationsIterable responses = client .describeTrustStoreRevocationsPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoreRevocationsIterable responses = client.describeTrustStoreRevocationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of PageSize 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
describeTrustStoreRevocations(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoreRevocationsRequest)operation.
This is a convenience which creates an instance of the
DescribeTrustStoreRevocationsRequest.Builderavoiding the need to create one manually viaDescribeTrustStoreRevocationsRequest.builder()- Parameters:
describeTrustStoreRevocationsRequest- AConsumerthat will call methods onDescribeTrustStoreRevocationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStores
default DescribeTrustStoresResponse describeTrustStores(DescribeTrustStoresRequest describeTrustStoresRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes all trust stores for the specified account.
- Parameters:
describeTrustStoresRequest-- Returns:
- Result of the DescribeTrustStores operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStores
default DescribeTrustStoresResponse describeTrustStores(Consumer<DescribeTrustStoresRequest.Builder> describeTrustStoresRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Describes all trust stores for the specified account.
This is a convenience which creates an instance of the
DescribeTrustStoresRequest.Builderavoiding the need to create one manually viaDescribeTrustStoresRequest.builder()- Parameters:
describeTrustStoresRequest- AConsumerthat will call methods onDescribeTrustStoresRequest.Builderto create a request.- Returns:
- Result of the DescribeTrustStores operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoresPaginator
default DescribeTrustStoresIterable describeTrustStoresPaginator(DescribeTrustStoresRequest describeTrustStoresRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeTrustStores(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoresIterable responses = client.describeTrustStoresPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoresIterable responses = client .describeTrustStoresPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoresIterable responses = client.describeTrustStoresPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of PageSize 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
describeTrustStores(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresRequest)operation.- Parameters:
describeTrustStoresRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
describeTrustStoresPaginator
default DescribeTrustStoresIterable describeTrustStoresPaginator(Consumer<DescribeTrustStoresRequest.Builder> describeTrustStoresRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
This is a variant of
describeTrustStores(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresRequest)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
2) Using For loopsoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoresIterable responses = client.describeTrustStoresPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoresIterable responses = client .describeTrustStoresPaginator(request); for (software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.elasticloadbalancingv2.paginators.DescribeTrustStoresIterable responses = client.describeTrustStoresPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of PageSize 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
describeTrustStores(software.amazon.awssdk.services.elasticloadbalancingv2.model.DescribeTrustStoresRequest)operation.
This is a convenience which creates an instance of the
DescribeTrustStoresRequest.Builderavoiding the need to create one manually viaDescribeTrustStoresRequest.builder()- Parameters:
describeTrustStoresRequest- AConsumerthat will call methods onDescribeTrustStoresRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Retrieves the resource policy for a specified resource.
- Parameters:
getResourcePolicyRequest-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource 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.AwsServiceException- See Also:
- AWS API Documentation
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Retrieves the resource policy for a specified resource.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- Throws:
ResourceNotFoundException- The specified resource 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.AwsServiceException- See Also:
- AWS API Documentation
-
getTrustStoreCaCertificatesBundle
default GetTrustStoreCaCertificatesBundleResponse getTrustStoreCaCertificatesBundle(GetTrustStoreCaCertificatesBundleRequest getTrustStoreCaCertificatesBundleRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Retrieves the ca certificate bundle.
This action returns a pre-signed S3 URI which is active for ten minutes.
- Parameters:
getTrustStoreCaCertificatesBundleRequest-- Returns:
- Result of the GetTrustStoreCaCertificatesBundle operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
getTrustStoreCaCertificatesBundle
default GetTrustStoreCaCertificatesBundleResponse getTrustStoreCaCertificatesBundle(Consumer<GetTrustStoreCaCertificatesBundleRequest.Builder> getTrustStoreCaCertificatesBundleRequest) throws TrustStoreNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Retrieves the ca certificate bundle.
This action returns a pre-signed S3 URI which is active for ten minutes.
This is a convenience which creates an instance of the
GetTrustStoreCaCertificatesBundleRequest.Builderavoiding the need to create one manually viaGetTrustStoreCaCertificatesBundleRequest.builder()- Parameters:
getTrustStoreCaCertificatesBundleRequest- AConsumerthat will call methods onGetTrustStoreCaCertificatesBundleRequest.Builderto create a request.- Returns:
- Result of the GetTrustStoreCaCertificatesBundle operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
getTrustStoreRevocationContent
default GetTrustStoreRevocationContentResponse getTrustStoreRevocationContent(GetTrustStoreRevocationContentRequest getTrustStoreRevocationContentRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Retrieves the specified revocation file.
This action returns a pre-signed S3 URI which is active for ten minutes.
- Parameters:
getTrustStoreRevocationContentRequest-- Returns:
- Result of the GetTrustStoreRevocationContent operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
getTrustStoreRevocationContent
default GetTrustStoreRevocationContentResponse getTrustStoreRevocationContent(Consumer<GetTrustStoreRevocationContentRequest.Builder> getTrustStoreRevocationContentRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Retrieves the specified revocation file.
This action returns a pre-signed S3 URI which is active for ten minutes.
This is a convenience which creates an instance of the
GetTrustStoreRevocationContentRequest.Builderavoiding the need to create one manually viaGetTrustStoreRevocationContentRequest.builder()- Parameters:
getTrustStoreRevocationContentRequest- AConsumerthat will call methods onGetTrustStoreRevocationContentRequest.Builderto create a request.- Returns:
- Result of the GetTrustStoreRevocationContent operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyListener
default ModifyListenerResponse modifyListener(ModifyListenerRequest modifyListenerRequest) throws DuplicateListenerException, TooManyListenersException, TooManyCertificatesException, ListenerNotFoundException, TargetGroupNotFoundException, TargetGroupAssociationLimitException, IncompatibleProtocolsException, SslPolicyNotFoundException, CertificateNotFoundException, InvalidConfigurationRequestException, UnsupportedProtocolException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AlpnPolicyNotSupportedException, TrustStoreNotFoundException, TrustStoreNotReadyException, 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.
- Parameters:
modifyListenerRequest-- Returns:
- Result of the ModifyListener operation returned by the service.
- Throws:
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.TrustStoreNotFoundException- The specified trust store does not exist.TrustStoreNotReadyException- The specified trust store is not active.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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyListener
default ModifyListenerResponse modifyListener(Consumer<ModifyListenerRequest.Builder> modifyListenerRequest) throws DuplicateListenerException, TooManyListenersException, TooManyCertificatesException, ListenerNotFoundException, TargetGroupNotFoundException, TargetGroupAssociationLimitException, IncompatibleProtocolsException, SslPolicyNotFoundException, CertificateNotFoundException, InvalidConfigurationRequestException, UnsupportedProtocolException, TooManyRegistrationsForTargetIdException, TooManyTargetsException, TooManyActionsException, InvalidLoadBalancerActionException, TooManyUniqueTargetGroupsPerLoadBalancerException, AlpnPolicyNotSupportedException, TrustStoreNotFoundException, TrustStoreNotReadyException, 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.Builderavoiding the need to create one manually viaModifyListenerRequest.builder()- Parameters:
modifyListenerRequest- AConsumerthat will call methods onModifyListenerRequest.Builderto create a request.- Returns:
- Result of the ModifyListener operation returned by the service.
- Throws:
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.TrustStoreNotFoundException- The specified trust store does not exist.TrustStoreNotReadyException- The specified trust store is not active.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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyListenerAttributes
default ModifyListenerAttributesResponse modifyListenerAttributes(ModifyListenerAttributesRequest modifyListenerAttributesRequest) throws ListenerNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the specified attributes of the specified listener.
- Parameters:
modifyListenerAttributesRequest-- Returns:
- Result of the ModifyListenerAttributes operation returned by the service.
- Throws:
ListenerNotFoundException- The specified listener 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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyListenerAttributes
default ModifyListenerAttributesResponse modifyListenerAttributes(Consumer<ModifyListenerAttributesRequest.Builder> modifyListenerAttributesRequest) throws ListenerNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the specified attributes of the specified listener.
This is a convenience which creates an instance of the
ModifyListenerAttributesRequest.Builderavoiding the need to create one manually viaModifyListenerAttributesRequest.builder()- Parameters:
modifyListenerAttributesRequest- AConsumerthat will call methods onModifyListenerAttributesRequest.Builderto create a request.- Returns:
- Result of the ModifyListenerAttributes operation returned by the service.
- Throws:
ListenerNotFoundException- The specified listener 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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyLoadBalancerAttributes
default 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.
- Parameters:
modifyLoadBalancerAttributesRequest-- Returns:
- Result of the ModifyLoadBalancerAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyLoadBalancerAttributes
default 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.Builderavoiding the need to create one manually viaModifyLoadBalancerAttributesRequest.builder()- Parameters:
modifyLoadBalancerAttributesRequest- AConsumerthat will call methods onModifyLoadBalancerAttributesRequest.Builderto create a request.- Returns:
- Result of the ModifyLoadBalancerAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyRule
default 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.
- Parameters:
modifyRuleRequest-- Returns:
- Result of the ModifyRule operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyRule
default 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.Builderavoiding the need to create one manually viaModifyRuleRequest.builder()- Parameters:
modifyRuleRequest- AConsumerthat will call methods onModifyRuleRequest.Builderto create a request.- Returns:
- Result of the ModifyRule operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyTargetGroup
default 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.
- Parameters:
modifyTargetGroupRequest-- Returns:
- Result of the ModifyTargetGroup operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyTargetGroup
default 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.Builderavoiding the need to create one manually viaModifyTargetGroupRequest.builder()- Parameters:
modifyTargetGroupRequest- AConsumerthat will call methods onModifyTargetGroupRequest.Builderto create a request.- Returns:
- Result of the ModifyTargetGroup operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyTargetGroupAttributes
default ModifyTargetGroupAttributesResponse modifyTargetGroupAttributes(ModifyTargetGroupAttributesRequest modifyTargetGroupAttributesRequest) throws TargetGroupNotFoundException, InvalidConfigurationRequestException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Modifies the specified attributes of the specified target group.
- Parameters:
modifyTargetGroupAttributesRequest-- Returns:
- Result of the ModifyTargetGroupAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyTargetGroupAttributes
default 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.Builderavoiding the need to create one manually viaModifyTargetGroupAttributesRequest.builder()- Parameters:
modifyTargetGroupAttributesRequest- AConsumerthat will call methods onModifyTargetGroupAttributesRequest.Builderto create a request.- Returns:
- Result of the ModifyTargetGroupAttributes operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyTrustStore
default ModifyTrustStoreResponse modifyTrustStore(ModifyTrustStoreRequest modifyTrustStoreRequest) throws TrustStoreNotFoundException, InvalidCaCertificatesBundleException, CaCertificatesBundleNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Update the ca certificate bundle for the specified trust store.
- Parameters:
modifyTrustStoreRequest-- Returns:
- Result of the ModifyTrustStore operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.InvalidCaCertificatesBundleException- The specified ca certificate bundle is in an invalid format, or corrupt.CaCertificatesBundleNotFoundException- The specified ca certificate bundle 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.AwsServiceException- See Also:
- AWS API Documentation
-
modifyTrustStore
default ModifyTrustStoreResponse modifyTrustStore(Consumer<ModifyTrustStoreRequest.Builder> modifyTrustStoreRequest) throws TrustStoreNotFoundException, InvalidCaCertificatesBundleException, CaCertificatesBundleNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Update the ca certificate bundle for the specified trust store.
This is a convenience which creates an instance of the
ModifyTrustStoreRequest.Builderavoiding the need to create one manually viaModifyTrustStoreRequest.builder()- Parameters:
modifyTrustStoreRequest- AConsumerthat will call methods onModifyTrustStoreRequest.Builderto create a request.- Returns:
- Result of the ModifyTrustStore operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.InvalidCaCertificatesBundleException- The specified ca certificate bundle is in an invalid format, or corrupt.CaCertificatesBundleNotFoundException- The specified ca certificate bundle 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.AwsServiceException- See Also:
- AWS API Documentation
-
registerTargets
default 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
runningstate 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 can't 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.
- Parameters:
registerTargetsRequest-- Returns:
- Result of the RegisterTargets operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
registerTargets
default 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
runningstate 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 can't 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.Builderavoiding the need to create one manually viaRegisterTargetsRequest.builder()- Parameters:
registerTargetsRequest- AConsumerthat will call methods onRegisterTargetsRequest.Builderto create a request.- Returns:
- Result of the RegisterTargets operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
removeListenerCertificates
default 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.
- Parameters:
removeListenerCertificatesRequest-- Returns:
- Result of the RemoveListenerCertificates operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
removeListenerCertificates
default 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.Builderavoiding the need to create one manually viaRemoveListenerCertificatesRequest.builder()- Parameters:
removeListenerCertificatesRequest- AConsumerthat will call methods onRemoveListenerCertificatesRequest.Builderto create a request.- Returns:
- Result of the RemoveListenerCertificates operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
removeTags
default RemoveTagsResponse removeTags(RemoveTagsRequest removeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TooManyTagsException, TrustStoreNotFoundException, 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.
- Parameters:
removeTagsRequest-- Returns:
- Result of the RemoveTags operation returned by the service.
- Throws:
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 for this resource.TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
removeTags
default RemoveTagsResponse removeTags(Consumer<RemoveTagsRequest.Builder> removeTagsRequest) throws LoadBalancerNotFoundException, TargetGroupNotFoundException, ListenerNotFoundException, RuleNotFoundException, TooManyTagsException, TrustStoreNotFoundException, 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.Builderavoiding the need to create one manually viaRemoveTagsRequest.builder()- Parameters:
removeTagsRequest- AConsumerthat will call methods onRemoveTagsRequest.Builderto create a request.- Returns:
- Result of the RemoveTags operation returned by the service.
- Throws:
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 for this resource.TrustStoreNotFoundException- The specified trust store 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.AwsServiceException- See Also:
- AWS API Documentation
-
removeTrustStoreRevocations
default RemoveTrustStoreRevocationsResponse removeTrustStoreRevocations(RemoveTrustStoreRevocationsRequest removeTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Removes the specified revocation file from the specified trust store.
- Parameters:
removeTrustStoreRevocationsRequest-- Returns:
- Result of the RemoveTrustStoreRevocations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
removeTrustStoreRevocations
default RemoveTrustStoreRevocationsResponse removeTrustStoreRevocations(Consumer<RemoveTrustStoreRevocationsRequest.Builder> removeTrustStoreRevocationsRequest) throws TrustStoreNotFoundException, RevocationIdNotFoundException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Removes the specified revocation file from the specified trust store.
This is a convenience which creates an instance of the
RemoveTrustStoreRevocationsRequest.Builderavoiding the need to create one manually viaRemoveTrustStoreRevocationsRequest.builder()- Parameters:
removeTrustStoreRevocationsRequest- AConsumerthat will call methods onRemoveTrustStoreRevocationsRequest.Builderto create a request.- Returns:
- Result of the RemoveTrustStoreRevocations operation returned by the service.
- Throws:
TrustStoreNotFoundException- The specified trust store does not exist.RevocationIdNotFoundException- The specified revocation ID 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.AwsServiceException- See Also:
- AWS API Documentation
-
setIpAddressType
default 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.
- Parameters:
setIpAddressTypeRequest-- Returns:
- Result of the SetIpAddressType operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
setIpAddressType
default 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.Builderavoiding the need to create one manually viaSetIpAddressTypeRequest.builder()- Parameters:
setIpAddressTypeRequest- AConsumerthat will call methods onSetIpAddressTypeRequest.Builderto create a request.- Returns:
- Result of the SetIpAddressType operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
setRulePriorities
default 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.
- Parameters:
setRulePrioritiesRequest-- Returns:
- Result of the SetRulePriorities operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
setRulePriorities
default 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.Builderavoiding the need to create one manually viaSetRulePrioritiesRequest.builder()- Parameters:
setRulePrioritiesRequest- AConsumerthat will call methods onSetRulePrioritiesRequest.Builderto create a request.- Returns:
- Result of the SetRulePriorities operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
setSecurityGroups
default SetSecurityGroupsResponse setSecurityGroups(SetSecurityGroupsRequest setSecurityGroupsRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, InvalidSecurityGroupException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Associates the specified security groups with the specified Application Load Balancer or Network Load Balancer. The specified security groups override the previously associated security groups.
You can't perform this operation on a Network Load Balancer unless you specified a security group for the load balancer when you created it.
You can't associate a security group with a Gateway Load Balancer.
- Parameters:
setSecurityGroupsRequest-- Returns:
- Result of the SetSecurityGroups operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
setSecurityGroups
default SetSecurityGroupsResponse setSecurityGroups(Consumer<SetSecurityGroupsRequest.Builder> setSecurityGroupsRequest) throws LoadBalancerNotFoundException, InvalidConfigurationRequestException, InvalidSecurityGroupException, AwsServiceException, SdkClientException, ElasticLoadBalancingV2Exception
Associates the specified security groups with the specified Application Load Balancer or Network Load Balancer. The specified security groups override the previously associated security groups.
You can't perform this operation on a Network Load Balancer unless you specified a security group for the load balancer when you created it.
You can't associate a security group with a Gateway Load Balancer.
This is a convenience which creates an instance of the
SetSecurityGroupsRequest.Builderavoiding the need to create one manually viaSetSecurityGroupsRequest.builder()- Parameters:
setSecurityGroupsRequest- AConsumerthat will call methods onSetSecurityGroupsRequest.Builderto create a request.- Returns:
- Result of the SetSecurityGroups operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
setSubnets
default 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, Network Load Balancer or Gateway Load Balancer. The specified subnets replace the previously enabled subnets.
When you specify subnets for a Network Load Balancer, or Gateway Load Balancer you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.
- Parameters:
setSubnetsRequest-- Returns:
- Result of the SetSubnets operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
setSubnets
default 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, Network Load Balancer or Gateway Load Balancer. The specified subnets replace the previously enabled subnets.
When you specify subnets for a Network Load Balancer, or Gateway 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.Builderavoiding the need to create one manually viaSetSubnetsRequest.builder()- Parameters:
setSubnetsRequest- AConsumerthat will call methods onSetSubnetsRequest.Builderto create a request.- Returns:
- Result of the SetSubnets operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
waiter
default ElasticLoadBalancingV2Waiter waiter()
Create an instance ofElasticLoadBalancingV2Waiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
ElasticLoadBalancingV2Waiter
-
create
static ElasticLoadBalancingV2Client create()
Create aElasticLoadBalancingV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static ElasticLoadBalancingV2ClientBuilder builder()
Create a builder that can be used to configure and create aElasticLoadBalancingV2Client.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default ElasticLoadBalancingV2ServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-