Documentation
¶
Index ¶
- type AdvancedEventSelector
- type AdvancedEventSelectorAttributes
- func (aes AdvancedEventSelectorAttributes) FieldSelector() terra.SetValue[AdvancedEventSelectorFieldSelectorAttributes]
- func (aes AdvancedEventSelectorAttributes) InternalRef() (terra.Reference, error)
- func (aes AdvancedEventSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (aes AdvancedEventSelectorAttributes) InternalWithRef(ref terra.Reference) AdvancedEventSelectorAttributes
- func (aes AdvancedEventSelectorAttributes) Name() terra.StringValue
- type AdvancedEventSelectorFieldSelector
- type AdvancedEventSelectorFieldSelectorAttributes
- func (fs AdvancedEventSelectorFieldSelectorAttributes) EndsWith() terra.ListValue[terra.StringValue]
- func (fs AdvancedEventSelectorFieldSelectorAttributes) Equals() terra.ListValue[terra.StringValue]
- func (fs AdvancedEventSelectorFieldSelectorAttributes) Field() terra.StringValue
- func (fs AdvancedEventSelectorFieldSelectorAttributes) InternalRef() (terra.Reference, error)
- func (fs AdvancedEventSelectorFieldSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (fs AdvancedEventSelectorFieldSelectorAttributes) InternalWithRef(ref terra.Reference) AdvancedEventSelectorFieldSelectorAttributes
- func (fs AdvancedEventSelectorFieldSelectorAttributes) NotEndsWith() terra.ListValue[terra.StringValue]
- func (fs AdvancedEventSelectorFieldSelectorAttributes) NotEquals() terra.ListValue[terra.StringValue]
- func (fs AdvancedEventSelectorFieldSelectorAttributes) NotStartsWith() terra.ListValue[terra.StringValue]
- func (fs AdvancedEventSelectorFieldSelectorAttributes) StartsWith() terra.ListValue[terra.StringValue]
- type AdvancedEventSelectorFieldSelectorState
- type AdvancedEventSelectorState
- type Args
- type EventSelector
- type EventSelectorAttributes
- func (es EventSelectorAttributes) DataResource() terra.ListValue[EventSelectorDataResourceAttributes]
- func (es EventSelectorAttributes) ExcludeManagementEventSources() terra.SetValue[terra.StringValue]
- func (es EventSelectorAttributes) IncludeManagementEvents() terra.BoolValue
- func (es EventSelectorAttributes) InternalRef() (terra.Reference, error)
- func (es EventSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (es EventSelectorAttributes) InternalWithRef(ref terra.Reference) EventSelectorAttributes
- func (es EventSelectorAttributes) ReadWriteType() terra.StringValue
- type EventSelectorDataResource
- type EventSelectorDataResourceAttributes
- func (dr EventSelectorDataResourceAttributes) InternalRef() (terra.Reference, error)
- func (dr EventSelectorDataResourceAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (dr EventSelectorDataResourceAttributes) InternalWithRef(ref terra.Reference) EventSelectorDataResourceAttributes
- func (dr EventSelectorDataResourceAttributes) Type() terra.StringValue
- func (dr EventSelectorDataResourceAttributes) Values() terra.ListValue[terra.StringValue]
- type EventSelectorDataResourceState
- type EventSelectorState
- type InsightSelector
- type InsightSelectorAttributes
- func (is InsightSelectorAttributes) InsightType() terra.StringValue
- func (is InsightSelectorAttributes) InternalRef() (terra.Reference, error)
- func (is InsightSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (is InsightSelectorAttributes) InternalWithRef(ref terra.Reference) InsightSelectorAttributes
- type InsightSelectorState
- type Resource
- func (ac *Resource) Attributes() awsCloudtrailAttributes
- func (ac *Resource) Configuration() interface{}
- func (ac *Resource) DependOn() terra.Reference
- func (ac *Resource) Dependencies() terra.Dependencies
- func (ac *Resource) ImportState(state io.Reader) error
- func (ac *Resource) LifecycleManagement() *terra.Lifecycle
- func (ac *Resource) LocalName() string
- func (ac *Resource) State() (*awsCloudtrailState, bool)
- func (ac *Resource) StateMust() *awsCloudtrailState
- func (ac *Resource) Type() string
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 (aes AdvancedEventSelectorAttributes) FieldSelector() terra.SetValue[AdvancedEventSelectorFieldSelectorAttributes]
func (AdvancedEventSelectorAttributes) InternalRef ¶
func (aes AdvancedEventSelectorAttributes) InternalRef() (terra.Reference, error)
func (AdvancedEventSelectorAttributes) InternalTokens ¶
func (aes AdvancedEventSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AdvancedEventSelectorAttributes) InternalWithRef ¶
func (aes AdvancedEventSelectorAttributes) InternalWithRef(ref terra.Reference) AdvancedEventSelectorAttributes
func (AdvancedEventSelectorAttributes) Name ¶
func (aes AdvancedEventSelectorAttributes) Name() terra.StringValue
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 (fs AdvancedEventSelectorFieldSelectorAttributes) EndsWith() terra.ListValue[terra.StringValue]
func (AdvancedEventSelectorFieldSelectorAttributes) Equals ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) Equals() terra.ListValue[terra.StringValue]
func (AdvancedEventSelectorFieldSelectorAttributes) Field ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) Field() terra.StringValue
func (AdvancedEventSelectorFieldSelectorAttributes) InternalRef ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) InternalRef() (terra.Reference, error)
func (AdvancedEventSelectorFieldSelectorAttributes) InternalTokens ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AdvancedEventSelectorFieldSelectorAttributes) InternalWithRef ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) InternalWithRef(ref terra.Reference) AdvancedEventSelectorFieldSelectorAttributes
func (AdvancedEventSelectorFieldSelectorAttributes) NotEndsWith ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) NotEndsWith() terra.ListValue[terra.StringValue]
func (AdvancedEventSelectorFieldSelectorAttributes) NotEquals ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) NotEquals() terra.ListValue[terra.StringValue]
func (AdvancedEventSelectorFieldSelectorAttributes) NotStartsWith ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) NotStartsWith() terra.ListValue[terra.StringValue]
func (AdvancedEventSelectorFieldSelectorAttributes) StartsWith ¶
func (fs AdvancedEventSelectorFieldSelectorAttributes) StartsWith() terra.ListValue[terra.StringValue]
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 (es EventSelectorAttributes) DataResource() terra.ListValue[EventSelectorDataResourceAttributes]
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 (es EventSelectorAttributes) InternalWithRef(ref terra.Reference) EventSelectorAttributes
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 (dr EventSelectorDataResourceAttributes) InternalRef() (terra.Reference, error)
func (EventSelectorDataResourceAttributes) InternalTokens ¶
func (dr EventSelectorDataResourceAttributes) InternalTokens() (hclwrite.Tokens, error)
func (EventSelectorDataResourceAttributes) InternalWithRef ¶
func (dr EventSelectorDataResourceAttributes) InternalWithRef(ref terra.Reference) EventSelectorDataResourceAttributes
func (EventSelectorDataResourceAttributes) Type ¶
func (dr EventSelectorDataResourceAttributes) Type() terra.StringValue
func (EventSelectorDataResourceAttributes) Values ¶
func (dr EventSelectorDataResourceAttributes) Values() terra.ListValue[terra.StringValue]
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 ¶
func (is InsightSelectorAttributes) InternalWithRef(ref terra.Reference) InsightSelectorAttributes
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 (*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) Dependencies ¶
func (ac *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
Click to show internal directories.
Click to hide internal directories.