aws_appmesh_virtual_router

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"`
	// MeshName: string, required
	MeshName terra.StringValue `hcl:"mesh_name,attr" validate:"required"`
	// MeshOwner: string, optional
	MeshOwner terra.StringValue `hcl:"mesh_owner,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// Spec: required
	Spec *Spec `hcl:"spec,block" validate:"required"`
}

Args contains the configurations for aws_appmesh_virtual_router.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MeshName: string, required
	MeshName terra.StringValue `hcl:"mesh_name,attr" validate:"required"`
	// MeshOwner: string, optional
	MeshOwner terra.StringValue `hcl:"mesh_owner,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_appmesh_virtual_router.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_appmesh_virtual_router.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aavr *DataSource) Attributes() dataAwsAppmeshVirtualRouterAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (aavr *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aavr *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aavr *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataSpecAttributes

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

func (DataSpecAttributes) InternalRef

func (s DataSpecAttributes) InternalRef() (terra.Reference, error)

func (DataSpecAttributes) InternalTokens

func (s DataSpecAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSpecAttributes) InternalWithRef

func (s DataSpecAttributes) InternalWithRef(ref terra.Reference) DataSpecAttributes

func (DataSpecAttributes) Listener

type DataSpecListenerAttributes

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

func (DataSpecListenerAttributes) InternalRef

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

func (DataSpecListenerAttributes) InternalTokens

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

func (DataSpecListenerAttributes) InternalWithRef

func (DataSpecListenerAttributes) PortMapping

type DataSpecListenerPortMappingAttributes

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

func (DataSpecListenerPortMappingAttributes) InternalRef

func (DataSpecListenerPortMappingAttributes) InternalTokens

func (DataSpecListenerPortMappingAttributes) InternalWithRef

func (DataSpecListenerPortMappingAttributes) Port

func (DataSpecListenerPortMappingAttributes) Protocol

type DataSpecListenerPortMappingState

type DataSpecListenerPortMappingState struct {
	Port     float64 `json:"port"`
	Protocol string  `json:"protocol"`
}

type DataSpecListenerState

type DataSpecListenerState struct {
	PortMapping []DataSpecListenerPortMappingState `json:"port_mapping"`
}

type DataSpecState

type DataSpecState struct {
	Listener []DataSpecListenerState `json:"listener"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aavr *Resource) Attributes() awsAppmeshVirtualRouterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aavr *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aavr *Resource) State() (*awsAppmeshVirtualRouterState, bool)

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

func (*Resource) StateMust

func (aavr *Resource) StateMust() *awsAppmeshVirtualRouterState

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

func (*Resource) Type

func (aavr *Resource) Type() string

Type returns the Terraform object type for Resource.

type Spec

type Spec struct {
	// SpecListener: min=0
	Listener []SpecListener `hcl:"listener,block" validate:"min=0"`
}

type SpecAttributes

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

func (SpecAttributes) InternalRef

func (s SpecAttributes) InternalRef() (terra.Reference, error)

func (SpecAttributes) InternalTokens

func (s SpecAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpecAttributes) InternalWithRef

func (s SpecAttributes) InternalWithRef(ref terra.Reference) SpecAttributes

func (SpecAttributes) Listener

type SpecListener

type SpecListener struct {
	// SpecListenerPortMapping: required
	PortMapping *SpecListenerPortMapping `hcl:"port_mapping,block" validate:"required"`
}

type SpecListenerAttributes

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

func (SpecListenerAttributes) InternalRef

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

func (SpecListenerAttributes) InternalTokens

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

func (SpecListenerAttributes) InternalWithRef

func (SpecListenerAttributes) PortMapping

type SpecListenerPortMapping

type SpecListenerPortMapping struct {
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
	// Protocol: string, required
	Protocol terra.StringValue `hcl:"protocol,attr" validate:"required"`
}

type SpecListenerPortMappingAttributes

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

func (SpecListenerPortMappingAttributes) InternalRef

func (SpecListenerPortMappingAttributes) InternalTokens

func (pm SpecListenerPortMappingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpecListenerPortMappingAttributes) InternalWithRef

func (SpecListenerPortMappingAttributes) Port

func (SpecListenerPortMappingAttributes) Protocol

type SpecListenerPortMappingState

type SpecListenerPortMappingState struct {
	Port     float64 `json:"port"`
	Protocol string  `json:"protocol"`
}

type SpecListenerState

type SpecListenerState struct {
	PortMapping []SpecListenerPortMappingState `json:"port_mapping"`
}

type SpecState

type SpecState struct {
	Listener []SpecListenerState `json:"listener"`
}

Jump to

Keyboard shortcuts

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