Interface EventBridgeV2AsyncClient
- 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 event bus API. An event bus receives events published by your applications and AWS services, stores them for a configurable retention period, and delivers them to subscribers. A subscriber filters events, optionally transforms them, and invokes a target such as Lambda, SQS, SNS, Kinesis, Step Functions, or an HTTP endpoint. The API manages event buses, subscribers, event sources, resource policies, and tags, and publishes events through PutEvents and PutRawEvents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aEventBridgeV2AsyncClient.static EventBridgeV2AsyncClientcreate()Create aEventBridgeV2AsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateEventBusResponse> createEventBus(Consumer<CreateEventBusRequest.Builder> createEventBusRequest) Creates an event bus.default CompletableFuture<CreateEventBusResponse> createEventBus(CreateEventBusRequest createEventBusRequest) Creates an event bus.createEventSource(Consumer<CreateEventSourceRequest.Builder> createEventSourceRequest) Creates an EventSource, which forwards events from an origin (an AWS service or another account) onto an event bus.createEventSource(CreateEventSourceRequest createEventSourceRequest) Creates an EventSource, which forwards events from an origin (an AWS service or another account) onto an event bus.createSubscriber(Consumer<CreateSubscriberRequest.Builder> createSubscriberRequest) Creates a subscriber on an event bus, which delivers matching events to the configured target.createSubscriber(CreateSubscriberRequest createSubscriberRequest) Creates a subscriber on an event bus, which delivers matching events to the configured target.default CompletableFuture<DeleteEventBusResponse> deleteEventBus(Consumer<DeleteEventBusRequest.Builder> deleteEventBusRequest) Deletes an event bus.default CompletableFuture<DeleteEventBusResponse> deleteEventBus(DeleteEventBusRequest deleteEventBusRequest) Deletes an event bus.deleteEventSource(Consumer<DeleteEventSourceRequest.Builder> deleteEventSourceRequest) Deletes an EventSource.deleteEventSource(DeleteEventSourceRequest deleteEventSourceRequest) Deletes an EventSource.deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Deletes the named resource policy attached to an event bus.deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Deletes the named resource policy attached to an event bus.deleteSubscriber(Consumer<DeleteSubscriberRequest.Builder> deleteSubscriberRequest) Deletes a subscriber.deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) Deletes a subscriber.describeEventBus(Consumer<DescribeEventBusRequest.Builder> describeEventBusRequest) Returns the full configuration and lifecycle state of an event bus.describeEventBus(DescribeEventBusRequest describeEventBusRequest) Returns the full configuration and lifecycle state of an event bus.describeEventSource(Consumer<DescribeEventSourceRequest.Builder> describeEventSourceRequest) Returns the full configuration and lifecycle state of an EventSource.describeEventSource(DescribeEventSourceRequest describeEventSourceRequest) Returns the full configuration and lifecycle state of an EventSource.describeSubscriber(Consumer<DescribeSubscriberRequest.Builder> describeSubscriberRequest) Returns the full configuration and state of a subscriber.describeSubscriber(DescribeSubscriberRequest describeSubscriberRequest) Returns the full configuration and state of a subscriber.getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the named resource policy attached to an event bus.getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Returns the named resource policy attached to an event bus.default CompletableFuture<ListEventBusesResponse> listEventBuses(Consumer<ListEventBusesRequest.Builder> listEventBusesRequest) Lists the event buses visible to the caller: buses the account owns and buses shared with it through AWS RAM.default CompletableFuture<ListEventBusesResponse> listEventBuses(ListEventBusesRequest listEventBusesRequest) Lists the event buses visible to the caller: buses the account owns and buses shared with it through AWS RAM.default ListEventBusesPublisherlistEventBusesPaginator(Consumer<ListEventBusesRequest.Builder> listEventBusesRequest) This is a variant oflistEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation.default ListEventBusesPublisherlistEventBusesPaginator(ListEventBusesRequest listEventBusesRequest) This is a variant oflistEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation.listEventSources(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) Lists EventSources as summaries.listEventSources(ListEventSourcesRequest listEventSourcesRequest) Lists EventSources as summaries.default ListEventSourcesPublisherlistEventSourcesPaginator(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) This is a variant oflistEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation.default ListEventSourcesPublisherlistEventSourcesPaginator(ListEventSourcesRequest listEventSourcesRequest) This is a variant oflistEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation.listResourcePolicies(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) Lists the resource policies attached to an event bus as summaries (policy name and revision ID).listResourcePolicies(ListResourcePoliciesRequest listResourcePoliciesRequest) Lists the resource policies attached to an event bus as summaries (policy name and revision ID).default ListResourcePoliciesPublisherlistResourcePoliciesPaginator(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) This is a variant oflistResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation.default ListResourcePoliciesPublisherlistResourcePoliciesPaginator(ListResourcePoliciesRequest listResourcePoliciesRequest) This is a variant oflistResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation.default CompletableFuture<ListSubscribersResponse> listSubscribers(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) Lists subscribers as summaries.default CompletableFuture<ListSubscribersResponse> listSubscribers(ListSubscribersRequest listSubscribersRequest) Lists subscribers as summaries.default ListSubscribersPublisherlistSubscribersPaginator(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) This is a variant oflistSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation.default ListSubscribersPublisherlistSubscribersPaginator(ListSubscribersRequest listSubscribersRequest) This is a variant oflistSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags on an event bus, subscriber, or event source.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags on an event bus, subscriber, or event source.default CompletableFuture<PutEventsResponse> putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) Publishes events to an event bus.default CompletableFuture<PutEventsResponse> putEvents(PutEventsRequest putEventsRequest) Publishes events to an event bus.default CompletableFuture<PutRawEventsResponse> putRawEvents(Consumer<PutRawEventsRequest.Builder> putRawEventsRequest) Publishes pre-shaped events to an event bus.default CompletableFuture<PutRawEventsResponse> putRawEvents(PutRawEventsRequest putRawEventsRequest) Publishes pre-shaped events to an event bus.putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Attaches a named resource policy to an event bus — the only resource type that supports policies; other resource ARNs are rejected.putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Attaches a named resource policy to an event bus — the only resource type that supports policies; other resource ARNs are rejected.default CompletableFuture<RevokeResourceResponse> revokeResource(Consumer<RevokeResourceRequest.Builder> revokeResourceRequest) Revokes a subscriber or an EventSource.default CompletableFuture<RevokeResourceResponse> revokeResource(RevokeResourceRequest revokeResourceRequest) Revokes a subscriber or an EventSource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or replaces tags on an event bus, subscriber, or event source.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds or replaces tags on an event bus, subscriber, or event source.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an event bus, subscriber, or event source.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from an event bus, subscriber, or event source.default CompletableFuture<UpdateEventBusResponse> updateEventBus(Consumer<UpdateEventBusRequest.Builder> updateEventBusRequest) Updates an event bus.default CompletableFuture<UpdateEventBusResponse> updateEventBus(UpdateEventBusRequest updateEventBusRequest) Updates an event bus.updateEventSource(Consumer<UpdateEventSourceRequest.Builder> updateEventSourceRequest) Updates an EventSource.updateEventSource(UpdateEventSourceRequest updateEventSourceRequest) Updates an EventSource.updateSubscriber(Consumer<UpdateSubscriberRequest.Builder> updateSubscriberRequest) Updates a subscriber.updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) Updates a subscriber.default EventBridgeV2AsyncWaiterwaiter()Create an instance ofEventBridgeV2AsyncWaiterusing this client.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
-
createEventBus
default CompletableFuture<CreateEventBusResponse> createEventBus(CreateEventBusRequest createEventBusRequest) Creates an event bus. Provisioning is asynchronous: the bus is returned in the CREATING state and transitions to ACTIVE when ready (see the EventBusActive waiter). Retries carrying the same ClientToken are idempotent.
- Parameters:
createEventBusRequest-- Returns:
- A Java Future containing the result of the CreateEventBus 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- IdempotentParameterMismatchException The request reuses the client token of an earlier request with different parameters. Use a new client token, or resend the earlier request unchanged.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- ResourceAlreadyExistsException A resource with the same name already exists.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEventBus
default CompletableFuture<CreateEventBusResponse> createEventBus(Consumer<CreateEventBusRequest.Builder> createEventBusRequest) Creates an event bus. Provisioning is asynchronous: the bus is returned in the CREATING state and transitions to ACTIVE when ready (see the EventBusActive waiter). Retries carrying the same ClientToken are idempotent.
This is a convenience which creates an instance of the
CreateEventBusRequest.Builderavoiding the need to create one manually viaCreateEventBusRequest.builder()- Parameters:
createEventBusRequest- AConsumerthat will call methods onCreateEventBusRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateEventBus 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- IdempotentParameterMismatchException The request reuses the client token of an earlier request with different parameters. Use a new client token, or resend the earlier request unchanged.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- ResourceAlreadyExistsException A resource with the same name already exists.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEventSource
default CompletableFuture<CreateEventSourceResponse> createEventSource(CreateEventSourceRequest createEventSourceRequest) Creates an EventSource, which forwards events from an origin (an AWS service or another account) onto an event bus. The bus must be ACTIVE. Retries carrying the same ClientToken are idempotent.
- Parameters:
createEventSourceRequest-- Returns:
- A Java Future containing the result of the CreateEventSource 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- IdempotentParameterMismatchException The request reuses the client token of an earlier request with different parameters. Use a new client token, or resend the earlier request unchanged.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- ResourceAlreadyExistsException A resource with the same name already exists.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createEventSource
default CompletableFuture<CreateEventSourceResponse> createEventSource(Consumer<CreateEventSourceRequest.Builder> createEventSourceRequest) Creates an EventSource, which forwards events from an origin (an AWS service or another account) onto an event bus. The bus must be ACTIVE. Retries carrying the same ClientToken are idempotent.
This is a convenience which creates an instance of the
CreateEventSourceRequest.Builderavoiding the need to create one manually viaCreateEventSourceRequest.builder()- Parameters:
createEventSourceRequest- AConsumerthat will call methods onCreateEventSourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateEventSource 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- IdempotentParameterMismatchException The request reuses the client token of an earlier request with different parameters. Use a new client token, or resend the earlier request unchanged.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- ResourceAlreadyExistsException A resource with the same name already exists.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSubscriber
default CompletableFuture<CreateSubscriberResponse> createSubscriber(CreateSubscriberRequest createSubscriberRequest) Creates a subscriber on an event bus, which delivers matching events to the configured target. The bus must be ACTIVE. Retries carrying the same ClientToken are idempotent.
- Parameters:
createSubscriberRequest-- Returns:
- A Java Future containing the result of the CreateSubscriber 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- IdempotentParameterMismatchException The request reuses the client token of an earlier request with different parameters. Use a new client token, or resend the earlier request unchanged.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- ResourceAlreadyExistsException A resource with the same name already exists.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createSubscriber
default CompletableFuture<CreateSubscriberResponse> createSubscriber(Consumer<CreateSubscriberRequest.Builder> createSubscriberRequest) Creates a subscriber on an event bus, which delivers matching events to the configured target. The bus must be ACTIVE. Retries carrying the same ClientToken are idempotent.
This is a convenience which creates an instance of the
CreateSubscriberRequest.Builderavoiding the need to create one manually viaCreateSubscriberRequest.builder()- Parameters:
createSubscriberRequest- AConsumerthat will call methods onCreateSubscriberRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateSubscriber 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- IdempotentParameterMismatchException The request reuses the client token of an earlier request with different parameters. Use a new client token, or resend the earlier request unchanged.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- ResourceAlreadyExistsException A resource with the same name already exists.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEventBus
default CompletableFuture<DeleteEventBusResponse> deleteEventBus(DeleteEventBusRequest deleteEventBusRequest) Deletes an event bus. Deletion is asynchronous: the bus moves to DELETING and disappears when complete (see the EventBusDeleted waiter). A bus with subscribers or event sources cannot be deleted.
- Parameters:
deleteEventBusRequest-- Returns:
- A Java Future containing the result of the DeleteEventBus 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- ResourceInUseException The resource is in use and cannot be deleted. For example, an event bus with subscribers or event sources cannot be deleted until they are deleted.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEventBus
default CompletableFuture<DeleteEventBusResponse> deleteEventBus(Consumer<DeleteEventBusRequest.Builder> deleteEventBusRequest) Deletes an event bus. Deletion is asynchronous: the bus moves to DELETING and disappears when complete (see the EventBusDeleted waiter). A bus with subscribers or event sources cannot be deleted.
This is a convenience which creates an instance of the
DeleteEventBusRequest.Builderavoiding the need to create one manually viaDeleteEventBusRequest.builder()- Parameters:
deleteEventBusRequest- AConsumerthat will call methods onDeleteEventBusRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteEventBus 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- ResourceInUseException The resource is in use and cannot be deleted. For example, an event bus with subscribers or event sources cannot be deleted until they are deleted.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEventSource
default CompletableFuture<DeleteEventSourceResponse> deleteEventSource(DeleteEventSourceRequest deleteEventSourceRequest) Deletes an EventSource. Forwarding from its origin stops.
- Parameters:
deleteEventSourceRequest-- Returns:
- A Java Future containing the result of the DeleteEventSource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteEventSource
default CompletableFuture<DeleteEventSourceResponse> deleteEventSource(Consumer<DeleteEventSourceRequest.Builder> deleteEventSourceRequest) Deletes an EventSource. Forwarding from its origin stops.
This is a convenience which creates an instance of the
DeleteEventSourceRequest.Builderavoiding the need to create one manually viaDeleteEventSourceRequest.builder()- Parameters:
deleteEventSourceRequest- AConsumerthat will call methods onDeleteEventSourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteEventSource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Deletes the named resource policy attached to an event bus.
- Parameters:
deleteResourcePolicyRequest-- Returns:
- A Java Future containing the result of the DeleteResourcePolicy 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- ConflictException A client-supplied precondition (e.g. ExpectedRevisionId on a resource-policy write)
did not match the current state of the resource. Retrying the same request will fail again; re-read the
resource and re-evaluate before retrying.
A conditional request is not retry-safe on its own. If an earlier attempt committed but its response never reached the caller, retrying fails with this error, which is indistinguishable from another writer having won. Compare the resource's current contents with what the request intended: a successful attempt stores a revision ID the caller never saw, so the revision alone cannot tell the two apart, but matching contents mean the change took effect.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Deletes the named resource policy attached to an event bus.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builderavoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()- Parameters:
deleteResourcePolicyRequest- AConsumerthat will call methods onDeleteResourcePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteResourcePolicy 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- ConflictException A client-supplied precondition (e.g. ExpectedRevisionId on a resource-policy write)
did not match the current state of the resource. Retrying the same request will fail again; re-read the
resource and re-evaluate before retrying.
A conditional request is not retry-safe on its own. If an earlier attempt committed but its response never reached the caller, retrying fails with this error, which is indistinguishable from another writer having won. Compare the resource's current contents with what the request intended: a successful attempt stores a revision ID the caller never saw, so the revision alone cannot tell the two apart, but matching contents mean the change took effect.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSubscriber
default CompletableFuture<DeleteSubscriberResponse> deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) Deletes a subscriber. Events are no longer delivered to its target.
- Parameters:
deleteSubscriberRequest-- Returns:
- A Java Future containing the result of the DeleteSubscriber 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSubscriber
default CompletableFuture<DeleteSubscriberResponse> deleteSubscriber(Consumer<DeleteSubscriberRequest.Builder> deleteSubscriberRequest) Deletes a subscriber. Events are no longer delivered to its target.
This is a convenience which creates an instance of the
DeleteSubscriberRequest.Builderavoiding the need to create one manually viaDeleteSubscriberRequest.builder()- Parameters:
deleteSubscriberRequest- AConsumerthat will call methods onDeleteSubscriberRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteSubscriber 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeEventBus
default CompletableFuture<DescribeEventBusResponse> describeEventBus(DescribeEventBusRequest describeEventBusRequest) Returns the full configuration and lifecycle state of an event bus.
- Parameters:
describeEventBusRequest-- Returns:
- A Java Future containing the result of the DescribeEventBus 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeEventBus
default CompletableFuture<DescribeEventBusResponse> describeEventBus(Consumer<DescribeEventBusRequest.Builder> describeEventBusRequest) Returns the full configuration and lifecycle state of an event bus.
This is a convenience which creates an instance of the
DescribeEventBusRequest.Builderavoiding the need to create one manually viaDescribeEventBusRequest.builder()- Parameters:
describeEventBusRequest- AConsumerthat will call methods onDescribeEventBusRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeEventBus 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeEventSource
default CompletableFuture<DescribeEventSourceResponse> describeEventSource(DescribeEventSourceRequest describeEventSourceRequest) Returns the full configuration and lifecycle state of an EventSource.
- Parameters:
describeEventSourceRequest-- Returns:
- A Java Future containing the result of the DescribeEventSource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeEventSource
default CompletableFuture<DescribeEventSourceResponse> describeEventSource(Consumer<DescribeEventSourceRequest.Builder> describeEventSourceRequest) Returns the full configuration and lifecycle state of an EventSource.
This is a convenience which creates an instance of the
DescribeEventSourceRequest.Builderavoiding the need to create one manually viaDescribeEventSourceRequest.builder()- Parameters:
describeEventSourceRequest- AConsumerthat will call methods onDescribeEventSourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeEventSource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSubscriber
default CompletableFuture<DescribeSubscriberResponse> describeSubscriber(DescribeSubscriberRequest describeSubscriberRequest) Returns the full configuration and state of a subscriber.
- Parameters:
describeSubscriberRequest-- Returns:
- A Java Future containing the result of the DescribeSubscriber 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeSubscriber
default CompletableFuture<DescribeSubscriberResponse> describeSubscriber(Consumer<DescribeSubscriberRequest.Builder> describeSubscriberRequest) Returns the full configuration and state of a subscriber.
This is a convenience which creates an instance of the
DescribeSubscriberRequest.Builderavoiding the need to create one manually viaDescribeSubscriberRequest.builder()- Parameters:
describeSubscriberRequest- AConsumerthat will call methods onDescribeSubscriberRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeSubscriber 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Returns the named resource policy attached to an event bus. Fails with ResourceNotFoundException when the event bus or the named policy does not exist.
- Parameters:
getResourcePolicyRequest-- Returns:
- A Java Future containing the result of the GetResourcePolicy 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the named resource policy attached to an event bus. Fails with ResourceNotFoundException when the event bus or the named policy does not exist.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetResourcePolicy 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventBuses
default CompletableFuture<ListEventBusesResponse> listEventBuses(ListEventBusesRequest listEventBusesRequest) Lists the event buses visible to the caller: buses the account owns and buses shared with it through AWS RAM. Shared entries carry identity fields only (Name, EventBusArn, EventBusAccountId); owned entries carry every summary field. Set EventBusAccountId to scope the list to one owner account.
- Parameters:
listEventBusesRequest-- Returns:
- A Java Future containing the result of the ListEventBuses 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventBuses
default CompletableFuture<ListEventBusesResponse> listEventBuses(Consumer<ListEventBusesRequest.Builder> listEventBusesRequest) Lists the event buses visible to the caller: buses the account owns and buses shared with it through AWS RAM. Shared entries carry identity fields only (Name, EventBusArn, EventBusAccountId); owned entries carry every summary field. Set EventBusAccountId to scope the list to one owner account.
This is a convenience which creates an instance of the
ListEventBusesRequest.Builderavoiding the need to create one manually viaListEventBusesRequest.builder()- Parameters:
listEventBusesRequest- AConsumerthat will call methods onListEventBusesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListEventBuses 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventBusesPaginator
default ListEventBusesPublisher listEventBusesPaginator(ListEventBusesRequest listEventBusesRequest) This is a variant of
listEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)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.eventbridgev2.paginators.ListEventBusesPublisher publisher = client.listEventBusesPaginator(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.eventbridgev2.paginators.ListEventBusesPublisher publisher = client.listEventBusesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesResponse 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
listEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation.- Parameters:
listEventBusesRequest-- 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventBusesPaginator
default ListEventBusesPublisher listEventBusesPaginator(Consumer<ListEventBusesRequest.Builder> listEventBusesRequest) This is a variant of
listEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)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.eventbridgev2.paginators.ListEventBusesPublisher publisher = client.listEventBusesPaginator(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.eventbridgev2.paginators.ListEventBusesPublisher publisher = client.listEventBusesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesResponse 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
listEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation.
This is a convenience which creates an instance of the
ListEventBusesRequest.Builderavoiding the need to create one manually viaListEventBusesRequest.builder()- Parameters:
listEventBusesRequest- AConsumerthat will call methods onListEventBusesRequest.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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSources
default CompletableFuture<ListEventSourcesResponse> listEventSources(ListEventSourcesRequest listEventSourcesRequest) Lists EventSources as summaries. By default the list spans the EventSources the caller account owns; set EventBusArn to scope it to one bus. Use DescribeEventSource to retrieve full configuration.
- Parameters:
listEventSourcesRequest-- Returns:
- A Java Future containing the result of the ListEventSources 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSources
default CompletableFuture<ListEventSourcesResponse> listEventSources(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) Lists EventSources as summaries. By default the list spans the EventSources the caller account owns; set EventBusArn to scope it to one bus. Use DescribeEventSource to retrieve full configuration.
This is a convenience which creates an instance of the
ListEventSourcesRequest.Builderavoiding the need to create one manually viaListEventSourcesRequest.builder()- Parameters:
listEventSourcesRequest- AConsumerthat will call methods onListEventSourcesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListEventSources 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSourcesPaginator
default ListEventSourcesPublisher listEventSourcesPaginator(ListEventSourcesRequest listEventSourcesRequest) This is a variant of
listEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)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.eventbridgev2.paginators.ListEventSourcesPublisher publisher = client.listEventSourcesPaginator(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.eventbridgev2.paginators.ListEventSourcesPublisher publisher = client.listEventSourcesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesResponse 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
listEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation.- Parameters:
listEventSourcesRequest-- 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listEventSourcesPaginator
default ListEventSourcesPublisher listEventSourcesPaginator(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) This is a variant of
listEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)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.eventbridgev2.paginators.ListEventSourcesPublisher publisher = client.listEventSourcesPaginator(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.eventbridgev2.paginators.ListEventSourcesPublisher publisher = client.listEventSourcesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesResponse 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
listEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation.
This is a convenience which creates an instance of the
ListEventSourcesRequest.Builderavoiding the need to create one manually viaListEventSourcesRequest.builder()- Parameters:
listEventSourcesRequest- AConsumerthat will call methods onListEventSourcesRequest.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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listResourcePolicies
default CompletableFuture<ListResourcePoliciesResponse> listResourcePolicies(ListResourcePoliciesRequest listResourcePoliciesRequest) Lists the resource policies attached to an event bus as summaries (policy name and revision ID). Use GetResourcePolicy to retrieve a policy document.
- Parameters:
listResourcePoliciesRequest-- Returns:
- A Java Future containing the result of the ListResourcePolicies 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listResourcePolicies
default CompletableFuture<ListResourcePoliciesResponse> listResourcePolicies(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) Lists the resource policies attached to an event bus as summaries (policy name and revision ID). Use GetResourcePolicy to retrieve a policy document.
This is a convenience which creates an instance of the
ListResourcePoliciesRequest.Builderavoiding the need to create one manually viaListResourcePoliciesRequest.builder()- Parameters:
listResourcePoliciesRequest- AConsumerthat will call methods onListResourcePoliciesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListResourcePolicies 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listResourcePoliciesPaginator
default ListResourcePoliciesPublisher listResourcePoliciesPaginator(ListResourcePoliciesRequest listResourcePoliciesRequest) This is a variant of
listResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)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.eventbridgev2.paginators.ListResourcePoliciesPublisher publisher = client.listResourcePoliciesPaginator(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.eventbridgev2.paginators.ListResourcePoliciesPublisher publisher = client.listResourcePoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesResponse 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
listResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation.- Parameters:
listResourcePoliciesRequest-- 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listResourcePoliciesPaginator
default ListResourcePoliciesPublisher listResourcePoliciesPaginator(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) This is a variant of
listResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)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.eventbridgev2.paginators.ListResourcePoliciesPublisher publisher = client.listResourcePoliciesPaginator(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.eventbridgev2.paginators.ListResourcePoliciesPublisher publisher = client.listResourcePoliciesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesResponse 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
listResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation.
This is a convenience which creates an instance of the
ListResourcePoliciesRequest.Builderavoiding the need to create one manually viaListResourcePoliciesRequest.builder()- Parameters:
listResourcePoliciesRequest- AConsumerthat will call methods onListResourcePoliciesRequest.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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscribers
default CompletableFuture<ListSubscribersResponse> listSubscribers(ListSubscribersRequest listSubscribersRequest) Lists subscribers as summaries. By default the list spans the subscribers the caller account owns across all buses; set EventBusArn to scope it to one bus. Use DescribeSubscriber to retrieve full configuration.
- Parameters:
listSubscribersRequest-- Returns:
- A Java Future containing the result of the ListSubscribers 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscribers
default CompletableFuture<ListSubscribersResponse> listSubscribers(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) Lists subscribers as summaries. By default the list spans the subscribers the caller account owns across all buses; set EventBusArn to scope it to one bus. Use DescribeSubscriber to retrieve full configuration.
This is a convenience which creates an instance of the
ListSubscribersRequest.Builderavoiding the need to create one manually viaListSubscribersRequest.builder()- Parameters:
listSubscribersRequest- AConsumerthat will call methods onListSubscribersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListSubscribers 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscribersPaginator
default ListSubscribersPublisher listSubscribersPaginator(ListSubscribersRequest listSubscribersRequest) This is a variant of
listSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)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.eventbridgev2.paginators.ListSubscribersPublisher publisher = client.listSubscribersPaginator(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.eventbridgev2.paginators.ListSubscribersPublisher publisher = client.listSubscribersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersResponse 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
listSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation.- Parameters:
listSubscribersRequest-- 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSubscribersPaginator
default ListSubscribersPublisher listSubscribersPaginator(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) This is a variant of
listSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)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.eventbridgev2.paginators.ListSubscribersPublisher publisher = client.listSubscribersPaginator(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.eventbridgev2.paginators.ListSubscribersPublisher publisher = client.listSubscribersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersResponse 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
listSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation.
This is a convenience which creates an instance of the
ListSubscribersRequest.Builderavoiding the need to create one manually viaListSubscribersRequest.builder()- Parameters:
listSubscribersRequest- AConsumerthat will call methods onListSubscribersRequest.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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception 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) Lists the tags on an event bus, subscriber, or event source.
- 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception 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) Lists the tags on an event bus, subscriber, or event source.
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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putEvents
Publishes events to an event bus.
- Parameters:
putEventsRequest-- Returns:
- A Java Future containing the result of the PutEvents 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putEvents
default CompletableFuture<PutEventsResponse> putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) Publishes events to an event bus.
This is a convenience which creates an instance of the
PutEventsRequest.Builderavoiding the need to create one manually viaPutEventsRequest.builder()- Parameters:
putEventsRequest- AConsumerthat will call methods onPutEventsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutEvents 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putRawEvents
default CompletableFuture<PutRawEventsResponse> putRawEvents(PutRawEventsRequest putRawEventsRequest) Publishes pre-shaped events to an event bus.
- Parameters:
putRawEventsRequest-- Returns:
- A Java Future containing the result of the PutRawEvents 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- SchemaRegistryUnavailableException The configured schema registry could not be reached. Retry the request.
- InternalException The request failed because of an internal service error. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putRawEvents
default CompletableFuture<PutRawEventsResponse> putRawEvents(Consumer<PutRawEventsRequest.Builder> putRawEventsRequest) Publishes pre-shaped events to an event bus.
This is a convenience which creates an instance of the
PutRawEventsRequest.Builderavoiding the need to create one manually viaPutRawEventsRequest.builder()- Parameters:
putRawEventsRequest- AConsumerthat will call methods onPutRawEventsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutRawEvents 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- SchemaRegistryUnavailableException The configured schema registry could not be reached. Retry the request.
- InternalException The request failed because of an internal service error. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Attaches a named resource policy to an event bus — the only resource type that supports policies; other resource ARNs are rejected. Each bus holds two named policies: "default" (customer-managed, full IAM policy language including Deny) and "AWS_RAM" (written exclusively by AWS Resource Access Manager to reflect resource shares). Both policies are evaluated on cross-account authorization; an explicit Deny in either overrides an Allow in the other. Operations that omit PolicyName target "default". A "default" policy that would grant public access is rejected with PublicPolicyException and is not attached; this check is always on and cannot be disabled.
- Parameters:
putResourcePolicyRequest-- Returns:
- A Java Future containing the result of the PutResourcePolicy 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.- PolicyLengthExceededException The policy document is larger than the account's resource policy size quota, or larger than the service maximum.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- ConflictException A client-supplied precondition (e.g. ExpectedRevisionId on a resource-policy write)
did not match the current state of the resource. Retrying the same request will fail again; re-read the
resource and re-evaluate before retrying.
A conditional request is not retry-safe on its own. If an earlier attempt committed but its response never reached the caller, retrying fails with this error, which is indistinguishable from another writer having won. Compare the resource's current contents with what the request intended: a successful attempt stores a revision ID the caller never saw, so the revision alone cannot tell the two apart, but matching contents mean the change took effect.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- PublicPolicyException The policy was rejected because it would grant public access to the event bus. A statement grants public access when its principal is a wildcard and no condition limits the callers to specific AWS accounts or principals. To fix it, replace the wildcard principal with specific principals, or add a condition that limits the callers to specific AWS accounts. Conditions on event content (events:source, events:detail-type, events:Metadata/*) do not identify the caller and do not make a wildcard principal non-public. Returned only for the "default" policy; the "AWS_RAM" policy is composed by AWS Resource Access Manager and never grants public access.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Attaches a named resource policy to an event bus — the only resource type that supports policies; other resource ARNs are rejected. Each bus holds two named policies: "default" (customer-managed, full IAM policy language including Deny) and "AWS_RAM" (written exclusively by AWS Resource Access Manager to reflect resource shares). Both policies are evaluated on cross-account authorization; an explicit Deny in either overrides an Allow in the other. Operations that omit PolicyName target "default". A "default" policy that would grant public access is rejected with PublicPolicyException and is not attached; this check is always on and cannot be disabled.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builderavoiding the need to create one manually viaPutResourcePolicyRequest.builder()- Parameters:
putResourcePolicyRequest- AConsumerthat will call methods onPutResourcePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutResourcePolicy 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.- PolicyLengthExceededException The policy document is larger than the account's resource policy size quota, or larger than the service maximum.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- ConflictException A client-supplied precondition (e.g. ExpectedRevisionId on a resource-policy write)
did not match the current state of the resource. Retrying the same request will fail again; re-read the
resource and re-evaluate before retrying.
A conditional request is not retry-safe on its own. If an earlier attempt committed but its response never reached the caller, retrying fails with this error, which is indistinguishable from another writer having won. Compare the resource's current contents with what the request intended: a successful attempt stores a revision ID the caller never saw, so the revision alone cannot tell the two apart, but matching contents mean the change took effect.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- PublicPolicyException The policy was rejected because it would grant public access to the event bus. A statement grants public access when its principal is a wildcard and no condition limits the callers to specific AWS accounts or principals. To fix it, replace the wildcard principal with specific principals, or add a condition that limits the callers to specific AWS accounts. Conditions on event content (events:source, events:detail-type, events:Metadata/*) do not identify the caller and do not make a wildcard principal non-public. Returned only for the "default" policy; the "AWS_RAM" policy is composed by AWS Resource Access Manager and never grants public access.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
revokeResource
default CompletableFuture<RevokeResourceResponse> revokeResource(RevokeResourceRequest revokeResourceRequest) Revokes a subscriber or an EventSource. The bus owner calls this to withdraw a misbehaving resource attached to their bus. Revocation is terminal: there is no operation that clears it. A revoked resource refuses mutating operations with InvalidStateException; delete stays available for cleanup.
- Parameters:
revokeResourceRequest-- Returns:
- A Java Future containing the result of the RevokeResource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
revokeResource
default CompletableFuture<RevokeResourceResponse> revokeResource(Consumer<RevokeResourceRequest.Builder> revokeResourceRequest) Revokes a subscriber or an EventSource. The bus owner calls this to withdraw a misbehaving resource attached to their bus. Revocation is terminal: there is no operation that clears it. A revoked resource refuses mutating operations with InvalidStateException; delete stays available for cleanup.
This is a convenience which creates an instance of the
RevokeResourceRequest.Builderavoiding the need to create one manually viaRevokeResourceRequest.builder()- Parameters:
revokeResourceRequest- AConsumerthat will call methods onRevokeResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RevokeResource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds or replaces tags on an event bus, subscriber, or event source.
- 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception 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) Adds or replaces tags on an event bus, subscriber, or event source.
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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception 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 tags from an event bus, subscriber, or event source.
- 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception 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 tags from an event bus, subscriber, or event source.
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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateEventBus
default CompletableFuture<UpdateEventBusResponse> updateEventBus(UpdateEventBusRequest updateEventBusRequest) Updates an event bus. The update is asynchronous: the bus moves to UPDATING and returns to ACTIVE when the change is applied. Fields omitted from the request are left unchanged.
- Parameters:
updateEventBusRequest-- Returns:
- A Java Future containing the result of the UpdateEventBus 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateEventBus
default CompletableFuture<UpdateEventBusResponse> updateEventBus(Consumer<UpdateEventBusRequest.Builder> updateEventBusRequest) Updates an event bus. The update is asynchronous: the bus moves to UPDATING and returns to ACTIVE when the change is applied. Fields omitted from the request are left unchanged.
This is a convenience which creates an instance of the
UpdateEventBusRequest.Builderavoiding the need to create one manually viaUpdateEventBusRequest.builder()- Parameters:
updateEventBusRequest- AConsumerthat will call methods onUpdateEventBusRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateEventBus 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateEventSource
default CompletableFuture<UpdateEventSourceResponse> updateEventSource(UpdateEventSourceRequest updateEventSourceRequest) Updates an EventSource. Fields omitted from the request are left unchanged.
- Parameters:
updateEventSourceRequest-- Returns:
- A Java Future containing the result of the UpdateEventSource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateEventSource
default CompletableFuture<UpdateEventSourceResponse> updateEventSource(Consumer<UpdateEventSourceRequest.Builder> updateEventSourceRequest) Updates an EventSource. Fields omitted from the request are left unchanged.
This is a convenience which creates an instance of the
UpdateEventSourceRequest.Builderavoiding the need to create one manually viaUpdateEventSourceRequest.builder()- Parameters:
updateEventSourceRequest- AConsumerthat will call methods onUpdateEventSourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateEventSource 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.- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSubscriber
default CompletableFuture<UpdateSubscriberResponse> updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) Updates a subscriber. Fields omitted from the request are left unchanged.
- Parameters:
updateSubscriberRequest-- Returns:
- A Java Future containing the result of the UpdateSubscriber 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateSubscriber
default CompletableFuture<UpdateSubscriberResponse> updateSubscriber(Consumer<UpdateSubscriberRequest.Builder> updateSubscriberRequest) Updates a subscriber. Fields omitted from the request are left unchanged.
This is a convenience which creates an instance of the
UpdateSubscriberRequest.Builderavoiding the need to create one manually viaUpdateSubscriberRequest.builder()- Parameters:
updateSubscriberRequest- AConsumerthat will call methods onUpdateSubscriberRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateSubscriber 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.- LimitExceededException The request would exceed a service quota for the account.
- AccessDeniedException The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
- ResourceNotFoundException The resource does not exist.
- ThrottlingException The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
- InvalidInputException A request parameter is missing or not valid.
- InternalException The request failed because of an internal service error. Retry the request.
- ConcurrentModificationException Another change to the resource is already in progress. Retry the request.
- InvalidStateException The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
- 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.
- EventBridgeV2Exception Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
waiter
Create an instance ofEventBridgeV2AsyncWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
EventBridgeV2AsyncWaiter
-
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 aEventBridgeV2AsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aEventBridgeV2AsyncClient.
-