Interface VpcLatticeClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface VpcLatticeClient extends AwsClient
Service client for accessing Amazon VPC Lattice. This can be created using the staticbuilder()method.Amazon VPC Lattice is a fully managed application networking service that you use to connect, secure, and monitor all of your services across multiple accounts and virtual private clouds (VPCs). Amazon VPC Lattice interconnects your microservices and legacy services within a logical boundary, so that you can discover and manage them more efficiently. For more information, see the Amazon VPC Lattice User Guide
-
-
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
-
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
-
batchUpdateRule
default BatchUpdateRuleResponse batchUpdateRule(BatchUpdateRuleRequest batchUpdateRuleRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the listener rules in a batch. You can use this operation to change the priority of listener rules. This can be useful when bulk updating or swapping rule priority.
- Parameters:
batchUpdateRuleRequest-- Returns:
- Result of the BatchUpdateRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
batchUpdateRule
default BatchUpdateRuleResponse batchUpdateRule(Consumer<BatchUpdateRuleRequest.Builder> batchUpdateRuleRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the listener rules in a batch. You can use this operation to change the priority of listener rules. This can be useful when bulk updating or swapping rule priority.
This is a convenience which creates an instance of the
BatchUpdateRuleRequest.Builderavoiding the need to create one manually viaBatchUpdateRuleRequest.builder()- Parameters:
batchUpdateRuleRequest- AConsumerthat will call methods onBatchUpdateRuleRequest.Builderto create a request.- Returns:
- Result of the BatchUpdateRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAccessLogSubscription
default CreateAccessLogSubscriptionResponse createAccessLogSubscription(CreateAccessLogSubscriptionRequest createAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose. The service network owner can use the access logs to audit the services in the network. The service network owner will only see access logs from clients and services that are associated with their service network. Access log entries represent traffic originated from VPCs associated with that network. For more information, see Access logs in the Amazon VPC Lattice User Guide.
- Parameters:
createAccessLogSubscriptionRequest-- Returns:
- Result of the CreateAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createAccessLogSubscription
default CreateAccessLogSubscriptionResponse createAccessLogSubscription(Consumer<CreateAccessLogSubscriptionRequest.Builder> createAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Enables access logs to be sent to Amazon CloudWatch, Amazon S3, and Amazon Kinesis Data Firehose. The service network owner can use the access logs to audit the services in the network. The service network owner will only see access logs from clients and services that are associated with their service network. Access log entries represent traffic originated from VPCs associated with that network. For more information, see Access logs in the Amazon VPC Lattice User Guide.
This is a convenience which creates an instance of the
CreateAccessLogSubscriptionRequest.Builderavoiding the need to create one manually viaCreateAccessLogSubscriptionRequest.builder()- Parameters:
createAccessLogSubscriptionRequest- AConsumerthat will call methods onCreateAccessLogSubscriptionRequest.Builderto create a request.- Returns:
- Result of the CreateAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a listener for a service. Before you start using your Amazon VPC Lattice service, you must add one or more listeners. A listener is a process that checks for connection requests to your services. For more information, see Listeners in the Amazon VPC Lattice User Guide.
- Parameters:
createListenerRequest-- Returns:
- Result of the CreateListener operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a listener for a service. Before you start using your Amazon VPC Lattice service, you must add one or more listeners. A listener is a process that checks for connection requests to your services. For more information, see Listeners in the Amazon VPC Lattice User Guide.
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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. For more information, see Listener rules in the Amazon VPC Lattice User Guide.
- Parameters:
createRuleRequest-- Returns:
- Result of the CreateRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. For more information, see Listener rules in the Amazon VPC Lattice User 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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createService
default CreateServiceResponse createService(CreateServiceRequest createServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a service. A service is any software application that can run on instances containers, or serverless functions within an account or virtual private cloud (VPC).
For more information, see Services in the Amazon VPC Lattice User Guide.
- Parameters:
createServiceRequest-- Returns:
- Result of the CreateService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createService
default CreateServiceResponse createService(Consumer<CreateServiceRequest.Builder> createServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a service. A service is any software application that can run on instances containers, or serverless functions within an account or virtual private cloud (VPC).
For more information, see Services in the Amazon VPC Lattice User Guide.
This is a convenience which creates an instance of the
CreateServiceRequest.Builderavoiding the need to create one manually viaCreateServiceRequest.builder()- Parameters:
createServiceRequest- AConsumerthat will call methods onCreateServiceRequest.Builderto create a request.- Returns:
- Result of the CreateService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createServiceNetwork
default CreateServiceNetworkResponse createServiceNetwork(CreateServiceNetworkRequest createServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a service network. A service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network.
For more information, see Service networks in the Amazon VPC Lattice User Guide.
- Parameters:
createServiceNetworkRequest-- Returns:
- Result of the CreateServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createServiceNetwork
default CreateServiceNetworkResponse createServiceNetwork(Consumer<CreateServiceNetworkRequest.Builder> createServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a service network. A service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network.
For more information, see Service networks in the Amazon VPC Lattice User Guide.
This is a convenience which creates an instance of the
CreateServiceNetworkRequest.Builderavoiding the need to create one manually viaCreateServiceNetworkRequest.builder()- Parameters:
createServiceNetworkRequest- AConsumerthat will call methods onCreateServiceNetworkRequest.Builderto create a request.- Returns:
- Result of the CreateServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createServiceNetworkServiceAssociation
default CreateServiceNetworkServiceAssociationResponse createServiceNetworkServiceAssociation(CreateServiceNetworkServiceAssociationRequest createServiceNetworkServiceAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Associates a service with a service network.
You can't use this operation if the service and service network are already associated or if there is a disassociation or deletion in progress. If the association fails, you can retry the operation by deleting the association and recreating it.
You cannot associate a service and service network that are shared with a caller. The caller must own either the service or the service network.
As a result of this operation, the association is created in the service network account and the association owner account.
- Parameters:
createServiceNetworkServiceAssociationRequest-- Returns:
- Result of the CreateServiceNetworkServiceAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createServiceNetworkServiceAssociation
default CreateServiceNetworkServiceAssociationResponse createServiceNetworkServiceAssociation(Consumer<CreateServiceNetworkServiceAssociationRequest.Builder> createServiceNetworkServiceAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Associates a service with a service network.
You can't use this operation if the service and service network are already associated or if there is a disassociation or deletion in progress. If the association fails, you can retry the operation by deleting the association and recreating it.
You cannot associate a service and service network that are shared with a caller. The caller must own either the service or the service network.
As a result of this operation, the association is created in the service network account and the association owner account.
This is a convenience which creates an instance of the
CreateServiceNetworkServiceAssociationRequest.Builderavoiding the need to create one manually viaCreateServiceNetworkServiceAssociationRequest.builder()- Parameters:
createServiceNetworkServiceAssociationRequest- AConsumerthat will call methods onCreateServiceNetworkServiceAssociationRequest.Builderto create a request.- Returns:
- Result of the CreateServiceNetworkServiceAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createServiceNetworkVpcAssociation
default CreateServiceNetworkVpcAssociationResponse createServiceNetworkVpcAssociation(CreateServiceNetworkVpcAssociationRequest createServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Associates a VPC with a service network. When you associate a VPC with the service network, it enables all the resources within that VPC to be clients and communicate with other services in the service network. For more information, see Manage VPC associations in the Amazon VPC Lattice User Guide.
You can't use this operation if there is a disassociation in progress. If the association fails, retry by deleting the association and recreating it.
As a result of this operation, the association gets created in the service network account and the VPC owner account.
Once a security group is added to the VPC association it cannot be removed. You can add or update the security groups being used for the VPC association once a security group is attached. To remove all security groups you must reassociate the VPC.
- Parameters:
createServiceNetworkVpcAssociationRequest-- Returns:
- Result of the CreateServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createServiceNetworkVpcAssociation
default CreateServiceNetworkVpcAssociationResponse createServiceNetworkVpcAssociation(Consumer<CreateServiceNetworkVpcAssociationRequest.Builder> createServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Associates a VPC with a service network. When you associate a VPC with the service network, it enables all the resources within that VPC to be clients and communicate with other services in the service network. For more information, see Manage VPC associations in the Amazon VPC Lattice User Guide.
You can't use this operation if there is a disassociation in progress. If the association fails, retry by deleting the association and recreating it.
As a result of this operation, the association gets created in the service network account and the VPC owner account.
Once a security group is added to the VPC association it cannot be removed. You can add or update the security groups being used for the VPC association once a security group is attached. To remove all security groups you must reassociate the VPC.
This is a convenience which creates an instance of the
CreateServiceNetworkVpcAssociationRequest.Builderavoiding the need to create one manually viaCreateServiceNetworkVpcAssociationRequest.builder()- Parameters:
createServiceNetworkVpcAssociationRequest- AConsumerthat will call methods onCreateServiceNetworkVpcAssociationRequest.Builderto create a request.- Returns:
- Result of the CreateServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a target group. A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.
For more information, see Target groups in the Amazon VPC Lattice User Guide.
- Parameters:
createTargetGroupRequest-- Returns:
- Result of the CreateTargetGroup operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates a target group. A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.
For more information, see Target groups in the Amazon VPC Lattice User Guide.
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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAccessLogSubscription
default DeleteAccessLogSubscriptionResponse deleteAccessLogSubscription(DeleteAccessLogSubscriptionRequest deleteAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified access log subscription.
- Parameters:
deleteAccessLogSubscriptionRequest-- Returns:
- Result of the DeleteAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAccessLogSubscription
default DeleteAccessLogSubscriptionResponse deleteAccessLogSubscription(Consumer<DeleteAccessLogSubscriptionRequest.Builder> deleteAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified access log subscription.
This is a convenience which creates an instance of the
DeleteAccessLogSubscriptionRequest.Builderavoiding the need to create one manually viaDeleteAccessLogSubscriptionRequest.builder()- Parameters:
deleteAccessLogSubscriptionRequest- AConsumerthat will call methods onDeleteAccessLogSubscriptionRequest.Builderto create a request.- Returns:
- Result of the DeleteAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAuthPolicy
default DeleteAuthPolicyResponse deleteAuthPolicy(DeleteAuthPolicyRequest deleteAuthPolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified auth policy. If an auth is set to
Amazon Web Services_IAMand the auth policy is deleted, all requests will be denied by default. If you are trying to remove the auth policy completely, you must set the auth_type toNONE. If auth is enabled on the resource, but no auth policy is set, all requests will be denied.- Parameters:
deleteAuthPolicyRequest-- Returns:
- Result of the DeleteAuthPolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteAuthPolicy
default DeleteAuthPolicyResponse deleteAuthPolicy(Consumer<DeleteAuthPolicyRequest.Builder> deleteAuthPolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified auth policy. If an auth is set to
Amazon Web Services_IAMand the auth policy is deleted, all requests will be denied by default. If you are trying to remove the auth policy completely, you must set the auth_type toNONE. If auth is enabled on the resource, but no auth policy is set, all requests will be denied.
This is a convenience which creates an instance of the
DeleteAuthPolicyRequest.Builderavoiding the need to create one manually viaDeleteAuthPolicyRequest.builder()- Parameters:
deleteAuthPolicyRequest- AConsumerthat will call methods onDeleteAuthPolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteAuthPolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified listener.
- Parameters:
deleteListenerRequest-- Returns:
- Result of the DeleteListener operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified listener.
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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified resource policy.
- Parameters:
deleteResourcePolicyRequest-- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the specified resource policy.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builderavoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()- Parameters:
deleteResourcePolicyRequest- AConsumerthat will call methods onDeleteResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. You can delete additional listener rules, but you cannot delete the default rule.
For more information, see Listener rules in the Amazon VPC Lattice User Guide.
- Parameters:
deleteRuleRequest-- Returns:
- Result of the DeleteRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. You can delete additional listener rules, but you cannot delete the default rule.
For more information, see Listener rules in the Amazon VPC Lattice User Guide.
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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteService
default DeleteServiceResponse deleteService(DeleteServiceRequest deleteServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a service. A service can't be deleted if it's associated with a service network. If you delete a service, all resources related to the service, such as the resource policy, auth policy, listeners, listener rules, and access log subscriptions, are also deleted. For more information, see Delete a service in the Amazon VPC Lattice User Guide.
- Parameters:
deleteServiceRequest-- Returns:
- Result of the DeleteService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteService
default DeleteServiceResponse deleteService(Consumer<DeleteServiceRequest.Builder> deleteServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a service. A service can't be deleted if it's associated with a service network. If you delete a service, all resources related to the service, such as the resource policy, auth policy, listeners, listener rules, and access log subscriptions, are also deleted. For more information, see Delete a service in the Amazon VPC Lattice User Guide.
This is a convenience which creates an instance of the
DeleteServiceRequest.Builderavoiding the need to create one manually viaDeleteServiceRequest.builder()- Parameters:
deleteServiceRequest- AConsumerthat will call methods onDeleteServiceRequest.Builderto create a request.- Returns:
- Result of the DeleteService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteServiceNetwork
default DeleteServiceNetworkResponse deleteServiceNetwork(DeleteServiceNetworkRequest deleteServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a service network. You can only delete the service network if there is no service or VPC associated with it. If you delete a service network, all resources related to the service network, such as the resource policy, auth policy, and access log subscriptions, are also deleted. For more information, see Delete a service network in the Amazon VPC Lattice User Guide.
- Parameters:
deleteServiceNetworkRequest-- Returns:
- Result of the DeleteServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteServiceNetwork
default DeleteServiceNetworkResponse deleteServiceNetwork(Consumer<DeleteServiceNetworkRequest.Builder> deleteServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a service network. You can only delete the service network if there is no service or VPC associated with it. If you delete a service network, all resources related to the service network, such as the resource policy, auth policy, and access log subscriptions, are also deleted. For more information, see Delete a service network in the Amazon VPC Lattice User Guide.
This is a convenience which creates an instance of the
DeleteServiceNetworkRequest.Builderavoiding the need to create one manually viaDeleteServiceNetworkRequest.builder()- Parameters:
deleteServiceNetworkRequest- AConsumerthat will call methods onDeleteServiceNetworkRequest.Builderto create a request.- Returns:
- Result of the DeleteServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteServiceNetworkServiceAssociation
default DeleteServiceNetworkServiceAssociationResponse deleteServiceNetworkServiceAssociation(DeleteServiceNetworkServiceAssociationRequest deleteServiceNetworkServiceAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the association between a specified service and the specific service network. This request will fail if an association is still in progress.
- Parameters:
deleteServiceNetworkServiceAssociationRequest-- Returns:
- Result of the DeleteServiceNetworkServiceAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteServiceNetworkServiceAssociation
default DeleteServiceNetworkServiceAssociationResponse deleteServiceNetworkServiceAssociation(Consumer<DeleteServiceNetworkServiceAssociationRequest.Builder> deleteServiceNetworkServiceAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes the association between a specified service and the specific service network. This request will fail if an association is still in progress.
This is a convenience which creates an instance of the
DeleteServiceNetworkServiceAssociationRequest.Builderavoiding the need to create one manually viaDeleteServiceNetworkServiceAssociationRequest.builder()- Parameters:
deleteServiceNetworkServiceAssociationRequest- AConsumerthat will call methods onDeleteServiceNetworkServiceAssociationRequest.Builderto create a request.- Returns:
- Result of the DeleteServiceNetworkServiceAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteServiceNetworkVpcAssociation
default DeleteServiceNetworkVpcAssociationResponse deleteServiceNetworkVpcAssociation(DeleteServiceNetworkVpcAssociationRequest deleteServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Disassociates the VPC from the service network. You can't disassociate the VPC if there is a create or update association in progress.
- Parameters:
deleteServiceNetworkVpcAssociationRequest-- Returns:
- Result of the DeleteServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteServiceNetworkVpcAssociation
default DeleteServiceNetworkVpcAssociationResponse deleteServiceNetworkVpcAssociation(Consumer<DeleteServiceNetworkVpcAssociationRequest.Builder> deleteServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Disassociates the VPC from the service network. You can't disassociate the VPC if there is a create or update association in progress.
This is a convenience which creates an instance of the
DeleteServiceNetworkVpcAssociationRequest.Builderavoiding the need to create one manually viaDeleteServiceNetworkVpcAssociationRequest.builder()- Parameters:
deleteServiceNetworkVpcAssociationRequest- AConsumerthat will call methods onDeleteServiceNetworkVpcAssociationRequest.Builderto create a request.- Returns:
- Result of the DeleteServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a target group. You can't delete a target group if it is used in a listener rule or if the target group creation is in progress.
- Parameters:
deleteTargetGroupRequest-- Returns:
- Result of the DeleteTargetGroup operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deletes a target group. You can't delete a target group if it is used in a listener rule or if the target group creation is in progress.
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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deregisters the specified targets from the specified target group.
- Parameters:
deregisterTargetsRequest-- Returns:
- Result of the DeregisterTargets operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Deregisters the specified targets from the specified target group.
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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAccessLogSubscription
default GetAccessLogSubscriptionResponse getAccessLogSubscription(GetAccessLogSubscriptionRequest getAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified access log subscription.
- Parameters:
getAccessLogSubscriptionRequest-- Returns:
- Result of the GetAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAccessLogSubscription
default GetAccessLogSubscriptionResponse getAccessLogSubscription(Consumer<GetAccessLogSubscriptionRequest.Builder> getAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified access log subscription.
This is a convenience which creates an instance of the
GetAccessLogSubscriptionRequest.Builderavoiding the need to create one manually viaGetAccessLogSubscriptionRequest.builder()- Parameters:
getAccessLogSubscriptionRequest- AConsumerthat will call methods onGetAccessLogSubscriptionRequest.Builderto create a request.- Returns:
- Result of the GetAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAuthPolicy
default GetAuthPolicyResponse getAuthPolicy(GetAuthPolicyRequest getAuthPolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the auth policy for the specified service or service network.
- Parameters:
getAuthPolicyRequest-- Returns:
- Result of the GetAuthPolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAuthPolicy
default GetAuthPolicyResponse getAuthPolicy(Consumer<GetAuthPolicyRequest.Builder> getAuthPolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the auth policy for the specified service or service network.
This is a convenience which creates an instance of the
GetAuthPolicyRequest.Builderavoiding the need to create one manually viaGetAuthPolicyRequest.builder()- Parameters:
getAuthPolicyRequest- AConsumerthat will call methods onGetAuthPolicyRequest.Builderto create a request.- Returns:
- Result of the GetAuthPolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getListener
default GetListenerResponse getListener(GetListenerRequest getListenerRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified listener for the specified service.
- Parameters:
getListenerRequest-- Returns:
- Result of the GetListener operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getListener
default GetListenerResponse getListener(Consumer<GetListenerRequest.Builder> getListenerRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified listener for the specified service.
This is a convenience which creates an instance of the
GetListenerRequest.Builderavoiding the need to create one manually viaGetListenerRequest.builder()- Parameters:
getListenerRequest- AConsumerthat will call methods onGetListenerRequest.Builderto create a request.- Returns:
- Result of the GetListener operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the resource policy. The resource policy is an IAM policy created by AWS RAM on behalf of the resource owner when they share a resource.
- Parameters:
getResourcePolicyRequest-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the resource policy. The resource policy is an IAM policy created by AWS RAM on behalf of the resource owner when they share a 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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRule
default GetRuleResponse getRule(GetRuleRequest getRuleRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about listener rules. You can also retrieve information about the default listener rule. For more information, see Listener rules in the Amazon VPC Lattice User Guide.
- Parameters:
getRuleRequest-- Returns:
- Result of the GetRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRule
default GetRuleResponse getRule(Consumer<GetRuleRequest.Builder> getRuleRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about listener rules. You can also retrieve information about the default listener rule. For more information, see Listener rules in the Amazon VPC Lattice User Guide.
This is a convenience which creates an instance of the
GetRuleRequest.Builderavoiding the need to create one manually viaGetRuleRequest.builder()- Parameters:
getRuleRequest- AConsumerthat will call methods onGetRuleRequest.Builderto create a request.- Returns:
- Result of the GetRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getService
default GetServiceResponse getService(GetServiceRequest getServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified service.
- Parameters:
getServiceRequest-- Returns:
- Result of the GetService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getService
default GetServiceResponse getService(Consumer<GetServiceRequest.Builder> getServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified service.
This is a convenience which creates an instance of the
GetServiceRequest.Builderavoiding the need to create one manually viaGetServiceRequest.builder()- Parameters:
getServiceRequest- AConsumerthat will call methods onGetServiceRequest.Builderto create a request.- Returns:
- Result of the GetService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getServiceNetwork
default GetServiceNetworkResponse getServiceNetwork(GetServiceNetworkRequest getServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified service network.
- Parameters:
getServiceNetworkRequest-- Returns:
- Result of the GetServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getServiceNetwork
default GetServiceNetworkResponse getServiceNetwork(Consumer<GetServiceNetworkRequest.Builder> getServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified service network.
This is a convenience which creates an instance of the
GetServiceNetworkRequest.Builderavoiding the need to create one manually viaGetServiceNetworkRequest.builder()- Parameters:
getServiceNetworkRequest- AConsumerthat will call methods onGetServiceNetworkRequest.Builderto create a request.- Returns:
- Result of the GetServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getServiceNetworkServiceAssociation
default GetServiceNetworkServiceAssociationResponse getServiceNetworkServiceAssociation(GetServiceNetworkServiceAssociationRequest getServiceNetworkServiceAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified association between a service network and a service.
- Parameters:
getServiceNetworkServiceAssociationRequest-- Returns:
- Result of the GetServiceNetworkServiceAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getServiceNetworkServiceAssociation
default GetServiceNetworkServiceAssociationResponse getServiceNetworkServiceAssociation(Consumer<GetServiceNetworkServiceAssociationRequest.Builder> getServiceNetworkServiceAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified association between a service network and a service.
This is a convenience which creates an instance of the
GetServiceNetworkServiceAssociationRequest.Builderavoiding the need to create one manually viaGetServiceNetworkServiceAssociationRequest.builder()- Parameters:
getServiceNetworkServiceAssociationRequest- AConsumerthat will call methods onGetServiceNetworkServiceAssociationRequest.Builderto create a request.- Returns:
- Result of the GetServiceNetworkServiceAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getServiceNetworkVpcAssociation
default GetServiceNetworkVpcAssociationResponse getServiceNetworkVpcAssociation(GetServiceNetworkVpcAssociationRequest getServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the association between a service network and a VPC.
- Parameters:
getServiceNetworkVpcAssociationRequest-- Returns:
- Result of the GetServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getServiceNetworkVpcAssociation
default GetServiceNetworkVpcAssociationResponse getServiceNetworkVpcAssociation(Consumer<GetServiceNetworkVpcAssociationRequest.Builder> getServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the association between a service network and a VPC.
This is a convenience which creates an instance of the
GetServiceNetworkVpcAssociationRequest.Builderavoiding the need to create one manually viaGetServiceNetworkVpcAssociationRequest.builder()- Parameters:
getServiceNetworkVpcAssociationRequest- AConsumerthat will call methods onGetServiceNetworkVpcAssociationRequest.Builderto create a request.- Returns:
- Result of the GetServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getTargetGroup
default GetTargetGroupResponse getTargetGroup(GetTargetGroupRequest getTargetGroupRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified target group.
- Parameters:
getTargetGroupRequest-- Returns:
- Result of the GetTargetGroup operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getTargetGroup
default GetTargetGroupResponse getTargetGroup(Consumer<GetTargetGroupRequest.Builder> getTargetGroupRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Retrieves information about the specified target group.
This is a convenience which creates an instance of the
GetTargetGroupRequest.Builderavoiding the need to create one manually viaGetTargetGroupRequest.builder()- Parameters:
getTargetGroupRequest- AConsumerthat will call methods onGetTargetGroupRequest.Builderto create a request.- Returns:
- Result of the GetTargetGroup operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessLogSubscriptions
default ListAccessLogSubscriptionsResponse listAccessLogSubscriptions(ListAccessLogSubscriptionsRequest listAccessLogSubscriptionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists all access log subscriptions for the specified service network or service.
- Parameters:
listAccessLogSubscriptionsRequest-- Returns:
- Result of the ListAccessLogSubscriptions operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessLogSubscriptions
default ListAccessLogSubscriptionsResponse listAccessLogSubscriptions(Consumer<ListAccessLogSubscriptionsRequest.Builder> listAccessLogSubscriptionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists all access log subscriptions for the specified service network or service.
This is a convenience which creates an instance of the
ListAccessLogSubscriptionsRequest.Builderavoiding the need to create one manually viaListAccessLogSubscriptionsRequest.builder()- Parameters:
listAccessLogSubscriptionsRequest- AConsumerthat will call methods onListAccessLogSubscriptionsRequest.Builderto create a request.- Returns:
- Result of the ListAccessLogSubscriptions operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessLogSubscriptionsPaginator
default ListAccessLogSubscriptionsIterable listAccessLogSubscriptionsPaginator(ListAccessLogSubscriptionsRequest listAccessLogSubscriptionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listAccessLogSubscriptions(software.amazon.awssdk.services.vpclattice.model.ListAccessLogSubscriptionsRequest)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.vpclattice.paginators.ListAccessLogSubscriptionsIterable responses = client.listAccessLogSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListAccessLogSubscriptionsIterable responses = client .listAccessLogSubscriptionsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListAccessLogSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListAccessLogSubscriptionsIterable responses = client.listAccessLogSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listAccessLogSubscriptions(software.amazon.awssdk.services.vpclattice.model.ListAccessLogSubscriptionsRequest)operation.- Parameters:
listAccessLogSubscriptionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listAccessLogSubscriptionsPaginator
default ListAccessLogSubscriptionsIterable listAccessLogSubscriptionsPaginator(Consumer<ListAccessLogSubscriptionsRequest.Builder> listAccessLogSubscriptionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listAccessLogSubscriptions(software.amazon.awssdk.services.vpclattice.model.ListAccessLogSubscriptionsRequest)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.vpclattice.paginators.ListAccessLogSubscriptionsIterable responses = client.listAccessLogSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListAccessLogSubscriptionsIterable responses = client .listAccessLogSubscriptionsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListAccessLogSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListAccessLogSubscriptionsIterable responses = client.listAccessLogSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listAccessLogSubscriptions(software.amazon.awssdk.services.vpclattice.model.ListAccessLogSubscriptionsRequest)operation.
This is a convenience which creates an instance of the
ListAccessLogSubscriptionsRequest.Builderavoiding the need to create one manually viaListAccessLogSubscriptionsRequest.builder()- Parameters:
listAccessLogSubscriptionsRequest- AConsumerthat will call methods onListAccessLogSubscriptionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listListeners
default ListListenersResponse listListeners(ListListenersRequest listListenersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the listeners for the specified service.
- Parameters:
listListenersRequest-- Returns:
- Result of the ListListeners operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listListeners
default ListListenersResponse listListeners(Consumer<ListListenersRequest.Builder> listListenersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the listeners for the specified service.
This is a convenience which creates an instance of the
ListListenersRequest.Builderavoiding the need to create one manually viaListListenersRequest.builder()- Parameters:
listListenersRequest- AConsumerthat will call methods onListListenersRequest.Builderto create a request.- Returns:
- Result of the ListListeners operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listListenersPaginator
default ListListenersIterable listListenersPaginator(ListListenersRequest listListenersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listListeners(software.amazon.awssdk.services.vpclattice.model.ListListenersRequest)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.vpclattice.paginators.ListListenersIterable responses = client.listListenersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListListenersIterable responses = client .listListenersPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListListenersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListListenersIterable responses = client.listListenersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listListeners(software.amazon.awssdk.services.vpclattice.model.ListListenersRequest)operation.- Parameters:
listListenersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listListenersPaginator
default ListListenersIterable listListenersPaginator(Consumer<ListListenersRequest.Builder> listListenersRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listListeners(software.amazon.awssdk.services.vpclattice.model.ListListenersRequest)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.vpclattice.paginators.ListListenersIterable responses = client.listListenersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListListenersIterable responses = client .listListenersPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListListenersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListListenersIterable responses = client.listListenersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listListeners(software.amazon.awssdk.services.vpclattice.model.ListListenersRequest)operation.
This is a convenience which creates an instance of the
ListListenersRequest.Builderavoiding the need to create one manually viaListListenersRequest.builder()- Parameters:
listListenersRequest- AConsumerthat will call methods onListListenersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRules
default ListRulesResponse listRules(ListRulesRequest listRulesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the rules for the listener.
- Parameters:
listRulesRequest-- Returns:
- Result of the ListRules operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRules
default ListRulesResponse listRules(Consumer<ListRulesRequest.Builder> listRulesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the rules for the listener.
This is a convenience which creates an instance of the
ListRulesRequest.Builderavoiding the need to create one manually viaListRulesRequest.builder()- Parameters:
listRulesRequest- AConsumerthat will call methods onListRulesRequest.Builderto create a request.- Returns:
- Result of the ListRules operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRulesPaginator
default ListRulesIterable listRulesPaginator(ListRulesRequest listRulesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listRules(software.amazon.awssdk.services.vpclattice.model.ListRulesRequest)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.vpclattice.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListRulesIterable responses = client.listRulesPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listRules(software.amazon.awssdk.services.vpclattice.model.ListRulesRequest)operation.- Parameters:
listRulesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRulesPaginator
default ListRulesIterable listRulesPaginator(Consumer<ListRulesRequest.Builder> listRulesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listRules(software.amazon.awssdk.services.vpclattice.model.ListRulesRequest)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.vpclattice.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListRulesIterable responses = client.listRulesPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListRulesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListRulesIterable responses = client.listRulesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listRules(software.amazon.awssdk.services.vpclattice.model.ListRulesRequest)operation.
This is a convenience which creates an instance of the
ListRulesRequest.Builderavoiding the need to create one manually viaListRulesRequest.builder()- Parameters:
listRulesRequest- AConsumerthat will call methods onListRulesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkServiceAssociations
default ListServiceNetworkServiceAssociationsResponse listServiceNetworkServiceAssociations(ListServiceNetworkServiceAssociationsRequest listServiceNetworkServiceAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the associations between the service network and the service. You can filter the list either by service or service network. You must provide either the service network identifier or the service identifier.
Every association in Amazon VPC Lattice is given a unique Amazon Resource Name (ARN), such as when a service network is associated with a VPC or when a service is associated with a service network. If the association is for a resource that is shared with another account, the association will include the local account ID as the prefix in the ARN for each account the resource is shared with.
- Parameters:
listServiceNetworkServiceAssociationsRequest-- Returns:
- Result of the ListServiceNetworkServiceAssociations operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkServiceAssociations
default ListServiceNetworkServiceAssociationsResponse listServiceNetworkServiceAssociations(Consumer<ListServiceNetworkServiceAssociationsRequest.Builder> listServiceNetworkServiceAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the associations between the service network and the service. You can filter the list either by service or service network. You must provide either the service network identifier or the service identifier.
Every association in Amazon VPC Lattice is given a unique Amazon Resource Name (ARN), such as when a service network is associated with a VPC or when a service is associated with a service network. If the association is for a resource that is shared with another account, the association will include the local account ID as the prefix in the ARN for each account the resource is shared with.
This is a convenience which creates an instance of the
ListServiceNetworkServiceAssociationsRequest.Builderavoiding the need to create one manually viaListServiceNetworkServiceAssociationsRequest.builder()- Parameters:
listServiceNetworkServiceAssociationsRequest- AConsumerthat will call methods onListServiceNetworkServiceAssociationsRequest.Builderto create a request.- Returns:
- Result of the ListServiceNetworkServiceAssociations operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkServiceAssociationsPaginator
default ListServiceNetworkServiceAssociationsIterable listServiceNetworkServiceAssociationsPaginator(ListServiceNetworkServiceAssociationsRequest listServiceNetworkServiceAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServiceNetworkServiceAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkServiceAssociationsRequest)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.vpclattice.paginators.ListServiceNetworkServiceAssociationsIterable responses = client.listServiceNetworkServiceAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkServiceAssociationsIterable responses = client .listServiceNetworkServiceAssociationsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkServiceAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkServiceAssociationsIterable responses = client.listServiceNetworkServiceAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServiceNetworkServiceAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkServiceAssociationsRequest)operation.- Parameters:
listServiceNetworkServiceAssociationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkServiceAssociationsPaginator
default ListServiceNetworkServiceAssociationsIterable listServiceNetworkServiceAssociationsPaginator(Consumer<ListServiceNetworkServiceAssociationsRequest.Builder> listServiceNetworkServiceAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServiceNetworkServiceAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkServiceAssociationsRequest)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.vpclattice.paginators.ListServiceNetworkServiceAssociationsIterable responses = client.listServiceNetworkServiceAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkServiceAssociationsIterable responses = client .listServiceNetworkServiceAssociationsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkServiceAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkServiceAssociationsIterable responses = client.listServiceNetworkServiceAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServiceNetworkServiceAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkServiceAssociationsRequest)operation.
This is a convenience which creates an instance of the
ListServiceNetworkServiceAssociationsRequest.Builderavoiding the need to create one manually viaListServiceNetworkServiceAssociationsRequest.builder()- Parameters:
listServiceNetworkServiceAssociationsRequest- AConsumerthat will call methods onListServiceNetworkServiceAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkVpcAssociations
default ListServiceNetworkVpcAssociationsResponse listServiceNetworkVpcAssociations(ListServiceNetworkVpcAssociationsRequest listServiceNetworkVpcAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the service network and VPC associations. You can filter the list either by VPC or service network. You must provide either the service network identifier or the VPC identifier.
- Parameters:
listServiceNetworkVpcAssociationsRequest-- Returns:
- Result of the ListServiceNetworkVpcAssociations operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkVpcAssociations
default ListServiceNetworkVpcAssociationsResponse listServiceNetworkVpcAssociations(Consumer<ListServiceNetworkVpcAssociationsRequest.Builder> listServiceNetworkVpcAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the service network and VPC associations. You can filter the list either by VPC or service network. You must provide either the service network identifier or the VPC identifier.
This is a convenience which creates an instance of the
ListServiceNetworkVpcAssociationsRequest.Builderavoiding the need to create one manually viaListServiceNetworkVpcAssociationsRequest.builder()- Parameters:
listServiceNetworkVpcAssociationsRequest- AConsumerthat will call methods onListServiceNetworkVpcAssociationsRequest.Builderto create a request.- Returns:
- Result of the ListServiceNetworkVpcAssociations operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkVpcAssociationsPaginator
default ListServiceNetworkVpcAssociationsIterable listServiceNetworkVpcAssociationsPaginator(ListServiceNetworkVpcAssociationsRequest listServiceNetworkVpcAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServiceNetworkVpcAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkVpcAssociationsRequest)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.vpclattice.paginators.ListServiceNetworkVpcAssociationsIterable responses = client.listServiceNetworkVpcAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkVpcAssociationsIterable responses = client .listServiceNetworkVpcAssociationsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkVpcAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkVpcAssociationsIterable responses = client.listServiceNetworkVpcAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServiceNetworkVpcAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkVpcAssociationsRequest)operation.- Parameters:
listServiceNetworkVpcAssociationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworkVpcAssociationsPaginator
default ListServiceNetworkVpcAssociationsIterable listServiceNetworkVpcAssociationsPaginator(Consumer<ListServiceNetworkVpcAssociationsRequest.Builder> listServiceNetworkVpcAssociationsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServiceNetworkVpcAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkVpcAssociationsRequest)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.vpclattice.paginators.ListServiceNetworkVpcAssociationsIterable responses = client.listServiceNetworkVpcAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkVpcAssociationsIterable responses = client .listServiceNetworkVpcAssociationsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkVpcAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworkVpcAssociationsIterable responses = client.listServiceNetworkVpcAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServiceNetworkVpcAssociations(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworkVpcAssociationsRequest)operation.
This is a convenience which creates an instance of the
ListServiceNetworkVpcAssociationsRequest.Builderavoiding the need to create one manually viaListServiceNetworkVpcAssociationsRequest.builder()- Parameters:
listServiceNetworkVpcAssociationsRequest- AConsumerthat will call methods onListServiceNetworkVpcAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworks
default ListServiceNetworksResponse listServiceNetworks(ListServiceNetworksRequest listServiceNetworksRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the service networks owned by the caller account or shared with the caller account. Also includes the account ID in the ARN to show which account owns the service network.
- Parameters:
listServiceNetworksRequest-- Returns:
- Result of the ListServiceNetworks operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworks
default ListServiceNetworksResponse listServiceNetworks(Consumer<ListServiceNetworksRequest.Builder> listServiceNetworksRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the service networks owned by the caller account or shared with the caller account. Also includes the account ID in the ARN to show which account owns the service network.
This is a convenience which creates an instance of the
ListServiceNetworksRequest.Builderavoiding the need to create one manually viaListServiceNetworksRequest.builder()- Parameters:
listServiceNetworksRequest- AConsumerthat will call methods onListServiceNetworksRequest.Builderto create a request.- Returns:
- Result of the ListServiceNetworks operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworksPaginator
default ListServiceNetworksIterable listServiceNetworksPaginator(ListServiceNetworksRequest listServiceNetworksRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServiceNetworks(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworksRequest)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.vpclattice.paginators.ListServiceNetworksIterable responses = client.listServiceNetworksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworksIterable responses = client .listServiceNetworksPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServiceNetworksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworksIterable responses = client.listServiceNetworksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServiceNetworks(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworksRequest)operation.- Parameters:
listServiceNetworksRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServiceNetworksPaginator
default ListServiceNetworksIterable listServiceNetworksPaginator(Consumer<ListServiceNetworksRequest.Builder> listServiceNetworksRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServiceNetworks(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworksRequest)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.vpclattice.paginators.ListServiceNetworksIterable responses = client.listServiceNetworksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworksIterable responses = client .listServiceNetworksPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServiceNetworksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServiceNetworksIterable responses = client.listServiceNetworksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServiceNetworks(software.amazon.awssdk.services.vpclattice.model.ListServiceNetworksRequest)operation.
This is a convenience which creates an instance of the
ListServiceNetworksRequest.Builderavoiding the need to create one manually viaListServiceNetworksRequest.builder()- Parameters:
listServiceNetworksRequest- AConsumerthat will call methods onListServiceNetworksRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServices
default ListServicesResponse listServices(ListServicesRequest listServicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the services owned by the caller account or shared with the caller account.
- Parameters:
listServicesRequest-- Returns:
- Result of the ListServices operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServices
default ListServicesResponse listServices(Consumer<ListServicesRequest.Builder> listServicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the services owned by the caller account or shared with the caller account.
This is a convenience which creates an instance of the
ListServicesRequest.Builderavoiding the need to create one manually viaListServicesRequest.builder()- Parameters:
listServicesRequest- AConsumerthat will call methods onListServicesRequest.Builderto create a request.- Returns:
- Result of the ListServices operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServicesPaginator
default ListServicesIterable listServicesPaginator(ListServicesRequest listServicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServices(software.amazon.awssdk.services.vpclattice.model.ListServicesRequest)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.vpclattice.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServicesIterable responses = client.listServicesPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServices(software.amazon.awssdk.services.vpclattice.model.ListServicesRequest)operation.- Parameters:
listServicesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listServicesPaginator
default ListServicesIterable listServicesPaginator(Consumer<ListServicesRequest.Builder> listServicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listServices(software.amazon.awssdk.services.vpclattice.model.ListServicesRequest)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.vpclattice.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListServicesIterable responses = client.listServicesPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListServicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListServicesIterable responses = client.listServicesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listServices(software.amazon.awssdk.services.vpclattice.model.ListServicesRequest)operation.
This is a convenience which creates an instance of the
ListServicesRequest.Builderavoiding the need to create one manually viaListServicesRequest.builder()- Parameters:
listServicesRequest- AConsumerthat will call methods onListServicesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the tags for the specified resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the tags for the specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargetGroups
default ListTargetGroupsResponse listTargetGroups(ListTargetGroupsRequest listTargetGroupsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists your target groups. You can narrow your search by using the filters below in your request.
- Parameters:
listTargetGroupsRequest-- Returns:
- Result of the ListTargetGroups operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargetGroups
default ListTargetGroupsResponse listTargetGroups(Consumer<ListTargetGroupsRequest.Builder> listTargetGroupsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists your target groups. You can narrow your search by using the filters below in your request.
This is a convenience which creates an instance of the
ListTargetGroupsRequest.Builderavoiding the need to create one manually viaListTargetGroupsRequest.builder()- Parameters:
listTargetGroupsRequest- AConsumerthat will call methods onListTargetGroupsRequest.Builderto create a request.- Returns:
- Result of the ListTargetGroups operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargetGroupsPaginator
default ListTargetGroupsIterable listTargetGroupsPaginator(ListTargetGroupsRequest listTargetGroupsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listTargetGroups(software.amazon.awssdk.services.vpclattice.model.ListTargetGroupsRequest)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.vpclattice.paginators.ListTargetGroupsIterable responses = client.listTargetGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListTargetGroupsIterable responses = client .listTargetGroupsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListTargetGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListTargetGroupsIterable responses = client.listTargetGroupsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listTargetGroups(software.amazon.awssdk.services.vpclattice.model.ListTargetGroupsRequest)operation.- Parameters:
listTargetGroupsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargetGroupsPaginator
default ListTargetGroupsIterable listTargetGroupsPaginator(Consumer<ListTargetGroupsRequest.Builder> listTargetGroupsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listTargetGroups(software.amazon.awssdk.services.vpclattice.model.ListTargetGroupsRequest)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.vpclattice.paginators.ListTargetGroupsIterable responses = client.listTargetGroupsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListTargetGroupsIterable responses = client .listTargetGroupsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListTargetGroupsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListTargetGroupsIterable responses = client.listTargetGroupsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listTargetGroups(software.amazon.awssdk.services.vpclattice.model.ListTargetGroupsRequest)operation.
This is a convenience which creates an instance of the
ListTargetGroupsRequest.Builderavoiding the need to create one manually viaListTargetGroupsRequest.builder()- Parameters:
listTargetGroupsRequest- AConsumerthat will call methods onListTargetGroupsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargets
default ListTargetsResponse listTargets(ListTargetsRequest listTargetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the targets for the target group. By default, all targets are included. You can use this API to check the health status of targets. You can also filter the results by target.
- Parameters:
listTargetsRequest-- Returns:
- Result of the ListTargets operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargets
default ListTargetsResponse listTargets(Consumer<ListTargetsRequest.Builder> listTargetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Lists the targets for the target group. By default, all targets are included. You can use this API to check the health status of targets. You can also filter the results by target.
This is a convenience which creates an instance of the
ListTargetsRequest.Builderavoiding the need to create one manually viaListTargetsRequest.builder()- Parameters:
listTargetsRequest- AConsumerthat will call methods onListTargetsRequest.Builderto create a request.- Returns:
- Result of the ListTargets operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargetsPaginator
default ListTargetsIterable listTargetsPaginator(ListTargetsRequest listTargetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listTargets(software.amazon.awssdk.services.vpclattice.model.ListTargetsRequest)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.vpclattice.paginators.ListTargetsIterable responses = client.listTargetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListTargetsIterable responses = client.listTargetsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListTargetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListTargetsIterable responses = client.listTargetsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listTargets(software.amazon.awssdk.services.vpclattice.model.ListTargetsRequest)operation.- Parameters:
listTargetsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTargetsPaginator
default ListTargetsIterable listTargetsPaginator(Consumer<ListTargetsRequest.Builder> listTargetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
This is a variant of
listTargets(software.amazon.awssdk.services.vpclattice.model.ListTargetsRequest)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.vpclattice.paginators.ListTargetsIterable responses = client.listTargetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.vpclattice.paginators.ListTargetsIterable responses = client.listTargetsPaginator(request); for (software.amazon.awssdk.services.vpclattice.model.ListTargetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.vpclattice.paginators.ListTargetsIterable responses = client.listTargetsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults 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
listTargets(software.amazon.awssdk.services.vpclattice.model.ListTargetsRequest)operation.
This is a convenience which creates an instance of the
ListTargetsRequest.Builderavoiding the need to create one manually viaListTargetsRequest.builder()- Parameters:
listTargetsRequest- AConsumerthat will call methods onListTargetsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putAuthPolicy
default PutAuthPolicyResponse putAuthPolicy(PutAuthPolicyRequest putAuthPolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates or updates the auth policy.
- Parameters:
putAuthPolicyRequest-- Returns:
- Result of the PutAuthPolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putAuthPolicy
default PutAuthPolicyResponse putAuthPolicy(Consumer<PutAuthPolicyRequest.Builder> putAuthPolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Creates or updates the auth policy.
This is a convenience which creates an instance of the
PutAuthPolicyRequest.Builderavoiding the need to create one manually viaPutAuthPolicyRequest.builder()- Parameters:
putAuthPolicyRequest- AConsumerthat will call methods onPutAuthPolicyRequest.Builderto create a request.- Returns:
- Result of the PutAuthPolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Attaches a resource-based permission policy to a service or service network. The policy must contain the same actions and condition statements as the Amazon Web Services Resource Access Manager permission for sharing services and service networks.
- Parameters:
putResourcePolicyRequest-- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Attaches a resource-based permission policy to a service or service network. The policy must contain the same actions and condition statements as the Amazon Web Services Resource Access Manager permission for sharing services and service networks.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builderavoiding the need to create one manually viaPutResourcePolicyRequest.builder()- Parameters:
putResourcePolicyRequest- AConsumerthat will call methods onPutResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Registers the targets with the target group. If it's a Lambda target, you can only have one target in a target group.
- Parameters:
registerTargetsRequest-- Returns:
- Result of the RegisterTargets operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- 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 ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, ServiceQuotaExceededException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Registers the targets with the target group. If it's a Lambda target, you can only have one target in a target group.
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:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.ServiceQuotaExceededException- The request would cause a service quota to be exceeded.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Adds the specified tags to the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Adds the specified tags to the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Removes the specified tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Removes the specified tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ResourceNotFoundException- The request references a resource that does not exist.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateAccessLogSubscription
default UpdateAccessLogSubscriptionResponse updateAccessLogSubscription(UpdateAccessLogSubscriptionRequest updateAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified access log subscription.
- Parameters:
updateAccessLogSubscriptionRequest-- Returns:
- Result of the UpdateAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateAccessLogSubscription
default UpdateAccessLogSubscriptionResponse updateAccessLogSubscription(Consumer<UpdateAccessLogSubscriptionRequest.Builder> updateAccessLogSubscriptionRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified access log subscription.
This is a convenience which creates an instance of the
UpdateAccessLogSubscriptionRequest.Builderavoiding the need to create one manually viaUpdateAccessLogSubscriptionRequest.builder()- Parameters:
updateAccessLogSubscriptionRequest- AConsumerthat will call methods onUpdateAccessLogSubscriptionRequest.Builderto create a request.- Returns:
- Result of the UpdateAccessLogSubscription operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateListener
default UpdateListenerResponse updateListener(UpdateListenerRequest updateListenerRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified listener for the specified service.
- Parameters:
updateListenerRequest-- Returns:
- Result of the UpdateListener operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateListener
default UpdateListenerResponse updateListener(Consumer<UpdateListenerRequest.Builder> updateListenerRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified listener for the specified service.
This is a convenience which creates an instance of the
UpdateListenerRequest.Builderavoiding the need to create one manually viaUpdateListenerRequest.builder()- Parameters:
updateListenerRequest- AConsumerthat will call methods onUpdateListenerRequest.Builderto create a request.- Returns:
- Result of the UpdateListener operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateRule
default UpdateRuleResponse updateRule(UpdateRuleRequest updateRuleRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates a rule for the listener. You can't modify a default listener rule. To modify a default listener rule, use
UpdateListener.- Parameters:
updateRuleRequest-- Returns:
- Result of the UpdateRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateRule
default UpdateRuleResponse updateRule(Consumer<UpdateRuleRequest.Builder> updateRuleRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates a rule for the listener. You can't modify a default listener rule. To modify a default listener rule, use
UpdateListener.
This is a convenience which creates an instance of the
UpdateRuleRequest.Builderavoiding the need to create one manually viaUpdateRuleRequest.builder()- Parameters:
updateRuleRequest- AConsumerthat will call methods onUpdateRuleRequest.Builderto create a request.- Returns:
- Result of the UpdateRule operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateService
default UpdateServiceResponse updateService(UpdateServiceRequest updateServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified service.
- Parameters:
updateServiceRequest-- Returns:
- Result of the UpdateService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateService
default UpdateServiceResponse updateService(Consumer<UpdateServiceRequest.Builder> updateServiceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified service.
This is a convenience which creates an instance of the
UpdateServiceRequest.Builderavoiding the need to create one manually viaUpdateServiceRequest.builder()- Parameters:
updateServiceRequest- AConsumerthat will call methods onUpdateServiceRequest.Builderto create a request.- Returns:
- Result of the UpdateService operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateServiceNetwork
default UpdateServiceNetworkResponse updateServiceNetwork(UpdateServiceNetworkRequest updateServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified service network.
- Parameters:
updateServiceNetworkRequest-- Returns:
- Result of the UpdateServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateServiceNetwork
default UpdateServiceNetworkResponse updateServiceNetwork(Consumer<UpdateServiceNetworkRequest.Builder> updateServiceNetworkRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified service network.
This is a convenience which creates an instance of the
UpdateServiceNetworkRequest.Builderavoiding the need to create one manually viaUpdateServiceNetworkRequest.builder()- Parameters:
updateServiceNetworkRequest- AConsumerthat will call methods onUpdateServiceNetworkRequest.Builderto create a request.- Returns:
- Result of the UpdateServiceNetwork operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateServiceNetworkVpcAssociation
default UpdateServiceNetworkVpcAssociationResponse updateServiceNetworkVpcAssociation(UpdateServiceNetworkVpcAssociationRequest updateServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the service network and VPC association. Once you add a security group, it cannot be removed.
- Parameters:
updateServiceNetworkVpcAssociationRequest-- Returns:
- Result of the UpdateServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateServiceNetworkVpcAssociation
default UpdateServiceNetworkVpcAssociationResponse updateServiceNetworkVpcAssociation(Consumer<UpdateServiceNetworkVpcAssociationRequest.Builder> updateServiceNetworkVpcAssociationRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the service network and VPC association. Once you add a security group, it cannot be removed.
This is a convenience which creates an instance of the
UpdateServiceNetworkVpcAssociationRequest.Builderavoiding the need to create one manually viaUpdateServiceNetworkVpcAssociationRequest.builder()- Parameters:
updateServiceNetworkVpcAssociationRequest- AConsumerthat will call methods onUpdateServiceNetworkVpcAssociationRequest.Builderto create a request.- Returns:
- Result of the UpdateServiceNetworkVpcAssociation operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateTargetGroup
default UpdateTargetGroupResponse updateTargetGroup(UpdateTargetGroupRequest updateTargetGroupRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified target group.
- Parameters:
updateTargetGroupRequest-- Returns:
- Result of the UpdateTargetGroup operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateTargetGroup
default UpdateTargetGroupResponse updateTargetGroup(Consumer<UpdateTargetGroupRequest.Builder> updateTargetGroupRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, VpcLatticeException
Updates the specified target group.
This is a convenience which creates an instance of the
UpdateTargetGroupRequest.Builderavoiding the need to create one manually viaUpdateTargetGroupRequest.builder()- Parameters:
updateTargetGroupRequest- AConsumerthat will call methods onUpdateTargetGroupRequest.Builderto create a request.- Returns:
- Result of the UpdateTargetGroup operation returned by the service.
- Throws:
ValidationException- The input does not satisfy the constraints specified by an Amazon Web Services service.AccessDeniedException- The user does not have sufficient access to perform this action.ThrottlingException- The limit on the number of requests per second was exceeded.ResourceNotFoundException- The request references a resource that does not exist.ConflictException- The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.InternalServerException- An unexpected error occurred while processing the request.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.VpcLatticeException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static VpcLatticeClient create()
Create aVpcLatticeClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static VpcLatticeClientBuilder builder()
Create a builder that can be used to configure and create aVpcLatticeClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default VpcLatticeServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-