Interface PipesClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.
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 PipesClientBuilderbuilder()Create a builder that can be used to configure and create aPipesClient.static PipesClientcreate()Create aPipesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreatePipeResponsecreatePipe(Consumer<CreatePipeRequest.Builder> createPipeRequest) Create a pipe.default CreatePipeResponsecreatePipe(CreatePipeRequest createPipeRequest) Create a pipe.default DeletePipeResponsedeletePipe(Consumer<DeletePipeRequest.Builder> deletePipeRequest) Delete an existing pipe.default DeletePipeResponsedeletePipe(DeletePipeRequest deletePipeRequest) Delete an existing pipe.default DescribePipeResponsedescribePipe(Consumer<DescribePipeRequest.Builder> describePipeRequest) Get the information about an existing pipe.default DescribePipeResponsedescribePipe(DescribePipeRequest describePipeRequest) Get the information about an existing pipe.default ListPipesResponselistPipes(Consumer<ListPipesRequest.Builder> listPipesRequest) Get the pipes associated with this account.default ListPipesResponselistPipes(ListPipesRequest listPipesRequest) Get the pipes associated with this account.default ListPipesIterablelistPipesPaginator(Consumer<ListPipesRequest.Builder> listPipesRequest) This is a variant oflistPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation.default ListPipesIterablelistPipesPaginator(ListPipesRequest listPipesRequest) This is a variant oflistPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Displays the tags associated with a pipe.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Displays the tags associated with a pipe.default PipesServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartPipeResponsestartPipe(Consumer<StartPipeRequest.Builder> startPipeRequest) Start an existing pipe.default StartPipeResponsestartPipe(StartPipeRequest startPipeRequest) Start an existing pipe.default StopPipeResponsestopPipe(Consumer<StopPipeRequest.Builder> stopPipeRequest) Stop an existing pipe.default StopPipeResponsestopPipe(StopPipeRequest stopPipeRequest) Stop an existing pipe.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified pipe.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified pipe.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified pipes.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified pipes.default UpdatePipeResponseupdatePipe(Consumer<UpdatePipeRequest.Builder> updatePipeRequest) Update an existing pipe.default UpdatePipeResponseupdatePipe(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
default CreatePipeResponse createPipe(CreatePipeRequest createPipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PipesException Create a pipe. Amazon EventBridge Pipes connect event sources to targets and reduces the need for specialized knowledge and integration code.
- Parameters:
createPipeRequest-- Returns:
- Result of the CreatePipe operation returned by the service.
- See Also:
-
createPipe
default CreatePipeResponse createPipe(Consumer<CreatePipeRequest.Builder> createPipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the CreatePipe operation returned by the service.
- See Also:
-
deletePipe
default DeletePipeResponse deletePipe(DeletePipeRequest deletePipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException Delete an existing pipe. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
- Parameters:
deletePipeRequest-- Returns:
- Result of the DeletePipe operation returned by the service.
- See Also:
-
deletePipe
default DeletePipeResponse deletePipe(Consumer<DeletePipeRequest.Builder> deletePipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the DeletePipe operation returned by the service.
- See Also:
-
describePipe
default DescribePipeResponse describePipe(DescribePipeRequest describePipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the DescribePipe operation returned by the service.
- See Also:
-
describePipe
default DescribePipeResponse describePipe(Consumer<DescribePipeRequest.Builder> describePipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the DescribePipe operation returned by the service.
- See Also:
-
listPipes
default ListPipesResponse listPipes(ListPipesRequest listPipesRequest) throws InternalException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the ListPipes operation returned by the service.
- See Also:
-
listPipes
default ListPipesResponse listPipes(Consumer<ListPipesRequest.Builder> listPipesRequest) throws InternalException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the ListPipes operation returned by the service.
- See Also:
-
listPipesPaginator
default ListPipesIterable listPipesPaginator(ListPipesRequest listPipesRequest) throws InternalException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, PipesException This is a variant of
listPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.pipes.paginators.ListPipesIterable responses = client.listPipesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.pipes.paginators.ListPipesIterable responses = client.listPipesPaginator(request); for (software.amazon.awssdk.services.pipes.model.ListPipesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.pipes.paginators.ListPipesIterable responses = client.listPipesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listPipesPaginator
default ListPipesIterable listPipesPaginator(Consumer<ListPipesRequest.Builder> listPipesRequest) throws InternalException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, PipesException This is a variant of
listPipes(software.amazon.awssdk.services.pipes.model.ListPipesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.pipes.paginators.ListPipesIterable responses = client.listPipesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.pipes.paginators.ListPipesIterable responses = client.listPipesPaginator(request); for (software.amazon.awssdk.services.pipes.model.ListPipesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.pipes.paginators.ListPipesIterable responses = client.listPipesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalException, ValidationException, NotFoundException, AwsServiceException, SdkClientException, PipesException Displays the tags associated with a pipe.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalException, ValidationException, NotFoundException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
startPipe
default StartPipeResponse startPipe(StartPipeRequest startPipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException Start an existing pipe.
- Parameters:
startPipeRequest-- Returns:
- Result of the StartPipe operation returned by the service.
- See Also:
-
startPipe
default StartPipeResponse startPipe(Consumer<StartPipeRequest.Builder> startPipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the StartPipe operation returned by the service.
- See Also:
-
stopPipe
default StopPipeResponse stopPipe(StopPipeRequest stopPipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException Stop an existing pipe.
- Parameters:
stopPipeRequest-- Returns:
- Result of the StopPipe operation returned by the service.
- See Also:
-
stopPipe
default StopPipeResponse stopPipe(Consumer<StopPipeRequest.Builder> stopPipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the StopPipe operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalException, ValidationException, NotFoundException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalException, ValidationException, NotFoundException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalException, ValidationException, NotFoundException, AwsServiceException, SdkClientException, PipesException Removes one or more tags from the specified pipes.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalException, ValidationException, NotFoundException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updatePipe
default UpdatePipeResponse updatePipe(UpdatePipeRequest updatePipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the UpdatePipe operation returned by the service.
- See Also:
-
updatePipe
default UpdatePipeResponse updatePipe(Consumer<UpdatePipeRequest.Builder> updatePipeRequest) throws InternalException, ValidationException, ThrottlingException, NotFoundException, ConflictException, AwsServiceException, SdkClientException, PipesException 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:
- Result of the UpdatePipe operation returned by the service.
- See Also:
-
create
Create aPipesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aPipesClient. -
serviceMetadata
-
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
-