google_network_services_tls_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"`
	// Gateways: list of string, optional
	Gateways terra.ListValue[terra.StringValue] `hcl:"gateways,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Meshes: list of string, optional
	Meshes terra.ListValue[terra.StringValue] `hcl:"meshes,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Rules: min=1
	Rules []Rules `hcl:"rules,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_network_services_tls_route.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gnstr *Resource) Attributes() googleNetworkServicesTlsRouteAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gnstr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gnstr *Resource) State() (*googleNetworkServicesTlsRouteState, bool)

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

func (*Resource) StateMust

func (gnstr *Resource) StateMust() *googleNetworkServicesTlsRouteState

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

func (*Resource) Type

func (gnstr *Resource) Type() string

Type returns the Terraform object type for Resource.

type Rules

type Rules struct {
	// RulesAction: required
	Action *RulesAction `hcl:"action,block" validate:"required"`
	// RulesMatches: min=1
	Matches []RulesMatches `hcl:"matches,block" validate:"min=1"`
}

type RulesAction

type RulesAction struct {
	// RulesActionDestinations: min=0
	Destinations []RulesActionDestinations `hcl:"destinations,block" validate:"min=0"`
}

type RulesActionAttributes

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

func (RulesActionAttributes) Destinations

func (RulesActionAttributes) InternalRef

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

func (RulesActionAttributes) InternalTokens

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

func (RulesActionAttributes) InternalWithRef

type RulesActionDestinations

type RulesActionDestinations struct {
	// ServiceName: string, optional
	ServiceName terra.StringValue `hcl:"service_name,attr"`
	// Weight: number, optional
	Weight terra.NumberValue `hcl:"weight,attr"`
}

type RulesActionDestinationsAttributes

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

func (RulesActionDestinationsAttributes) InternalRef

func (RulesActionDestinationsAttributes) InternalTokens

func (RulesActionDestinationsAttributes) InternalWithRef

func (RulesActionDestinationsAttributes) ServiceName

func (RulesActionDestinationsAttributes) Weight

type RulesActionDestinationsState

type RulesActionDestinationsState struct {
	ServiceName string  `json:"service_name"`
	Weight      float64 `json:"weight"`
}

type RulesActionState

type RulesActionState struct {
	Destinations []RulesActionDestinationsState `json:"destinations"`
}

type RulesAttributes

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

func (RulesAttributes) Action

func (RulesAttributes) InternalRef

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

func (RulesAttributes) InternalTokens

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

func (RulesAttributes) InternalWithRef

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

func (RulesAttributes) Matches

type RulesMatches

type RulesMatches struct {
	// Alpn: list of string, optional
	Alpn terra.ListValue[terra.StringValue] `hcl:"alpn,attr"`
	// SniHost: list of string, optional
	SniHost terra.ListValue[terra.StringValue] `hcl:"sni_host,attr"`
}

type RulesMatchesAttributes

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

func (RulesMatchesAttributes) Alpn

func (RulesMatchesAttributes) InternalRef

func (m RulesMatchesAttributes) InternalRef() (terra.Reference, error)

func (RulesMatchesAttributes) InternalTokens

func (m RulesMatchesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesMatchesAttributes) InternalWithRef

func (RulesMatchesAttributes) SniHost

type RulesMatchesState

type RulesMatchesState struct {
	Alpn    []string `json:"alpn"`
	SniHost []string `json:"sni_host"`
}

type RulesState

type RulesState struct {
	Action  []RulesActionState  `json:"action"`
	Matches []RulesMatchesState `json:"matches"`
}

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"`
}

Jump to

Keyboard shortcuts

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