Interface LaunchWizardAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Launch Wizard offers a guided way of sizing, configuring, and deploying Amazon Web Services resources for third party applications, such as Microsoft SQL Server Always On and HANA based SAP systems, without the need to manually identify and provision individual Amazon Web Services resources.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aLaunchWizardAsyncClient
.static LaunchWizardAsyncClient
create()
Create aLaunchWizardAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createDeployment
(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest) Creates a deployment for the given workload.createDeployment
(CreateDeploymentRequest createDeploymentRequest) Creates a deployment for the given workload.deleteDeployment
(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest) Deletes a deployment.deleteDeployment
(DeleteDeploymentRequest deleteDeploymentRequest) Deletes a deployment.default CompletableFuture
<GetDeploymentResponse> getDeployment
(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest) Returns information about the deployment.default CompletableFuture
<GetDeploymentResponse> getDeployment
(GetDeploymentRequest getDeploymentRequest) Returns information about the deployment.default CompletableFuture
<GetWorkloadResponse> getWorkload
(Consumer<GetWorkloadRequest.Builder> getWorkloadRequest) Returns information about a workload.default CompletableFuture
<GetWorkloadResponse> getWorkload
(GetWorkloadRequest getWorkloadRequest) Returns information about a workload.listDeploymentEvents
(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) Lists the events of a deployment.listDeploymentEvents
(ListDeploymentEventsRequest listDeploymentEventsRequest) Lists the events of a deployment.default ListDeploymentEventsPublisher
listDeploymentEventsPaginator
(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) This is a variant oflistDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.default ListDeploymentEventsPublisher
listDeploymentEventsPaginator
(ListDeploymentEventsRequest listDeploymentEventsRequest) This is a variant oflistDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.default CompletableFuture
<ListDeploymentsResponse> listDeployments
(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) Lists the deployments that have been created.default CompletableFuture
<ListDeploymentsResponse> listDeployments
(ListDeploymentsRequest listDeploymentsRequest) Lists the deployments that have been created.default ListDeploymentsPublisher
listDeploymentsPaginator
(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) This is a variant oflistDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.default ListDeploymentsPublisher
listDeploymentsPaginator
(ListDeploymentsRequest listDeploymentsRequest) This is a variant oflistDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.listWorkloadDeploymentPatterns
(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.listWorkloadDeploymentPatterns
(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.listWorkloadDeploymentPatternsPaginator
(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) This is a variant oflistWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.listWorkloadDeploymentPatternsPaginator
(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) This is a variant oflistWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.default CompletableFuture
<ListWorkloadsResponse> listWorkloads
(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) Lists the workloads.default CompletableFuture
<ListWorkloadsResponse> listWorkloads
(ListWorkloadsRequest listWorkloadsRequest) Lists the workloads.default ListWorkloadsPublisher
listWorkloadsPaginator
(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) This is a variant oflistWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.default ListWorkloadsPublisher
listWorkloadsPaginator
(ListWorkloadsRequest listWorkloadsRequest) This is a variant oflistWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createDeployment
default CompletableFuture<CreateDeploymentResponse> createDeployment(CreateDeploymentRequest createDeploymentRequest) Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the
Clone deployment
action on.- Parameters:
createDeploymentRequest
-- Returns:
- A Java Future containing the result of the CreateDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceLimitException You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createDeployment
default CompletableFuture<CreateDeploymentResponse> createDeployment(Consumer<CreateDeploymentRequest.Builder> createDeploymentRequest) Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the
Clone deployment
action on.
This is a convenience which creates an instance of the
CreateDeploymentRequest.Builder
avoiding the need to create one manually viaCreateDeploymentRequest.builder()
- Parameters:
createDeploymentRequest
- AConsumer
that will call methods onCreateDeploymentRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceLimitException You have exceeded an Launch Wizard resource limit. For example, you might have too many deployments in progress.
- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDeployment
default CompletableFuture<DeleteDeploymentResponse> deleteDeployment(DeleteDeploymentRequest deleteDeploymentRequest) Deletes a deployment.
- Parameters:
deleteDeploymentRequest
-- Returns:
- A Java Future containing the result of the DeleteDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteDeployment
default CompletableFuture<DeleteDeploymentResponse> deleteDeployment(Consumer<DeleteDeploymentRequest.Builder> deleteDeploymentRequest) Deletes a deployment.
This is a convenience which creates an instance of the
DeleteDeploymentRequest.Builder
avoiding the need to create one manually viaDeleteDeploymentRequest.builder()
- Parameters:
deleteDeploymentRequest
- AConsumer
that will call methods onDeleteDeploymentRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDeployment
default CompletableFuture<GetDeploymentResponse> getDeployment(GetDeploymentRequest getDeploymentRequest) Returns information about the deployment.
- Parameters:
getDeploymentRequest
-- Returns:
- A Java Future containing the result of the GetDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getDeployment
default CompletableFuture<GetDeploymentResponse> getDeployment(Consumer<GetDeploymentRequest.Builder> getDeploymentRequest) Returns information about the deployment.
This is a convenience which creates an instance of the
GetDeploymentRequest.Builder
avoiding the need to create one manually viaGetDeploymentRequest.builder()
- Parameters:
getDeploymentRequest
- AConsumer
that will call methods onGetDeploymentRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetDeployment operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkload
Returns information about a workload.
- Parameters:
getWorkloadRequest
-- Returns:
- A Java Future containing the result of the GetWorkload operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getWorkload
default CompletableFuture<GetWorkloadResponse> getWorkload(Consumer<GetWorkloadRequest.Builder> getWorkloadRequest) Returns information about a workload.
This is a convenience which creates an instance of the
GetWorkloadRequest.Builder
avoiding the need to create one manually viaGetWorkloadRequest.builder()
- Parameters:
getWorkloadRequest
- AConsumer
that will call methods onGetWorkloadRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetWorkload operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeploymentEvents
default CompletableFuture<ListDeploymentEventsResponse> listDeploymentEvents(ListDeploymentEventsRequest listDeploymentEventsRequest) Lists the events of a deployment.
- Parameters:
listDeploymentEventsRequest
-- Returns:
- A Java Future containing the result of the ListDeploymentEvents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeploymentEvents
default CompletableFuture<ListDeploymentEventsResponse> listDeploymentEvents(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) Lists the events of a deployment.
This is a convenience which creates an instance of the
ListDeploymentEventsRequest.Builder
avoiding the need to create one manually viaListDeploymentEventsRequest.builder()
- Parameters:
listDeploymentEventsRequest
- AConsumer
that will call methods onListDeploymentEventsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListDeploymentEvents operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeploymentEventsPaginator
default ListDeploymentEventsPublisher listDeploymentEventsPaginator(ListDeploymentEventsRequest listDeploymentEventsRequest) This is a variant of
listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.- Parameters:
listDeploymentEventsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeploymentEventsPaginator
default ListDeploymentEventsPublisher listDeploymentEventsPaginator(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) This is a variant of
listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeploymentEvents(software.amazon.awssdk.services.launchwizard.model.ListDeploymentEventsRequest)
operation.
This is a convenience which creates an instance of the
ListDeploymentEventsRequest.Builder
avoiding the need to create one manually viaListDeploymentEventsRequest.builder()
- Parameters:
listDeploymentEventsRequest
- AConsumer
that will call methods onListDeploymentEventsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeployments
default CompletableFuture<ListDeploymentsResponse> listDeployments(ListDeploymentsRequest listDeploymentsRequest) Lists the deployments that have been created.
- Parameters:
listDeploymentsRequest
-- Returns:
- A Java Future containing the result of the ListDeployments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeployments
default CompletableFuture<ListDeploymentsResponse> listDeployments(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) Lists the deployments that have been created.
This is a convenience which creates an instance of the
ListDeploymentsRequest.Builder
avoiding the need to create one manually viaListDeploymentsRequest.builder()
- Parameters:
listDeploymentsRequest
- AConsumer
that will call methods onListDeploymentsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListDeployments operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeploymentsPaginator
default ListDeploymentsPublisher listDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest) This is a variant of
listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.- Parameters:
listDeploymentsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listDeploymentsPaginator
default ListDeploymentsPublisher listDeploymentsPaginator(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) This is a variant of
listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeployments(software.amazon.awssdk.services.launchwizard.model.ListDeploymentsRequest)
operation.
This is a convenience which creates an instance of the
ListDeploymentsRequest.Builder
avoiding the need to create one manually viaListDeploymentsRequest.builder()
- Parameters:
listDeploymentsRequest
- AConsumer
that will call methods onListDeploymentsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadDeploymentPatterns
default CompletableFuture<ListWorkloadDeploymentPatternsResponse> listWorkloadDeploymentPatterns(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.
- Parameters:
listWorkloadDeploymentPatternsRequest
-- Returns:
- A Java Future containing the result of the ListWorkloadDeploymentPatterns operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadDeploymentPatterns
default CompletableFuture<ListWorkloadDeploymentPatternsResponse> listWorkloadDeploymentPatterns(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.
This is a convenience which creates an instance of the
ListWorkloadDeploymentPatternsRequest.Builder
avoiding the need to create one manually viaListWorkloadDeploymentPatternsRequest.builder()
- Parameters:
listWorkloadDeploymentPatternsRequest
- AConsumer
that will call methods onListWorkloadDeploymentPatternsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListWorkloadDeploymentPatterns operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadDeploymentPatternsPaginator
default ListWorkloadDeploymentPatternsPublisher listWorkloadDeploymentPatternsPaginator(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) This is a variant of
listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.- Parameters:
listWorkloadDeploymentPatternsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadDeploymentPatternsPaginator
default ListWorkloadDeploymentPatternsPublisher listWorkloadDeploymentPatternsPaginator(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) This is a variant of
listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloadDeploymentPatterns(software.amazon.awssdk.services.launchwizard.model.ListWorkloadDeploymentPatternsRequest)
operation.
This is a convenience which creates an instance of the
ListWorkloadDeploymentPatternsRequest.Builder
avoiding the need to create one manually viaListWorkloadDeploymentPatternsRequest.builder()
- Parameters:
listWorkloadDeploymentPatternsRequest
- AConsumer
that will call methods onListWorkloadDeploymentPatternsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- ResourceNotFoundException The specified workload or deployment resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloads
default CompletableFuture<ListWorkloadsResponse> listWorkloads(ListWorkloadsRequest listWorkloadsRequest) Lists the workloads.
- Parameters:
listWorkloadsRequest
-- Returns:
- A Java Future containing the result of the ListWorkloads operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloads
default CompletableFuture<ListWorkloadsResponse> listWorkloads(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) Lists the workloads.
This is a convenience which creates an instance of the
ListWorkloadsRequest.Builder
avoiding the need to create one manually viaListWorkloadsRequest.builder()
- Parameters:
listWorkloadsRequest
- AConsumer
that will call methods onListWorkloadsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListWorkloads operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadsPaginator
This is a variant of
listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.- Parameters:
listWorkloadsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listWorkloadsPaginator
default ListWorkloadsPublisher listWorkloadsPaginator(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) This is a variant of
listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listWorkloads(software.amazon.awssdk.services.launchwizard.model.ListWorkloadsRequest)
operation.
This is a convenience which creates an instance of the
ListWorkloadsRequest.Builder
avoiding the need to create one manually viaListWorkloadsRequest.builder()
- Parameters:
listWorkloadsRequest
- AConsumer
that will call methods onListWorkloadsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InternalServerException An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on re:Post.
- ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- LaunchWizardException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aLaunchWizardAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aLaunchWizardAsyncClient
.
-