Skip to content

CloudTrail  >  Operations  >  get_trail

get_trail

Operation

get_trail async

get_trail(input: GetTrailInput, plugins: list[Plugin] | None = None) -> GetTrailOutput

Returns settings information for a specified trail.

Parameters:

Name Type Description Default
input GetTrailInput

An instance of GetTrailInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetTrailOutput

An instance of GetTrailOutput.

Input

GetTrailInput dataclass

Dataclass for GetTrailInput structure.

Attributes

name class-attribute instance-attribute
name: str | None = None

The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.

Output

GetTrailOutput dataclass

Dataclass for GetTrailOutput structure.

Attributes

trail class-attribute instance-attribute
trail: Trail | None = None

The settings for a trail.