Interface EventBridgeV2Client
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
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 TypeMethodDescriptionstatic EventBridgeV2ClientBuilderbuilder()Create a builder that can be used to configure and create aEventBridgeV2Client.static EventBridgeV2Clientcreate()Create aEventBridgeV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateEventBusResponsecreateEventBus(Consumer<CreateEventBusRequest.Builder> createEventBusRequest) Creates an event bus.default CreateEventBusResponsecreateEventBus(CreateEventBusRequest createEventBusRequest) Creates an event bus.default CreateEventSourceResponsecreateEventSource(Consumer<CreateEventSourceRequest.Builder> createEventSourceRequest) Creates an EventSource, which forwards events from an origin (an AWS service or another account) onto an event bus.default CreateEventSourceResponsecreateEventSource(CreateEventSourceRequest createEventSourceRequest) Creates an EventSource, which forwards events from an origin (an AWS service or another account) onto an event bus.default CreateSubscriberResponsecreateSubscriber(Consumer<CreateSubscriberRequest.Builder> createSubscriberRequest) Creates a subscriber on an event bus, which delivers matching events to the configured target.default CreateSubscriberResponsecreateSubscriber(CreateSubscriberRequest createSubscriberRequest) Creates a subscriber on an event bus, which delivers matching events to the configured target.default DeleteEventBusResponsedeleteEventBus(Consumer<DeleteEventBusRequest.Builder> deleteEventBusRequest) Deletes an event bus.default DeleteEventBusResponsedeleteEventBus(DeleteEventBusRequest deleteEventBusRequest) Deletes an event bus.default DeleteEventSourceResponsedeleteEventSource(Consumer<DeleteEventSourceRequest.Builder> deleteEventSourceRequest) Deletes an EventSource.default DeleteEventSourceResponsedeleteEventSource(DeleteEventSourceRequest deleteEventSourceRequest) Deletes an EventSource.default DeleteResourcePolicyResponsedeleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Deletes the named resource policy attached to an event bus.default DeleteResourcePolicyResponsedeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Deletes the named resource policy attached to an event bus.default DeleteSubscriberResponsedeleteSubscriber(Consumer<DeleteSubscriberRequest.Builder> deleteSubscriberRequest) Deletes a subscriber.default DeleteSubscriberResponsedeleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) Deletes a subscriber.default DescribeEventBusResponsedescribeEventBus(Consumer<DescribeEventBusRequest.Builder> describeEventBusRequest) Returns the full configuration and lifecycle state of an event bus.default DescribeEventBusResponsedescribeEventBus(DescribeEventBusRequest describeEventBusRequest) Returns the full configuration and lifecycle state of an event bus.default DescribeEventSourceResponsedescribeEventSource(Consumer<DescribeEventSourceRequest.Builder> describeEventSourceRequest) Returns the full configuration and lifecycle state of an EventSource.default DescribeEventSourceResponsedescribeEventSource(DescribeEventSourceRequest describeEventSourceRequest) Returns the full configuration and lifecycle state of an EventSource.default DescribeSubscriberResponsedescribeSubscriber(Consumer<DescribeSubscriberRequest.Builder> describeSubscriberRequest) Returns the full configuration and state of a subscriber.default DescribeSubscriberResponsedescribeSubscriber(DescribeSubscriberRequest describeSubscriberRequest) Returns the full configuration and state of a subscriber.default GetResourcePolicyResponsegetResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Returns the named resource policy attached to an event bus.default GetResourcePolicyResponsegetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Returns the named resource policy attached to an event bus.default ListEventBusesResponselistEventBuses(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 ListEventBusesResponselistEventBuses(ListEventBusesRequest listEventBusesRequest) Lists the event buses visible to the caller: buses the account owns and buses shared with it through AWS RAM.default ListEventBusesIterablelistEventBusesPaginator(Consumer<ListEventBusesRequest.Builder> listEventBusesRequest) This is a variant oflistEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation.default ListEventBusesIterablelistEventBusesPaginator(ListEventBusesRequest listEventBusesRequest) This is a variant oflistEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation.default ListEventSourcesResponselistEventSources(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) Lists EventSources as summaries.default ListEventSourcesResponselistEventSources(ListEventSourcesRequest listEventSourcesRequest) Lists EventSources as summaries.default ListEventSourcesIterablelistEventSourcesPaginator(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) This is a variant oflistEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation.default ListEventSourcesIterablelistEventSourcesPaginator(ListEventSourcesRequest listEventSourcesRequest) This is a variant oflistEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation.default ListResourcePoliciesResponselistResourcePolicies(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) Lists the resource policies attached to an event bus as summaries (policy name and revision ID).default ListResourcePoliciesResponselistResourcePolicies(ListResourcePoliciesRequest listResourcePoliciesRequest) Lists the resource policies attached to an event bus as summaries (policy name and revision ID).default ListResourcePoliciesIterablelistResourcePoliciesPaginator(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) This is a variant oflistResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation.default ListResourcePoliciesIterablelistResourcePoliciesPaginator(ListResourcePoliciesRequest listResourcePoliciesRequest) This is a variant oflistResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation.default ListSubscribersResponselistSubscribers(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) Lists subscribers as summaries.default ListSubscribersResponselistSubscribers(ListSubscribersRequest listSubscribersRequest) Lists subscribers as summaries.default ListSubscribersIterablelistSubscribersPaginator(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) This is a variant oflistSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation.default ListSubscribersIterablelistSubscribersPaginator(ListSubscribersRequest listSubscribersRequest) This is a variant oflistSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags on an event bus, subscriber, or event source.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags on an event bus, subscriber, or event source.default PutEventsResponseputEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) Publishes events to an event bus.default PutEventsResponseputEvents(PutEventsRequest putEventsRequest) Publishes events to an event bus.default PutRawEventsResponseputRawEvents(Consumer<PutRawEventsRequest.Builder> putRawEventsRequest) Publishes pre-shaped events to an event bus.default PutRawEventsResponseputRawEvents(PutRawEventsRequest putRawEventsRequest) Publishes pre-shaped events to an event bus.default PutResourcePolicyResponseputResourcePolicy(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.default PutResourcePolicyResponseputResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Attaches a named resource policy to an event bus — the only resource type that supports policies; other resource ARNs are rejected.default RevokeResourceResponserevokeResource(Consumer<RevokeResourceRequest.Builder> revokeResourceRequest) Revokes a subscriber or an EventSource.default RevokeResourceResponserevokeResource(RevokeResourceRequest revokeResourceRequest) Revokes a subscriber or an EventSource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or replaces tags on an event bus, subscriber, or event source.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or replaces tags on an event bus, subscriber, or event source.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an event bus, subscriber, or event source.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from an event bus, subscriber, or event source.default UpdateEventBusResponseupdateEventBus(Consumer<UpdateEventBusRequest.Builder> updateEventBusRequest) Updates an event bus.default UpdateEventBusResponseupdateEventBus(UpdateEventBusRequest updateEventBusRequest) Updates an event bus.default UpdateEventSourceResponseupdateEventSource(Consumer<UpdateEventSourceRequest.Builder> updateEventSourceRequest) Updates an EventSource.default UpdateEventSourceResponseupdateEventSource(UpdateEventSourceRequest updateEventSourceRequest) Updates an EventSource.default UpdateSubscriberResponseupdateSubscriber(Consumer<UpdateSubscriberRequest.Builder> updateSubscriberRequest) Updates a subscriber.default UpdateSubscriberResponseupdateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) Updates a subscriber.default EventBridgeV2Waiterwaiter()Create an instance ofEventBridgeV2Waiterusing 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 CreateEventBusResponse createEventBus(CreateEventBusRequest createEventBusRequest) throws LimitExceededException, AccessDeniedException, IdempotentParameterMismatchException, ThrottlingException, InvalidInputException, ResourceAlreadyExistsException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the CreateEventBus operation returned by the service.
- See Also:
-
createEventBus
default CreateEventBusResponse createEventBus(Consumer<CreateEventBusRequest.Builder> createEventBusRequest) throws LimitExceededException, AccessDeniedException, IdempotentParameterMismatchException, ThrottlingException, InvalidInputException, ResourceAlreadyExistsException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the CreateEventBus operation returned by the service.
- See Also:
-
createEventSource
default CreateEventSourceResponse createEventSource(CreateEventSourceRequest createEventSourceRequest) throws LimitExceededException, AccessDeniedException, IdempotentParameterMismatchException, ResourceNotFoundException, ThrottlingException, InvalidInputException, ResourceAlreadyExistsException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the CreateEventSource operation returned by the service.
- See Also:
-
createEventSource
default CreateEventSourceResponse createEventSource(Consumer<CreateEventSourceRequest.Builder> createEventSourceRequest) throws LimitExceededException, AccessDeniedException, IdempotentParameterMismatchException, ResourceNotFoundException, ThrottlingException, InvalidInputException, ResourceAlreadyExistsException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the CreateEventSource operation returned by the service.
- See Also:
-
createSubscriber
default CreateSubscriberResponse createSubscriber(CreateSubscriberRequest createSubscriberRequest) throws LimitExceededException, AccessDeniedException, IdempotentParameterMismatchException, ResourceNotFoundException, ThrottlingException, InvalidInputException, ResourceAlreadyExistsException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the CreateSubscriber operation returned by the service.
- See Also:
-
createSubscriber
default CreateSubscriberResponse createSubscriber(Consumer<CreateSubscriberRequest.Builder> createSubscriberRequest) throws LimitExceededException, AccessDeniedException, IdempotentParameterMismatchException, ResourceNotFoundException, ThrottlingException, InvalidInputException, ResourceAlreadyExistsException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the CreateSubscriber operation returned by the service.
- See Also:
-
deleteEventBus
default DeleteEventBusResponse deleteEventBus(DeleteEventBusRequest deleteEventBusRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, ResourceInUseException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DeleteEventBus operation returned by the service.
- See Also:
-
deleteEventBus
default DeleteEventBusResponse deleteEventBus(Consumer<DeleteEventBusRequest.Builder> deleteEventBusRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, ResourceInUseException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DeleteEventBus operation returned by the service.
- See Also:
-
deleteEventSource
default DeleteEventSourceResponse deleteEventSource(DeleteEventSourceRequest deleteEventSourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception Deletes an EventSource. Forwarding from its origin stops.
- Parameters:
deleteEventSourceRequest-- Returns:
- Result of the DeleteEventSource operation returned by the service.
- See Also:
-
deleteEventSource
default DeleteEventSourceResponse deleteEventSource(Consumer<DeleteEventSourceRequest.Builder> deleteEventSourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DeleteEventSource operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InvalidInputException, InternalException, ConcurrentModificationException, AwsServiceException, SdkClientException, EventBridgeV2Exception Deletes the named resource policy attached to an event bus.
- Parameters:
deleteResourcePolicyRequest-- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InvalidInputException, InternalException, ConcurrentModificationException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
deleteSubscriber
default DeleteSubscriberResponse deleteSubscriber(DeleteSubscriberRequest deleteSubscriberRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, AwsServiceException, SdkClientException, EventBridgeV2Exception Deletes a subscriber. Events are no longer delivered to its target.
- Parameters:
deleteSubscriberRequest-- Returns:
- Result of the DeleteSubscriber operation returned by the service.
- See Also:
-
deleteSubscriber
default DeleteSubscriberResponse deleteSubscriber(Consumer<DeleteSubscriberRequest.Builder> deleteSubscriberRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DeleteSubscriber operation returned by the service.
- See Also:
-
describeEventBus
default DescribeEventBusResponse describeEventBus(DescribeEventBusRequest describeEventBusRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception Returns the full configuration and lifecycle state of an event bus.
- Parameters:
describeEventBusRequest-- Returns:
- Result of the DescribeEventBus operation returned by the service.
- See Also:
-
describeEventBus
default DescribeEventBusResponse describeEventBus(Consumer<DescribeEventBusRequest.Builder> describeEventBusRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DescribeEventBus operation returned by the service.
- See Also:
-
describeEventSource
default DescribeEventSourceResponse describeEventSource(DescribeEventSourceRequest describeEventSourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception Returns the full configuration and lifecycle state of an EventSource.
- Parameters:
describeEventSourceRequest-- Returns:
- Result of the DescribeEventSource operation returned by the service.
- See Also:
-
describeEventSource
default DescribeEventSourceResponse describeEventSource(Consumer<DescribeEventSourceRequest.Builder> describeEventSourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DescribeEventSource operation returned by the service.
- See Also:
-
describeSubscriber
default DescribeSubscriberResponse describeSubscriber(DescribeSubscriberRequest describeSubscriberRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception Returns the full configuration and state of a subscriber.
- Parameters:
describeSubscriberRequest-- Returns:
- Result of the DescribeSubscriber operation returned by the service.
- See Also:
-
describeSubscriber
default DescribeSubscriberResponse describeSubscriber(Consumer<DescribeSubscriberRequest.Builder> describeSubscriberRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the DescribeSubscriber operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
listEventBuses
default ListEventBusesResponse listEventBuses(ListEventBusesRequest listEventBusesRequest) throws AccessDeniedException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListEventBuses operation returned by the service.
- See Also:
-
listEventBuses
default ListEventBusesResponse listEventBuses(Consumer<ListEventBusesRequest.Builder> listEventBusesRequest) throws AccessDeniedException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListEventBuses operation returned by the service.
- See Also:
-
listEventBusesPaginator
default ListEventBusesIterable listEventBusesPaginator(ListEventBusesRequest listEventBusesRequest) throws AccessDeniedException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventBusesIterable responses = client.listEventBusesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListEventBusesIterable responses = client .listEventBusesPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventBusesIterable responses = client.listEventBusesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listEventBusesPaginator
default ListEventBusesIterable listEventBusesPaginator(Consumer<ListEventBusesRequest.Builder> listEventBusesRequest) throws AccessDeniedException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listEventBuses(software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventBusesIterable responses = client.listEventBusesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListEventBusesIterable responses = client .listEventBusesPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListEventBusesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventBusesIterable responses = client.listEventBusesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listEventSources
default ListEventSourcesResponse listEventSources(ListEventSourcesRequest listEventSourcesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListEventSources operation returned by the service.
- See Also:
-
listEventSources
default ListEventSourcesResponse listEventSources(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListEventSources operation returned by the service.
- See Also:
-
listEventSourcesPaginator
default ListEventSourcesIterable listEventSourcesPaginator(ListEventSourcesRequest listEventSourcesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventSourcesIterable responses = client.listEventSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListEventSourcesIterable responses = client .listEventSourcesPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventSourcesIterable responses = client.listEventSourcesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listEventSourcesPaginator
default ListEventSourcesIterable listEventSourcesPaginator(Consumer<ListEventSourcesRequest.Builder> listEventSourcesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listEventSources(software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventSourcesIterable responses = client.listEventSourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListEventSourcesIterable responses = client .listEventSourcesPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListEventSourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListEventSourcesIterable responses = client.listEventSourcesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourcePolicies
default ListResourcePoliciesResponse listResourcePolicies(ListResourcePoliciesRequest listResourcePoliciesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListResourcePolicies operation returned by the service.
- See Also:
-
listResourcePolicies
default ListResourcePoliciesResponse listResourcePolicies(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListResourcePolicies operation returned by the service.
- See Also:
-
listResourcePoliciesPaginator
default ListResourcePoliciesIterable listResourcePoliciesPaginator(ListResourcePoliciesRequest listResourcePoliciesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListResourcePoliciesIterable responses = client.listResourcePoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListResourcePoliciesIterable responses = client .listResourcePoliciesPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListResourcePoliciesIterable responses = client.listResourcePoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listResourcePoliciesPaginator
default ListResourcePoliciesIterable listResourcePoliciesPaginator(Consumer<ListResourcePoliciesRequest.Builder> listResourcePoliciesRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listResourcePolicies(software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListResourcePoliciesIterable responses = client.listResourcePoliciesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListResourcePoliciesIterable responses = client .listResourcePoliciesPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListResourcePoliciesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListResourcePoliciesIterable responses = client.listResourcePoliciesPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSubscribers
default ListSubscribersResponse listSubscribers(ListSubscribersRequest listSubscribersRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListSubscribers operation returned by the service.
- See Also:
-
listSubscribers
default ListSubscribersResponse listSubscribers(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListSubscribers operation returned by the service.
- See Also:
-
listSubscribersPaginator
default ListSubscribersIterable listSubscribersPaginator(ListSubscribersRequest listSubscribersRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListSubscribersIterable responses = client.listSubscribersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListSubscribersIterable responses = client .listSubscribersPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListSubscribersIterable responses = client.listSubscribersPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listSubscribersPaginator
default ListSubscribersIterable listSubscribersPaginator(Consumer<ListSubscribersRequest.Builder> listSubscribersRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception This is a variant of
listSubscribers(software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.eventbridgev2.paginators.ListSubscribersIterable responses = client.listSubscribersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.eventbridgev2.paginators.ListSubscribersIterable responses = client .listSubscribersPaginator(request); for (software.amazon.awssdk.services.eventbridgev2.model.ListSubscribersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.eventbridgev2.paginators.ListSubscribersIterable responses = client.listSubscribersPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception Lists the tags on an event bus, subscriber, or event source.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
putEvents
default PutEventsResponse putEvents(PutEventsRequest putEventsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception Publishes events to an event bus.
- Parameters:
putEventsRequest-- Returns:
- Result of the PutEvents operation returned by the service.
- See Also:
-
putEvents
default PutEventsResponse putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the PutEvents operation returned by the service.
- See Also:
-
putRawEvents
default PutRawEventsResponse putRawEvents(PutRawEventsRequest putRawEventsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, SchemaRegistryUnavailableException, InternalException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception Publishes pre-shaped events to an event bus.
- Parameters:
putRawEventsRequest-- Returns:
- Result of the PutRawEvents operation returned by the service.
- See Also:
-
putRawEvents
default PutRawEventsResponse putRawEvents(Consumer<PutRawEventsRequest.Builder> putRawEventsRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, SchemaRegistryUnavailableException, InternalException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the PutRawEvents operation returned by the service.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) throws PolicyLengthExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InvalidInputException, InternalException, ConcurrentModificationException, PublicPolicyException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) throws PolicyLengthExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InvalidInputException, InternalException, ConcurrentModificationException, PublicPolicyException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
revokeResource
default RevokeResourceResponse revokeResource(RevokeResourceRequest revokeResourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the RevokeResource operation returned by the service.
- See Also:
-
revokeResource
default RevokeResourceResponse revokeResource(Consumer<RevokeResourceRequest.Builder> revokeResourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the RevokeResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws LimitExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception Adds or replaces tags on an event bus, subscriber, or event source.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws LimitExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception Removes tags from an event bus, subscriber, or event source.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateEventBus
default UpdateEventBusResponse updateEventBus(UpdateEventBusRequest updateEventBusRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the UpdateEventBus operation returned by the service.
- See Also:
-
updateEventBus
default UpdateEventBusResponse updateEventBus(Consumer<UpdateEventBusRequest.Builder> updateEventBusRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the UpdateEventBus operation returned by the service.
- See Also:
-
updateEventSource
default UpdateEventSourceResponse updateEventSource(UpdateEventSourceRequest updateEventSourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception Updates an EventSource. Fields omitted from the request are left unchanged.
- Parameters:
updateEventSourceRequest-- Returns:
- Result of the UpdateEventSource operation returned by the service.
- See Also:
-
updateEventSource
default UpdateEventSourceResponse updateEventSource(Consumer<UpdateEventSourceRequest.Builder> updateEventSourceRequest) throws AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the UpdateEventSource operation returned by the service.
- See Also:
-
updateSubscriber
default UpdateSubscriberResponse updateSubscriber(UpdateSubscriberRequest updateSubscriberRequest) throws LimitExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception Updates a subscriber. Fields omitted from the request are left unchanged.
- Parameters:
updateSubscriberRequest-- Returns:
- Result of the UpdateSubscriber operation returned by the service.
- See Also:
-
updateSubscriber
default UpdateSubscriberResponse updateSubscriber(Consumer<UpdateSubscriberRequest.Builder> updateSubscriberRequest) throws LimitExceededException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InvalidInputException, InternalException, ConcurrentModificationException, InvalidStateException, AwsServiceException, SdkClientException, EventBridgeV2Exception 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:
- Result of the UpdateSubscriber operation returned by the service.
- See Also:
-
waiter
Create an instance ofEventBridgeV2Waiterusing 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
EventBridgeV2Waiter
-
create
Create aEventBridgeV2Clientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aEventBridgeV2Client. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-