Interface BedrockDataAutomationAsyncClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface BedrockDataAutomationAsyncClient extends AwsClient
Service client for accessing Data Automation for Amazon Bedrock asynchronously. This can be created using the staticbuilder()method.The asynchronous client performs non-blocking I/O when configured with anySdkAsyncHttpClientsupported 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.Amazon Bedrock Data Automation BuildTime
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
createBlueprint
default CompletableFuture<CreateBlueprintResponse> createBlueprint(CreateBlueprintRequest createBlueprintRequest)
Creates an Amazon Bedrock Data Automation Blueprint
- Parameters:
createBlueprintRequest- Create Blueprint Request- Returns:
- A Java Future containing the result of the CreateBlueprint 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.- ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
- ValidationException This exception is thrown when the request's input validation fails
- ConflictException This exception is thrown when there is a conflict performing an operation
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createBlueprint
default CompletableFuture<CreateBlueprintResponse> createBlueprint(Consumer<CreateBlueprintRequest.Builder> createBlueprintRequest)
Creates an Amazon Bedrock Data Automation Blueprint
This is a convenience which creates an instance of the
CreateBlueprintRequest.Builderavoiding the need to create one manually viaCreateBlueprintRequest.builder()- Parameters:
createBlueprintRequest- AConsumerthat will call methods onCreateBlueprintRequest.Builderto create a request. Create Blueprint Request- Returns:
- A Java Future containing the result of the CreateBlueprint 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.- ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
- ValidationException This exception is thrown when the request's input validation fails
- ConflictException This exception is thrown when there is a conflict performing an operation
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createBlueprintVersion
default CompletableFuture<CreateBlueprintVersionResponse> createBlueprintVersion(CreateBlueprintVersionRequest createBlueprintVersionRequest)
Creates a new version of an existing Amazon Bedrock Data Automation Blueprint
- Parameters:
createBlueprintVersionRequest- Create Blueprint Version Request- Returns:
- A Java Future containing the result of the CreateBlueprintVersion 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.- ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createBlueprintVersion
default CompletableFuture<CreateBlueprintVersionResponse> createBlueprintVersion(Consumer<CreateBlueprintVersionRequest.Builder> createBlueprintVersionRequest)
Creates a new version of an existing Amazon Bedrock Data Automation Blueprint
This is a convenience which creates an instance of the
CreateBlueprintVersionRequest.Builderavoiding the need to create one manually viaCreateBlueprintVersionRequest.builder()- Parameters:
createBlueprintVersionRequest- AConsumerthat will call methods onCreateBlueprintVersionRequest.Builderto create a request. Create Blueprint Version Request- Returns:
- A Java Future containing the result of the CreateBlueprintVersion 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.- ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createDataAutomationProject
default CompletableFuture<CreateDataAutomationProjectResponse> createDataAutomationProject(CreateDataAutomationProjectRequest createDataAutomationProjectRequest)
Creates an Amazon Bedrock Data Automation Project
- Parameters:
createDataAutomationProjectRequest- Create DataAutomationProject Request- Returns:
- A Java Future containing the result of the CreateDataAutomationProject 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.- ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
- ValidationException This exception is thrown when the request's input validation fails
- ConflictException This exception is thrown when there is a conflict performing an operation
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createDataAutomationProject
default CompletableFuture<CreateDataAutomationProjectResponse> createDataAutomationProject(Consumer<CreateDataAutomationProjectRequest.Builder> createDataAutomationProjectRequest)
Creates an Amazon Bedrock Data Automation Project
This is a convenience which creates an instance of the
CreateDataAutomationProjectRequest.Builderavoiding the need to create one manually viaCreateDataAutomationProjectRequest.builder()- Parameters:
createDataAutomationProjectRequest- AConsumerthat will call methods onCreateDataAutomationProjectRequest.Builderto create a request. Create DataAutomationProject Request- Returns:
- A Java Future containing the result of the CreateDataAutomationProject 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.- ServiceQuotaExceededException This exception is thrown when a request is made beyond the service quota
- ValidationException This exception is thrown when the request's input validation fails
- ConflictException This exception is thrown when there is a conflict performing an operation
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteBlueprint
default CompletableFuture<DeleteBlueprintResponse> deleteBlueprint(DeleteBlueprintRequest deleteBlueprintRequest)
Deletes an existing Amazon Bedrock Data Automation Blueprint
- Parameters:
deleteBlueprintRequest- Delete Blueprint Request- Returns:
- A Java Future containing the result of the DeleteBlueprint 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteBlueprint
default CompletableFuture<DeleteBlueprintResponse> deleteBlueprint(Consumer<DeleteBlueprintRequest.Builder> deleteBlueprintRequest)
Deletes an existing Amazon Bedrock Data Automation Blueprint
This is a convenience which creates an instance of the
DeleteBlueprintRequest.Builderavoiding the need to create one manually viaDeleteBlueprintRequest.builder()- Parameters:
deleteBlueprintRequest- AConsumerthat will call methods onDeleteBlueprintRequest.Builderto create a request. Delete Blueprint Request- Returns:
- A Java Future containing the result of the DeleteBlueprint 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteDataAutomationProject
default CompletableFuture<DeleteDataAutomationProjectResponse> deleteDataAutomationProject(DeleteDataAutomationProjectRequest deleteDataAutomationProjectRequest)
Deletes an existing Amazon Bedrock Data Automation Project
- Parameters:
deleteDataAutomationProjectRequest- Delete DataAutomationProject Request- Returns:
- A Java Future containing the result of the DeleteDataAutomationProject 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteDataAutomationProject
default CompletableFuture<DeleteDataAutomationProjectResponse> deleteDataAutomationProject(Consumer<DeleteDataAutomationProjectRequest.Builder> deleteDataAutomationProjectRequest)
Deletes an existing Amazon Bedrock Data Automation Project
This is a convenience which creates an instance of the
DeleteDataAutomationProjectRequest.Builderavoiding the need to create one manually viaDeleteDataAutomationProjectRequest.builder()- Parameters:
deleteDataAutomationProjectRequest- AConsumerthat will call methods onDeleteDataAutomationProjectRequest.Builderto create a request. Delete DataAutomationProject Request- Returns:
- A Java Future containing the result of the DeleteDataAutomationProject 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
getBlueprint
default CompletableFuture<GetBlueprintResponse> getBlueprint(GetBlueprintRequest getBlueprintRequest)
Gets an existing Amazon Bedrock Data Automation Blueprint
- Parameters:
getBlueprintRequest- Get Blueprint Request- Returns:
- A Java Future containing the result of the GetBlueprint 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
getBlueprint
default CompletableFuture<GetBlueprintResponse> getBlueprint(Consumer<GetBlueprintRequest.Builder> getBlueprintRequest)
Gets an existing Amazon Bedrock Data Automation Blueprint
This is a convenience which creates an instance of the
GetBlueprintRequest.Builderavoiding the need to create one manually viaGetBlueprintRequest.builder()- Parameters:
getBlueprintRequest- AConsumerthat will call methods onGetBlueprintRequest.Builderto create a request. Get Blueprint Request- Returns:
- A Java Future containing the result of the GetBlueprint 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
getDataAutomationProject
default CompletableFuture<GetDataAutomationProjectResponse> getDataAutomationProject(GetDataAutomationProjectRequest getDataAutomationProjectRequest)
Gets an existing Amazon Bedrock Data Automation Project
- Parameters:
getDataAutomationProjectRequest- Get DataAutomationProject Request- Returns:
- A Java Future containing the result of the GetDataAutomationProject 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
getDataAutomationProject
default CompletableFuture<GetDataAutomationProjectResponse> getDataAutomationProject(Consumer<GetDataAutomationProjectRequest.Builder> getDataAutomationProjectRequest)
Gets an existing Amazon Bedrock Data Automation Project
This is a convenience which creates an instance of the
GetDataAutomationProjectRequest.Builderavoiding the need to create one manually viaGetDataAutomationProjectRequest.builder()- Parameters:
getDataAutomationProjectRequest- AConsumerthat will call methods onGetDataAutomationProjectRequest.Builderto create a request. Get DataAutomationProject Request- Returns:
- A Java Future containing the result of the GetDataAutomationProject 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBlueprints
default CompletableFuture<ListBlueprintsResponse> listBlueprints(ListBlueprintsRequest listBlueprintsRequest)
Lists all existing Amazon Bedrock Data Automation Blueprints
- Parameters:
listBlueprintsRequest- List Blueprint Request- Returns:
- A Java Future containing the result of the ListBlueprints 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBlueprints
default CompletableFuture<ListBlueprintsResponse> listBlueprints(Consumer<ListBlueprintsRequest.Builder> listBlueprintsRequest)
Lists all existing Amazon Bedrock Data Automation Blueprints
This is a convenience which creates an instance of the
ListBlueprintsRequest.Builderavoiding the need to create one manually viaListBlueprintsRequest.builder()- Parameters:
listBlueprintsRequest- AConsumerthat will call methods onListBlueprintsRequest.Builderto create a request. List Blueprint Request- Returns:
- A Java Future containing the result of the ListBlueprints 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBlueprintsPaginator
default ListBlueprintsPublisher listBlueprintsPaginator(ListBlueprintsRequest listBlueprintsRequest)
This is a variant of
listBlueprints(software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsRequest)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.bedrockdataautomation.paginators.ListBlueprintsPublisher publisher = client.listBlueprintsPaginator(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.bedrockdataautomation.paginators.ListBlueprintsPublisher publisher = client.listBlueprintsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsResponse 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
listBlueprints(software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsRequest)operation.- Parameters:
listBlueprintsRequest- List Blueprint 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBlueprintsPaginator
default ListBlueprintsPublisher listBlueprintsPaginator(Consumer<ListBlueprintsRequest.Builder> listBlueprintsRequest)
This is a variant of
listBlueprints(software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsRequest)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.bedrockdataautomation.paginators.ListBlueprintsPublisher publisher = client.listBlueprintsPaginator(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.bedrockdataautomation.paginators.ListBlueprintsPublisher publisher = client.listBlueprintsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsResponse 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
listBlueprints(software.amazon.awssdk.services.bedrockdataautomation.model.ListBlueprintsRequest)operation.
This is a convenience which creates an instance of the
ListBlueprintsRequest.Builderavoiding the need to create one manually viaListBlueprintsRequest.builder()- Parameters:
listBlueprintsRequest- AConsumerthat will call methods onListBlueprintsRequest.Builderto create a request. List Blueprint 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listDataAutomationProjects
default CompletableFuture<ListDataAutomationProjectsResponse> listDataAutomationProjects(ListDataAutomationProjectsRequest listDataAutomationProjectsRequest)
Lists all existing Amazon Bedrock Data Automation Projects
- Parameters:
listDataAutomationProjectsRequest- List DataAutomationProject Request- Returns:
- A Java Future containing the result of the ListDataAutomationProjects 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listDataAutomationProjects
default CompletableFuture<ListDataAutomationProjectsResponse> listDataAutomationProjects(Consumer<ListDataAutomationProjectsRequest.Builder> listDataAutomationProjectsRequest)
Lists all existing Amazon Bedrock Data Automation Projects
This is a convenience which creates an instance of the
ListDataAutomationProjectsRequest.Builderavoiding the need to create one manually viaListDataAutomationProjectsRequest.builder()- Parameters:
listDataAutomationProjectsRequest- AConsumerthat will call methods onListDataAutomationProjectsRequest.Builderto create a request. List DataAutomationProject Request- Returns:
- A Java Future containing the result of the ListDataAutomationProjects 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listDataAutomationProjectsPaginator
default ListDataAutomationProjectsPublisher listDataAutomationProjectsPaginator(ListDataAutomationProjectsRequest listDataAutomationProjectsRequest)
This is a variant of
listDataAutomationProjects(software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsRequest)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.bedrockdataautomation.paginators.ListDataAutomationProjectsPublisher publisher = client.listDataAutomationProjectsPaginator(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.bedrockdataautomation.paginators.ListDataAutomationProjectsPublisher publisher = client.listDataAutomationProjectsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsResponse 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
listDataAutomationProjects(software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsRequest)operation.- Parameters:
listDataAutomationProjectsRequest- List DataAutomationProject 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listDataAutomationProjectsPaginator
default ListDataAutomationProjectsPublisher listDataAutomationProjectsPaginator(Consumer<ListDataAutomationProjectsRequest.Builder> listDataAutomationProjectsRequest)
This is a variant of
listDataAutomationProjects(software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsRequest)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.bedrockdataautomation.paginators.ListDataAutomationProjectsPublisher publisher = client.listDataAutomationProjectsPaginator(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.bedrockdataautomation.paginators.ListDataAutomationProjectsPublisher publisher = client.listDataAutomationProjectsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsResponse 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
listDataAutomationProjects(software.amazon.awssdk.services.bedrockdataautomation.model.ListDataAutomationProjectsRequest)operation.
This is a convenience which creates an instance of the
ListDataAutomationProjectsRequest.Builderavoiding the need to create one manually viaListDataAutomationProjectsRequest.builder()- Parameters:
listDataAutomationProjectsRequest- AConsumerthat will call methods onListDataAutomationProjectsRequest.Builderto create a request. List DataAutomationProject 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.- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateBlueprint
default CompletableFuture<UpdateBlueprintResponse> updateBlueprint(UpdateBlueprintRequest updateBlueprintRequest)
Updates an existing Amazon Bedrock Data Automation Blueprint
- Parameters:
updateBlueprintRequest- Update Blueprint Request- Returns:
- A Java Future containing the result of the UpdateBlueprint 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.- ConflictException This exception is thrown when there is a conflict performing an operation
- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateBlueprint
default CompletableFuture<UpdateBlueprintResponse> updateBlueprint(Consumer<UpdateBlueprintRequest.Builder> updateBlueprintRequest)
Updates an existing Amazon Bedrock Data Automation Blueprint
This is a convenience which creates an instance of the
UpdateBlueprintRequest.Builderavoiding the need to create one manually viaUpdateBlueprintRequest.builder()- Parameters:
updateBlueprintRequest- AConsumerthat will call methods onUpdateBlueprintRequest.Builderto create a request. Update Blueprint Request- Returns:
- A Java Future containing the result of the UpdateBlueprint 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.- ConflictException This exception is thrown when there is a conflict performing an operation
- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateDataAutomationProject
default CompletableFuture<UpdateDataAutomationProjectResponse> updateDataAutomationProject(UpdateDataAutomationProjectRequest updateDataAutomationProjectRequest)
Updates an existing Amazon Bedrock Data Automation Project
- Parameters:
updateDataAutomationProjectRequest- Update DataAutomationProject Request- Returns:
- A Java Future containing the result of the UpdateDataAutomationProject 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.- ConflictException This exception is thrown when there is a conflict performing an operation
- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateDataAutomationProject
default CompletableFuture<UpdateDataAutomationProjectResponse> updateDataAutomationProject(Consumer<UpdateDataAutomationProjectRequest.Builder> updateDataAutomationProjectRequest)
Updates an existing Amazon Bedrock Data Automation Project
This is a convenience which creates an instance of the
UpdateDataAutomationProjectRequest.Builderavoiding the need to create one manually viaUpdateDataAutomationProjectRequest.builder()- Parameters:
updateDataAutomationProjectRequest- AConsumerthat will call methods onUpdateDataAutomationProjectRequest.Builderto create a request. Update DataAutomationProject Request- Returns:
- A Java Future containing the result of the UpdateDataAutomationProject 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.- ConflictException This exception is thrown when there is a conflict performing an operation
- ValidationException This exception is thrown when the request's input validation fails
- InternalServerException This exception is thrown if there was an unexpected error during processing of request
- ThrottlingException This exception is thrown when the number of requests exceeds the limit
- AccessDeniedException This exception is thrown when a request is denied per access permissions
- ResourceNotFoundException This exception is thrown when a resource referenced by the operation does not exist
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- BedrockDataAutomationException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
serviceClientConfiguration
default BedrockDataAutomationServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
create
static BedrockDataAutomationAsyncClient create()
Create aBedrockDataAutomationAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static BedrockDataAutomationAsyncClientBuilder builder()
Create a builder that can be used to configure and create aBedrockDataAutomationAsyncClient.
-
-