We recommend new projects start with resources from the AWS provider.
aws-native.cloudtrail.getTrail
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. A maximum of five trails can exist in a region, irrespective of the region in which they were created.
Using getTrail
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTrail(args: GetTrailArgs, opts?: InvokeOptions): Promise<GetTrailResult>
function getTrailOutput(args: GetTrailOutputArgs, opts?: InvokeOptions): Output<GetTrailResult>def get_trail(trail_name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetTrailResult
def get_trail_output(trail_name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetTrailResult]func LookupTrail(ctx *Context, args *LookupTrailArgs, opts ...InvokeOption) (*LookupTrailResult, error)
func LookupTrailOutput(ctx *Context, args *LookupTrailOutputArgs, opts ...InvokeOption) LookupTrailResultOutput> Note: This function is named LookupTrail in the Go SDK.
public static class GetTrail 
{
    public static Task<GetTrailResult> InvokeAsync(GetTrailArgs args, InvokeOptions? opts = null)
    public static Output<GetTrailResult> Invoke(GetTrailInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTrailResult> getTrail(GetTrailArgs args, InvokeOptions options)
public static Output<GetTrailResult> getTrail(GetTrailArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:cloudtrail:getTrail
  arguments:
    # arguments dictionaryThe following arguments are supported:
- TrailName string
- Specifies the name of the trail. The name must meet the following requirements:- Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
- Start with a letter or number, and end with a letter or number
- Be between 3 and 128 characters
- Have no adjacent periods, underscores or dashes. Names like my-_namespaceandmy--namespaceare not valid.
- Not be in IP address format (for example, 192.168.5.4)
 
- TrailName string
- Specifies the name of the trail. The name must meet the following requirements:- Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
- Start with a letter or number, and end with a letter or number
- Be between 3 and 128 characters
- Have no adjacent periods, underscores or dashes. Names like my-_namespaceandmy--namespaceare not valid.
- Not be in IP address format (for example, 192.168.5.4)
 
- trailName String
- Specifies the name of the trail. The name must meet the following requirements:- Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
- Start with a letter or number, and end with a letter or number
- Be between 3 and 128 characters
- Have no adjacent periods, underscores or dashes. Names like my-_namespaceandmy--namespaceare not valid.
- Not be in IP address format (for example, 192.168.5.4)
 
- trailName string
- Specifies the name of the trail. The name must meet the following requirements:- Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
- Start with a letter or number, and end with a letter or number
- Be between 3 and 128 characters
- Have no adjacent periods, underscores or dashes. Names like my-_namespaceandmy--namespaceare not valid.
- Not be in IP address format (for example, 192.168.5.4)
 
- trail_name str
- Specifies the name of the trail. The name must meet the following requirements:- Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
- Start with a letter or number, and end with a letter or number
- Be between 3 and 128 characters
- Have no adjacent periods, underscores or dashes. Names like my-_namespaceandmy--namespaceare not valid.
- Not be in IP address format (for example, 192.168.5.4)
 
- trailName String
- Specifies the name of the trail. The name must meet the following requirements:- Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
- Start with a letter or number, and end with a letter or number
- Be between 3 and 128 characters
- Have no adjacent periods, underscores or dashes. Names like my-_namespaceandmy--namespaceare not valid.
- Not be in IP address format (for example, 192.168.5.4)
 
getTrail Result
The following output properties are available:
- AdvancedEvent List<Pulumi.Selectors Aws Native. Cloud Trail. Outputs. Trail Advanced Event Selector> 
- The advanced event selectors that were used to select events for the data store.
- Arn string
- Refreturns the ARN of the CloudTrail trail, such as- arn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail.
- CloudWatch stringLogs Log Group Arn 
- Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.
- CloudWatch stringLogs Role Arn 
- Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- EnableLog boolFile Validation 
- Specifies whether log file validation is enabled. The default is false.
- EventSelectors List<Pulumi.Aws Native. Cloud Trail. Outputs. Trail Event Selector> 
- Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail.
- IncludeGlobal boolService Events 
- Specifies whether the trail is publishing events from global services such as IAM to the log files.
- InsightSelectors List<Pulumi.Aws Native. Cloud Trail. Outputs. Trail Insight Selector> 
- Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- IsLogging bool
- Whether the CloudTrail is currently logging AWS API calls.
- IsMulti boolRegion Trail 
- Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.
- IsOrganization boolTrail 
- Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.
- KmsKey stringId 
- Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by 'alias/', a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
- S3BucketName string
- Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- S3KeyPrefix string
- Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
- SnsTopic stringArn 
- Refreturns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such as- arn:aws:sns:us-east-2:123456789012:mySNSTopic.
- SnsTopic stringName 
- Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- A custom set of tags (key-value pairs) for this trail.
- AdvancedEvent []TrailSelectors Advanced Event Selector 
- The advanced event selectors that were used to select events for the data store.
- Arn string
- Refreturns the ARN of the CloudTrail trail, such as- arn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail.
- CloudWatch stringLogs Log Group Arn 
- Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.
- CloudWatch stringLogs Role Arn 
- Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- EnableLog boolFile Validation 
- Specifies whether log file validation is enabled. The default is false.
- EventSelectors []TrailEvent Selector 
- Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail.
- IncludeGlobal boolService Events 
- Specifies whether the trail is publishing events from global services such as IAM to the log files.
- InsightSelectors []TrailInsight Selector 
- Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- IsLogging bool
- Whether the CloudTrail is currently logging AWS API calls.
- IsMulti boolRegion Trail 
- Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.
- IsOrganization boolTrail 
- Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.
- KmsKey stringId 
- Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by 'alias/', a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
- S3BucketName string
- Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- S3KeyPrefix string
- Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
- SnsTopic stringArn 
- Refreturns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such as- arn:aws:sns:us-east-2:123456789012:mySNSTopic.
- SnsTopic stringName 
- Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- Tag
- A custom set of tags (key-value pairs) for this trail.
- advancedEvent List<TrailSelectors Advanced Event Selector> 
- The advanced event selectors that were used to select events for the data store.
- arn String
- Refreturns the ARN of the CloudTrail trail, such as- arn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail.
- cloudWatch StringLogs Log Group Arn 
- Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.
- cloudWatch StringLogs Role Arn 
- Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- enableLog BooleanFile Validation 
- Specifies whether log file validation is enabled. The default is false.
- eventSelectors List<TrailEvent Selector> 
- Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail.
- includeGlobal BooleanService Events 
- Specifies whether the trail is publishing events from global services such as IAM to the log files.
- insightSelectors List<TrailInsight Selector> 
- Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- isLogging Boolean
- Whether the CloudTrail is currently logging AWS API calls.
- isMulti BooleanRegion Trail 
- Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.
- isOrganization BooleanTrail 
- Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.
- kmsKey StringId 
- Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by 'alias/', a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
- s3BucketName String
- Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- s3KeyPrefix String
- Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
- snsTopic StringArn 
- Refreturns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such as- arn:aws:sns:us-east-2:123456789012:mySNSTopic.
- snsTopic StringName 
- Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- List<Tag>
- A custom set of tags (key-value pairs) for this trail.
- advancedEvent TrailSelectors Advanced Event Selector[] 
- The advanced event selectors that were used to select events for the data store.
- arn string
- Refreturns the ARN of the CloudTrail trail, such as- arn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail.
- cloudWatch stringLogs Log Group Arn 
- Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.
- cloudWatch stringLogs Role Arn 
- Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- enableLog booleanFile Validation 
- Specifies whether log file validation is enabled. The default is false.
- eventSelectors TrailEvent Selector[] 
- Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail.
- includeGlobal booleanService Events 
- Specifies whether the trail is publishing events from global services such as IAM to the log files.
- insightSelectors TrailInsight Selector[] 
- Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- isLogging boolean
- Whether the CloudTrail is currently logging AWS API calls.
- isMulti booleanRegion Trail 
- Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.
- isOrganization booleanTrail 
- Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.
- kmsKey stringId 
- Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by 'alias/', a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
- s3BucketName string
- Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- s3KeyPrefix string
- Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
- snsTopic stringArn 
- Refreturns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such as- arn:aws:sns:us-east-2:123456789012:mySNSTopic.
- snsTopic stringName 
- Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- Tag[]
- A custom set of tags (key-value pairs) for this trail.
- advanced_event_ Sequence[Trailselectors Advanced Event Selector] 
- The advanced event selectors that were used to select events for the data store.
- arn str
- Refreturns the ARN of the CloudTrail trail, such as- arn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail.
- cloud_watch_ strlogs_ log_ group_ arn 
- Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.
- cloud_watch_ strlogs_ role_ arn 
- Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- enable_log_ boolfile_ validation 
- Specifies whether log file validation is enabled. The default is false.
- event_selectors Sequence[TrailEvent Selector] 
- Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail.
- include_global_ boolservice_ events 
- Specifies whether the trail is publishing events from global services such as IAM to the log files.
- insight_selectors Sequence[TrailInsight Selector] 
- Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- is_logging bool
- Whether the CloudTrail is currently logging AWS API calls.
- is_multi_ boolregion_ trail 
- Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.
- is_organization_ booltrail 
- Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.
- kms_key_ strid 
- Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by 'alias/', a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
- s3_bucket_ strname 
- Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- s3_key_ strprefix 
- Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
- sns_topic_ strarn 
- Refreturns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such as- arn:aws:sns:us-east-2:123456789012:mySNSTopic.
- sns_topic_ strname 
- Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- Sequence[root_Tag]
- A custom set of tags (key-value pairs) for this trail.
- advancedEvent List<Property Map>Selectors 
- The advanced event selectors that were used to select events for the data store.
- arn String
- Refreturns the ARN of the CloudTrail trail, such as- arn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail.
- cloudWatch StringLogs Log Group Arn 
- Specifies a log group name using an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered. Not required unless you specify CloudWatchLogsRoleArn.
- cloudWatch StringLogs Role Arn 
- Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- enableLog BooleanFile Validation 
- Specifies whether log file validation is enabled. The default is false.
- eventSelectors List<Property Map>
- Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event. You can configure up to five event selectors for a trail.
- includeGlobal BooleanService Events 
- Specifies whether the trail is publishing events from global services such as IAM to the log files.
- insightSelectors List<Property Map>
- Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- isLogging Boolean
- Whether the CloudTrail is currently logging AWS API calls.
- isMulti BooleanRegion Trail 
- Specifies whether the trail applies only to the current region or to all regions. The default is false. If the trail exists only in the current region and this value is set to true, shadow trails (replications of the trail) will be created in the other regions. If the trail exists in all regions and this value is set to false, the trail will remain in the region where it was created, and its shadow trails in other regions will be deleted. As a best practice, consider using trails that log events in all regions.
- isOrganization BooleanTrail 
- Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.
- kmsKey StringId 
- Specifies the KMS key ID to use to encrypt the logs delivered by CloudTrail. The value can be an alias name prefixed by 'alias/', a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
- s3BucketName String
- Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- s3KeyPrefix String
- Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files. The maximum length is 200 characters.
- snsTopic StringArn 
- Refreturns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such as- arn:aws:sns:us-east-2:123456789012:mySNSTopic.
- snsTopic StringName 
- Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- List<Property Map>
- A custom set of tags (key-value pairs) for this trail.
Supporting Types
Tag
TrailAdvancedEventSelector   
- FieldSelectors List<Pulumi.Aws Native. Cloud Trail. Inputs. Trail Advanced Field Selector> 
- Contains all selector statements in an advanced event selector.
- Name string
- An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
- FieldSelectors []TrailAdvanced Field Selector 
- Contains all selector statements in an advanced event selector.
- Name string
- An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
- fieldSelectors List<TrailAdvanced Field Selector> 
- Contains all selector statements in an advanced event selector.
- name String
- An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
- fieldSelectors TrailAdvanced Field Selector[] 
- Contains all selector statements in an advanced event selector.
- name string
- An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
- field_selectors Sequence[TrailAdvanced Field Selector] 
- Contains all selector statements in an advanced event selector.
- name str
- An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
- fieldSelectors List<Property Map>
- Contains all selector statements in an advanced event selector.
- name String
- An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".
TrailAdvancedFieldSelector   
- Field string
- A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
- EndsWith List<string>
- An operator that includes events that match the last few characters of the event record field specified as the value of Field.
- Equals List<string>
- An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
- NotEnds List<string>With 
- An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
- NotEquals List<string>
- An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- NotStarts List<string>With 
- An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
- StartsWith List<string>
- An operator that includes events that match the first few characters of the event record field specified as the value of Field.
- Field string
- A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
- EndsWith []string
- An operator that includes events that match the last few characters of the event record field specified as the value of Field.
- Equals []string
- An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
- NotEnds []stringWith 
- An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
- NotEquals []string
- An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- NotStarts []stringWith 
- An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
- StartsWith []string
- An operator that includes events that match the first few characters of the event record field specified as the value of Field.
- field String
- A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
- endsWith List<String>
- An operator that includes events that match the last few characters of the event record field specified as the value of Field.
- equals_ List<String>
- An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
- notEnds List<String>With 
- An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
- notEquals List<String>
- An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- notStarts List<String>With 
- An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
- startsWith List<String>
- An operator that includes events that match the first few characters of the event record field specified as the value of Field.
- field string
- A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
- endsWith string[]
- An operator that includes events that match the last few characters of the event record field specified as the value of Field.
- equals string[]
- An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
- notEnds string[]With 
- An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
- notEquals string[]
- An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- notStarts string[]With 
- An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
- startsWith string[]
- An operator that includes events that match the first few characters of the event record field specified as the value of Field.
- field str
- A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
- ends_with Sequence[str]
- An operator that includes events that match the last few characters of the event record field specified as the value of Field.
- equals Sequence[str]
- An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
- not_ends_ Sequence[str]with 
- An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
- not_equals Sequence[str]
- An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- not_starts_ Sequence[str]with 
- An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
- starts_with Sequence[str]
- An operator that includes events that match the first few characters of the event record field specified as the value of Field.
- field String
- A field in an event record on which to filter events to be logged. Supported fields include readOnly, eventCategory, eventSource (for management events), eventName, resources.type, and resources.ARN.
- endsWith List<String>
- An operator that includes events that match the last few characters of the event record field specified as the value of Field.
- equals List<String>
- An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
- notEnds List<String>With 
- An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
- notEquals List<String>
- An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- notStarts List<String>With 
- An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
- startsWith List<String>
- An operator that includes events that match the first few characters of the event record field specified as the value of Field.
TrailDataResource  
TrailEventSelector  
- DataResources List<Pulumi.Aws Native. Cloud Trail. Inputs. Trail Data Resource> 
- CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events. - For more information, see Data Events and Limits in AWS CloudTrail in the AWS CloudTrail User Guide . - To log data events for all other resource types including objects stored in directory buckets , you must use AdvancedEventSelectors . You must also use - AdvancedEventSelectorsif you want to filter on the- eventNamefield.
- ExcludeManagement List<string>Event Sources 
- An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by containing "kms.amazonaws.com". By default, ExcludeManagementEventSources is empty, and AWS KMS events are included in events that are logged to your trail.
- IncludeManagement boolEvents 
- Specify if you want your event selector to include management events for your trail.
- ReadWrite Pulumi.Type Aws Native. Cloud Trail. Trail Event Selector Read Write Type 
- Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.
- DataResources []TrailData Resource 
- CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events. - For more information, see Data Events and Limits in AWS CloudTrail in the AWS CloudTrail User Guide . - To log data events for all other resource types including objects stored in directory buckets , you must use AdvancedEventSelectors . You must also use - AdvancedEventSelectorsif you want to filter on the- eventNamefield.
- ExcludeManagement []stringEvent Sources 
- An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by containing "kms.amazonaws.com". By default, ExcludeManagementEventSources is empty, and AWS KMS events are included in events that are logged to your trail.
- IncludeManagement boolEvents 
- Specify if you want your event selector to include management events for your trail.
- ReadWrite TrailType Event Selector Read Write Type 
- Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.
- dataResources List<TrailData Resource> 
- CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events. - For more information, see Data Events and Limits in AWS CloudTrail in the AWS CloudTrail User Guide . - To log data events for all other resource types including objects stored in directory buckets , you must use AdvancedEventSelectors . You must also use - AdvancedEventSelectorsif you want to filter on the- eventNamefield.
- excludeManagement List<String>Event Sources 
- An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by containing "kms.amazonaws.com". By default, ExcludeManagementEventSources is empty, and AWS KMS events are included in events that are logged to your trail.
- includeManagement BooleanEvents 
- Specify if you want your event selector to include management events for your trail.
- readWrite TrailType Event Selector Read Write Type 
- Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.
- dataResources TrailData Resource[] 
- CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events. - For more information, see Data Events and Limits in AWS CloudTrail in the AWS CloudTrail User Guide . - To log data events for all other resource types including objects stored in directory buckets , you must use AdvancedEventSelectors . You must also use - AdvancedEventSelectorsif you want to filter on the- eventNamefield.
- excludeManagement string[]Event Sources 
- An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by containing "kms.amazonaws.com". By default, ExcludeManagementEventSources is empty, and AWS KMS events are included in events that are logged to your trail.
- includeManagement booleanEvents 
- Specify if you want your event selector to include management events for your trail.
- readWrite TrailType Event Selector Read Write Type 
- Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.
- data_resources Sequence[TrailData Resource] 
- CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events. - For more information, see Data Events and Limits in AWS CloudTrail in the AWS CloudTrail User Guide . - To log data events for all other resource types including objects stored in directory buckets , you must use AdvancedEventSelectors . You must also use - AdvancedEventSelectorsif you want to filter on the- eventNamefield.
- exclude_management_ Sequence[str]event_ sources 
- An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by containing "kms.amazonaws.com". By default, ExcludeManagementEventSources is empty, and AWS KMS events are included in events that are logged to your trail.
- include_management_ boolevents 
- Specify if you want your event selector to include management events for your trail.
- read_write_ Trailtype Event Selector Read Write Type 
- Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.
- dataResources List<Property Map>
- CloudTrail supports data event logging for Amazon S3 objects in standard S3 buckets, AWS Lambda functions, and Amazon DynamoDB tables with basic event selectors. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events. - For more information, see Data Events and Limits in AWS CloudTrail in the AWS CloudTrail User Guide . - To log data events for all other resource types including objects stored in directory buckets , you must use AdvancedEventSelectors . You must also use - AdvancedEventSelectorsif you want to filter on the- eventNamefield.
- excludeManagement List<String>Event Sources 
- An optional list of service event sources from which you do not want management events to be logged on your trail. In this release, the list can be empty (disables the filter), or it can filter out AWS Key Management Service events by containing "kms.amazonaws.com". By default, ExcludeManagementEventSources is empty, and AWS KMS events are included in events that are logged to your trail.
- includeManagement BooleanEvents 
- Specify if you want your event selector to include management events for your trail.
- readWrite "All" | "ReadType Only" | "Write Only" 
- Specify if you want your trail to log read-only events, write-only events, or all. For example, the EC2 GetConsoleOutput is a read-only API operation and RunInstances is a write-only API operation.
TrailEventSelectorReadWriteType     
TrailInsightSelector  
- InsightType string
- The type of insight to log on a trail.
- InsightType string
- The type of insight to log on a trail.
- insightType String
- The type of insight to log on a trail.
- insightType string
- The type of insight to log on a trail.
- insight_type str
- The type of insight to log on a trail.
- insightType String
- The type of insight to log on a trail.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.