aws_waf_web_acl

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 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

type DataSource struct {
	Name string
	Args DataArgs
}

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 (DefaultActionAttributes) Type

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 (LoggingConfigurationAttributes) InternalTokens

func (lc LoggingConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoggingConfigurationAttributes) InternalWithRef

func (LoggingConfigurationAttributes) LogDestination

func (lc LoggingConfigurationAttributes) LogDestination() terra.StringValue

func (LoggingConfigurationAttributes) RedactedFields

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 (LoggingConfigurationRedactedFieldsAttributes) InternalRef

func (LoggingConfigurationRedactedFieldsAttributes) InternalTokens

func (LoggingConfigurationRedactedFieldsAttributes) InternalWithRef

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 (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalRef

func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalTokens

func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) InternalWithRef

func (LoggingConfigurationRedactedFieldsFieldToMatchAttributes) Type

type LoggingConfigurationRedactedFieldsFieldToMatchState

type LoggingConfigurationRedactedFieldsFieldToMatchState struct {
	Data string `json:"data"`
	Type string `json:"type"`
}

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 New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

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) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (awwa *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (awwa *Resource) State() (*awsWafWebAclState, bool)

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

func (*Resource) StateMust

func (awwa *Resource) StateMust() *awsWafWebAclState

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

func (*Resource) Type

func (awwa *Resource) Type() string

Type returns the Terraform object type 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 (RulesActionAttributes) Type

type RulesActionState

type RulesActionState struct {
	Type string `json:"type"`
}

type RulesAttributes

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

func (RulesAttributes) Action

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 (RulesAttributes) Priority

func (r RulesAttributes) Priority() terra.NumberValue

func (RulesAttributes) RuleId

func (r RulesAttributes) RuleId() terra.StringValue

func (RulesAttributes) Type

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 (RulesOverrideActionAttributes) Type

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"`
}

Jump to

Keyboard shortcuts

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