azurerm_frontdoor_rules_engine

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 {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// FrontdoorName: string, required
	FrontdoorName terra.StringValue `hcl:"frontdoor_name,attr" validate:"required"`
	// 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"`
	// Rule: min=0,max=100
	Rule []Rule `hcl:"rule,block" validate:"min=0,max=100"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_frontdoor_rules_engine.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (afre *Resource) Attributes() azurermFrontdoorRulesEngineAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (afre *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (afre *Resource) State() (*azurermFrontdoorRulesEngineState, bool)

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

func (*Resource) StateMust

func (afre *Resource) StateMust() *azurermFrontdoorRulesEngineState

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

func (*Resource) Type

func (afre *Resource) Type() string

Type returns the Terraform object type for Resource.

type Rule

type Rule struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, required
	Priority terra.NumberValue `hcl:"priority,attr" validate:"required"`
	// RuleAction: optional
	Action *RuleAction `hcl:"action,block"`
	// RuleMatchCondition: min=0,max=100
	MatchCondition []RuleMatchCondition `hcl:"match_condition,block" validate:"min=0,max=100"`
}

type RuleAction

type RuleAction struct {
	// RuleActionRequestHeader: min=0,max=100
	RequestHeader []RuleActionRequestHeader `hcl:"request_header,block" validate:"min=0,max=100"`
	// RuleActionResponseHeader: min=0,max=100
	ResponseHeader []RuleActionResponseHeader `hcl:"response_header,block" validate:"min=0,max=100"`
}

type RuleActionAttributes

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

func (RuleActionAttributes) InternalRef

func (a RuleActionAttributes) InternalRef() (terra.Reference, error)

func (RuleActionAttributes) InternalTokens

func (a RuleActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleActionAttributes) InternalWithRef

func (RuleActionAttributes) RequestHeader

func (RuleActionAttributes) ResponseHeader

type RuleActionRequestHeader

type RuleActionRequestHeader struct {
	// HeaderActionType: string, optional
	HeaderActionType terra.StringValue `hcl:"header_action_type,attr"`
	// HeaderName: string, optional
	HeaderName terra.StringValue `hcl:"header_name,attr"`
	// Value: string, optional
	Value terra.StringValue `hcl:"value,attr"`
}

type RuleActionRequestHeaderAttributes

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

func (RuleActionRequestHeaderAttributes) HeaderActionType

func (rh RuleActionRequestHeaderAttributes) HeaderActionType() terra.StringValue

func (RuleActionRequestHeaderAttributes) HeaderName

func (RuleActionRequestHeaderAttributes) InternalRef

func (RuleActionRequestHeaderAttributes) InternalTokens

func (rh RuleActionRequestHeaderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleActionRequestHeaderAttributes) InternalWithRef

func (RuleActionRequestHeaderAttributes) Value

type RuleActionRequestHeaderState

type RuleActionRequestHeaderState struct {
	HeaderActionType string `json:"header_action_type"`
	HeaderName       string `json:"header_name"`
	Value            string `json:"value"`
}

type RuleActionResponseHeader

type RuleActionResponseHeader struct {
	// HeaderActionType: string, optional
	HeaderActionType terra.StringValue `hcl:"header_action_type,attr"`
	// HeaderName: string, optional
	HeaderName terra.StringValue `hcl:"header_name,attr"`
	// Value: string, optional
	Value terra.StringValue `hcl:"value,attr"`
}

type RuleActionResponseHeaderAttributes

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

func (RuleActionResponseHeaderAttributes) HeaderActionType

func (RuleActionResponseHeaderAttributes) HeaderName

func (RuleActionResponseHeaderAttributes) InternalRef

func (RuleActionResponseHeaderAttributes) InternalTokens

func (RuleActionResponseHeaderAttributes) InternalWithRef

func (RuleActionResponseHeaderAttributes) Value

type RuleActionResponseHeaderState

type RuleActionResponseHeaderState struct {
	HeaderActionType string `json:"header_action_type"`
	HeaderName       string `json:"header_name"`
	Value            string `json:"value"`
}

type RuleActionState

type RuleActionState struct {
	RequestHeader  []RuleActionRequestHeaderState  `json:"request_header"`
	ResponseHeader []RuleActionResponseHeaderState `json:"response_header"`
}

type RuleAttributes

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

func (RuleAttributes) Action

func (RuleAttributes) InternalRef

func (r RuleAttributes) InternalRef() (terra.Reference, error)

func (RuleAttributes) InternalTokens

func (r RuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleAttributes) InternalWithRef

func (r RuleAttributes) InternalWithRef(ref terra.Reference) RuleAttributes

func (RuleAttributes) MatchCondition

func (RuleAttributes) Name

func (r RuleAttributes) Name() terra.StringValue

func (RuleAttributes) Priority

func (r RuleAttributes) Priority() terra.NumberValue

type RuleMatchCondition

type RuleMatchCondition struct {
	// NegateCondition: bool, optional
	NegateCondition terra.BoolValue `hcl:"negate_condition,attr"`
	// Operator: string, required
	Operator terra.StringValue `hcl:"operator,attr" validate:"required"`
	// Selector: string, optional
	Selector terra.StringValue `hcl:"selector,attr"`
	// Transform: list of string, optional
	Transform terra.ListValue[terra.StringValue] `hcl:"transform,attr"`
	// Value: list of string, optional
	Value terra.ListValue[terra.StringValue] `hcl:"value,attr"`
	// Variable: string, optional
	Variable terra.StringValue `hcl:"variable,attr"`
}

type RuleMatchConditionAttributes

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

func (RuleMatchConditionAttributes) InternalRef

func (mc RuleMatchConditionAttributes) InternalRef() (terra.Reference, error)

func (RuleMatchConditionAttributes) InternalTokens

func (mc RuleMatchConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleMatchConditionAttributes) InternalWithRef

func (RuleMatchConditionAttributes) NegateCondition

func (mc RuleMatchConditionAttributes) NegateCondition() terra.BoolValue

func (RuleMatchConditionAttributes) Operator

func (RuleMatchConditionAttributes) Selector

func (RuleMatchConditionAttributes) Transform

func (RuleMatchConditionAttributes) Value

func (RuleMatchConditionAttributes) Variable

type RuleMatchConditionState

type RuleMatchConditionState struct {
	NegateCondition bool     `json:"negate_condition"`
	Operator        string   `json:"operator"`
	Selector        string   `json:"selector"`
	Transform       []string `json:"transform"`
	Value           []string `json:"value"`
	Variable        string   `json:"variable"`
}

type RuleState

type RuleState struct {
	Name           string                    `json:"name"`
	Priority       float64                   `json:"priority"`
	Action         []RuleActionState         `json:"action"`
	MatchCondition []RuleMatchConditionState `json:"match_condition"`
}

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