google_compute_region_per_instance_config

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"`
	// MinimalAction: string, optional
	MinimalAction terra.StringValue `hcl:"minimal_action,attr"`
	// MostDisruptiveAllowedAction: string, optional
	MostDisruptiveAllowedAction terra.StringValue `hcl:"most_disruptive_allowed_action,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// RegionInstanceGroupManager: string, required
	RegionInstanceGroupManager terra.StringValue `hcl:"region_instance_group_manager,attr" validate:"required"`
	// RemoveInstanceOnDestroy: bool, optional
	RemoveInstanceOnDestroy terra.BoolValue `hcl:"remove_instance_on_destroy,attr"`
	// RemoveInstanceStateOnDestroy: bool, optional
	RemoveInstanceStateOnDestroy terra.BoolValue `hcl:"remove_instance_state_on_destroy,attr"`
	// PreservedState: optional
	PreservedState *PreservedState `hcl:"preserved_state,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_compute_region_per_instance_config.

type PreservedState

type PreservedState struct {
	// Metadata: map of string, optional
	Metadata terra.MapValue[terra.StringValue] `hcl:"metadata,attr"`
	// PreservedStateDisk: min=0
	Disk []PreservedStateDisk `hcl:"disk,block" validate:"min=0"`
	// PreservedStateExternalIp: min=0
	ExternalIp []PreservedStateExternalIp `hcl:"external_ip,block" validate:"min=0"`
	// PreservedStateInternalIp: min=0
	InternalIp []PreservedStateInternalIp `hcl:"internal_ip,block" validate:"min=0"`
}

type PreservedStateAttributes

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

func (PreservedStateAttributes) Disk

func (PreservedStateAttributes) ExternalIp

func (PreservedStateAttributes) InternalIp

func (PreservedStateAttributes) InternalRef

func (ps PreservedStateAttributes) InternalRef() (terra.Reference, error)

func (PreservedStateAttributes) InternalTokens

func (ps PreservedStateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PreservedStateAttributes) InternalWithRef

func (PreservedStateAttributes) Metadata

type PreservedStateDisk

type PreservedStateDisk struct {
	// DeleteRule: string, optional
	DeleteRule terra.StringValue `hcl:"delete_rule,attr"`
	// DeviceName: string, required
	DeviceName terra.StringValue `hcl:"device_name,attr" validate:"required"`
	// Mode: string, optional
	Mode terra.StringValue `hcl:"mode,attr"`
	// Source: string, required
	Source terra.StringValue `hcl:"source,attr" validate:"required"`
}

type PreservedStateDiskAttributes

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

func (PreservedStateDiskAttributes) DeleteRule

func (PreservedStateDiskAttributes) DeviceName

func (PreservedStateDiskAttributes) InternalRef

func (PreservedStateDiskAttributes) InternalTokens

func (d PreservedStateDiskAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PreservedStateDiskAttributes) InternalWithRef

func (PreservedStateDiskAttributes) Mode

func (PreservedStateDiskAttributes) Source

type PreservedStateDiskState

type PreservedStateDiskState struct {
	DeleteRule string `json:"delete_rule"`
	DeviceName string `json:"device_name"`
	Mode       string `json:"mode"`
	Source     string `json:"source"`
}

type PreservedStateExternalIp

type PreservedStateExternalIp struct {
	// AutoDelete: string, optional
	AutoDelete terra.StringValue `hcl:"auto_delete,attr"`
	// InterfaceName: string, required
	InterfaceName terra.StringValue `hcl:"interface_name,attr" validate:"required"`
	// PreservedStateExternalIpIpAddress: optional
	IpAddress *PreservedStateExternalIpIpAddress `hcl:"ip_address,block"`
}

type PreservedStateExternalIpAttributes

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

func (PreservedStateExternalIpAttributes) AutoDelete

func (PreservedStateExternalIpAttributes) InterfaceName

func (PreservedStateExternalIpAttributes) InternalRef

func (PreservedStateExternalIpAttributes) InternalTokens

func (PreservedStateExternalIpAttributes) InternalWithRef

func (PreservedStateExternalIpAttributes) IpAddress

type PreservedStateExternalIpIpAddress

type PreservedStateExternalIpIpAddress struct {
	// Address: string, optional
	Address terra.StringValue `hcl:"address,attr"`
}

type PreservedStateExternalIpIpAddressAttributes

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

func (PreservedStateExternalIpIpAddressAttributes) Address

func (PreservedStateExternalIpIpAddressAttributes) InternalRef

func (PreservedStateExternalIpIpAddressAttributes) InternalTokens

func (PreservedStateExternalIpIpAddressAttributes) InternalWithRef

type PreservedStateExternalIpIpAddressState

type PreservedStateExternalIpIpAddressState struct {
	Address string `json:"address"`
}

type PreservedStateExternalIpState

type PreservedStateExternalIpState struct {
	AutoDelete    string                                   `json:"auto_delete"`
	InterfaceName string                                   `json:"interface_name"`
	IpAddress     []PreservedStateExternalIpIpAddressState `json:"ip_address"`
}

type PreservedStateInternalIp

type PreservedStateInternalIp struct {
	// AutoDelete: string, optional
	AutoDelete terra.StringValue `hcl:"auto_delete,attr"`
	// InterfaceName: string, required
	InterfaceName terra.StringValue `hcl:"interface_name,attr" validate:"required"`
	// PreservedStateInternalIpIpAddress: optional
	IpAddress *PreservedStateInternalIpIpAddress `hcl:"ip_address,block"`
}

type PreservedStateInternalIpAttributes

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

func (PreservedStateInternalIpAttributes) AutoDelete

func (PreservedStateInternalIpAttributes) InterfaceName

func (PreservedStateInternalIpAttributes) InternalRef

func (PreservedStateInternalIpAttributes) InternalTokens

func (PreservedStateInternalIpAttributes) InternalWithRef

func (PreservedStateInternalIpAttributes) IpAddress

type PreservedStateInternalIpIpAddress

type PreservedStateInternalIpIpAddress struct {
	// Address: string, optional
	Address terra.StringValue `hcl:"address,attr"`
}

type PreservedStateInternalIpIpAddressAttributes

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

func (PreservedStateInternalIpIpAddressAttributes) Address

func (PreservedStateInternalIpIpAddressAttributes) InternalRef

func (PreservedStateInternalIpIpAddressAttributes) InternalTokens

func (PreservedStateInternalIpIpAddressAttributes) InternalWithRef

type PreservedStateInternalIpIpAddressState

type PreservedStateInternalIpIpAddressState struct {
	Address string `json:"address"`
}

type PreservedStateInternalIpState

type PreservedStateInternalIpState struct {
	AutoDelete    string                                   `json:"auto_delete"`
	InterfaceName string                                   `json:"interface_name"`
	IpAddress     []PreservedStateInternalIpIpAddressState `json:"ip_address"`
}

type PreservedStateState

type PreservedStateState struct {
	Metadata   map[string]string               `json:"metadata"`
	Disk       []PreservedStateDiskState       `json:"disk"`
	ExternalIp []PreservedStateExternalIpState `json:"external_ip"`
	InternalIp []PreservedStateInternalIpState `json:"internal_ip"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcrpic *Resource) Attributes() googleComputeRegionPerInstanceConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcrpic *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcrpic *Resource) State() (*googleComputeRegionPerInstanceConfigState, bool)

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

func (*Resource) StateMust

func (gcrpic *Resource) StateMust() *googleComputeRegionPerInstanceConfigState

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

func (*Resource) Type

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