CloudTrailClient.create_event_data_store
rboto-cloudtrail==0.4.0 · Service index · Types
Model summary (excerpt): CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change . Creates a new event data store.
Install and imports
from rboto import CloudTrailClient
from collections.abc import Sequence
from rboto_cloudtrail.types import (
AdvancedEventSelector,
BillingMode,
CreateEventDataStoreOutput,
Tag,
)
Signature
async def create_event_data_store(
*,
name: str,
advanced_event_selectors: Sequence[AdvancedEventSelector] | None = None,
multi_region_enabled: bool | None = None,
organization_enabled: bool | None = None,
retention_period: int | None = None,
termination_protection_enabled: bool | None = None,
tags_list: Sequence[Tag] | None = None,
kms_key_id: str | None = None,
start_ingestion: bool | None = None,
billing_mode: BillingMode | None = None,
) -> CreateEventDataStoreOutput: ...
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 event data store. |
advanced_event_selectors |
No | The advanced event selectors to use to select the events for the data store. You can configure up to five advanced event selectors for each event data store. For more information about how to use advanced event selectors to log CloudTrail events, see Log events by using advanced event selectors in the CloudTrail User Guide. For more information about how to use advanced event selectors to... |
multi_region_enabled |
No | Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created. |
organization_enabled |
No | Specifies whether an event data store collects events logged for an organization in Organizations. |
retention_period |
No | The retention period of the event data store, in days. If BillingMode is set to EXTENDABLE_RETENTION_PRICING , you can set a retention period of up to 3653 days, the equivalent of 10 years. If BillingMode is set to FIXED_RETENTION_PRICING , you can set a retention period of up to 2557 days, the equivalent of seven years. CloudTrail Lake determines whether to retain an event by checking if the... |
termination_protection_enabled |
No | Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled. |
tags_list |
No | |
kms_key_id |
No | Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by alias/ , a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier. Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users... |
start_ingestion |
No | Specifies whether the event data store should start ingesting live events. The default is true. |
billing_mode |
No | The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store. The following are the possible values: EXTENDABLE_RETENTION_PRICING - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode... |
Output
CreateEventDataStoreOutput.
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_data_store_arn |
str | None |
Always present | — |
name |
str | None |
Always present | — |
status |
EventDataStoreStatusOutput | None |
Always present | EventDataStoreStatusOutput |
advanced_event_selectors |
list[AdvancedEventSelectorOutput] | None |
Always present | AdvancedEventSelectorOutput |
multi_region_enabled |
bool | None |
Always present | — |
organization_enabled |
bool | None |
Always present | — |
retention_period |
int | None |
Always present | — |
termination_protection_enabled |
bool | None |
Always present | — |
tags_list |
list[TagOutput] | None |
Always present | TagOutput |
created_timestamp |
str | None |
Always present | — |
updated_timestamp |
str | None |
Always present | — |
kms_key_id |
str | None |
Always present | — |
billing_mode |
BillingModeOutput | None |
Always present | BillingModeOutput |
| 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.
Related types
AdvancedEventSelector, BillingMode, CreateEventDataStoreOutput, 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_cloudtrail.exceptions:
CloudTrailAccessNotEnabledError, ConflictError, EventDataStoreAlreadyExistsError, EventDataStoreMaxLimitExceededError, InsufficientDependencyServiceAccessPermissionError, InsufficientEncryptionPolicyError, InvalidEventSelectorsError, InvalidKmsKeyIdError, InvalidParameterError, InvalidTagParameterError, KmsError, KmsKeyNotFoundError, NoManagementAccountSLRExistsError, NotOrganizationMasterAccountError, OperationNotPermittedError, OrganizationNotInAllFeaturesModeError, OrganizationsNotInUseError, ThrottlingError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.