azurerm_frontdoor_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 {
	// CustomBlockResponseBody: string, optional
	CustomBlockResponseBody terra.StringValue `hcl:"custom_block_response_body,attr"`
	// CustomBlockResponseStatusCode: number, optional
	CustomBlockResponseStatusCode terra.NumberValue `hcl:"custom_block_response_status_code,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RedirectUrl: string, optional
	RedirectUrl terra.StringValue `hcl:"redirect_url,attr"`
	// 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"`
	// CustomRule: min=0,max=100
	CustomRule []CustomRule `hcl:"custom_rule,block" validate:"min=0,max=100"`
	// ManagedRule: min=0,max=100
	ManagedRule []ManagedRule `hcl:"managed_rule,block" validate:"min=0,max=100"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_frontdoor_firewall_policy.

type CustomRule

type CustomRule struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// RateLimitDurationInMinutes: number, optional
	RateLimitDurationInMinutes terra.NumberValue `hcl:"rate_limit_duration_in_minutes,attr"`
	// RateLimitThreshold: number, optional
	RateLimitThreshold terra.NumberValue `hcl:"rate_limit_threshold,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// CustomRuleMatchCondition: min=0,max=10
	MatchCondition []CustomRuleMatchCondition `hcl:"match_condition,block" validate:"min=0,max=10"`
}

type CustomRuleAttributes

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

func (CustomRuleAttributes) Action

func (CustomRuleAttributes) Enabled

func (cr CustomRuleAttributes) Enabled() terra.BoolValue

func (CustomRuleAttributes) InternalRef

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

func (CustomRuleAttributes) InternalTokens

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

func (CustomRuleAttributes) InternalWithRef

func (cr CustomRuleAttributes) InternalWithRef(ref terra.Reference) CustomRuleAttributes

func (CustomRuleAttributes) MatchCondition

func (CustomRuleAttributes) Name

func (CustomRuleAttributes) Priority

func (cr CustomRuleAttributes) Priority() terra.NumberValue

func (CustomRuleAttributes) RateLimitDurationInMinutes

func (cr CustomRuleAttributes) RateLimitDurationInMinutes() terra.NumberValue

func (CustomRuleAttributes) RateLimitThreshold

func (cr CustomRuleAttributes) RateLimitThreshold() terra.NumberValue

func (CustomRuleAttributes) Type

type CustomRuleMatchCondition

type CustomRuleMatchCondition struct {
	// MatchValues: list of string, required
	MatchValues terra.ListValue[terra.StringValue] `hcl:"match_values,attr" validate:"required"`
	// MatchVariable: string, required
	MatchVariable terra.StringValue `hcl:"match_variable,attr" validate:"required"`
	// NegationCondition: bool, optional
	NegationCondition terra.BoolValue `hcl:"negation_condition,attr"`
	// Operator: string, required
	Operator terra.StringValue `hcl:"operator,attr" validate:"required"`
	// Selector: string, optional
	Selector terra.StringValue `hcl:"selector,attr"`
	// Transforms: list of string, optional
	Transforms terra.ListValue[terra.StringValue] `hcl:"transforms,attr"`
}

type CustomRuleMatchConditionAttributes

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

func (CustomRuleMatchConditionAttributes) InternalRef

func (CustomRuleMatchConditionAttributes) InternalTokens

func (CustomRuleMatchConditionAttributes) InternalWithRef

func (CustomRuleMatchConditionAttributes) MatchValues

func (CustomRuleMatchConditionAttributes) MatchVariable

func (CustomRuleMatchConditionAttributes) NegationCondition

func (mc CustomRuleMatchConditionAttributes) NegationCondition() terra.BoolValue

func (CustomRuleMatchConditionAttributes) Operator

func (CustomRuleMatchConditionAttributes) Selector

func (CustomRuleMatchConditionAttributes) Transforms

type CustomRuleMatchConditionState

type CustomRuleMatchConditionState struct {
	MatchValues       []string `json:"match_values"`
	MatchVariable     string   `json:"match_variable"`
	NegationCondition bool     `json:"negation_condition"`
	Operator          string   `json:"operator"`
	Selector          string   `json:"selector"`
	Transforms        []string `json:"transforms"`
}

type CustomRuleState

type CustomRuleState struct {
	Action                     string                          `json:"action"`
	Enabled                    bool                            `json:"enabled"`
	Name                       string                          `json:"name"`
	Priority                   float64                         `json:"priority"`
	RateLimitDurationInMinutes float64                         `json:"rate_limit_duration_in_minutes"`
	RateLimitThreshold         float64                         `json:"rate_limit_threshold"`
	Type                       string                          `json:"type"`
	MatchCondition             []CustomRuleMatchConditionState `json:"match_condition"`
}

type ManagedRule

type ManagedRule struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
	// ManagedRuleExclusion: min=0,max=100
	Exclusion []ManagedRuleExclusion `hcl:"exclusion,block" validate:"min=0,max=100"`
	// ManagedRuleOverride: min=0,max=100
	Override []ManagedRuleOverride `hcl:"override,block" validate:"min=0,max=100"`
}

type ManagedRuleAttributes

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

func (ManagedRuleAttributes) Exclusion

func (ManagedRuleAttributes) InternalRef

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

func (ManagedRuleAttributes) InternalTokens

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

func (ManagedRuleAttributes) InternalWithRef

func (ManagedRuleAttributes) Override

func (ManagedRuleAttributes) Type

func (ManagedRuleAttributes) Version

type ManagedRuleExclusion

type ManagedRuleExclusion struct {
	// MatchVariable: string, required
	MatchVariable terra.StringValue `hcl:"match_variable,attr" validate:"required"`
	// Operator: string, required
	Operator terra.StringValue `hcl:"operator,attr" validate:"required"`
	// Selector: string, required
	Selector terra.StringValue `hcl:"selector,attr" validate:"required"`
}

type ManagedRuleExclusionAttributes

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

func (ManagedRuleExclusionAttributes) InternalRef

func (ManagedRuleExclusionAttributes) InternalTokens

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

func (ManagedRuleExclusionAttributes) InternalWithRef

func (ManagedRuleExclusionAttributes) MatchVariable

func (ManagedRuleExclusionAttributes) Operator

func (ManagedRuleExclusionAttributes) Selector

type ManagedRuleExclusionState

type ManagedRuleExclusionState struct {
	MatchVariable string `json:"match_variable"`
	Operator      string `json:"operator"`
	Selector      string `json:"selector"`
}

type ManagedRuleOverride

type ManagedRuleOverride struct {
	// RuleGroupName: string, required
	RuleGroupName terra.StringValue `hcl:"rule_group_name,attr" validate:"required"`
	// ManagedRuleOverrideExclusion: min=0,max=100
	Exclusion []ManagedRuleOverrideExclusion `hcl:"exclusion,block" validate:"min=0,max=100"`
	// ManagedRuleOverrideRule: min=0,max=1000
	Rule []ManagedRuleOverrideRule `hcl:"rule,block" validate:"min=0,max=1000"`
}

type ManagedRuleOverrideAttributes

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

func (ManagedRuleOverrideAttributes) Exclusion

func (ManagedRuleOverrideAttributes) InternalRef

func (ManagedRuleOverrideAttributes) InternalTokens

func (o ManagedRuleOverrideAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManagedRuleOverrideAttributes) InternalWithRef

func (ManagedRuleOverrideAttributes) Rule

func (ManagedRuleOverrideAttributes) RuleGroupName

type ManagedRuleOverrideExclusion

type ManagedRuleOverrideExclusion struct {
	// MatchVariable: string, required
	MatchVariable terra.StringValue `hcl:"match_variable,attr" validate:"required"`
	// Operator: string, required
	Operator terra.StringValue `hcl:"operator,attr" validate:"required"`
	// Selector: string, required
	Selector terra.StringValue `hcl:"selector,attr" validate:"required"`
}

type ManagedRuleOverrideExclusionAttributes

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

func (ManagedRuleOverrideExclusionAttributes) InternalRef

func (ManagedRuleOverrideExclusionAttributes) InternalTokens

func (ManagedRuleOverrideExclusionAttributes) InternalWithRef

func (ManagedRuleOverrideExclusionAttributes) MatchVariable

func (ManagedRuleOverrideExclusionAttributes) Operator

func (ManagedRuleOverrideExclusionAttributes) Selector

type ManagedRuleOverrideExclusionState

type ManagedRuleOverrideExclusionState struct {
	MatchVariable string `json:"match_variable"`
	Operator      string `json:"operator"`
	Selector      string `json:"selector"`
}

type ManagedRuleOverrideRule

type ManagedRuleOverrideRule struct {
	// Action: string, required
	Action terra.StringValue `hcl:"action,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// RuleId: string, required
	RuleId terra.StringValue `hcl:"rule_id,attr" validate:"required"`
	// ManagedRuleOverrideRuleExclusion: min=0,max=100
	Exclusion []ManagedRuleOverrideRuleExclusion `hcl:"exclusion,block" validate:"min=0,max=100"`
}

type ManagedRuleOverrideRuleAttributes

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

func (ManagedRuleOverrideRuleAttributes) Action

func (ManagedRuleOverrideRuleAttributes) Enabled

func (ManagedRuleOverrideRuleAttributes) Exclusion

func (ManagedRuleOverrideRuleAttributes) InternalRef

func (ManagedRuleOverrideRuleAttributes) InternalTokens

func (ManagedRuleOverrideRuleAttributes) InternalWithRef

func (ManagedRuleOverrideRuleAttributes) RuleId

type ManagedRuleOverrideRuleExclusion

type ManagedRuleOverrideRuleExclusion struct {
	// MatchVariable: string, required
	MatchVariable terra.StringValue `hcl:"match_variable,attr" validate:"required"`
	// Operator: string, required
	Operator terra.StringValue `hcl:"operator,attr" validate:"required"`
	// Selector: string, required
	Selector terra.StringValue `hcl:"selector,attr" validate:"required"`
}

type ManagedRuleOverrideRuleExclusionAttributes

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

func (ManagedRuleOverrideRuleExclusionAttributes) InternalRef

func (ManagedRuleOverrideRuleExclusionAttributes) InternalTokens

func (ManagedRuleOverrideRuleExclusionAttributes) InternalWithRef

func (ManagedRuleOverrideRuleExclusionAttributes) MatchVariable

func (ManagedRuleOverrideRuleExclusionAttributes) Operator

func (ManagedRuleOverrideRuleExclusionAttributes) Selector

type ManagedRuleOverrideRuleExclusionState

type ManagedRuleOverrideRuleExclusionState struct {
	MatchVariable string `json:"match_variable"`
	Operator      string `json:"operator"`
	Selector      string `json:"selector"`
}

type ManagedRuleOverrideRuleState

type ManagedRuleOverrideRuleState struct {
	Action    string                                  `json:"action"`
	Enabled   bool                                    `json:"enabled"`
	RuleId    string                                  `json:"rule_id"`
	Exclusion []ManagedRuleOverrideRuleExclusionState `json:"exclusion"`
}

type ManagedRuleOverrideState

type ManagedRuleOverrideState struct {
	RuleGroupName string                              `json:"rule_group_name"`
	Exclusion     []ManagedRuleOverrideExclusionState `json:"exclusion"`
	Rule          []ManagedRuleOverrideRuleState      `json:"rule"`
}

type ManagedRuleState

type ManagedRuleState struct {
	Type      string                      `json:"type"`
	Version   string                      `json:"version"`
	Exclusion []ManagedRuleExclusionState `json:"exclusion"`
	Override  []ManagedRuleOverrideState  `json:"override"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (affp *Resource) Attributes() azurermFrontdoorFirewallPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (affp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (affp *Resource) State() (*azurermFrontdoorFirewallPolicyState, bool)

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

func (*Resource) StateMust

func (affp *Resource) StateMust() *azurermFrontdoorFirewallPolicyState

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

func (*Resource) Type

func (affp *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