Skip to main content

trails

Retrieves a list of trails in a region

Overview

Nametrails
TypeResource
Descriptiontrails
Idawscc.cloudtrail.trails

Fields

NameDatatypeDescription
trail_namestring
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
trail_name
FROM awscc.cloudtrail.trails
WHERE region = 'us-east-1'

Permissions

To operate on the trails resource, the following permissions are required:

Create

CloudTrail:CreateTrail,
CloudTrail:StartLogging,
CloudTrail:AddTags,
CloudTrail:PutEventSelectors,
CloudTrail:PutInsightSelectors,
iam:GetRole,
iam:PassRole,
iam:CreateServiceLinkedRole,
organizations:DescribeOrganization,
organizations:ListAWSServiceAccessForOrganization

List

CloudTrail:ListTrails,
CloudTrail:GetTrail,
CloudTrail:GetTrailStatus,
CloudTrail:ListTags,
CloudTrail:GetEventSelectors,
CloudTrail:GetInsightSelectors,
CloudTrail:DescribeTrails