CfnTrailProps

class aws_cdk.aws_cloudtrail.CfnTrailProps(*, is_logging, s3_bucket_name, cloud_watch_logs_log_group_arn=None, cloud_watch_logs_role_arn=None, enable_log_file_validation=None, event_selectors=None, include_global_service_events=None, is_multi_region_trail=None, kms_key_id=None, s3_key_prefix=None, sns_topic_name=None, tags=None, trail_name=None)

Bases: object

__init__(*, is_logging, s3_bucket_name, cloud_watch_logs_log_group_arn=None, cloud_watch_logs_role_arn=None, enable_log_file_validation=None, event_selectors=None, include_global_service_events=None, is_multi_region_trail=None, kms_key_id=None, s3_key_prefix=None, sns_topic_name=None, tags=None, trail_name=None)

Properties for defining a AWS::CloudTrail::Trail.

Parameters
  • is_logging (Union[bool, IResolvable]) – AWS::CloudTrail::Trail.IsLogging.

  • s3_bucket_name (str) – AWS::CloudTrail::Trail.S3BucketName.

  • cloud_watch_logs_log_group_arn (Optional[str]) – AWS::CloudTrail::Trail.CloudWatchLogsLogGroupArn.

  • cloud_watch_logs_role_arn (Optional[str]) – AWS::CloudTrail::Trail.CloudWatchLogsRoleArn.

  • enable_log_file_validation (Union[bool, None, IResolvable]) – AWS::CloudTrail::Trail.EnableLogFileValidation.

  • event_selectors (Union[IResolvable, None, List[Union[IResolvable, EventSelectorProperty]]]) – AWS::CloudTrail::Trail.EventSelectors.

  • include_global_service_events (Union[bool, None, IResolvable]) – AWS::CloudTrail::Trail.IncludeGlobalServiceEvents.

  • is_multi_region_trail (Union[bool, None, IResolvable]) – AWS::CloudTrail::Trail.IsMultiRegionTrail.

  • kms_key_id (Optional[str]) – AWS::CloudTrail::Trail.KMSKeyId.

  • s3_key_prefix (Optional[str]) – AWS::CloudTrail::Trail.S3KeyPrefix.

  • sns_topic_name (Optional[str]) – AWS::CloudTrail::Trail.SnsTopicName.

  • tags (Optional[List[CfnTag]]) – AWS::CloudTrail::Trail.Tags.

  • trail_name (Optional[str]) – AWS::CloudTrail::Trail.TrailName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html

Attributes

cloud_watch_logs_log_group_arn

AWS::CloudTrail::Trail.CloudWatchLogsLogGroupArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsloggrouparn

Return type

Optional[str]

cloud_watch_logs_role_arn

AWS::CloudTrail::Trail.CloudWatchLogsRoleArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-cloudwatchlogsrolearn

Return type

Optional[str]

enable_log_file_validation

AWS::CloudTrail::Trail.EnableLogFileValidation.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-enablelogfilevalidation

Return type

Union[bool, None, IResolvable]

event_selectors

AWS::CloudTrail::Trail.EventSelectors.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-eventselectors

Return type

Union[IResolvable, None, List[Union[IResolvable, EventSelectorProperty]]]

include_global_service_events

AWS::CloudTrail::Trail.IncludeGlobalServiceEvents.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-includeglobalserviceevents

Return type

Union[bool, None, IResolvable]

is_logging

AWS::CloudTrail::Trail.IsLogging.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-islogging

Return type

Union[bool, IResolvable]

is_multi_region_trail

AWS::CloudTrail::Trail.IsMultiRegionTrail.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-ismultiregiontrail

Return type

Union[bool, None, IResolvable]

kms_key_id

AWS::CloudTrail::Trail.KMSKeyId.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-kmskeyid

Return type

Optional[str]

s3_bucket_name

AWS::CloudTrail::Trail.S3BucketName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-s3bucketname

Return type

str

s3_key_prefix

AWS::CloudTrail::Trail.S3KeyPrefix.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-s3keyprefix

Return type

Optional[str]

sns_topic_name

AWS::CloudTrail::Trail.SnsTopicName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-snstopicname

Return type

Optional[str]

tags

AWS::CloudTrail::Trail.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-tags

Return type

Optional[List[CfnTag]]

trail_name

AWS::CloudTrail::Trail.TrailName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html#cfn-cloudtrail-trail-trailname

Return type

Optional[str]