Skip to content

EventBridgeClient.create_event_bus

rboto-eventbridge==0.4.0 · Service index · Types

Model summary (excerpt): 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.

Install and imports

python -m pip install "rboto[eventbridge]==0.4.0"
from rboto import EventBridgeClient
from collections.abc import Sequence
from rboto_eventbridge.types import (
    CreateEventBusOutput,
    DeadLetterConfig,
    LogConfig,
    Tag,
)

Signature

async def create_event_bus(
    *,
    name: str,
    event_source_name: str | None = None,
    description: str | None = None,
    kms_key_identifier: str | None = None,
    dead_letter_config: DeadLetterConfig | None = None,
    log_config: LogConfig | None = None,
    tags: Sequence[Tag] | None = None,
) -> CreateEventBusOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes 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_source_name No If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
description No The event bus description.
kms_key_identifier No The identifier of the KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on this event bus. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. If you do not specify a customer managed key identifier, EventBridge uses an Amazon Web Services owned key to encrypt events on the event bus. For...
dead_letter_config No
log_config No The logging configuration settings for the event bus. For more information, see Configuring logs for event buses in the EventBridge User Guide .
tags No Tags to associate with the event bus.

Output

CreateEventBusOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
event_bus_arn str | None Always present —
description str | None Always present —
kms_key_identifier str | None Always present —
dead_letter_config DeadLetterConfigOutput | None Always present DeadLetterConfigOutput
log_config LogConfigOutput | None Always present LogConfigOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateEventBusOutput, DeadLetterConfig, LogConfig, Tag

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_eventbridge.exceptions:

ConcurrentModificationError, InternalError, InvalidStateError, LimitExceededError, OperationDisabledError, ResourceAlreadyExistsError, ResourceNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model