Amazon CloudWatch Events

2020/02/24 - Amazon CloudWatch Events - 1 updated api methods

Changes  This release allows you to create and manage tags for event buses.

CreateEventBus (updated) Link ΒΆ
Changes (request)
{'Tags': [{'Key': 'string', 'Value': 'string'}]}

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

client.create_event_bus(
    Name='string',
    EventSourceName='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
type Name

string

param Name

[REQUIRED]

The name of the new event bus.

Event bus names cannot contain the / character. 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.

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.

type EventSourceName

string

param EventSourceName

If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.

type Tags

list

param Tags

Tags to associate with the event bus.

  • (dict) --

    A key-value pair associated with an AWS resource. In EventBridge, rules and event buses support tagging.

    • Key (string) -- [REQUIRED]

      A string you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.

    • Value (string) -- [REQUIRED]

      The value for the specified tag key.

rtype

dict

returns

Response Syntax

{
    'EventBusArn': 'string'
}

Response Structure

  • (dict) --

    • EventBusArn (string) --

      The ARN of the new event bus.