Skip to content

CloudTrailClient.put_event_selectors

rboto-cloudtrail==0.4.0 · Service index · Types

Model summary (excerpt): Configures event selectors (also referred to as basic event selectors ) or advanced event selectors for your trail. You can use either AdvancedEventSelectors or EventSelectors , but not both. If you apply AdvancedEventSelectors to a trail, any existing EventSelectors are overwritten. You can use AdvancedEventSelectors to log management events, data events for all resource types, and network...

Install and imports

python -m pip install "rboto[cloudtrail]==0.4.0"
from rboto import CloudTrailClient
from collections.abc import Sequence
from rboto_cloudtrail.types import (
    AdvancedEventSelector,
    EventSelector,
    PutEventSelectorsOutput,
)

Signature

async def put_event_selectors(
    *,
    trail_name: str,
    event_selectors: Sequence[EventSelector] | None = None,
    advanced_event_selectors: Sequence[AdvancedEventSelector] | None = None,
) -> PutEventSelectorsOutput: ...

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)
trail_name Yes Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements: Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-) Start with a letter or number, and end with a letter or number Be between 3 and 128 characters Have no adjacent periods, underscores or dashes. Names like my-_namespace and...
event_selectors No Specifies the settings for your event selectors. You can use event selectors to log management events and data events for the following resource types: AWS::DynamoDB::Table AWS::Lambda::Function AWS::S3::Object You can't use event selectors to log network activity events. You can configure up to five event selectors for a trail. You can use either EventSelectors or AdvancedEventSelectors in a...
advanced_event_selectors No Specifies the settings for advanced event selectors. You can use advanced event selectors to log management events, data events for all resource types, and network activity events. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. You can use either AdvancedEventSelectors or...

Output

PutEventSelectorsOutput.

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
trail_arn str | None Always present —
event_selectors list[EventSelectorOutput] | None Always present EventSelectorOutput
advanced_event_selectors list[AdvancedEventSelectorOutput] | None Always present AdvancedEventSelectorOutput

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

AdvancedEventSelector, EventSelector, PutEventSelectorsOutput

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:

CloudTrailARNInvalidError, ConflictError, InsufficientDependencyServiceAccessPermissionError, InvalidEventSelectorsError, InvalidHomeRegionError, InvalidTrailNameError, NoManagementAccountSLRExistsError, NotOrganizationMasterAccountError, OperationNotPermittedError, ThrottlingError, TrailNotFoundError, UnsupportedOperationError.

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

Service guide · Pinned model