Documentation ¶
Index ¶
- type LogGroup
- type Trail
- type TrailArgs
- type TrailArray
- type TrailArrayInput
- type TrailArrayOutput
- type TrailInput
- type TrailMap
- type TrailMapInput
- type TrailMapOutput
- type TrailOutput
- func (o TrailOutput) Bucket() s3.BucketOutput
- func (TrailOutput) ElementType() reflect.Type
- func (o TrailOutput) LogGroup() cloudwatch.LogGroupOutput
- func (o TrailOutput) ToTrailOutput() TrailOutput
- func (o TrailOutput) ToTrailOutputWithContext(ctx context.Context) TrailOutput
- func (o TrailOutput) Trail() cloudtrail.TrailOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogGroup ¶
type LogGroup struct { // The ARN of the KMS Key to use when encrypting log data. KmsKeyId *string `pulumi:"kmsKeyId"` // Creates a unique name beginning with the specified prefix NamePrefix *string `pulumi:"namePrefix"` // Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire. RetentionInDays *int `pulumi:"retentionInDays"` // A map of tags to assign to the resource. If configured with provider defaultTags present, tags with matching keys will overwrite those defined at the provider-level. Tags map[string]string `pulumi:"tags"` }
Defines the log group configuration for the CloudWatch Log Group to send logs to.
type Trail ¶
type Trail struct { pulumi.ResourceState // The managed S3 Bucket where the Trail will place its logs. Bucket s3.BucketOutput `pulumi:"bucket"` // The managed Cloudwatch Log Group. LogGroup cloudwatch.LogGroupOutput `pulumi:"logGroup"` // The CloudTrail Trail. Trail cloudtrail.TrailOutput `pulumi:"trail"` }
func NewTrail ¶
func NewTrail(ctx *pulumi.Context, name string, args *TrailArgs, opts ...pulumi.ResourceOption) (*Trail, error)
NewTrail registers a new resource with the given unique name, arguments, and options.
func (*Trail) ElementType ¶
func (*Trail) ToTrailOutput ¶
func (i *Trail) ToTrailOutput() TrailOutput
func (*Trail) ToTrailOutputWithContext ¶
func (i *Trail) ToTrailOutputWithContext(ctx context.Context) TrailOutput
type TrailArgs ¶
type TrailArgs struct { // Specifies an advanced event selector for enabling data event logging. Fields documented below. Conflicts with `event_selector`. AdvancedEventSelectors cloudtrail.TrailAdvancedEventSelectorArrayInput // Log group to which CloudTrail logs will be delivered. CloudWatchLogsGroup *awsxgo.OptionalLogGroupArgs // Whether log file integrity validation is enabled. Defaults to `false`. EnableLogFileValidation pulumi.BoolPtrInput // Enables logging for the trail. Defaults to `true`. Setting this to `false` will pause logging. EnableLogging pulumi.BoolPtrInput // Specifies an event selector for enabling data event logging. Fields documented below. Please note the [CloudTrail limits](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) when configuring these. Conflicts with `advanced_event_selector`. EventSelectors cloudtrail.TrailEventSelectorArrayInput // Whether the trail is publishing events from global services such as IAM to the log files. Defaults to `true`. IncludeGlobalServiceEvents pulumi.BoolPtrInput // Configuration block for identifying unusual operational activity. See details below. InsightSelectors cloudtrail.TrailInsightSelectorArrayInput // Whether the trail is created in the current region or in all regions. Defaults to `false`. IsMultiRegionTrail pulumi.BoolPtrInput // Whether the trail is an AWS Organizations trail. Organization trails log events for the master account and all member accounts. Can only be created in the organization master account. Defaults to `false`. IsOrganizationTrail pulumi.BoolPtrInput // KMS key ARN to use to encrypt the logs delivered by CloudTrail. KmsKeyId pulumi.StringPtrInput // Specifies the name of the advanced event selector. Name pulumi.StringPtrInput // S3 bucket designated for publishing log files. S3Bucket *awsxgo.RequiredBucketArgs // S3 key prefix that follows the name of the bucket you have designated for log file delivery. S3KeyPrefix pulumi.StringPtrInput // Name of the Amazon SNS topic defined for notification of log file delivery. SnsTopicName pulumi.StringPtrInput // Map of tags to assign to the trail. If configured with provider defaultTags present, tags with matching keys will overwrite those defined at the provider-level. Tags pulumi.StringMapInput }
The set of arguments for constructing a Trail resource.
func (TrailArgs) ElementType ¶
type TrailArray ¶
type TrailArray []TrailInput
func (TrailArray) ElementType ¶
func (TrailArray) ElementType() reflect.Type
func (TrailArray) ToTrailArrayOutput ¶
func (i TrailArray) ToTrailArrayOutput() TrailArrayOutput
func (TrailArray) ToTrailArrayOutputWithContext ¶
func (i TrailArray) ToTrailArrayOutputWithContext(ctx context.Context) TrailArrayOutput
type TrailArrayInput ¶
type TrailArrayInput interface { pulumi.Input ToTrailArrayOutput() TrailArrayOutput ToTrailArrayOutputWithContext(context.Context) TrailArrayOutput }
TrailArrayInput is an input type that accepts TrailArray and TrailArrayOutput values. You can construct a concrete instance of `TrailArrayInput` via:
TrailArray{ TrailArgs{...} }
type TrailArrayOutput ¶
type TrailArrayOutput struct{ *pulumi.OutputState }
func (TrailArrayOutput) ElementType ¶
func (TrailArrayOutput) ElementType() reflect.Type
func (TrailArrayOutput) Index ¶
func (o TrailArrayOutput) Index(i pulumi.IntInput) TrailOutput
func (TrailArrayOutput) ToTrailArrayOutput ¶
func (o TrailArrayOutput) ToTrailArrayOutput() TrailArrayOutput
func (TrailArrayOutput) ToTrailArrayOutputWithContext ¶
func (o TrailArrayOutput) ToTrailArrayOutputWithContext(ctx context.Context) TrailArrayOutput
type TrailInput ¶
type TrailInput interface { pulumi.Input ToTrailOutput() TrailOutput ToTrailOutputWithContext(ctx context.Context) TrailOutput }
type TrailMap ¶
type TrailMap map[string]TrailInput
func (TrailMap) ElementType ¶
func (TrailMap) ToTrailMapOutput ¶
func (i TrailMap) ToTrailMapOutput() TrailMapOutput
func (TrailMap) ToTrailMapOutputWithContext ¶
func (i TrailMap) ToTrailMapOutputWithContext(ctx context.Context) TrailMapOutput
type TrailMapInput ¶
type TrailMapInput interface { pulumi.Input ToTrailMapOutput() TrailMapOutput ToTrailMapOutputWithContext(context.Context) TrailMapOutput }
TrailMapInput is an input type that accepts TrailMap and TrailMapOutput values. You can construct a concrete instance of `TrailMapInput` via:
TrailMap{ "key": TrailArgs{...} }
type TrailMapOutput ¶
type TrailMapOutput struct{ *pulumi.OutputState }
func (TrailMapOutput) ElementType ¶
func (TrailMapOutput) ElementType() reflect.Type
func (TrailMapOutput) MapIndex ¶
func (o TrailMapOutput) MapIndex(k pulumi.StringInput) TrailOutput
func (TrailMapOutput) ToTrailMapOutput ¶
func (o TrailMapOutput) ToTrailMapOutput() TrailMapOutput
func (TrailMapOutput) ToTrailMapOutputWithContext ¶
func (o TrailMapOutput) ToTrailMapOutputWithContext(ctx context.Context) TrailMapOutput
type TrailOutput ¶
type TrailOutput struct{ *pulumi.OutputState }
func (TrailOutput) Bucket ¶
func (o TrailOutput) Bucket() s3.BucketOutput
The managed S3 Bucket where the Trail will place its logs.
func (TrailOutput) ElementType ¶
func (TrailOutput) ElementType() reflect.Type
func (TrailOutput) LogGroup ¶
func (o TrailOutput) LogGroup() cloudwatch.LogGroupOutput
The managed Cloudwatch Log Group.
func (TrailOutput) ToTrailOutput ¶
func (o TrailOutput) ToTrailOutput() TrailOutput
func (TrailOutput) ToTrailOutputWithContext ¶
func (o TrailOutput) ToTrailOutputWithContext(ctx context.Context) TrailOutput
func (TrailOutput) Trail ¶
func (o TrailOutput) Trail() cloudtrail.TrailOutput
The CloudTrail Trail.