azurerm_web_application_firewall_policy

package
v0.0.0-...-4deecce 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"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// CustomRules: min=0
	CustomRules []CustomRules `hcl:"custom_rules,block" validate:"min=0"`
	// ManagedRules: required
	ManagedRules *ManagedRules `hcl:"managed_rules,block" validate:"required"`
	// PolicySettings: optional
	PolicySettings *PolicySettings `hcl:"policy_settings,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_web_application_firewall_policy.

type CustomRules

type CustomRules struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// GroupRateLimitBy: string, optional
	GroupRateLimitBy terra.StringValue `hcl:"group_rate_limit_by,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// RateLimitDuration: string, optional
	RateLimitDuration terra.StringValue `hcl:"rate_limit_duration,attr"`
	// RateLimitThreshold: number, optional
	RateLimitThreshold terra.NumberValue `hcl:"rate_limit_threshold,attr"`
	// RuleType: string, required
	RuleType terra.StringValue `hcl:"rule_type,attr" validate:"required"`
	// CustomRulesMatchConditions: min=1
	MatchConditions []CustomRulesMatchConditions `hcl:"match_conditions,block" validate:"min=1"`
}

type CustomRulesAttributes

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

func (CustomRulesAttributes) Action

func (CustomRulesAttributes) Enabled

func (cr CustomRulesAttributes) Enabled() terra.BoolValue

func (CustomRulesAttributes) GroupRateLimitBy

func (cr CustomRulesAttributes) GroupRateLimitBy() terra.StringValue

func (CustomRulesAttributes) InternalRef

func (cr CustomRulesAttributes) InternalRef() (terra.Reference, error)

func (CustomRulesAttributes) InternalTokens

func (cr CustomRulesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomRulesAttributes) InternalWithRef

func (CustomRulesAttributes) MatchConditions

func (CustomRulesAttributes) Name

func (CustomRulesAttributes) Priority

func (cr CustomRulesAttributes) Priority() terra.NumberValue

func (CustomRulesAttributes) RateLimitDuration

func (cr CustomRulesAttributes) RateLimitDuration() terra.StringValue

func (CustomRulesAttributes) RateLimitThreshold

func (cr CustomRulesAttributes) RateLimitThreshold() terra.NumberValue

func (CustomRulesAttributes) RuleType

func (cr CustomRulesAttributes) RuleType() terra.StringValue

type CustomRulesMatchConditions

type CustomRulesMatchConditions struct {
	// MatchValues: list of string, optional
	MatchValues terra.ListValue[terra.StringValue] `hcl:"match_values,attr"`
	// NegationCondition: bool, optional
	NegationCondition terra.BoolValue `hcl:"negation_condition,attr"`
	// Operator: string, required
	Operator terra.StringValue `hcl:"operator,attr" validate:"required"`
	// Transforms: set of string, optional
	Transforms terra.SetValue[terra.StringValue] `hcl:"transforms,attr"`
	// CustomRulesMatchConditionsMatchVariables: min=1
	MatchVariables []CustomRulesMatchConditionsMatchVariables `hcl:"match_variables,block" validate:"min=1"`
}

type CustomRulesMatchConditionsAttributes

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

func (CustomRulesMatchConditionsAttributes) InternalRef

func (CustomRulesMatchConditionsAttributes) InternalTokens

func (CustomRulesMatchConditionsAttributes) InternalWithRef

func (CustomRulesMatchConditionsAttributes) MatchValues

func (CustomRulesMatchConditionsAttributes) MatchVariables

func (CustomRulesMatchConditionsAttributes) NegationCondition

func (mc CustomRulesMatchConditionsAttributes) NegationCondition() terra.BoolValue

func (CustomRulesMatchConditionsAttributes) Operator

func (CustomRulesMatchConditionsAttributes) Transforms

type CustomRulesMatchConditionsMatchVariables

type CustomRulesMatchConditionsMatchVariables struct {
	// Selector: string, optional
	Selector terra.StringValue `hcl:"selector,attr"`
	// VariableName: string, required
	VariableName terra.StringValue `hcl:"variable_name,attr" validate:"required"`
}

type CustomRulesMatchConditionsMatchVariablesAttributes

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

func (CustomRulesMatchConditionsMatchVariablesAttributes) InternalRef

func (CustomRulesMatchConditionsMatchVariablesAttributes) InternalTokens

func (CustomRulesMatchConditionsMatchVariablesAttributes) InternalWithRef

func (CustomRulesMatchConditionsMatchVariablesAttributes) Selector

func (CustomRulesMatchConditionsMatchVariablesAttributes) VariableName

type CustomRulesMatchConditionsMatchVariablesState

type CustomRulesMatchConditionsMatchVariablesState struct {
	Selector     string `json:"selector"`
	VariableName string `json:"variable_name"`
}

type CustomRulesMatchConditionsState

type CustomRulesMatchConditionsState struct {
	MatchValues       []string                                        `json:"match_values"`
	NegationCondition bool                                            `json:"negation_condition"`
	Operator          string                                          `json:"operator"`
	Transforms        []string                                        `json:"transforms"`
	MatchVariables    []CustomRulesMatchConditionsMatchVariablesState `json:"match_variables"`
}

type CustomRulesState

type CustomRulesState struct {
	Action             string                            `json:"action"`
	Enabled            bool                              `json:"enabled"`
	GroupRateLimitBy   string                            `json:"group_rate_limit_by"`
	Name               string                            `json:"name"`
	Priority           float64                           `json:"priority"`
	RateLimitDuration  string                            `json:"rate_limit_duration"`
	RateLimitThreshold float64                           `json:"rate_limit_threshold"`
	RuleType           string                            `json:"rule_type"`
	MatchConditions    []CustomRulesMatchConditionsState `json:"match_conditions"`
}

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"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_web_application_firewall_policy.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_web_application_firewall_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (awafp *DataSource) Attributes() dataAzurermWebApplicationFirewallPolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (awafp *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (awafp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (awafp *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTimeouts

type DataTimeouts struct {
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
}

type DataTimeoutsAttributes

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

func (DataTimeoutsAttributes) InternalRef

func (t DataTimeoutsAttributes) InternalRef() (terra.Reference, error)

func (DataTimeoutsAttributes) InternalTokens

func (t DataTimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataTimeoutsAttributes) InternalWithRef

func (DataTimeoutsAttributes) Read

type DataTimeoutsState

type DataTimeoutsState struct {
	Read string `json:"read"`
}

type ManagedRules

type ManagedRules struct {
	// ManagedRulesExclusion: min=0
	Exclusion []ManagedRulesExclusion `hcl:"exclusion,block" validate:"min=0"`
	// ManagedRulesManagedRuleSet: min=1
	ManagedRuleSet []ManagedRulesManagedRuleSet `hcl:"managed_rule_set,block" validate:"min=1"`
}

type ManagedRulesAttributes

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

func (ManagedRulesAttributes) Exclusion

func (ManagedRulesAttributes) InternalRef

func (mr ManagedRulesAttributes) InternalRef() (terra.Reference, error)

func (ManagedRulesAttributes) InternalTokens

func (mr ManagedRulesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManagedRulesAttributes) InternalWithRef

func (ManagedRulesAttributes) ManagedRuleSet

type ManagedRulesExclusion

type ManagedRulesExclusion struct {
	// MatchVariable: string, required
	MatchVariable terra.StringValue `hcl:"match_variable,attr" validate:"required"`
	// Selector: string, required
	Selector terra.StringValue `hcl:"selector,attr" validate:"required"`
	// SelectorMatchOperator: string, required
	SelectorMatchOperator terra.StringValue `hcl:"selector_match_operator,attr" validate:"required"`
	// ManagedRulesExclusionExcludedRuleSet: optional
	ExcludedRuleSet *ManagedRulesExclusionExcludedRuleSet `hcl:"excluded_rule_set,block"`
}

type ManagedRulesExclusionAttributes

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

func (ManagedRulesExclusionAttributes) ExcludedRuleSet

func (ManagedRulesExclusionAttributes) InternalRef

func (ManagedRulesExclusionAttributes) InternalTokens

func (e ManagedRulesExclusionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManagedRulesExclusionAttributes) InternalWithRef

func (ManagedRulesExclusionAttributes) MatchVariable

func (ManagedRulesExclusionAttributes) Selector

func (ManagedRulesExclusionAttributes) SelectorMatchOperator

func (e ManagedRulesExclusionAttributes) SelectorMatchOperator() terra.StringValue

type ManagedRulesExclusionExcludedRuleSet

type ManagedRulesExclusionExcludedRuleSet struct {
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
	// ManagedRulesExclusionExcludedRuleSetRuleGroup: min=0
	RuleGroup []ManagedRulesExclusionExcludedRuleSetRuleGroup `hcl:"rule_group,block" validate:"min=0"`
}

type ManagedRulesExclusionExcludedRuleSetAttributes

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

func (ManagedRulesExclusionExcludedRuleSetAttributes) InternalRef

func (ManagedRulesExclusionExcludedRuleSetAttributes) InternalTokens

func (ManagedRulesExclusionExcludedRuleSetAttributes) InternalWithRef

func (ManagedRulesExclusionExcludedRuleSetAttributes) RuleGroup

func (ManagedRulesExclusionExcludedRuleSetAttributes) Type

func (ManagedRulesExclusionExcludedRuleSetAttributes) Version

type ManagedRulesExclusionExcludedRuleSetRuleGroup

type ManagedRulesExclusionExcludedRuleSetRuleGroup struct {
	// ExcludedRules: list of string, optional
	ExcludedRules terra.ListValue[terra.StringValue] `hcl:"excluded_rules,attr"`
	// RuleGroupName: string, required
	RuleGroupName terra.StringValue `hcl:"rule_group_name,attr" validate:"required"`
}

type ManagedRulesExclusionExcludedRuleSetRuleGroupAttributes

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

func (ManagedRulesExclusionExcludedRuleSetRuleGroupAttributes) ExcludedRules

func (ManagedRulesExclusionExcludedRuleSetRuleGroupAttributes) InternalRef

func (ManagedRulesExclusionExcludedRuleSetRuleGroupAttributes) InternalTokens

func (ManagedRulesExclusionExcludedRuleSetRuleGroupAttributes) InternalWithRef

func (ManagedRulesExclusionExcludedRuleSetRuleGroupAttributes) RuleGroupName

type ManagedRulesExclusionExcludedRuleSetRuleGroupState

type ManagedRulesExclusionExcludedRuleSetRuleGroupState struct {
	ExcludedRules []string `json:"excluded_rules"`
	RuleGroupName string   `json:"rule_group_name"`
}

type ManagedRulesExclusionExcludedRuleSetState

type ManagedRulesExclusionExcludedRuleSetState struct {
	Type      string                                               `json:"type"`
	Version   string                                               `json:"version"`
	RuleGroup []ManagedRulesExclusionExcludedRuleSetRuleGroupState `json:"rule_group"`
}

type ManagedRulesExclusionState

type ManagedRulesExclusionState struct {
	MatchVariable         string                                      `json:"match_variable"`
	Selector              string                                      `json:"selector"`
	SelectorMatchOperator string                                      `json:"selector_match_operator"`
	ExcludedRuleSet       []ManagedRulesExclusionExcludedRuleSetState `json:"excluded_rule_set"`
}

type ManagedRulesManagedRuleSet

type ManagedRulesManagedRuleSet struct {
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
	// ManagedRulesManagedRuleSetRuleGroupOverride: min=0
	RuleGroupOverride []ManagedRulesManagedRuleSetRuleGroupOverride `hcl:"rule_group_override,block" validate:"min=0"`
}

type ManagedRulesManagedRuleSetAttributes

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

func (ManagedRulesManagedRuleSetAttributes) InternalRef

func (ManagedRulesManagedRuleSetAttributes) InternalTokens

func (ManagedRulesManagedRuleSetAttributes) InternalWithRef

func (ManagedRulesManagedRuleSetAttributes) RuleGroupOverride

func (ManagedRulesManagedRuleSetAttributes) Type

func (ManagedRulesManagedRuleSetAttributes) Version

type ManagedRulesManagedRuleSetRuleGroupOverride

type ManagedRulesManagedRuleSetRuleGroupOverride struct {
	// DisabledRules: list of string, optional
	DisabledRules terra.ListValue[terra.StringValue] `hcl:"disabled_rules,attr"`
	// RuleGroupName: string, required
	RuleGroupName terra.StringValue `hcl:"rule_group_name,attr" validate:"required"`
	// ManagedRulesManagedRuleSetRuleGroupOverrideRule: min=0
	Rule []ManagedRulesManagedRuleSetRuleGroupOverrideRule `hcl:"rule,block" validate:"min=0"`
}

type ManagedRulesManagedRuleSetRuleGroupOverrideAttributes

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

func (ManagedRulesManagedRuleSetRuleGroupOverrideAttributes) DisabledRules

func (ManagedRulesManagedRuleSetRuleGroupOverrideAttributes) InternalRef

func (ManagedRulesManagedRuleSetRuleGroupOverrideAttributes) InternalTokens

func (ManagedRulesManagedRuleSetRuleGroupOverrideAttributes) InternalWithRef

func (ManagedRulesManagedRuleSetRuleGroupOverrideAttributes) Rule

func (ManagedRulesManagedRuleSetRuleGroupOverrideAttributes) RuleGroupName

type ManagedRulesManagedRuleSetRuleGroupOverrideRule

type ManagedRulesManagedRuleSetRuleGroupOverrideRule struct {
	// Action: string, optional
	Action terra.StringValue `hcl:"action,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
}

type ManagedRulesManagedRuleSetRuleGroupOverrideRuleAttributes

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

func (ManagedRulesManagedRuleSetRuleGroupOverrideRuleAttributes) Action

func (ManagedRulesManagedRuleSetRuleGroupOverrideRuleAttributes) Enabled

func (ManagedRulesManagedRuleSetRuleGroupOverrideRuleAttributes) Id

func (ManagedRulesManagedRuleSetRuleGroupOverrideRuleAttributes) InternalRef

func (ManagedRulesManagedRuleSetRuleGroupOverrideRuleAttributes) InternalTokens

func (ManagedRulesManagedRuleSetRuleGroupOverrideRuleAttributes) InternalWithRef

type ManagedRulesManagedRuleSetRuleGroupOverrideRuleState

type ManagedRulesManagedRuleSetRuleGroupOverrideRuleState struct {
	Action  string `json:"action"`
	Enabled bool   `json:"enabled"`
	Id      string `json:"id"`
}

type ManagedRulesManagedRuleSetRuleGroupOverrideState

type ManagedRulesManagedRuleSetRuleGroupOverrideState struct {
	DisabledRules []string                                               `json:"disabled_rules"`
	RuleGroupName string                                                 `json:"rule_group_name"`
	Rule          []ManagedRulesManagedRuleSetRuleGroupOverrideRuleState `json:"rule"`
}

type ManagedRulesManagedRuleSetState

type ManagedRulesManagedRuleSetState struct {
	Type              string                                             `json:"type"`
	Version           string                                             `json:"version"`
	RuleGroupOverride []ManagedRulesManagedRuleSetRuleGroupOverrideState `json:"rule_group_override"`
}

type ManagedRulesState

type ManagedRulesState struct {
	Exclusion      []ManagedRulesExclusionState      `json:"exclusion"`
	ManagedRuleSet []ManagedRulesManagedRuleSetState `json:"managed_rule_set"`
}

type PolicySettings

type PolicySettings struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// FileUploadLimitInMb: number, optional
	FileUploadLimitInMb terra.NumberValue `hcl:"file_upload_limit_in_mb,attr"`
	// MaxRequestBodySizeInKb: number, optional
	MaxRequestBodySizeInKb terra.NumberValue `hcl:"max_request_body_size_in_kb,attr"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
	// RequestBodyCheck: bool, optional
	RequestBodyCheck terra.BoolValue `hcl:"request_body_check,attr"`
	// RequestBodyInspectLimitInKb: number, optional
	RequestBodyInspectLimitInKb terra.NumberValue `hcl:"request_body_inspect_limit_in_kb,attr"`
	// PolicySettingsLogScrubbing: optional
	LogScrubbing *PolicySettingsLogScrubbing `hcl:"log_scrubbing,block"`
}

type PolicySettingsAttributes

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

func (PolicySettingsAttributes) Enabled

func (PolicySettingsAttributes) FileUploadLimitInMb

func (ps PolicySettingsAttributes) FileUploadLimitInMb() terra.NumberValue

func (PolicySettingsAttributes) InternalRef

func (ps PolicySettingsAttributes) InternalRef() (terra.Reference, error)

func (PolicySettingsAttributes) InternalTokens

func (ps PolicySettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PolicySettingsAttributes) InternalWithRef

func (PolicySettingsAttributes) LogScrubbing

func (PolicySettingsAttributes) MaxRequestBodySizeInKb

func (ps PolicySettingsAttributes) MaxRequestBodySizeInKb() terra.NumberValue

func (PolicySettingsAttributes) Mode

func (PolicySettingsAttributes) RequestBodyCheck

func (ps PolicySettingsAttributes) RequestBodyCheck() terra.BoolValue

func (PolicySettingsAttributes) RequestBodyInspectLimitInKb

func (ps PolicySettingsAttributes) RequestBodyInspectLimitInKb() terra.NumberValue

type PolicySettingsLogScrubbing

type PolicySettingsLogScrubbing struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// PolicySettingsLogScrubbingRule: min=0
	Rule []PolicySettingsLogScrubbingRule `hcl:"rule,block" validate:"min=0"`
}

type PolicySettingsLogScrubbingAttributes

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

func (PolicySettingsLogScrubbingAttributes) Enabled

func (PolicySettingsLogScrubbingAttributes) InternalRef

func (PolicySettingsLogScrubbingAttributes) InternalTokens

func (PolicySettingsLogScrubbingAttributes) InternalWithRef

func (PolicySettingsLogScrubbingAttributes) Rule

type PolicySettingsLogScrubbingRule

type PolicySettingsLogScrubbingRule struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// MatchVariable: string, required
	MatchVariable terra.StringValue `hcl:"match_variable,attr" validate:"required"`
	// Selector: string, optional
	Selector terra.StringValue `hcl:"selector,attr"`
	// SelectorMatchOperator: string, optional
	SelectorMatchOperator terra.StringValue `hcl:"selector_match_operator,attr"`
}

type PolicySettingsLogScrubbingRuleAttributes

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

func (PolicySettingsLogScrubbingRuleAttributes) Enabled

func (PolicySettingsLogScrubbingRuleAttributes) InternalRef

func (PolicySettingsLogScrubbingRuleAttributes) InternalTokens

func (PolicySettingsLogScrubbingRuleAttributes) InternalWithRef

func (PolicySettingsLogScrubbingRuleAttributes) MatchVariable

func (PolicySettingsLogScrubbingRuleAttributes) Selector

func (PolicySettingsLogScrubbingRuleAttributes) SelectorMatchOperator

type PolicySettingsLogScrubbingRuleState

type PolicySettingsLogScrubbingRuleState struct {
	Enabled               bool   `json:"enabled"`
	MatchVariable         string `json:"match_variable"`
	Selector              string `json:"selector"`
	SelectorMatchOperator string `json:"selector_match_operator"`
}

type PolicySettingsLogScrubbingState

type PolicySettingsLogScrubbingState struct {
	Enabled bool                                  `json:"enabled"`
	Rule    []PolicySettingsLogScrubbingRuleState `json:"rule"`
}

type PolicySettingsState

type PolicySettingsState struct {
	Enabled                     bool                              `json:"enabled"`
	FileUploadLimitInMb         float64                           `json:"file_upload_limit_in_mb"`
	MaxRequestBodySizeInKb      float64                           `json:"max_request_body_size_in_kb"`
	Mode                        string                            `json:"mode"`
	RequestBodyCheck            bool                              `json:"request_body_check"`
	RequestBodyInspectLimitInKb float64                           `json:"request_body_inspect_limit_in_kb"`
	LogScrubbing                []PolicySettingsLogScrubbingState `json:"log_scrubbing"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (awafp *Resource) Attributes() azurermWebApplicationFirewallPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (awafp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (awafp *Resource) State() (*azurermWebApplicationFirewallPolicyState, bool)

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

func (*Resource) StateMust

func (awafp *Resource) StateMust() *azurermWebApplicationFirewallPolicyState

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

func (*Resource) Type

func (awafp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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