google_network_connectivity_policy_based_route

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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Network: string, required
	Network terra.StringValue `hcl:"network,attr" validate:"required"`
	// NextHopIlbIp: string, optional
	NextHopIlbIp terra.StringValue `hcl:"next_hop_ilb_ip,attr"`
	// NextHopOtherRoutes: string, optional
	NextHopOtherRoutes terra.StringValue `hcl:"next_hop_other_routes,attr"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Filter: required
	Filter *Filter `hcl:"filter,block" validate:"required"`
	// InterconnectAttachment: optional
	InterconnectAttachment *InterconnectAttachment `hcl:"interconnect_attachment,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VirtualMachine: optional
	VirtualMachine *VirtualMachine `hcl:"virtual_machine,block"`
}

Args contains the configurations for google_network_connectivity_policy_based_route.

type Filter

type Filter struct {
	// DestRange: string, optional
	DestRange terra.StringValue `hcl:"dest_range,attr"`
	// IpProtocol: string, optional
	IpProtocol terra.StringValue `hcl:"ip_protocol,attr"`
	// ProtocolVersion: string, required
	ProtocolVersion terra.StringValue `hcl:"protocol_version,attr" validate:"required"`
	// SrcRange: string, optional
	SrcRange terra.StringValue `hcl:"src_range,attr"`
}

type FilterAttributes

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

func (FilterAttributes) DestRange

func (f FilterAttributes) DestRange() terra.StringValue

func (FilterAttributes) InternalRef

func (f FilterAttributes) InternalRef() (terra.Reference, error)

func (FilterAttributes) InternalTokens

func (f FilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FilterAttributes) InternalWithRef

func (f FilterAttributes) InternalWithRef(ref terra.Reference) FilterAttributes

func (FilterAttributes) IpProtocol

func (f FilterAttributes) IpProtocol() terra.StringValue

func (FilterAttributes) ProtocolVersion

func (f FilterAttributes) ProtocolVersion() terra.StringValue

func (FilterAttributes) SrcRange

func (f FilterAttributes) SrcRange() terra.StringValue

type FilterState

type FilterState struct {
	DestRange       string `json:"dest_range"`
	IpProtocol      string `json:"ip_protocol"`
	ProtocolVersion string `json:"protocol_version"`
	SrcRange        string `json:"src_range"`
}

type InterconnectAttachment

type InterconnectAttachment struct {
	// Region: string, required
	Region terra.StringValue `hcl:"region,attr" validate:"required"`
}

type InterconnectAttachmentAttributes

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

func (InterconnectAttachmentAttributes) InternalRef

func (InterconnectAttachmentAttributes) InternalTokens

func (ia InterconnectAttachmentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InterconnectAttachmentAttributes) InternalWithRef

func (InterconnectAttachmentAttributes) Region

type InterconnectAttachmentState

type InterconnectAttachmentState struct {
	Region string `json:"region"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gncpbr *Resource) Attributes() googleNetworkConnectivityPolicyBasedRouteAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gncpbr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gncpbr *Resource) State() (*googleNetworkConnectivityPolicyBasedRouteState, bool)

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

func (*Resource) StateMust

func (gncpbr *Resource) StateMust() *googleNetworkConnectivityPolicyBasedRouteState

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

func (*Resource) Type

func (gncpbr *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"`
	// 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) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

type VirtualMachine

type VirtualMachine struct {
	// Tags: list of string, required
	Tags terra.ListValue[terra.StringValue] `hcl:"tags,attr" validate:"required"`
}

type VirtualMachineAttributes

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

func (VirtualMachineAttributes) InternalRef

func (vm VirtualMachineAttributes) InternalRef() (terra.Reference, error)

func (VirtualMachineAttributes) InternalTokens

func (vm VirtualMachineAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VirtualMachineAttributes) InternalWithRef

func (VirtualMachineAttributes) Tags

type VirtualMachineState

type VirtualMachineState struct {
	Tags []string `json:"tags"`
}

type WarningsAttributes

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

func (WarningsAttributes) Code

func (WarningsAttributes) Data

func (WarningsAttributes) InternalRef

func (w WarningsAttributes) InternalRef() (terra.Reference, error)

func (WarningsAttributes) InternalTokens

func (w WarningsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WarningsAttributes) InternalWithRef

func (w WarningsAttributes) InternalWithRef(ref terra.Reference) WarningsAttributes

func (WarningsAttributes) WarningMessage

func (w WarningsAttributes) WarningMessage() terra.StringValue

type WarningsState

type WarningsState struct {
	Code           string            `json:"code"`
	Data           map[string]string `json:"data"`
	WarningMessage string            `json:"warning_message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL