azurerm_vpn_site

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 {
	// AddressCidrs: set of string, optional
	AddressCidrs terra.SetValue[terra.StringValue] `hcl:"address_cidrs,attr"`
	// DeviceModel: string, optional
	DeviceModel terra.StringValue `hcl:"device_model,attr"`
	// DeviceVendor: string, optional
	DeviceVendor terra.StringValue `hcl:"device_vendor,attr"`
	// 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"`
	// VirtualWanId: string, required
	VirtualWanId terra.StringValue `hcl:"virtual_wan_id,attr" validate:"required"`
	// Link: min=0
	Link []Link `hcl:"link,block" validate:"min=0"`
	// O365Policy: optional
	O365Policy *O365Policy `hcl:"o365_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_vpn_site.

type Link struct {
	// Fqdn: string, optional
	Fqdn terra.StringValue `hcl:"fqdn,attr"`
	// IpAddress: string, optional
	IpAddress terra.StringValue `hcl:"ip_address,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ProviderName: string, optional
	ProviderName terra.StringValue `hcl:"provider_name,attr"`
	// SpeedInMbps: number, optional
	SpeedInMbps terra.NumberValue `hcl:"speed_in_mbps,attr"`
	// LinkBgp: optional
	Bgp *LinkBgp `hcl:"bgp,block"`
}

type LinkAttributes

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

func (LinkAttributes) Bgp

func (LinkAttributes) Fqdn

func (l LinkAttributes) Fqdn() terra.StringValue

func (LinkAttributes) Id

func (LinkAttributes) InternalRef

func (l LinkAttributes) InternalRef() (terra.Reference, error)

func (LinkAttributes) InternalTokens

func (l LinkAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LinkAttributes) InternalWithRef

func (l LinkAttributes) InternalWithRef(ref terra.Reference) LinkAttributes

func (LinkAttributes) IpAddress

func (l LinkAttributes) IpAddress() terra.StringValue

func (LinkAttributes) Name

func (l LinkAttributes) Name() terra.StringValue

func (LinkAttributes) ProviderName

func (l LinkAttributes) ProviderName() terra.StringValue

func (LinkAttributes) SpeedInMbps

func (l LinkAttributes) SpeedInMbps() terra.NumberValue

type LinkBgp

type LinkBgp struct {
	// Asn: number, required
	Asn terra.NumberValue `hcl:"asn,attr" validate:"required"`
	// PeeringAddress: string, required
	PeeringAddress terra.StringValue `hcl:"peering_address,attr" validate:"required"`
}

type LinkBgpAttributes

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

func (LinkBgpAttributes) Asn

func (LinkBgpAttributes) InternalRef

func (b LinkBgpAttributes) InternalRef() (terra.Reference, error)

func (LinkBgpAttributes) InternalTokens

func (b LinkBgpAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LinkBgpAttributes) InternalWithRef

func (b LinkBgpAttributes) InternalWithRef(ref terra.Reference) LinkBgpAttributes

func (LinkBgpAttributes) PeeringAddress

func (b LinkBgpAttributes) PeeringAddress() terra.StringValue

type LinkBgpState

type LinkBgpState struct {
	Asn            float64 `json:"asn"`
	PeeringAddress string  `json:"peering_address"`
}

type LinkState

type LinkState struct {
	Fqdn         string         `json:"fqdn"`
	Id           string         `json:"id"`
	IpAddress    string         `json:"ip_address"`
	Name         string         `json:"name"`
	ProviderName string         `json:"provider_name"`
	SpeedInMbps  float64        `json:"speed_in_mbps"`
	Bgp          []LinkBgpState `json:"bgp"`
}

type O365Policy

type O365Policy struct {
	// O365PolicyTrafficCategory: optional
	TrafficCategory *O365PolicyTrafficCategory `hcl:"traffic_category,block"`
}

type O365PolicyAttributes

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

func (O365PolicyAttributes) InternalRef

func (op O365PolicyAttributes) InternalRef() (terra.Reference, error)

func (O365PolicyAttributes) InternalTokens

func (op O365PolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (O365PolicyAttributes) InternalWithRef

func (op O365PolicyAttributes) InternalWithRef(ref terra.Reference) O365PolicyAttributes

func (O365PolicyAttributes) TrafficCategory

type O365PolicyState

type O365PolicyState struct {
	TrafficCategory []O365PolicyTrafficCategoryState `json:"traffic_category"`
}

type O365PolicyTrafficCategory

type O365PolicyTrafficCategory struct {
	// AllowEndpointEnabled: bool, optional
	AllowEndpointEnabled terra.BoolValue `hcl:"allow_endpoint_enabled,attr"`
	// DefaultEndpointEnabled: bool, optional
	DefaultEndpointEnabled terra.BoolValue `hcl:"default_endpoint_enabled,attr"`
	// OptimizeEndpointEnabled: bool, optional
	OptimizeEndpointEnabled terra.BoolValue `hcl:"optimize_endpoint_enabled,attr"`
}

type O365PolicyTrafficCategoryAttributes

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

func (O365PolicyTrafficCategoryAttributes) AllowEndpointEnabled

func (tc O365PolicyTrafficCategoryAttributes) AllowEndpointEnabled() terra.BoolValue

func (O365PolicyTrafficCategoryAttributes) DefaultEndpointEnabled

func (tc O365PolicyTrafficCategoryAttributes) DefaultEndpointEnabled() terra.BoolValue

func (O365PolicyTrafficCategoryAttributes) InternalRef

func (O365PolicyTrafficCategoryAttributes) InternalTokens

func (O365PolicyTrafficCategoryAttributes) InternalWithRef

func (O365PolicyTrafficCategoryAttributes) OptimizeEndpointEnabled

func (tc O365PolicyTrafficCategoryAttributes) OptimizeEndpointEnabled() terra.BoolValue

type O365PolicyTrafficCategoryState

type O365PolicyTrafficCategoryState struct {
	AllowEndpointEnabled    bool `json:"allow_endpoint_enabled"`
	DefaultEndpointEnabled  bool `json:"default_endpoint_enabled"`
	OptimizeEndpointEnabled bool `json:"optimize_endpoint_enabled"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (avs *Resource) Attributes() azurermVpnSiteAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (avs *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (avs *Resource) State() (*azurermVpnSiteState, bool)

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

func (*Resource) StateMust

func (avs *Resource) StateMust() *azurermVpnSiteState

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

func (*Resource) Type

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