EventBridgeV2 / Client / update_event_bus

update_event_bus

EventBridgeV2.Client.update_event_bus(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.update_event_bus(
    EventBusArn='string',
    Description='string',
    EncryptionConfiguration={
        'KmsKeyIdentifier': 'string'
    },
    StorageConfiguration={
        'RetentionPeriodInDays': 123
    }
)
Parameters:
  • EventBusArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) that uniquely identifies an event bus.

  • Description (string) – Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.

  • EncryptionConfiguration (dict) –

    Encryption configuration for an event bus.

    • KmsKeyIdentifier (string) –

      Identifier of the AWS KMS customer managed key used to encrypt events: a key ID, key ARN, alias name, or alias ARN. When absent, events are encrypted with an AWS owned key.

  • StorageConfiguration (dict) –

    Event storage configuration for an event bus.

    • RetentionPeriodInDays (integer) –

      Number of days events are retained on the event bus.

Return type:

dict

Returns:

Response Syntax

{
    'EventBusArn': 'string',
    'Name': 'string',
    'Description': 'string',
    'EncryptionConfiguration': {
        'KmsKeyIdentifier': 'string'
    },
    'StorageConfiguration': {
        'RetentionPeriodInDays': 123,
        'RetentionWindowStartTime': datetime(2015, 1, 1)
    },
    'State': 'CREATING'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'ACTIVE'|'DELETE_FAILED',
    'StateReason': 'string',
    'LastModifiedTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • EventBusArn (string) –

      The Amazon Resource Name (ARN) that uniquely identifies an event bus.

    • Name (string) –

      Name of an event bus. The first character must be alphanumeric; the remaining characters may also include ‘.’, ‘-’, and ‘_’. The grammar matches the name segment of EventBusArn (event-busv2//), so every valid name can be represented in the bus’s ARN. The same type is used everywhere a bus name appears.

    • Description (string) –

      Free-text description. Used by every resource type that has one: event buses, subscribers, and event sources.

    • EncryptionConfiguration (dict) –

      Encryption configuration for an event bus.

      • KmsKeyIdentifier (string) –

        Identifier of the AWS KMS customer managed key used to encrypt events: a key ID, key ARN, alias name, or alias ARN. When absent, events are encrypted with an AWS owned key.

    • StorageConfiguration (dict) –

      Event storage configuration of an event bus, as returned on reads.

      • RetentionPeriodInDays (integer) –

        Number of days events are retained on the event bus.

      • RetentionWindowStartTime (datetime) –

        The earliest point in time from which stored events are available. Events older than this have expired from retention.

    • State (string) –

      Lifecycle state of an event bus.

      • CREATING: Bus creation is in progress.

      • CREATE_FAILED: Bus creation failed; see StateReason. The bus cannot be recovered or recreated in place: delete it with DeleteEventBus, then create a new bus.

      • ACTIVE: Bus is fully operational and can accept events.

      • UPDATING: Bus update is in progress.

      • UPDATE_FAILED: Bus update failed; the bus remains operational with its previous configuration.

      • DELETING: Bus deletion is actively in progress.

      • DELETE_FAILED: Bus deletion failed; see StateReason. Retry DeleteEventBus after removing subscribers and event sources.

    • StateReason (string) –

      Human-readable explanation of why an event bus is in its current State. Omitted when the bus is in a normal operational state (ACTIVE). It stands in for the error response an asynchronous failure cannot return, so it applies only to resources with an asynchronous lifecycle: event buses. EventSources and subscribers are provisioned synchronously and report failures directly on the request.

    • LastModifiedTime (datetime) –

      The time the event bus was last modified.

Exceptions

  • EventBridgeV2.Client.exceptions.AccessDeniedException

  • EventBridgeV2.Client.exceptions.ResourceNotFoundException

  • EventBridgeV2.Client.exceptions.ThrottlingException

  • EventBridgeV2.Client.exceptions.InvalidInputException

  • EventBridgeV2.Client.exceptions.InternalException

  • EventBridgeV2.Client.exceptions.ConcurrentModificationException

  • EventBridgeV2.Client.exceptions.InvalidStateException