trails
Retrieves a list of trails
in a region
Overview
Name | trails |
Type | Resource |
Description | trails |
Id | awscc.cloudtrail.trails |
Fields
Name | Datatype | Description |
---|---|---|
trail_name | string | |
region | string | AWS 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