cloudtrail

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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) ElementType() reflect.Type

func (*Trail) ToOutput added in v1.0.6

func (i *Trail) ToOutput(ctx context.Context) pulumix.Output[*Trail]

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 *awsx.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
	// Name of the trail.
	Name pulumi.StringPtrInput
	// S3 bucket designated for publishing log files.
	S3Bucket *awsx.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 a provider `default_tags` configuration block 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

func (TrailArgs) ElementType() reflect.Type

type TrailArray

type TrailArray []TrailInput

func (TrailArray) ElementType

func (TrailArray) ElementType() reflect.Type

func (TrailArray) ToOutput added in v1.0.6

func (i TrailArray) ToOutput(ctx context.Context) pulumix.Output[[]*Trail]

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 (TrailArrayOutput) ToOutput added in v1.0.6

func (o TrailArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Trail]

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) ElementType() reflect.Type

func (TrailMap) ToOutput added in v1.0.6

func (i TrailMap) ToOutput(ctx context.Context) pulumix.Output[map[string]*Trail]

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 (TrailMapOutput) ToOutput added in v1.0.6

func (o TrailMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Trail]

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) ToOutput added in v1.0.6

func (o TrailOutput) ToOutput(ctx context.Context) pulumix.Output[*Trail]

func (TrailOutput) ToTrailOutput

func (o TrailOutput) ToTrailOutput() TrailOutput

func (TrailOutput) ToTrailOutputWithContext

func (o TrailOutput) ToTrailOutputWithContext(ctx context.Context) TrailOutput

func (TrailOutput) Trail

The CloudTrail Trail.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL