google_compute_packet_mirroring

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"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// CollectorIlb: required
	CollectorIlb *CollectorIlb `hcl:"collector_ilb,block" validate:"required"`
	// Filter: optional
	Filter *Filter `hcl:"filter,block"`
	// MirroredResources: required
	MirroredResources *MirroredResources `hcl:"mirrored_resources,block" validate:"required"`
	// Network: required
	Network *Network `hcl:"network,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_packet_mirroring.

type CollectorIlb

type CollectorIlb struct {
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type CollectorIlbAttributes

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

func (CollectorIlbAttributes) InternalRef

func (ci CollectorIlbAttributes) InternalRef() (terra.Reference, error)

func (CollectorIlbAttributes) InternalTokens

func (ci CollectorIlbAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CollectorIlbAttributes) InternalWithRef

func (CollectorIlbAttributes) Url

type CollectorIlbState

type CollectorIlbState struct {
	Url string `json:"url"`
}

type Filter

type Filter struct {
	// CidrRanges: list of string, optional
	CidrRanges terra.ListValue[terra.StringValue] `hcl:"cidr_ranges,attr"`
	// Direction: string, optional
	Direction terra.StringValue `hcl:"direction,attr"`
	// IpProtocols: list of string, optional
	IpProtocols terra.ListValue[terra.StringValue] `hcl:"ip_protocols,attr"`
}

type FilterAttributes

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

func (FilterAttributes) CidrRanges

func (FilterAttributes) Direction

func (f FilterAttributes) Direction() 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) IpProtocols

type FilterState

type FilterState struct {
	CidrRanges  []string `json:"cidr_ranges"`
	Direction   string   `json:"direction"`
	IpProtocols []string `json:"ip_protocols"`
}

type MirroredResources

type MirroredResources struct {
	// Tags: list of string, optional
	Tags terra.ListValue[terra.StringValue] `hcl:"tags,attr"`
	// MirroredResourcesInstances: min=0
	Instances []MirroredResourcesInstances `hcl:"instances,block" validate:"min=0"`
	// MirroredResourcesSubnetworks: min=0
	Subnetworks []MirroredResourcesSubnetworks `hcl:"subnetworks,block" validate:"min=0"`
}

type MirroredResourcesAttributes

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

func (MirroredResourcesAttributes) Instances

func (MirroredResourcesAttributes) InternalRef

func (mr MirroredResourcesAttributes) InternalRef() (terra.Reference, error)

func (MirroredResourcesAttributes) InternalTokens

func (mr MirroredResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MirroredResourcesAttributes) InternalWithRef

func (MirroredResourcesAttributes) Subnetworks

func (MirroredResourcesAttributes) Tags

type MirroredResourcesInstances

type MirroredResourcesInstances struct {
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type MirroredResourcesInstancesAttributes

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

func (MirroredResourcesInstancesAttributes) InternalRef

func (MirroredResourcesInstancesAttributes) InternalTokens

func (MirroredResourcesInstancesAttributes) InternalWithRef

func (MirroredResourcesInstancesAttributes) Url

type MirroredResourcesInstancesState

type MirroredResourcesInstancesState struct {
	Url string `json:"url"`
}

type MirroredResourcesState

type MirroredResourcesState struct {
	Tags        []string                            `json:"tags"`
	Instances   []MirroredResourcesInstancesState   `json:"instances"`
	Subnetworks []MirroredResourcesSubnetworksState `json:"subnetworks"`
}

type MirroredResourcesSubnetworks

type MirroredResourcesSubnetworks struct {
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type MirroredResourcesSubnetworksAttributes

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

func (MirroredResourcesSubnetworksAttributes) InternalRef

func (MirroredResourcesSubnetworksAttributes) InternalTokens

func (MirroredResourcesSubnetworksAttributes) InternalWithRef

func (MirroredResourcesSubnetworksAttributes) Url

type MirroredResourcesSubnetworksState

type MirroredResourcesSubnetworksState struct {
	Url string `json:"url"`
}

type Network

type Network struct {
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type NetworkAttributes

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

func (NetworkAttributes) InternalRef

func (n NetworkAttributes) InternalRef() (terra.Reference, error)

func (NetworkAttributes) InternalTokens

func (n NetworkAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NetworkAttributes) InternalWithRef

func (n NetworkAttributes) InternalWithRef(ref terra.Reference) NetworkAttributes

func (NetworkAttributes) Url

type NetworkState

type NetworkState struct {
	Url string `json:"url"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcpm *Resource) Attributes() googleComputePacketMirroringAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcpm *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcpm *Resource) State() (*googleComputePacketMirroringState, bool)

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

func (*Resource) StateMust

func (gcpm *Resource) StateMust() *googleComputePacketMirroringState

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

func (*Resource) Type

func (gcpm *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"`
}

Jump to

Keyboard shortcuts

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