Skip to content

EventBridgeClient.create_archive

rboto-eventbridge==0.4.0 · Service index · Types

Model summary (excerpt): Creates an archive of events with the specified settings. When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events are sent to the archive except replayed events. Replayed events are not sent to an archive. If you...

Install and imports

python -m pip install "rboto[eventbridge]==0.4.0"
from rboto import EventBridgeClient
from rboto_eventbridge.types import (
    CreateArchiveOutput,
)

Signature

async def create_archive(
    *,
    archive_name: str,
    event_source_arn: str,
    description: str | None = None,
    event_pattern: str | None = None,
    retention_days: int | None = None,
    kms_key_identifier: str | None = None,
) -> CreateArchiveOutput: ...

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)
archive_name Yes The name for the archive to create.
event_source_arn Yes The ARN of the event bus that sends events to the archive.
description No A description for the archive.
event_pattern No An event pattern to use to filter events sent to the archive.
retention_days No The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely
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 this archive. 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 the archive. For more information, see...

Output

CreateArchiveOutput.

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
archive_arn str | None Always present —
state ArchiveStateOutput | None Always present ArchiveStateOutput
state_reason str | None Always present —
creation_time str | None Always present —

| 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.

CreateArchiveOutput

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, InvalidEventPatternError, LimitExceededError, ResourceAlreadyExistsError, ResourceNotFoundError.

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

Service guide · Pinned model