Method: Aws::CloudTrail::Types::DescribeTrailsRequest#trail_name_list

Defined in:
lib/aws-sdk-cloudtrail/types.rb

#trail_name_listArray<String>

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 empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current Region and any associated shadow trails in other Regions is returned.

<note markdown=“1”> If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current Region and current account. To return information about a trail in another Region, you must specify its trail ARN.

</note>

Returns:

  • (Array<String>)


1448
1449
1450
1451
1452
1453
# File 'lib/aws-sdk-cloudtrail/types.rb', line 1448

class DescribeTrailsRequest < Struct.new(
  :trail_name_list,
  :include_shadow_trails)
  SENSITIVE = []
  include Aws::Structure
end