Interface LaunchWizardAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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
FieldsModifier and TypeFieldDescriptionstatic final StringValue 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 LaunchWizardAsyncClientcreate()Create aLaunchWizardAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand 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 ListDeploymentEventsPublisherlistDeploymentEventsPaginator(Consumer<ListDeploymentEventsRequest.Builder> listDeploymentEventsRequest) Lists the events of a deployment.default ListDeploymentEventsPublisherlistDeploymentEventsPaginator(ListDeploymentEventsRequest listDeploymentEventsRequest) Lists the events of a deployment.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 ListDeploymentsPublisherlistDeploymentsPaginator(Consumer<ListDeploymentsRequest.Builder> listDeploymentsRequest) Lists the deployments that have been created.default ListDeploymentsPublisherlistDeploymentsPaginator(ListDeploymentsRequest listDeploymentsRequest) Lists the deployments that have been created.listWorkloadDeploymentPatterns(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.listWorkloadDeploymentPatterns(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.listWorkloadDeploymentPatternsPaginator(Consumer<ListWorkloadDeploymentPatternsRequest.Builder> listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.listWorkloadDeploymentPatternsPaginator(ListWorkloadDeploymentPatternsRequest listWorkloadDeploymentPatternsRequest) Lists the workload deployment patterns.default CompletableFuture<ListWorkloadsResponse> listWorkloads(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) Lists the workloads.default CompletableFuture<ListWorkloadsResponse> listWorkloads(ListWorkloadsRequest listWorkloadsRequest) Lists the workloads.default ListWorkloadsPublisherlistWorkloadsPaginator(Consumer<ListWorkloadsRequest.Builder> listWorkloadsRequest) Lists the workloads.default ListWorkloadsPublisherlistWorkloadsPaginator(ListWorkloadsRequest listWorkloadsRequest) Lists the workloads.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods 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 deploymentaction 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.- 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 deploymentaction on.
This is a convenience which creates an instance of the
CreateDeploymentRequest.Builderavoiding the need to create one manually viaCreateDeploymentRequest.builder()- Parameters:
createDeploymentRequest- AConsumerthat will call methods onCreateDeploymentRequest.Builderto 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.- 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.- 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.Builderavoiding the need to create one manually viaDeleteDeploymentRequest.builder()- Parameters:
deleteDeploymentRequest- AConsumerthat will call methods onDeleteDeploymentRequest.Builderto 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.- 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.- 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.Builderavoiding the need to create one manually viaGetDeploymentRequest.builder()- Parameters:
getDeploymentRequest- AConsumerthat will call methods onGetDeploymentRequest.Builderto 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.- 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.- 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.Builderavoiding the need to create one manually viaGetWorkloadRequest.builder()- Parameters:
getWorkloadRequest- AConsumerthat will call methods onGetWorkloadRequest.Builderto 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.- 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.- 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.Builderavoiding the need to create one manually viaListDeploymentEventsRequest.builder()- Parameters:
listDeploymentEventsRequest- AConsumerthat will call methods onListDeploymentEventsRequest.Builderto 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.- 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) Lists the events of a deployment.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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) Lists the events of a deployment.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentEventsPublisher publisher = client.listDeploymentEventsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListDeploymentEventsRequest.builder()- Parameters:
listDeploymentEventsRequest- AConsumerthat will call methods onListDeploymentEventsRequest.Builderto 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.- 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.- 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.Builderavoiding the need to create one manually viaListDeploymentsRequest.builder()- Parameters:
listDeploymentsRequest- AConsumerthat will call methods onListDeploymentsRequest.Builderto 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.- 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) Lists the deployments that have been created.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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) Lists the deployments that have been created.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListDeploymentsPublisher publisher = client.listDeploymentsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListDeploymentsRequest.builder()- Parameters:
listDeploymentsRequest- AConsumerthat will call methods onListDeploymentsRequest.Builderto 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.- 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.- 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.Builderavoiding the need to create one manually viaListWorkloadDeploymentPatternsRequest.builder()- Parameters:
listWorkloadDeploymentPatternsRequest- AConsumerthat will call methods onListWorkloadDeploymentPatternsRequest.Builderto 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.- 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) Lists the workload deployment patterns.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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) Lists the workload deployment patterns.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadDeploymentPatternsPublisher publisher = client.listWorkloadDeploymentPatternsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListWorkloadDeploymentPatternsRequest.builder()- Parameters:
listWorkloadDeploymentPatternsRequest- AConsumerthat will call methods onListWorkloadDeploymentPatternsRequest.Builderto 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.- 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.- 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.Builderavoiding the need to create one manually viaListWorkloadsRequest.builder()- Parameters:
listWorkloadsRequest- AConsumerthat will call methods onListWorkloadsRequest.Builderto 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.- 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
Lists the workloads.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.- 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) Lists the workloads.
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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.launchwizard.paginators.ListWorkloadsPublisher publisher = client.listWorkloadsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListWorkloadsRequest.builder()- Parameters:
listWorkloadsRequest- AConsumerthat will call methods onListWorkloadsRequest.Builderto 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.- 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:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aLaunchWizardAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLaunchWizardAsyncClient.
-