aws_cloudtrail

package
v5.45.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvancedEventSelector

type AdvancedEventSelector struct {
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// AdvancedEventSelectorFieldSelector: min=1
	FieldSelector []AdvancedEventSelectorFieldSelector `hcl:"field_selector,block" validate:"min=1"`
}

type AdvancedEventSelectorAttributes

type AdvancedEventSelectorAttributes struct {
	// contains filtered or unexported fields
}

func (AdvancedEventSelectorAttributes) FieldSelector

func (AdvancedEventSelectorAttributes) InternalRef

func (AdvancedEventSelectorAttributes) InternalTokens

func (aes AdvancedEventSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AdvancedEventSelectorAttributes) InternalWithRef

func (AdvancedEventSelectorAttributes) Name

type AdvancedEventSelectorFieldSelector

type AdvancedEventSelectorFieldSelector struct {
	// EndsWith: list of string, optional
	EndsWith terra.ListValue[terra.StringValue] `hcl:"ends_with,attr"`
	// Equals: list of string, optional
	Equals terra.ListValue[terra.StringValue] `hcl:"equals,attr"`
	// Field: string, required
	Field terra.StringValue `hcl:"field,attr" validate:"required"`
	// NotEndsWith: list of string, optional
	NotEndsWith terra.ListValue[terra.StringValue] `hcl:"not_ends_with,attr"`
	// NotEquals: list of string, optional
	NotEquals terra.ListValue[terra.StringValue] `hcl:"not_equals,attr"`
	// NotStartsWith: list of string, optional
	NotStartsWith terra.ListValue[terra.StringValue] `hcl:"not_starts_with,attr"`
	// StartsWith: list of string, optional
	StartsWith terra.ListValue[terra.StringValue] `hcl:"starts_with,attr"`
}

type AdvancedEventSelectorFieldSelectorAttributes

type AdvancedEventSelectorFieldSelectorAttributes struct {
	// contains filtered or unexported fields
}

func (AdvancedEventSelectorFieldSelectorAttributes) EndsWith

func (AdvancedEventSelectorFieldSelectorAttributes) Equals

func (AdvancedEventSelectorFieldSelectorAttributes) Field

func (AdvancedEventSelectorFieldSelectorAttributes) InternalRef

func (AdvancedEventSelectorFieldSelectorAttributes) InternalTokens

func (AdvancedEventSelectorFieldSelectorAttributes) InternalWithRef

func (AdvancedEventSelectorFieldSelectorAttributes) NotEndsWith

func (AdvancedEventSelectorFieldSelectorAttributes) NotEquals

func (AdvancedEventSelectorFieldSelectorAttributes) NotStartsWith

func (AdvancedEventSelectorFieldSelectorAttributes) StartsWith

type AdvancedEventSelectorFieldSelectorState

type AdvancedEventSelectorFieldSelectorState struct {
	EndsWith      []string `json:"ends_with"`
	Equals        []string `json:"equals"`
	Field         string   `json:"field"`
	NotEndsWith   []string `json:"not_ends_with"`
	NotEquals     []string `json:"not_equals"`
	NotStartsWith []string `json:"not_starts_with"`
	StartsWith    []string `json:"starts_with"`
}

type AdvancedEventSelectorState

type AdvancedEventSelectorState struct {
	Name          string                                    `json:"name"`
	FieldSelector []AdvancedEventSelectorFieldSelectorState `json:"field_selector"`
}

type Args

type Args struct {
	// CloudWatchLogsGroupArn: string, optional
	CloudWatchLogsGroupArn terra.StringValue `hcl:"cloud_watch_logs_group_arn,attr"`
	// CloudWatchLogsRoleArn: string, optional
	CloudWatchLogsRoleArn terra.StringValue `hcl:"cloud_watch_logs_role_arn,attr"`
	// EnableLogFileValidation: bool, optional
	EnableLogFileValidation terra.BoolValue `hcl:"enable_log_file_validation,attr"`
	// EnableLogging: bool, optional
	EnableLogging terra.BoolValue `hcl:"enable_logging,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IncludeGlobalServiceEvents: bool, optional
	IncludeGlobalServiceEvents terra.BoolValue `hcl:"include_global_service_events,attr"`
	// IsMultiRegionTrail: bool, optional
	IsMultiRegionTrail terra.BoolValue `hcl:"is_multi_region_trail,attr"`
	// IsOrganizationTrail: bool, optional
	IsOrganizationTrail terra.BoolValue `hcl:"is_organization_trail,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// S3BucketName: string, required
	S3BucketName terra.StringValue `hcl:"s3_bucket_name,attr" validate:"required"`
	// S3KeyPrefix: string, optional
	S3KeyPrefix terra.StringValue `hcl:"s3_key_prefix,attr"`
	// SnsTopicName: string, optional
	SnsTopicName terra.StringValue `hcl:"sns_topic_name,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// AdvancedEventSelector: min=0
	AdvancedEventSelector []AdvancedEventSelector `hcl:"advanced_event_selector,block" validate:"min=0"`
	// EventSelector: min=0,max=5
	EventSelector []EventSelector `hcl:"event_selector,block" validate:"min=0,max=5"`
	// InsightSelector: min=0
	InsightSelector []InsightSelector `hcl:"insight_selector,block" validate:"min=0"`
}

Args contains the configurations for aws_cloudtrail.

type EventSelector

type EventSelector struct {
	// ExcludeManagementEventSources: set of string, optional
	ExcludeManagementEventSources terra.SetValue[terra.StringValue] `hcl:"exclude_management_event_sources,attr"`
	// IncludeManagementEvents: bool, optional
	IncludeManagementEvents terra.BoolValue `hcl:"include_management_events,attr"`
	// ReadWriteType: string, optional
	ReadWriteType terra.StringValue `hcl:"read_write_type,attr"`
	// EventSelectorDataResource: min=0
	DataResource []EventSelectorDataResource `hcl:"data_resource,block" validate:"min=0"`
}

type EventSelectorAttributes

type EventSelectorAttributes struct {
	// contains filtered or unexported fields
}

func (EventSelectorAttributes) DataResource

func (EventSelectorAttributes) ExcludeManagementEventSources

func (es EventSelectorAttributes) ExcludeManagementEventSources() terra.SetValue[terra.StringValue]

func (EventSelectorAttributes) IncludeManagementEvents

func (es EventSelectorAttributes) IncludeManagementEvents() terra.BoolValue

func (EventSelectorAttributes) InternalRef

func (es EventSelectorAttributes) InternalRef() (terra.Reference, error)

func (EventSelectorAttributes) InternalTokens

func (es EventSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EventSelectorAttributes) InternalWithRef

func (EventSelectorAttributes) ReadWriteType

func (es EventSelectorAttributes) ReadWriteType() terra.StringValue

type EventSelectorDataResource

type EventSelectorDataResource struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Values: list of string, required
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr" validate:"required"`
}

type EventSelectorDataResourceAttributes

type EventSelectorDataResourceAttributes struct {
	// contains filtered or unexported fields
}

func (EventSelectorDataResourceAttributes) InternalRef

func (EventSelectorDataResourceAttributes) InternalTokens

func (EventSelectorDataResourceAttributes) InternalWithRef

func (EventSelectorDataResourceAttributes) Type

func (EventSelectorDataResourceAttributes) Values

type EventSelectorDataResourceState

type EventSelectorDataResourceState struct {
	Type   string   `json:"type"`
	Values []string `json:"values"`
}

type EventSelectorState

type EventSelectorState struct {
	ExcludeManagementEventSources []string                         `json:"exclude_management_event_sources"`
	IncludeManagementEvents       bool                             `json:"include_management_events"`
	ReadWriteType                 string                           `json:"read_write_type"`
	DataResource                  []EventSelectorDataResourceState `json:"data_resource"`
}

type InsightSelector

type InsightSelector struct {
	// InsightType: string, required
	InsightType terra.StringValue `hcl:"insight_type,attr" validate:"required"`
}

type InsightSelectorAttributes

type InsightSelectorAttributes struct {
	// contains filtered or unexported fields
}

func (InsightSelectorAttributes) InsightType

func (is InsightSelectorAttributes) InsightType() terra.StringValue

func (InsightSelectorAttributes) InternalRef

func (is InsightSelectorAttributes) InternalRef() (terra.Reference, error)

func (InsightSelectorAttributes) InternalTokens

func (is InsightSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InsightSelectorAttributes) InternalWithRef

type InsightSelectorState

type InsightSelectorState struct {
	InsightType string `json:"insight_type"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_cloudtrail.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ac *Resource) Attributes() awsCloudtrailAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (ac *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (ac *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (ac *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (ac *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (ac *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ac *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ac *Resource) State() (*awsCloudtrailState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (ac *Resource) StateMust() *awsCloudtrailState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (ac *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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