create_event_bus
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.create_event_bus(
Name='string',
EventSourceName='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the new event bus.
Custom event bus names can't contain the /
character, but you can use the /
character in partner event bus names. In addition, for partner event buses, the name must exactly match the name of the partner event source that this event bus is matched to.
You can't use the name default
for a custom event bus, as this name is already used for your account's default event bus.
Tags to associate with the event bus.
A key-value pair associated with an Amazon Web Services resource. In EventBridge, rules and event buses support tagging.
A string you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.
The value for the specified tag key.
dict
Response Syntax
{
'EventBusArn': 'string'
}
Response Structure
(dict) --
EventBusArn (string) --
The ARN of the new event bus.
Exceptions
EventBridge.Client.exceptions.ResourceAlreadyExistsException
EventBridge.Client.exceptions.ResourceNotFoundException
EventBridge.Client.exceptions.InvalidStateException
EventBridge.Client.exceptions.InternalException
EventBridge.Client.exceptions.ConcurrentModificationException
EventBridge.Client.exceptions.LimitExceededException
EventBridge.Client.exceptions.OperationDisabledException