create_event_bus
async
¶
create_event_bus(
name: EventBusName,
*,
config_overrides: Optional[AsyncCloudWatchEventsClientConfig] = None,
event_source_name: Optional[EventSourceName] = None,
tags: Optional[TagList] = None,
) -> CreateEventBusResponse
Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your custom applications and services, or it can be a partner event bus which can be matched to a partner event source.
Parameters:
-
name(EventBusName) –The name of the new event bus.
Event bus names cannot contain the / character. You can't use the name
defaultfor a custom event bus, as this name is already used for your account's default event bus.If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.
-
event_source_name(Optional[EventSourceName], default:None) –If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
-
tags(Optional[TagList], default:None) –Tags to associate with the event bus.
Raises:
-
ConcurrentModificationException–There is concurrent modification on a rule, target, archive, or replay.
-
InternalException–This exception occurs due to unexpected causes.
-
InvalidStateException–The specified state is not a valid state for an event source.
-
LimitExceededException–The request failed because it attempted to create resource beyond the allowed service quota.
-
OperationDisabledException–The operation you are attempting is not available in this region.
-
ResourceAlreadyExistsException–The resource you are trying to create already exists.
-
ResourceNotFoundException–An entity that you specified does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.