AWS Native is in preview. AWS Classic is fully supported.
aws-native.cloudtrail.Trail
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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.
Create Trail Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Trail(name: string, args: TrailArgs, opts?: CustomResourceOptions);
@overload
def Trail(resource_name: str,
args: TrailArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Trail(resource_name: str,
opts: Optional[ResourceOptions] = None,
is_logging: Optional[bool] = None,
s3_bucket_name: Optional[str] = None,
is_multi_region_trail: Optional[bool] = None,
is_organization_trail: Optional[bool] = None,
event_selectors: Optional[Sequence[TrailEventSelectorArgs]] = None,
include_global_service_events: Optional[bool] = None,
insight_selectors: Optional[Sequence[TrailInsightSelectorArgs]] = None,
cloud_watch_logs_role_arn: Optional[str] = None,
advanced_event_selectors: Optional[Sequence[TrailAdvancedEventSelectorArgs]] = None,
enable_log_file_validation: Optional[bool] = None,
kms_key_id: Optional[str] = None,
cloud_watch_logs_log_group_arn: Optional[str] = None,
s3_key_prefix: Optional[str] = None,
sns_topic_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
trail_name: Optional[str] = None)
func NewTrail(ctx *Context, name string, args TrailArgs, opts ...ResourceOption) (*Trail, error)
public Trail(string name, TrailArgs args, CustomResourceOptions? opts = null)
type: aws-native:cloudtrail:Trail
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TrailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TrailArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TrailArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrailArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Trail Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Trail resource accepts the following input properties:
- Is
Logging bool - Whether the CloudTrail is currently logging AWS API calls.
- S3Bucket
Name string - Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- Advanced
Event List<Pulumi.Selectors Aws Native. Cloud Trail. Inputs. Trail Advanced Event Selector> - The advanced event selectors that were used to select events for the data store.
- Cloud
Watch 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.
- Cloud
Watch stringLogs 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 List<Pulumi.Aws Native. Cloud Trail. Inputs. 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.
- Include
Global boolService Events - Specifies whether the trail is publishing events from global services such as IAM to the log files.
- Insight
Selectors List<Pulumi.Aws Native. Cloud Trail. Inputs. Trail Insight Selector> - Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- 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 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.
- S3Key
Prefix 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.
- Sns
Topic 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. Inputs. Tag> - A custom set of tags (key-value pairs) for this trail.
- Trail
Name 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-_namespace
andmy--namespace
are not valid. - Not be in IP address format (for example, 192.168.5.4)
- Is
Logging bool - Whether the CloudTrail is currently logging AWS API calls.
- S3Bucket
Name string - Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- Advanced
Event []TrailSelectors Advanced Event Selector Args - The advanced event selectors that were used to select events for the data store.
- Cloud
Watch 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.
- Cloud
Watch stringLogs 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 []TrailEvent Selector Args - 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 []TrailInsight Selector Args - Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- 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 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.
- S3Key
Prefix 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.
- Sns
Topic stringName - Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- Tag
Args - A custom set of tags (key-value pairs) for this trail.
- Trail
Name 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-_namespace
andmy--namespace
are not valid. - Not be in IP address format (for example, 192.168.5.4)
- is
Logging Boolean - Whether the CloudTrail is currently logging AWS API calls.
- s3Bucket
Name String - Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- advanced
Event List<TrailSelectors Advanced Event Selector> - The advanced event selectors that were used to select events for the data store.
- cloud
Watch 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.
- cloud
Watch StringLogs Role Arn - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- enable
Log BooleanFile Validation - Specifies whether log file validation is enabled. The default is false.
- event
Selectors 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.
- include
Global BooleanService Events - Specifies whether the trail is publishing events from global services such as IAM to the log files.
- insight
Selectors List<TrailInsight Selector> - Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- is
Multi 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.
- is
Organization 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.
- kms
Key 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.
- s3Key
Prefix 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.
- sns
Topic 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.
- trail
Name 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-_namespace
andmy--namespace
are not valid. - Not be in IP address format (for example, 192.168.5.4)
- is
Logging boolean - Whether the CloudTrail is currently logging AWS API calls.
- s3Bucket
Name string - Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- advanced
Event TrailSelectors Advanced Event Selector[] - The advanced event selectors that were used to select events for the data store.
- cloud
Watch 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.
- cloud
Watch stringLogs Role Arn - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- enable
Log booleanFile Validation - Specifies whether log file validation is enabled. The default is false.
- event
Selectors 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 booleanService Events - Specifies whether the trail is publishing events from global services such as IAM to the log files.
- insight
Selectors TrailInsight Selector[] - Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- is
Multi 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.
- is
Organization 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.
- kms
Key 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.
- s3Key
Prefix 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.
- sns
Topic 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.
- trail
Name 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-_namespace
andmy--namespace
are not valid. - Not be in IP address format (for example, 192.168.5.4)
- is_
logging bool - Whether the CloudTrail is currently logging AWS API calls.
- s3_
bucket_ strname - Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- advanced_
event_ Sequence[Trailselectors Advanced Event Selector Args] - The advanced event selectors that were used to select events for the data store.
- 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 Args] - 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 Args] - Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- 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_
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_ strname - Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is 256 characters.
- Sequence[Tag
Args] - A custom set of tags (key-value pairs) for this trail.
- 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-_namespace
andmy--namespace
are not valid. - Not be in IP address format (for example, 192.168.5.4)
- is
Logging Boolean - Whether the CloudTrail is currently logging AWS API calls.
- s3Bucket
Name String - Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.
- advanced
Event List<Property Map>Selectors - The advanced event selectors that were used to select events for the data store.
- cloud
Watch 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.
- cloud
Watch StringLogs Role Arn - Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
- enable
Log BooleanFile Validation - Specifies whether log file validation is enabled. The default is false.
- event
Selectors 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.
- include
Global BooleanService Events - Specifies whether the trail is publishing events from global services such as IAM to the log files.
- insight
Selectors List<Property Map> - Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail.
- is
Multi 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.
- is
Organization 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.
- kms
Key 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.
- s3Key
Prefix 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.
- sns
Topic 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.
- trail
Name 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-_namespace
andmy--namespace
are not valid. - Not be in IP address format (for example, 192.168.5.4)
Outputs
All input properties are implicitly available as output properties. Additionally, the Trail resource produces the following output properties:
- Arn string
Ref
returns the ARN of the CloudTrail trail, such asarn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail
.- Id string
- The provider-assigned unique ID for this managed resource.
- Sns
Topic stringArn Ref
returns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such asarn:aws:sns:us-east-2:123456789012:mySNSTopic
.
- Arn string
Ref
returns the ARN of the CloudTrail trail, such asarn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail
.- Id string
- The provider-assigned unique ID for this managed resource.
- Sns
Topic stringArn Ref
returns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such asarn:aws:sns:us-east-2:123456789012:mySNSTopic
.
- arn String
Ref
returns the ARN of the CloudTrail trail, such asarn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail
.- id String
- The provider-assigned unique ID for this managed resource.
- sns
Topic StringArn Ref
returns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such asarn:aws:sns:us-east-2:123456789012:mySNSTopic
.
- arn string
Ref
returns the ARN of the CloudTrail trail, such asarn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail
.- id string
- The provider-assigned unique ID for this managed resource.
- sns
Topic stringArn Ref
returns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such asarn:aws:sns:us-east-2:123456789012:mySNSTopic
.
- arn str
Ref
returns the ARN of the CloudTrail trail, such asarn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail
.- id str
- The provider-assigned unique ID for this managed resource.
- sns_
topic_ strarn Ref
returns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such asarn:aws:sns:us-east-2:123456789012:mySNSTopic
.
- arn String
Ref
returns the ARN of the CloudTrail trail, such asarn:aws:cloudtrail:us-east-2:123456789012:trail/myCloudTrail
.- id String
- The provider-assigned unique ID for this managed resource.
- sns
Topic StringArn Ref
returns the ARN of the Amazon SNS topic that's associated with the CloudTrail trail, such asarn:aws:sns:us-east-2:123456789012:mySNSTopic
.
Supporting Types
Tag, TagArgs
TrailAdvancedEventSelector, TrailAdvancedEventSelectorArgs
- Field
Selectors 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".
- Field
Selectors []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 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".
- field
Selectors 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".
- field
Selectors 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, TrailAdvancedFieldSelectorArgs
- 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.
- Ends
With 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.
- Not
Ends 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.
- Not
Equals List<string> - An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- Not
Starts 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.
- Starts
With 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.
- Ends
With []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.
- Not
Ends []stringWith - An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
- Not
Equals []string - An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- Not
Starts []stringWith - An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
- Starts
With []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.
- ends
With 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.
- not
Ends 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.
- not
Equals List<String> - An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- not
Starts 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.
- starts
With 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.
- ends
With 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.
- not
Ends string[]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 string[] - An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- not
Starts string[]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 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.
- ends
With 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.
- not
Ends 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.
- not
Equals List<String> - An operator that excludes events that match the exact value of the event record field specified as the value of Field.
- not
Starts 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.
- starts
With 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, TrailDataResourceArgs
TrailEventSelector, TrailEventSelectorArgs
- Data
Resources List<Pulumi.Aws Native. Cloud Trail. Inputs. Trail Data Resource> CloudTrail supports data event logging for Amazon S3 objects, 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 .
- Exclude
Management 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.
- Include
Management boolEvents - Specify if you want your event selector to include management events for your trail.
- Read
Write 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.
- Data
Resources []TrailData Resource CloudTrail supports data event logging for Amazon S3 objects, 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 .
- Exclude
Management []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.
- 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.
- data
Resources List<TrailData Resource> CloudTrail supports data event logging for Amazon S3 objects, 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 .
- exclude
Management 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.
- include
Management BooleanEvents - 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.
- data
Resources TrailData Resource[] CloudTrail supports data event logging for Amazon S3 objects, 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 .
- exclude
Management 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.
- include
Management booleanEvents - 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.
- data_
resources Sequence[TrailData Resource] CloudTrail supports data event logging for Amazon S3 objects, 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 .
- 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.
- data
Resources List<Property Map> CloudTrail supports data event logging for Amazon S3 objects, 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 .
- exclude
Management 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.
- include
Management BooleanEvents - Specify if you want your event selector to include management events for your trail.
- read
Write "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, TrailEventSelectorReadWriteTypeArgs
- All
- All
- Read
Only - ReadOnly
- Write
Only - WriteOnly
- Trail
Event Selector Read Write Type All - All
- Trail
Event Selector Read Write Type Read Only - ReadOnly
- Trail
Event Selector Read Write Type Write Only - WriteOnly
- All
- All
- Read
Only - ReadOnly
- Write
Only - WriteOnly
- All
- All
- Read
Only - ReadOnly
- Write
Only - WriteOnly
- ALL
- All
- READ_ONLY
- ReadOnly
- WRITE_ONLY
- WriteOnly
- "All"
- All
- "Read
Only" - ReadOnly
- "Write
Only" - WriteOnly
TrailInsightSelector, TrailInsightSelectorArgs
- Insight
Type string - The type of insight to log on a trail.
- Insight
Type string - The type of insight to log on a trail.
- insight
Type String - The type of insight to log on a trail.
- insight
Type string - The type of insight to log on a trail.
- insight_
type str - The type of insight to log on a trail.
- insight
Type String - The type of insight to log on a trail.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.