Documentation ¶
Index ¶
- type Args
- type DataArgs
- type DataSource
- type DefaultAction
- type DefaultActionAttributes
- func (da DefaultActionAttributes) InternalRef() (terra.Reference, error)
- func (da DefaultActionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (da DefaultActionAttributes) InternalWithRef(ref terra.Reference) DefaultActionAttributes
- func (da DefaultActionAttributes) Type() terra.StringValue
- type DefaultActionState
- type LoggingConfiguration
- type LoggingConfigurationAttributes
- func (lc LoggingConfigurationAttributes) InternalRef() (terra.Reference, error)
- func (lc LoggingConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (lc LoggingConfigurationAttributes) InternalWithRef(ref terra.Reference) LoggingConfigurationAttributes
- func (lc LoggingConfigurationAttributes) LogDestination() terra.StringValue
- func (lc LoggingConfigurationAttributes) RedactedFields() terra.ListValue[LoggingConfigurationRedactedFieldsAttributes]
- type LoggingConfigurationRedactedFields
- type LoggingConfigurationRedactedFieldsAttributes
- func (rf LoggingConfigurationRedactedFieldsAttributes) FieldToMatch() terra.SetValue[LoggingConfigurationRedactedFieldsFieldToMatchAttributes]
- func (rf LoggingConfigurationRedactedFieldsAttributes) InternalRef() (terra.Reference, error)
- func (rf LoggingConfigurationRedactedFieldsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rf LoggingConfigurationRedactedFieldsAttributes) InternalWithRef(ref terra.Reference) LoggingConfigurationRedactedFieldsAttributes
- type LoggingConfigurationRedactedFieldsFieldToMatch
- type LoggingConfigurationRedactedFieldsFieldToMatchAttributes
- func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) Data() terra.StringValue
- func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalRef() (terra.Reference, error)
- func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalWithRef(ref terra.Reference) LoggingConfigurationRedactedFieldsFieldToMatchAttributes
- func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) Type() terra.StringValue
- type LoggingConfigurationRedactedFieldsFieldToMatchState
- type LoggingConfigurationRedactedFieldsState
- type LoggingConfigurationState
- type Resource
- func (awwa *Resource) Attributes() awsWafWebAclAttributes
- func (awwa *Resource) Configuration() interface{}
- func (awwa *Resource) DependOn() terra.Reference
- func (awwa *Resource) Dependencies() terra.Dependencies
- func (awwa *Resource) ImportState(state io.Reader) error
- func (awwa *Resource) LifecycleManagement() *terra.Lifecycle
- func (awwa *Resource) LocalName() string
- func (awwa *Resource) State() (*awsWafWebAclState, bool)
- func (awwa *Resource) StateMust() *awsWafWebAclState
- func (awwa *Resource) Type() string
- type Rules
- type RulesAction
- type RulesActionAttributes
- type RulesActionState
- type RulesAttributes
- func (r RulesAttributes) Action() terra.ListValue[RulesActionAttributes]
- func (r RulesAttributes) InternalRef() (terra.Reference, error)
- func (r RulesAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (r RulesAttributes) InternalWithRef(ref terra.Reference) RulesAttributes
- func (r RulesAttributes) OverrideAction() terra.ListValue[RulesOverrideActionAttributes]
- func (r RulesAttributes) Priority() terra.NumberValue
- func (r RulesAttributes) RuleId() terra.StringValue
- func (r RulesAttributes) Type() terra.StringValue
- type RulesOverrideAction
- type RulesOverrideActionAttributes
- func (oa RulesOverrideActionAttributes) InternalRef() (terra.Reference, error)
- func (oa RulesOverrideActionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (oa RulesOverrideActionAttributes) InternalWithRef(ref terra.Reference) RulesOverrideActionAttributes
- func (oa RulesOverrideActionAttributes) Type() terra.StringValue
- type RulesOverrideActionState
- type RulesState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // MetricName: string, required MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // 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"` // DefaultAction: required DefaultAction *DefaultAction `hcl:"default_action,block" validate:"required"` // LoggingConfiguration: optional LoggingConfiguration *LoggingConfiguration `hcl:"logging_configuration,block"` // Rules: min=0 Rules []Rules `hcl:"rules,block" validate:"min=0"` }
Args contains the configurations for aws_waf_web_acl.
type DataArgs ¶
type DataArgs struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` }
DataArgs contains the configurations for aws_waf_web_acl.
type DataSource ¶
DataSource represents the Terraform data resource aws_waf_web_acl.
func Data ¶
func Data(name string, args DataArgs) *DataSource
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (awwa *DataSource) Attributes() dataAwsWafWebAclAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (awwa *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (awwa *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (awwa *DataSource) LocalName() string
LocalName returns the local name for DataSource.
type DefaultAction ¶
type DefaultAction struct { // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` }
type DefaultActionAttributes ¶
type DefaultActionAttributes struct {
// contains filtered or unexported fields
}
func (DefaultActionAttributes) InternalRef ¶
func (da DefaultActionAttributes) InternalRef() (terra.Reference, error)
func (DefaultActionAttributes) InternalTokens ¶
func (da DefaultActionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DefaultActionAttributes) InternalWithRef ¶
func (da DefaultActionAttributes) InternalWithRef(ref terra.Reference) DefaultActionAttributes
func (DefaultActionAttributes) Type ¶
func (da DefaultActionAttributes) Type() terra.StringValue
type DefaultActionState ¶
type DefaultActionState struct {
Type string `json:"type"`
}
type LoggingConfiguration ¶
type LoggingConfiguration struct { // LogDestination: string, required LogDestination terra.StringValue `hcl:"log_destination,attr" validate:"required"` // LoggingConfigurationRedactedFields: optional RedactedFields *LoggingConfigurationRedactedFields `hcl:"redacted_fields,block"` }
type LoggingConfigurationAttributes ¶
type LoggingConfigurationAttributes struct {
// contains filtered or unexported fields
}
func (LoggingConfigurationAttributes) InternalRef ¶
func (lc LoggingConfigurationAttributes) InternalRef() (terra.Reference, error)
func (LoggingConfigurationAttributes) InternalTokens ¶
func (lc LoggingConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (LoggingConfigurationAttributes) InternalWithRef ¶
func (lc LoggingConfigurationAttributes) InternalWithRef(ref terra.Reference) LoggingConfigurationAttributes
func (LoggingConfigurationAttributes) LogDestination ¶
func (lc LoggingConfigurationAttributes) LogDestination() terra.StringValue
func (LoggingConfigurationAttributes) RedactedFields ¶
func (lc LoggingConfigurationAttributes) RedactedFields() terra.ListValue[LoggingConfigurationRedactedFieldsAttributes]
type LoggingConfigurationRedactedFields ¶
type LoggingConfigurationRedactedFields struct { // LoggingConfigurationRedactedFieldsFieldToMatch: min=1 FieldToMatch []LoggingConfigurationRedactedFieldsFieldToMatch `hcl:"field_to_match,block" validate:"min=1"` }
type LoggingConfigurationRedactedFieldsAttributes ¶
type LoggingConfigurationRedactedFieldsAttributes struct {
// contains filtered or unexported fields
}
func (LoggingConfigurationRedactedFieldsAttributes) FieldToMatch ¶
func (rf LoggingConfigurationRedactedFieldsAttributes) FieldToMatch() terra.SetValue[LoggingConfigurationRedactedFieldsFieldToMatchAttributes]
func (LoggingConfigurationRedactedFieldsAttributes) InternalRef ¶
func (rf LoggingConfigurationRedactedFieldsAttributes) InternalRef() (terra.Reference, error)
func (LoggingConfigurationRedactedFieldsAttributes) InternalTokens ¶
func (rf LoggingConfigurationRedactedFieldsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (LoggingConfigurationRedactedFieldsAttributes) InternalWithRef ¶
func (rf LoggingConfigurationRedactedFieldsAttributes) InternalWithRef(ref terra.Reference) LoggingConfigurationRedactedFieldsAttributes
type LoggingConfigurationRedactedFieldsFieldToMatch ¶
type LoggingConfigurationRedactedFieldsFieldToMatch struct { // Data: string, optional Data terra.StringValue `hcl:"data,attr"` // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` }
type LoggingConfigurationRedactedFieldsFieldToMatchAttributes ¶
type LoggingConfigurationRedactedFieldsFieldToMatchAttributes struct {
// contains filtered or unexported fields
}
func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) Data ¶
func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) Data() terra.StringValue
func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalRef ¶
func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalRef() (terra.Reference, error)
func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalTokens ¶
func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalTokens() (hclwrite.Tokens, error)
func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalWithRef ¶
func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalWithRef(ref terra.Reference) LoggingConfigurationRedactedFieldsFieldToMatchAttributes
func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) Type ¶
func (ftm LoggingConfigurationRedactedFieldsFieldToMatchAttributes) Type() terra.StringValue
type LoggingConfigurationRedactedFieldsState ¶
type LoggingConfigurationRedactedFieldsState struct {
FieldToMatch []LoggingConfigurationRedactedFieldsFieldToMatchState `json:"field_to_match"`
}
type LoggingConfigurationState ¶
type LoggingConfigurationState struct { LogDestination string `json:"log_destination"` RedactedFields []LoggingConfigurationRedactedFieldsState `json:"redacted_fields"` }
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_waf_web_acl.
func (*Resource) Attributes ¶
func (awwa *Resource) Attributes() awsWafWebAclAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (awwa *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (awwa *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.
type Rules ¶
type Rules struct { // Priority: number, required Priority terra.NumberValue `hcl:"priority,attr" validate:"required"` // RuleId: string, required RuleId terra.StringValue `hcl:"rule_id,attr" validate:"required"` // Type: string, optional Type terra.StringValue `hcl:"type,attr"` // RulesAction: optional Action *RulesAction `hcl:"action,block"` // RulesOverrideAction: optional OverrideAction *RulesOverrideAction `hcl:"override_action,block"` }
type RulesAction ¶
type RulesAction struct { // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` }
type RulesActionAttributes ¶
type RulesActionAttributes struct {
// contains filtered or unexported fields
}
func (RulesActionAttributes) InternalRef ¶
func (a RulesActionAttributes) InternalRef() (terra.Reference, error)
func (RulesActionAttributes) InternalTokens ¶
func (a RulesActionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RulesActionAttributes) InternalWithRef ¶
func (a RulesActionAttributes) InternalWithRef(ref terra.Reference) RulesActionAttributes
func (RulesActionAttributes) Type ¶
func (a RulesActionAttributes) Type() terra.StringValue
type RulesActionState ¶
type RulesActionState struct {
Type string `json:"type"`
}
type RulesAttributes ¶
type RulesAttributes struct {
// contains filtered or unexported fields
}
func (RulesAttributes) Action ¶
func (r RulesAttributes) Action() terra.ListValue[RulesActionAttributes]
func (RulesAttributes) InternalRef ¶
func (r RulesAttributes) InternalRef() (terra.Reference, error)
func (RulesAttributes) InternalTokens ¶
func (r RulesAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RulesAttributes) InternalWithRef ¶
func (r RulesAttributes) InternalWithRef(ref terra.Reference) RulesAttributes
func (RulesAttributes) OverrideAction ¶
func (r RulesAttributes) OverrideAction() terra.ListValue[RulesOverrideActionAttributes]
func (RulesAttributes) Priority ¶
func (r RulesAttributes) Priority() terra.NumberValue
func (RulesAttributes) RuleId ¶
func (r RulesAttributes) RuleId() terra.StringValue
func (RulesAttributes) Type ¶
func (r RulesAttributes) Type() terra.StringValue
type RulesOverrideAction ¶
type RulesOverrideAction struct { // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` }
type RulesOverrideActionAttributes ¶
type RulesOverrideActionAttributes struct {
// contains filtered or unexported fields
}
func (RulesOverrideActionAttributes) InternalRef ¶
func (oa RulesOverrideActionAttributes) InternalRef() (terra.Reference, error)
func (RulesOverrideActionAttributes) InternalTokens ¶
func (oa RulesOverrideActionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RulesOverrideActionAttributes) InternalWithRef ¶
func (oa RulesOverrideActionAttributes) InternalWithRef(ref terra.Reference) RulesOverrideActionAttributes
func (RulesOverrideActionAttributes) Type ¶
func (oa RulesOverrideActionAttributes) Type() terra.StringValue
type RulesOverrideActionState ¶
type RulesOverrideActionState struct {
Type string `json:"type"`
}
type RulesState ¶
type RulesState struct { Priority float64 `json:"priority"` RuleId string `json:"rule_id"` Type string `json:"type"` Action []RulesActionState `json:"action"` OverrideAction []RulesOverrideActionState `json:"override_action"` }