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, insight_selectors=None, is_multi_region_trail=None, is_organization_trail=None, kms_key_id=None, s3_key_prefix=None, sns_topic_name=None, tags=None, trail_name=None)

Bases: object

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, IResolvable, None]) – AWS::CloudTrail::Trail.EnableLogFileValidation.

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

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

  • insight_selectors (Union[IResolvable, Sequence[Union[IResolvable, InsightSelectorProperty]], None]) – AWS::CloudTrail::Trail.InsightSelectors.

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

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

  • 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[Sequence[CfnTag]]) – AWS::CloudTrail::Trail.Tags.

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

Link

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

Attributes

cloud_watch_logs_log_group_arn

AWS::CloudTrail::Trail.CloudWatchLogsLogGroupArn.

Link

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.

Link

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.

Link

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

Return type

Union[bool, IResolvable, None]

event_selectors

AWS::CloudTrail::Trail.EventSelectors.

Link

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

Return type

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

include_global_service_events

AWS::CloudTrail::Trail.IncludeGlobalServiceEvents.

Link

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

Return type

Union[bool, IResolvable, None]

insight_selectors

AWS::CloudTrail::Trail.InsightSelectors.

Link

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

Return type

Union[IResolvable, List[Union[IResolvable, InsightSelectorProperty]], None]

is_logging

AWS::CloudTrail::Trail.IsLogging.

Link

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.

Link

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

Return type

Union[bool, IResolvable, None]

is_organization_trail

AWS::CloudTrail::Trail.IsOrganizationTrail.

Link

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

Return type

Union[bool, IResolvable, None]

kms_key_id

AWS::CloudTrail::Trail.KMSKeyId.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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.

Link

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

Return type

Optional[str]