azurerm_vpn_gateway_nat_rule

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 {
	// ExternalAddressSpaceMappings: list of string, optional
	ExternalAddressSpaceMappings terra.ListValue[terra.StringValue] `hcl:"external_address_space_mappings,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InternalAddressSpaceMappings: list of string, optional
	InternalAddressSpaceMappings terra.ListValue[terra.StringValue] `hcl:"internal_address_space_mappings,attr"`
	// IpConfigurationId: string, optional
	IpConfigurationId terra.StringValue `hcl:"ip_configuration_id,attr"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,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"`
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// VpnGatewayId: string, required
	VpnGatewayId terra.StringValue `hcl:"vpn_gateway_id,attr" validate:"required"`
	// ExternalMapping: min=0
	ExternalMapping []ExternalMapping `hcl:"external_mapping,block" validate:"min=0"`
	// InternalMapping: min=0
	InternalMapping []InternalMapping `hcl:"internal_mapping,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_vpn_gateway_nat_rule.

type ExternalMapping

type ExternalMapping struct {
	// AddressSpace: string, required
	AddressSpace terra.StringValue `hcl:"address_space,attr" validate:"required"`
	// PortRange: string, optional
	PortRange terra.StringValue `hcl:"port_range,attr"`
}

type ExternalMappingAttributes

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

func (ExternalMappingAttributes) AddressSpace

func (em ExternalMappingAttributes) AddressSpace() terra.StringValue

func (ExternalMappingAttributes) InternalRef

func (em ExternalMappingAttributes) InternalRef() (terra.Reference, error)

func (ExternalMappingAttributes) InternalTokens

func (em ExternalMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExternalMappingAttributes) InternalWithRef

func (ExternalMappingAttributes) PortRange

type ExternalMappingState

type ExternalMappingState struct {
	AddressSpace string `json:"address_space"`
	PortRange    string `json:"port_range"`
}

type InternalMapping

type InternalMapping struct {
	// AddressSpace: string, required
	AddressSpace terra.StringValue `hcl:"address_space,attr" validate:"required"`
	// PortRange: string, optional
	PortRange terra.StringValue `hcl:"port_range,attr"`
}

type InternalMappingAttributes

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

func (InternalMappingAttributes) AddressSpace

func (im InternalMappingAttributes) AddressSpace() terra.StringValue

func (InternalMappingAttributes) InternalRef

func (im InternalMappingAttributes) InternalRef() (terra.Reference, error)

func (InternalMappingAttributes) InternalTokens

func (im InternalMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InternalMappingAttributes) InternalWithRef

func (InternalMappingAttributes) PortRange

type InternalMappingState

type InternalMappingState struct {
	AddressSpace string `json:"address_space"`
	PortRange    string `json:"port_range"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (avgnr *Resource) Attributes() azurermVpnGatewayNatRuleAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (avgnr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (avgnr *Resource) State() (*azurermVpnGatewayNatRuleState, bool)

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

func (*Resource) StateMust

func (avgnr *Resource) StateMust() *azurermVpnGatewayNatRuleState

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

func (*Resource) Type

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