Skip to content

CloudTrailClient.describe_trails

rboto-cloudtrail==0.4.0 · Service index · Types

Model summary (excerpt): Retrieves settings for one or more trails associated with the current Region for your account.

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 (
    DescribeTrailsOutput,
)

Signature

async def describe_trails(
    *,
    trail_name_list: Sequence[str] | None = None,
    include_shadow_trails: bool | None = None,
) -> DescribeTrailsOutput: ...

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_list No Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail If an empty list is specified, information for the trail in the current Region is returned. If an empty list is specified and IncludeShadowTrails is false, then information for all trails in the current Region is returned. If an...
include_shadow_trails No Specifies whether to include shadow trails in the response. A shadow trail is the replication in a Region of a trail that was created in a different Region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and Region replication trails will not be returned. The...

Output

DescribeTrailsOutput.

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_list list[TrailOutput] | None Always present TrailOutput

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

DescribeTrailsOutput

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, InvalidTrailNameError, NoManagementAccountSLRExistsError, OperationNotPermittedError, UnsupportedOperationError.

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

Service guide · Pinned model