Interface PipesAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.The asynchronous client performs non-blocking I/O when configured with any
SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may
perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API
call.
Amazon EventBridge Pipes connects event sources to targets. Pipes reduces the need for specialized knowledge and integration code when developing event driven architectures. This helps ensures consistency across your company’s applications. With Pipes, the target can be any available EventBridge target. To set up a pipe, you select the event source, add optional event filtering, define optional enrichment, and select the target for the event data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic PipesAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aPipesAsyncClient.static PipesAsyncClientcreate()Create aPipesAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreatePipeResponse> createPipe(Consumer<CreatePipeRequest.Builder> createPipeRequest) Create a pipe.default CompletableFuture<CreatePipeResponse> createPipe(CreatePipeRequest createPipeRequest) Create a pipe.default CompletableFuture<DeletePipeResponse> deletePipe(Consumer<DeletePipeRequest.Builder> deletePipeRequest) Delete an existing pipe.default CompletableFuture<DeletePipeResponse> deletePipe(DeletePipeRequest deletePipeRequest) Delete an existing pipe.default CompletableFuture<DescribePipeResponse> describePipe(Consumer<DescribePipeRequest.Builder> describePipeRequest) Get the information about an existing pipe.default CompletableFuture<DescribePipeResponse> describePipe(DescribePipeRequest describePipeRequest) Get the information about an existing pipe.default CompletableFuture<ListPipesResponse> listPipes(Consumer<ListPipesRequest.Builder> listPipesRequest) Get the pipes associated with this account.default CompletableFuture<ListPipesResponse> listPipes(ListPipesRequest listPipesRequest) Get the pipes associated with this account.default ListPipesPublisherlistPipesPaginator(Consumer<ListPipesRequest.Builder> listPipesRequest) This is a variant oflistPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation.default ListPipesPublisherlistPipesPaginator(ListPipesRequest listPipesRequest) This is a variant oflistPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Displays the tags associated with a pipe.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Displays the tags associated with a pipe.default PipesServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<StartPipeResponse> startPipe(Consumer<StartPipeRequest.Builder> startPipeRequest) Start an existing pipe.default CompletableFuture<StartPipeResponse> startPipe(StartPipeRequest startPipeRequest) Start an existing pipe.default CompletableFuture<StopPipeResponse> stopPipe(Consumer<StopPipeRequest.Builder> stopPipeRequest) Stop an existing pipe.default CompletableFuture<StopPipeResponse> stopPipe(StopPipeRequest stopPipeRequest) Stop an existing pipe.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified pipe.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified pipe.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified pipes.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified pipes.default CompletableFuture<UpdatePipeResponse> updatePipe(Consumer<UpdatePipeRequest.Builder> updatePipeRequest) Update an existing pipe.default CompletableFuture<UpdatePipeResponse> updatePipe(UpdatePipeRequest updatePipeRequest) Update an existing pipe.Methods 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
-
createPipe
Create a pipe. Amazon EventBridge Pipes connect event sources to targets and reduces the need for specialized knowledge and integration code.
- Parameters:
createPipeRequest-- Returns:
- A Java Future containing the result of the CreatePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- ServiceQuotaExceededException A quota has been exceeded.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createPipe
default CompletableFuture<CreatePipeResponse> createPipe(Consumer<CreatePipeRequest.Builder> createPipeRequest) Create a pipe. Amazon EventBridge Pipes connect event sources to targets and reduces the need for specialized knowledge and integration code.
This is a convenience which creates an instance of the
CreatePipeRequest.Builderavoiding the need to create one manually viaCreatePipeRequest.builder()- Parameters:
createPipeRequest- AConsumerthat will call methods onCreatePipeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreatePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- ServiceQuotaExceededException A quota has been exceeded.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePipe
Delete an existing pipe. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
- Parameters:
deletePipeRequest-- Returns:
- A Java Future containing the result of the DeletePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deletePipe
default CompletableFuture<DeletePipeResponse> deletePipe(Consumer<DeletePipeRequest.Builder> deletePipeRequest) Delete an existing pipe. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
This is a convenience which creates an instance of the
DeletePipeRequest.Builderavoiding the need to create one manually viaDeletePipeRequest.builder()- Parameters:
deletePipeRequest- AConsumerthat will call methods onDeletePipeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeletePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describePipe
default CompletableFuture<DescribePipeResponse> describePipe(DescribePipeRequest describePipeRequest) Get the information about an existing pipe. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
- Parameters:
describePipeRequest-- Returns:
- A Java Future containing the result of the DescribePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describePipe
default CompletableFuture<DescribePipeResponse> describePipe(Consumer<DescribePipeRequest.Builder> describePipeRequest) Get the information about an existing pipe. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
This is a convenience which creates an instance of the
DescribePipeRequest.Builderavoiding the need to create one manually viaDescribePipeRequest.builder()- Parameters:
describePipeRequest- AConsumerthat will call methods onDescribePipeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPipes
Get the pipes associated with this account. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
- Parameters:
listPipesRequest-- Returns:
- A Java Future containing the result of the ListPipes 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPipes
default CompletableFuture<ListPipesResponse> listPipes(Consumer<ListPipesRequest.Builder> listPipesRequest) Get the pipes associated with this account. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
This is a convenience which creates an instance of the
ListPipesRequest.Builderavoiding the need to create one manually viaListPipesRequest.builder()- Parameters:
listPipesRequest- AConsumerthat will call methods onListPipesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListPipes 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPipesPaginator
This is a variant of
listPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)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.pipes.paginators.ListPipesPublisher publisher = client.listPipesPaginator(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.pipes.paginators.ListPipesPublisher publisher = client.listPipesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pipes.model.ListPipesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.pipes.model.ListPipesResponse response) { //... }; });Please notice that the configuration of Limit 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
listPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation.- Parameters:
listPipesRequest-- 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listPipesPaginator
This is a variant of
listPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)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.pipes.paginators.ListPipesPublisher publisher = client.listPipesPaginator(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.pipes.paginators.ListPipesPublisher publisher = client.listPipesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.pipes.model.ListPipesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.pipes.model.ListPipesResponse response) { //... }; });Please notice that the configuration of Limit 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
listPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation.
This is a convenience which creates an instance of the
ListPipesRequest.Builderavoiding the need to create one manually viaListPipesRequest.builder()- Parameters:
listPipesRequest- AConsumerthat will call methods onListPipesRequest.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. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Displays the tags associated with a pipe.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Displays the tags associated with a pipe.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startPipe
Start an existing pipe.
- Parameters:
startPipeRequest-- Returns:
- A Java Future containing the result of the StartPipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startPipe
default CompletableFuture<StartPipeResponse> startPipe(Consumer<StartPipeRequest.Builder> startPipeRequest) Start an existing pipe.
This is a convenience which creates an instance of the
StartPipeRequest.Builderavoiding the need to create one manually viaStartPipeRequest.builder()- Parameters:
startPipeRequest- AConsumerthat will call methods onStartPipeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartPipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopPipe
Stop an existing pipe.
- Parameters:
stopPipeRequest-- Returns:
- A Java Future containing the result of the StopPipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopPipe
default CompletableFuture<StopPipeResponse> stopPipe(Consumer<StopPipeRequest.Builder> stopPipeRequest) Stop an existing pipe.
This is a convenience which creates an instance of the
StopPipeRequest.Builderavoiding the need to create one manually viaStopPipeRequest.builder()- Parameters:
stopPipeRequest- AConsumerthat will call methods onStopPipeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopPipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Assigns one or more tags (key-value pairs) to the specified pipe. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can use the
TagResourceaction with a pipe that already has tags. If you specify a new tag key, this tag is appended to the list of tags associated with the pipe. If you specify a tag key that is already associated with the pipe, the new tag value that you specify replaces the previous value for that tag.You can associate as many as 50 tags with a pipe.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified pipe. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can use the
TagResourceaction with a pipe that already has tags. If you specify a new tag key, this tag is appended to the list of tags associated with the pipe. If you specify a tag key that is already associated with the pipe, the new tag value that you specify replaces the previous value for that tag.You can associate as many as 50 tags with a pipe.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified pipes.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified pipes.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- NotFoundException An entity that you specified 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updatePipe
Update an existing pipe. When you call
UpdatePipe, EventBridge only the updates fields you have specified in the request; the rest remain unchanged. The exception to this is if you modify any Amazon Web Services-service specific fields in theSourceParameters,EnrichmentParameters, orTargetParametersobjects. For example,DynamoDBStreamParametersorEventBridgeEventBusParameters. EventBridge updates the fields in these objects atomically as one and overrides existing values. This is by design, and means that if you don't specify an optional field in one of theseParametersobjects, EventBridge sets that field to its system-default value during the update.For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
- Parameters:
updatePipeRequest-- Returns:
- A Java Future containing the result of the UpdatePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updatePipe
default CompletableFuture<UpdatePipeResponse> updatePipe(Consumer<UpdatePipeRequest.Builder> updatePipeRequest) Update an existing pipe. When you call
UpdatePipe, EventBridge only the updates fields you have specified in the request; the rest remain unchanged. The exception to this is if you modify any Amazon Web Services-service specific fields in theSourceParameters,EnrichmentParameters, orTargetParametersobjects. For example,DynamoDBStreamParametersorEventBridgeEventBusParameters. EventBridge updates the fields in these objects atomically as one and overrides existing values. This is by design, and means that if you don't specify an optional field in one of theseParametersobjects, EventBridge sets that field to its system-default value during the update.For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
This is a convenience which creates an instance of the
UpdatePipeRequest.Builderavoiding the need to create one manually viaUpdatePipeRequest.builder()- Parameters:
updatePipeRequest- AConsumerthat will call methods onUpdatePipeRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdatePipe 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.- InternalException This exception occurs due to unexpected causes.
- ValidationException Indicates that an error has occurred while performing a validate operation.
- ThrottlingException An action was throttled.
- NotFoundException An entity that you specified does not exist.
- ConflictException An action you attempted resulted in an exception.
- 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.
- PipesException 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 aPipesAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPipesAsyncClient.
-