@Generated(value="software.amazon.awssdk:codegen") public interface AppMeshClient extends SdkClient
builder()
method.
AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy to monitor and control containerized microservices. App Mesh standardizes how your microservices communicate, giving you end-to-end visibility and helping to ensure high-availability for your applications.
App Mesh gives you consistent visibility and network traffic controls for every microservice in an application. You can use App Mesh with Amazon ECS (using the Amazon EC2 launch type), Amazon EKS, and Kubernetes on AWS.
App Mesh supports containerized microservice applications that use service discovery naming for their components. To
use App Mesh, you must have a containerized application running on Amazon EC2 instances, hosted in either Amazon ECS,
Amazon EKS, or Kubernetes on AWS. For more information about service discovery on Amazon ECS, see Service Discovery in the
Amazon Elastic Container Service Developer Guide. Kubernetes kube-dns
is supported. For more
information, see DNS for Services
and Pods in the Kubernetes documentation.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static AppMeshClientBuilder |
builder()
Create a builder that can be used to configure and create a
AppMeshClient . |
static AppMeshClient |
create()
Create a
AppMeshClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CreateMeshResponse |
createMesh(Consumer<CreateMeshRequest.Builder> createMeshRequest)
Creates a new service mesh.
|
default CreateMeshResponse |
createMesh(CreateMeshRequest createMeshRequest)
Creates a new service mesh.
|
default CreateRouteResponse |
createRoute(Consumer<CreateRouteRequest.Builder> createRouteRequest)
Creates a new route that is associated with a virtual router.
|
default CreateRouteResponse |
createRoute(CreateRouteRequest createRouteRequest)
Creates a new route that is associated with a virtual router.
|
default CreateVirtualNodeResponse |
createVirtualNode(Consumer<CreateVirtualNodeRequest.Builder> createVirtualNodeRequest)
Creates a new virtual node within a service mesh.
|
default CreateVirtualNodeResponse |
createVirtualNode(CreateVirtualNodeRequest createVirtualNodeRequest)
Creates a new virtual node within a service mesh.
|
default CreateVirtualRouterResponse |
createVirtualRouter(Consumer<CreateVirtualRouterRequest.Builder> createVirtualRouterRequest)
Creates a new virtual router within a service mesh.
|
default CreateVirtualRouterResponse |
createVirtualRouter(CreateVirtualRouterRequest createVirtualRouterRequest)
Creates a new virtual router within a service mesh.
|
default DeleteMeshResponse |
deleteMesh(Consumer<DeleteMeshRequest.Builder> deleteMeshRequest)
Deletes an existing service mesh.
|
default DeleteMeshResponse |
deleteMesh(DeleteMeshRequest deleteMeshRequest)
Deletes an existing service mesh.
|
default DeleteRouteResponse |
deleteRoute(Consumer<DeleteRouteRequest.Builder> deleteRouteRequest)
Deletes an existing route.
|
default DeleteRouteResponse |
deleteRoute(DeleteRouteRequest deleteRouteRequest)
Deletes an existing route.
|
default DeleteVirtualNodeResponse |
deleteVirtualNode(Consumer<DeleteVirtualNodeRequest.Builder> deleteVirtualNodeRequest)
Deletes an existing virtual node.
|
default DeleteVirtualNodeResponse |
deleteVirtualNode(DeleteVirtualNodeRequest deleteVirtualNodeRequest)
Deletes an existing virtual node.
|
default DeleteVirtualRouterResponse |
deleteVirtualRouter(Consumer<DeleteVirtualRouterRequest.Builder> deleteVirtualRouterRequest)
Deletes an existing virtual router.
|
default DeleteVirtualRouterResponse |
deleteVirtualRouter(DeleteVirtualRouterRequest deleteVirtualRouterRequest)
Deletes an existing virtual router.
|
default DescribeMeshResponse |
describeMesh(Consumer<DescribeMeshRequest.Builder> describeMeshRequest)
Describes an existing cluster.
|
default DescribeMeshResponse |
describeMesh(DescribeMeshRequest describeMeshRequest)
Describes an existing cluster.
|
default DescribeRouteResponse |
describeRoute(Consumer<DescribeRouteRequest.Builder> describeRouteRequest)
Describes an existing route.
|
default DescribeRouteResponse |
describeRoute(DescribeRouteRequest describeRouteRequest)
Describes an existing route.
|
default DescribeVirtualNodeResponse |
describeVirtualNode(Consumer<DescribeVirtualNodeRequest.Builder> describeVirtualNodeRequest)
Describes an existing virtual node.
|
default DescribeVirtualNodeResponse |
describeVirtualNode(DescribeVirtualNodeRequest describeVirtualNodeRequest)
Describes an existing virtual node.
|
default DescribeVirtualRouterResponse |
describeVirtualRouter(Consumer<DescribeVirtualRouterRequest.Builder> describeVirtualRouterRequest)
Describes an existing virtual router.
|
default DescribeVirtualRouterResponse |
describeVirtualRouter(DescribeVirtualRouterRequest describeVirtualRouterRequest)
Describes an existing virtual router.
|
default ListMeshesResponse |
listMeshes()
Returns a list of existing service meshes.
|
default ListMeshesResponse |
listMeshes(Consumer<ListMeshesRequest.Builder> listMeshesRequest)
Returns a list of existing service meshes.
|
default ListMeshesResponse |
listMeshes(ListMeshesRequest listMeshesRequest)
Returns a list of existing service meshes.
|
default ListMeshesIterable |
listMeshesPaginator()
Returns a list of existing service meshes.
|
default ListMeshesIterable |
listMeshesPaginator(Consumer<ListMeshesRequest.Builder> listMeshesRequest)
Returns a list of existing service meshes.
|
default ListMeshesIterable |
listMeshesPaginator(ListMeshesRequest listMeshesRequest)
Returns a list of existing service meshes.
|
default ListRoutesResponse |
listRoutes(Consumer<ListRoutesRequest.Builder> listRoutesRequest)
Returns a list of existing routes in a service mesh.
|
default ListRoutesResponse |
listRoutes(ListRoutesRequest listRoutesRequest)
Returns a list of existing routes in a service mesh.
|
default ListRoutesIterable |
listRoutesPaginator(Consumer<ListRoutesRequest.Builder> listRoutesRequest)
Returns a list of existing routes in a service mesh.
|
default ListRoutesIterable |
listRoutesPaginator(ListRoutesRequest listRoutesRequest)
Returns a list of existing routes in a service mesh.
|
default ListVirtualNodesResponse |
listVirtualNodes(Consumer<ListVirtualNodesRequest.Builder> listVirtualNodesRequest)
Returns a list of existing virtual nodes.
|
default ListVirtualNodesResponse |
listVirtualNodes(ListVirtualNodesRequest listVirtualNodesRequest)
Returns a list of existing virtual nodes.
|
default ListVirtualNodesIterable |
listVirtualNodesPaginator(Consumer<ListVirtualNodesRequest.Builder> listVirtualNodesRequest)
Returns a list of existing virtual nodes.
|
default ListVirtualNodesIterable |
listVirtualNodesPaginator(ListVirtualNodesRequest listVirtualNodesRequest)
Returns a list of existing virtual nodes.
|
default ListVirtualRoutersResponse |
listVirtualRouters(Consumer<ListVirtualRoutersRequest.Builder> listVirtualRoutersRequest)
Returns a list of existing virtual routers in a service mesh.
|
default ListVirtualRoutersResponse |
listVirtualRouters(ListVirtualRoutersRequest listVirtualRoutersRequest)
Returns a list of existing virtual routers in a service mesh.
|
default ListVirtualRoutersIterable |
listVirtualRoutersPaginator(Consumer<ListVirtualRoutersRequest.Builder> listVirtualRoutersRequest)
Returns a list of existing virtual routers in a service mesh.
|
default ListVirtualRoutersIterable |
listVirtualRoutersPaginator(ListVirtualRoutersRequest listVirtualRoutersRequest)
Returns a list of existing virtual routers in a service mesh.
|
static ServiceMetadata |
serviceMetadata() |
default UpdateRouteResponse |
updateRoute(Consumer<UpdateRouteRequest.Builder> updateRouteRequest)
Updates an existing route for a specified service mesh and virtual router.
|
default UpdateRouteResponse |
updateRoute(UpdateRouteRequest updateRouteRequest)
Updates an existing route for a specified service mesh and virtual router.
|
default UpdateVirtualNodeResponse |
updateVirtualNode(Consumer<UpdateVirtualNodeRequest.Builder> updateVirtualNodeRequest)
Updates an existing virtual node in a specified service mesh.
|
default UpdateVirtualNodeResponse |
updateVirtualNode(UpdateVirtualNodeRequest updateVirtualNodeRequest)
Updates an existing virtual node in a specified service mesh.
|
default UpdateVirtualRouterResponse |
updateVirtualRouter(Consumer<UpdateVirtualRouterRequest.Builder> updateVirtualRouterRequest)
Updates an existing virtual router in a specified service mesh.
|
default UpdateVirtualRouterResponse |
updateVirtualRouter(UpdateVirtualRouterRequest updateVirtualRouterRequest)
Updates an existing virtual router in a specified service mesh.
|
serviceName
close
static final String SERVICE_NAME
static AppMeshClient create()
AppMeshClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static AppMeshClientBuilder builder()
AppMeshClient
.default CreateMeshResponse createMesh(CreateMeshRequest createMeshRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new service mesh. A service mesh is a logical boundary for network traffic between the services that reside within it.
After you create your service mesh, you can create virtual nodes, virtual routers, and routes to distribute traffic between the applications in your mesh.
createMeshRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateMeshResponse createMesh(Consumer<CreateMeshRequest.Builder> createMeshRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new service mesh. A service mesh is a logical boundary for network traffic between the services that reside within it.
After you create your service mesh, you can create virtual nodes, virtual routers, and routes to distribute traffic between the applications in your mesh.
This is a convenience which creates an instance of the CreateMeshRequest.Builder
avoiding the need to
create one manually via CreateMeshRequest.builder()
createMeshRequest
- A Consumer
that will call methods on CreateMeshInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateRouteResponse createRoute(CreateRouteRequest createRouteRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new route that is associated with a virtual router.
You can use the prefix
parameter in your route specification for path-based routing of requests. For
example, if your virtual router service name is my-service.local
, and you want the route to match
requests to my-service.local/metrics
, then your prefix should be /metrics
.
If your route matches a request, you can distribute traffic to one or more target virtual nodes with relative weighting.
createRouteRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateRouteResponse createRoute(Consumer<CreateRouteRequest.Builder> createRouteRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new route that is associated with a virtual router.
You can use the prefix
parameter in your route specification for path-based routing of requests. For
example, if your virtual router service name is my-service.local
, and you want the route to match
requests to my-service.local/metrics
, then your prefix should be /metrics
.
If your route matches a request, you can distribute traffic to one or more target virtual nodes with relative weighting.
This is a convenience which creates an instance of the CreateRouteRequest.Builder
avoiding the need to
create one manually via CreateRouteRequest.builder()
createRouteRequest
- A Consumer
that will call methods on CreateRouteInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateVirtualNodeResponse createVirtualNode(CreateVirtualNodeRequest createVirtualNodeRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new virtual node within a service mesh.
A virtual node acts as logical pointer to a particular task group, such as an Amazon ECS service or a Kubernetes deployment. When you create a virtual node, you must specify the DNS service discovery name for your task group.
Any inbound traffic that your virtual node expects should be specified as a listener
. Any outbound
traffic that your virtual node expects to reach should be specified as a backend
.
The response metadata for your new virtual node contains the arn
that is associated with the virtual
node. Set this value (either the full ARN or the truncated resource name, for example,
mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment
variable for your task group's Envoy proxy container in your task definition or pod spec. This is then mapped to
the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
createVirtualNodeRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateVirtualNodeResponse createVirtualNode(Consumer<CreateVirtualNodeRequest.Builder> createVirtualNodeRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new virtual node within a service mesh.
A virtual node acts as logical pointer to a particular task group, such as an Amazon ECS service or a Kubernetes deployment. When you create a virtual node, you must specify the DNS service discovery name for your task group.
Any inbound traffic that your virtual node expects should be specified as a listener
. Any outbound
traffic that your virtual node expects to reach should be specified as a backend
.
The response metadata for your new virtual node contains the arn
that is associated with the virtual
node. Set this value (either the full ARN or the truncated resource name, for example,
mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment
variable for your task group's Envoy proxy container in your task definition or pod spec. This is then mapped to
the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
This is a convenience which creates an instance of the CreateVirtualNodeRequest.Builder
avoiding the need
to create one manually via CreateVirtualNodeRequest.builder()
createVirtualNodeRequest
- A Consumer
that will call methods on CreateVirtualNodeInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateVirtualRouterResponse createVirtualRouter(CreateVirtualRouterRequest createVirtualRouterRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new virtual router within a service mesh.
Virtual routers handle traffic for one or more service names within your mesh. After you create your virtual router, create and associate routes for your virtual router that direct incoming requests to different virtual nodes.
createVirtualRouterRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default CreateVirtualRouterResponse createVirtualRouter(Consumer<CreateVirtualRouterRequest.Builder> createVirtualRouterRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Creates a new virtual router within a service mesh.
Virtual routers handle traffic for one or more service names within your mesh. After you create your virtual router, create and associate routes for your virtual router that direct incoming requests to different virtual nodes.
This is a convenience which creates an instance of the CreateVirtualRouterRequest.Builder
avoiding the
need to create one manually via CreateVirtualRouterRequest.builder()
createVirtualRouterRequest
- A Consumer
that will call methods on CreateVirtualRouterInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteMeshResponse deleteMesh(DeleteMeshRequest deleteMeshRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing service mesh.
You must delete all resources (routes, virtual routers, virtual nodes) in the service mesh before you can delete the mesh itself.
deleteMeshRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteMeshResponse deleteMesh(Consumer<DeleteMeshRequest.Builder> deleteMeshRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing service mesh.
You must delete all resources (routes, virtual routers, virtual nodes) in the service mesh before you can delete the mesh itself.
This is a convenience which creates an instance of the DeleteMeshRequest.Builder
avoiding the need to
create one manually via DeleteMeshRequest.builder()
deleteMeshRequest
- A Consumer
that will call methods on DeleteMeshInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteRouteResponse deleteRoute(DeleteRouteRequest deleteRouteRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing route.
deleteRouteRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteRouteResponse deleteRoute(Consumer<DeleteRouteRequest.Builder> deleteRouteRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing route.
This is a convenience which creates an instance of the DeleteRouteRequest.Builder
avoiding the need to
create one manually via DeleteRouteRequest.builder()
deleteRouteRequest
- A Consumer
that will call methods on DeleteRouteInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteVirtualNodeResponse deleteVirtualNode(DeleteVirtualNodeRequest deleteVirtualNodeRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing virtual node.
deleteVirtualNodeRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteVirtualNodeResponse deleteVirtualNode(Consumer<DeleteVirtualNodeRequest.Builder> deleteVirtualNodeRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing virtual node.
This is a convenience which creates an instance of the DeleteVirtualNodeRequest.Builder
avoiding the need
to create one manually via DeleteVirtualNodeRequest.builder()
deleteVirtualNodeRequest
- A Consumer
that will call methods on DeleteVirtualNodeInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteVirtualRouterResponse deleteVirtualRouter(DeleteVirtualRouterRequest deleteVirtualRouterRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing virtual router.
You must delete any routes associated with the virtual router before you can delete the router itself.
deleteVirtualRouterRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DeleteVirtualRouterResponse deleteVirtualRouter(Consumer<DeleteVirtualRouterRequest.Builder> deleteVirtualRouterRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ResourceInUseException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Deletes an existing virtual router.
You must delete any routes associated with the virtual router before you can delete the router itself.
This is a convenience which creates an instance of the DeleteVirtualRouterRequest.Builder
avoiding the
need to create one manually via DeleteVirtualRouterRequest.builder()
deleteVirtualRouterRequest
- A Consumer
that will call methods on DeleteVirtualRouterInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ResourceInUseException
- You cannot delete the specified resource because it is in use or required by another resource.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeMeshResponse describeMesh(DescribeMeshRequest describeMeshRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing cluster.
describeMeshRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeMeshResponse describeMesh(Consumer<DescribeMeshRequest.Builder> describeMeshRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing cluster.
This is a convenience which creates an instance of the DescribeMeshRequest.Builder
avoiding the need to
create one manually via DescribeMeshRequest.builder()
describeMeshRequest
- A Consumer
that will call methods on DescribeMeshInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeRouteResponse describeRoute(DescribeRouteRequest describeRouteRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing route.
describeRouteRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeRouteResponse describeRoute(Consumer<DescribeRouteRequest.Builder> describeRouteRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing route.
This is a convenience which creates an instance of the DescribeRouteRequest.Builder
avoiding the need to
create one manually via DescribeRouteRequest.builder()
describeRouteRequest
- A Consumer
that will call methods on DescribeRouteInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeVirtualNodeResponse describeVirtualNode(DescribeVirtualNodeRequest describeVirtualNodeRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing virtual node.
describeVirtualNodeRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeVirtualNodeResponse describeVirtualNode(Consumer<DescribeVirtualNodeRequest.Builder> describeVirtualNodeRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing virtual node.
This is a convenience which creates an instance of the DescribeVirtualNodeRequest.Builder
avoiding the
need to create one manually via DescribeVirtualNodeRequest.builder()
describeVirtualNodeRequest
- A Consumer
that will call methods on DescribeVirtualNodeInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeVirtualRouterResponse describeVirtualRouter(DescribeVirtualRouterRequest describeVirtualRouterRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing virtual router.
describeVirtualRouterRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DescribeVirtualRouterResponse describeVirtualRouter(Consumer<DescribeVirtualRouterRequest.Builder> describeVirtualRouterRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Describes an existing virtual router.
This is a convenience which creates an instance of the DescribeVirtualRouterRequest.Builder
avoiding the
need to create one manually via DescribeVirtualRouterRequest.builder()
describeVirtualRouterRequest
- A Consumer
that will call methods on DescribeVirtualRouterInput.Builder
to create a
request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListMeshesResponse listMeshes() throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing service meshes.
BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
listMeshes(ListMeshesRequest)
,
AWS API
Documentationdefault ListMeshesResponse listMeshes(ListMeshesRequest listMeshesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing service meshes.
listMeshesRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListMeshesResponse listMeshes(Consumer<ListMeshesRequest.Builder> listMeshesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing service meshes.
This is a convenience which creates an instance of the ListMeshesRequest.Builder
avoiding the need to
create one manually via ListMeshesRequest.builder()
listMeshesRequest
- A Consumer
that will call methods on ListMeshesInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListMeshesIterable listMeshesPaginator() throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing service meshes.
This is a variant of listMeshes(software.amazon.awssdk.services.appmesh.model.ListMeshesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListMeshesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listMeshes(software.amazon.awssdk.services.appmesh.model.ListMeshesRequest)
operation.
BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
listMeshesPaginator(ListMeshesRequest)
,
AWS API
Documentationdefault ListMeshesIterable listMeshesPaginator(ListMeshesRequest listMeshesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing service meshes.
This is a variant of listMeshes(software.amazon.awssdk.services.appmesh.model.ListMeshesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListMeshesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listMeshes(software.amazon.awssdk.services.appmesh.model.ListMeshesRequest)
operation.
listMeshesRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListMeshesIterable listMeshesPaginator(Consumer<ListMeshesRequest.Builder> listMeshesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing service meshes.
This is a variant of listMeshes(software.amazon.awssdk.services.appmesh.model.ListMeshesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListMeshesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListMeshesIterable responses = client.listMeshesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listMeshes(software.amazon.awssdk.services.appmesh.model.ListMeshesRequest)
operation.
This is a convenience which creates an instance of the ListMeshesRequest.Builder
avoiding the need to
create one manually via ListMeshesRequest.builder()
listMeshesRequest
- A Consumer
that will call methods on ListMeshesInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRoutesResponse listRoutes(ListRoutesRequest listRoutesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing routes in a service mesh.
listRoutesRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRoutesResponse listRoutes(Consumer<ListRoutesRequest.Builder> listRoutesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing routes in a service mesh.
This is a convenience which creates an instance of the ListRoutesRequest.Builder
avoiding the need to
create one manually via ListRoutesRequest.builder()
listRoutesRequest
- A Consumer
that will call methods on ListRoutesInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRoutesIterable listRoutesPaginator(ListRoutesRequest listRoutesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing routes in a service mesh.
This is a variant of listRoutes(software.amazon.awssdk.services.appmesh.model.ListRoutesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListRoutesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRoutes(software.amazon.awssdk.services.appmesh.model.ListRoutesRequest)
operation.
listRoutesRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListRoutesIterable listRoutesPaginator(Consumer<ListRoutesRequest.Builder> listRoutesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing routes in a service mesh.
This is a variant of listRoutes(software.amazon.awssdk.services.appmesh.model.ListRoutesRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListRoutesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListRoutesIterable responses = client.listRoutesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listRoutes(software.amazon.awssdk.services.appmesh.model.ListRoutesRequest)
operation.
This is a convenience which creates an instance of the ListRoutesRequest.Builder
avoiding the need to
create one manually via ListRoutesRequest.builder()
listRoutesRequest
- A Consumer
that will call methods on ListRoutesInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualNodesResponse listVirtualNodes(ListVirtualNodesRequest listVirtualNodesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual nodes.
listVirtualNodesRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualNodesResponse listVirtualNodes(Consumer<ListVirtualNodesRequest.Builder> listVirtualNodesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual nodes.
This is a convenience which creates an instance of the ListVirtualNodesRequest.Builder
avoiding the need
to create one manually via ListVirtualNodesRequest.builder()
listVirtualNodesRequest
- A Consumer
that will call methods on ListVirtualNodesInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualNodesIterable listVirtualNodesPaginator(ListVirtualNodesRequest listVirtualNodesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual nodes.
This is a variant of
listVirtualNodes(software.amazon.awssdk.services.appmesh.model.ListVirtualNodesRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListVirtualNodesIterable responses = client.listVirtualNodesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListVirtualNodesIterable responses = client .listVirtualNodesPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListVirtualNodesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListVirtualNodesIterable responses = client.listVirtualNodesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listVirtualNodes(software.amazon.awssdk.services.appmesh.model.ListVirtualNodesRequest)
operation.
listVirtualNodesRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualNodesIterable listVirtualNodesPaginator(Consumer<ListVirtualNodesRequest.Builder> listVirtualNodesRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual nodes.
This is a variant of
listVirtualNodes(software.amazon.awssdk.services.appmesh.model.ListVirtualNodesRequest)
operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListVirtualNodesIterable responses = client.listVirtualNodesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListVirtualNodesIterable responses = client .listVirtualNodesPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListVirtualNodesResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListVirtualNodesIterable responses = client.listVirtualNodesPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listVirtualNodes(software.amazon.awssdk.services.appmesh.model.ListVirtualNodesRequest)
operation.
This is a convenience which creates an instance of the ListVirtualNodesRequest.Builder
avoiding the need
to create one manually via ListVirtualNodesRequest.builder()
listVirtualNodesRequest
- A Consumer
that will call methods on ListVirtualNodesInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualRoutersResponse listVirtualRouters(ListVirtualRoutersRequest listVirtualRoutersRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual routers in a service mesh.
listVirtualRoutersRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualRoutersResponse listVirtualRouters(Consumer<ListVirtualRoutersRequest.Builder> listVirtualRoutersRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual routers in a service mesh.
This is a convenience which creates an instance of the ListVirtualRoutersRequest.Builder
avoiding the
need to create one manually via ListVirtualRoutersRequest.builder()
listVirtualRoutersRequest
- A Consumer
that will call methods on ListVirtualRoutersInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualRoutersIterable listVirtualRoutersPaginator(ListVirtualRoutersRequest listVirtualRoutersRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual routers in a service mesh.
This is a variant of
listVirtualRouters(software.amazon.awssdk.services.appmesh.model.ListVirtualRoutersRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListVirtualRoutersIterable responses = client.listVirtualRoutersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListVirtualRoutersIterable responses = client .listVirtualRoutersPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListVirtualRoutersResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListVirtualRoutersIterable responses = client.listVirtualRoutersPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listVirtualRouters(software.amazon.awssdk.services.appmesh.model.ListVirtualRoutersRequest)
operation.
listVirtualRoutersRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default ListVirtualRoutersIterable listVirtualRoutersPaginator(Consumer<ListVirtualRoutersRequest.Builder> listVirtualRoutersRequest) throws BadRequestException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Returns a list of existing virtual routers in a service mesh.
This is a variant of
listVirtualRouters(software.amazon.awssdk.services.appmesh.model.ListVirtualRoutersRequest)
operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.appmesh.paginators.ListVirtualRoutersIterable responses = client.listVirtualRoutersPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{ @code software.amazon.awssdk.services.appmesh.paginators.ListVirtualRoutersIterable responses = client .listVirtualRoutersPaginator(request); for (software.amazon.awssdk.services.appmesh.model.ListVirtualRoutersResponse response : responses) { // do something; } }3) Use iterator directly
software.amazon.awssdk.services.appmesh.paginators.ListVirtualRoutersIterable responses = client.listVirtualRoutersPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listVirtualRouters(software.amazon.awssdk.services.appmesh.model.ListVirtualRoutersRequest)
operation.
This is a convenience which creates an instance of the ListVirtualRoutersRequest.Builder
avoiding the
need to create one manually via ListVirtualRoutersRequest.builder()
listVirtualRoutersRequest
- A Consumer
that will call methods on ListVirtualRoutersInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateRouteResponse updateRoute(UpdateRouteRequest updateRouteRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Updates an existing route for a specified service mesh and virtual router.
updateRouteRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateRouteResponse updateRoute(Consumer<UpdateRouteRequest.Builder> updateRouteRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Updates an existing route for a specified service mesh and virtual router.
This is a convenience which creates an instance of the UpdateRouteRequest.Builder
avoiding the need to
create one manually via UpdateRouteRequest.builder()
updateRouteRequest
- A Consumer
that will call methods on UpdateRouteInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateVirtualNodeResponse updateVirtualNode(UpdateVirtualNodeRequest updateVirtualNodeRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Updates an existing virtual node in a specified service mesh.
updateVirtualNodeRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateVirtualNodeResponse updateVirtualNode(Consumer<UpdateVirtualNodeRequest.Builder> updateVirtualNodeRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Updates an existing virtual node in a specified service mesh.
This is a convenience which creates an instance of the UpdateVirtualNodeRequest.Builder
avoiding the need
to create one manually via UpdateVirtualNodeRequest.builder()
updateVirtualNodeRequest
- A Consumer
that will call methods on UpdateVirtualNodeInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateVirtualRouterResponse updateVirtualRouter(UpdateVirtualRouterRequest updateVirtualRouterRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Updates an existing virtual router in a specified service mesh.
updateVirtualRouterRequest
- BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default UpdateVirtualRouterResponse updateVirtualRouter(Consumer<UpdateVirtualRouterRequest.Builder> updateVirtualRouterRequest) throws BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, LimitExceededException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, AppMeshException
Updates an existing virtual router in a specified service mesh.
This is a convenience which creates an instance of the UpdateVirtualRouterRequest.Builder
avoiding the
need to create one manually via UpdateVirtualRouterRequest.builder()
updateVirtualRouterRequest
- A Consumer
that will call methods on UpdateVirtualRouterInput.Builder
to create a request.BadRequestException
- The request syntax was malformed. Check your request syntax and try again.ConflictException
- The request contains a client token that was used for a previous update resource call with different
specifications. Try the request again with a new client token.ForbiddenException
- You do not have permissions to perform this action.InternalServerErrorException
- The request processing has failed because of an unknown error, exception, or failure.LimitExceededException
- You have exceeded a service limit for your account. For more information, see Service Limits in
the AWS App Mesh User Guide.NotFoundException
- The specified resource does not exist. Check your request syntax and try again.ServiceUnavailableException
- The request has failed due to a temporary failure of the service.TooManyRequestsException
- The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best
results, use an increasing or variable sleep interval between requests.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.AppMeshException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.