azurerm_route_map

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"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// VirtualHubId: string, required
	VirtualHubId terra.StringValue `hcl:"virtual_hub_id,attr" validate:"required"`
	// Rule: min=0
	Rule []Rule `hcl:"rule,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_route_map.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (arm *Resource) Attributes() azurermRouteMapAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (arm *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (arm *Resource) State() (*azurermRouteMapState, bool)

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

func (*Resource) StateMust

func (arm *Resource) StateMust() *azurermRouteMapState

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

func (*Resource) Type

func (arm *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"`
	// NextStepIfMatched: string, optional
	NextStepIfMatched terra.StringValue `hcl:"next_step_if_matched,attr"`
	// RuleAction: min=0
	Action []RuleAction `hcl:"action,block" validate:"min=0"`
	// RuleMatchCriterion: min=0
	MatchCriterion []RuleMatchCriterion `hcl:"match_criterion,block" validate:"min=0"`
}

type RuleAction

type RuleAction struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// RuleActionParameter: min=1
	Parameter []RuleActionParameter `hcl:"parameter,block" validate:"min=1"`
}

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

func (RuleActionAttributes) Type

type RuleActionParameter

type RuleActionParameter struct {
	// AsPath: list of string, optional
	AsPath terra.ListValue[terra.StringValue] `hcl:"as_path,attr"`
	// Community: list of string, optional
	Community terra.ListValue[terra.StringValue] `hcl:"community,attr"`
	// RoutePrefix: list of string, optional
	RoutePrefix terra.ListValue[terra.StringValue] `hcl:"route_prefix,attr"`
}

type RuleActionParameterAttributes

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

func (RuleActionParameterAttributes) AsPath

func (RuleActionParameterAttributes) Community

func (RuleActionParameterAttributes) InternalRef

func (RuleActionParameterAttributes) InternalTokens

func (p RuleActionParameterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleActionParameterAttributes) InternalWithRef

func (RuleActionParameterAttributes) RoutePrefix

type RuleActionParameterState

type RuleActionParameterState struct {
	AsPath      []string `json:"as_path"`
	Community   []string `json:"community"`
	RoutePrefix []string `json:"route_prefix"`
}

type RuleActionState

type RuleActionState struct {
	Type      string                     `json:"type"`
	Parameter []RuleActionParameterState `json:"parameter"`
}

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

func (RuleAttributes) Name

func (r RuleAttributes) Name() terra.StringValue

func (RuleAttributes) NextStepIfMatched

func (r RuleAttributes) NextStepIfMatched() terra.StringValue

type RuleMatchCriterion

type RuleMatchCriterion struct {
	// AsPath: list of string, optional
	AsPath terra.ListValue[terra.StringValue] `hcl:"as_path,attr"`
	// Community: list of string, optional
	Community terra.ListValue[terra.StringValue] `hcl:"community,attr"`
	// MatchCondition: string, required
	MatchCondition terra.StringValue `hcl:"match_condition,attr" validate:"required"`
	// RoutePrefix: list of string, optional
	RoutePrefix terra.ListValue[terra.StringValue] `hcl:"route_prefix,attr"`
}

type RuleMatchCriterionAttributes

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

func (RuleMatchCriterionAttributes) AsPath

func (RuleMatchCriterionAttributes) Community

func (RuleMatchCriterionAttributes) InternalRef

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

func (RuleMatchCriterionAttributes) InternalTokens

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

func (RuleMatchCriterionAttributes) InternalWithRef

func (RuleMatchCriterionAttributes) MatchCondition

func (mc RuleMatchCriterionAttributes) MatchCondition() terra.StringValue

func (RuleMatchCriterionAttributes) RoutePrefix

type RuleMatchCriterionState

type RuleMatchCriterionState struct {
	AsPath         []string `json:"as_path"`
	Community      []string `json:"community"`
	MatchCondition string   `json:"match_condition"`
	RoutePrefix    []string `json:"route_prefix"`
}

type RuleState

type RuleState struct {
	Name              string                    `json:"name"`
	NextStepIfMatched string                    `json:"next_step_if_matched"`
	Action            []RuleActionState         `json:"action"`
	MatchCriterion    []RuleMatchCriterionState `json:"match_criterion"`
}

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