list_trails
(**kwargs)¶Lists trails that are in the current account.
See also: AWS API Documentation
Request Syntax
response = client.list_trails(
NextToken='string'
)
{
'Trails': [
{
'TrailARN': 'string',
'Name': 'string',
'HomeRegion': 'string'
},
],
'NextToken': 'string'
}
Response Structure
Returns the name, ARN, and home region of trails in the current account.
Information about a CloudTrail trail, including the trail's name, home region, and Amazon Resource Name (ARN).
The ARN of a trail.
The name of a trail.
The Amazon Web Services Region in which a trail was created.
The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
Exceptions
CloudTrail.Client.exceptions.UnsupportedOperationException
CloudTrail.Client.exceptions.OperationNotPermittedException