Documentation ¶
Index ¶
- type Args
- type PreservedState
- type PreservedStateAttributes
- func (ps PreservedStateAttributes) Disk() terra.SetValue[PreservedStateDiskAttributes]
- func (ps PreservedStateAttributes) ExternalIp() terra.SetValue[PreservedStateExternalIpAttributes]
- func (ps PreservedStateAttributes) InternalIp() terra.SetValue[PreservedStateInternalIpAttributes]
- func (ps PreservedStateAttributes) InternalRef() (terra.Reference, error)
- func (ps PreservedStateAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ps PreservedStateAttributes) InternalWithRef(ref terra.Reference) PreservedStateAttributes
- func (ps PreservedStateAttributes) Metadata() terra.MapValue[terra.StringValue]
- type PreservedStateDisk
- type PreservedStateDiskAttributes
- func (d PreservedStateDiskAttributes) DeleteRule() terra.StringValue
- func (d PreservedStateDiskAttributes) DeviceName() terra.StringValue
- func (d PreservedStateDiskAttributes) InternalRef() (terra.Reference, error)
- func (d PreservedStateDiskAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (d PreservedStateDiskAttributes) InternalWithRef(ref terra.Reference) PreservedStateDiskAttributes
- func (d PreservedStateDiskAttributes) Mode() terra.StringValue
- func (d PreservedStateDiskAttributes) Source() terra.StringValue
- type PreservedStateDiskState
- type PreservedStateExternalIp
- type PreservedStateExternalIpAttributes
- func (ei PreservedStateExternalIpAttributes) AutoDelete() terra.StringValue
- func (ei PreservedStateExternalIpAttributes) InterfaceName() terra.StringValue
- func (ei PreservedStateExternalIpAttributes) InternalRef() (terra.Reference, error)
- func (ei PreservedStateExternalIpAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ei PreservedStateExternalIpAttributes) InternalWithRef(ref terra.Reference) PreservedStateExternalIpAttributes
- func (ei PreservedStateExternalIpAttributes) IpAddress() terra.ListValue[PreservedStateExternalIpIpAddressAttributes]
- type PreservedStateExternalIpIpAddress
- type PreservedStateExternalIpIpAddressAttributes
- func (ia PreservedStateExternalIpIpAddressAttributes) Address() terra.StringValue
- func (ia PreservedStateExternalIpIpAddressAttributes) InternalRef() (terra.Reference, error)
- func (ia PreservedStateExternalIpIpAddressAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ia PreservedStateExternalIpIpAddressAttributes) InternalWithRef(ref terra.Reference) PreservedStateExternalIpIpAddressAttributes
- type PreservedStateExternalIpIpAddressState
- type PreservedStateExternalIpState
- type PreservedStateInternalIp
- type PreservedStateInternalIpAttributes
- func (ii PreservedStateInternalIpAttributes) AutoDelete() terra.StringValue
- func (ii PreservedStateInternalIpAttributes) InterfaceName() terra.StringValue
- func (ii PreservedStateInternalIpAttributes) InternalRef() (terra.Reference, error)
- func (ii PreservedStateInternalIpAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ii PreservedStateInternalIpAttributes) InternalWithRef(ref terra.Reference) PreservedStateInternalIpAttributes
- func (ii PreservedStateInternalIpAttributes) IpAddress() terra.ListValue[PreservedStateInternalIpIpAddressAttributes]
- type PreservedStateInternalIpIpAddress
- type PreservedStateInternalIpIpAddressAttributes
- func (ia PreservedStateInternalIpIpAddressAttributes) Address() terra.StringValue
- func (ia PreservedStateInternalIpIpAddressAttributes) InternalRef() (terra.Reference, error)
- func (ia PreservedStateInternalIpIpAddressAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ia PreservedStateInternalIpIpAddressAttributes) InternalWithRef(ref terra.Reference) PreservedStateInternalIpIpAddressAttributes
- type PreservedStateInternalIpIpAddressState
- type PreservedStateInternalIpState
- type PreservedStateState
- type Resource
- func (gcrpic *Resource) Attributes() googleComputeRegionPerInstanceConfigAttributes
- func (gcrpic *Resource) Configuration() interface{}
- func (gcrpic *Resource) DependOn() terra.Reference
- func (gcrpic *Resource) Dependencies() terra.Dependencies
- func (gcrpic *Resource) ImportState(state io.Reader) error
- func (gcrpic *Resource) LifecycleManagement() *terra.Lifecycle
- func (gcrpic *Resource) LocalName() string
- func (gcrpic *Resource) State() (*googleComputeRegionPerInstanceConfigState, bool)
- func (gcrpic *Resource) StateMust() *googleComputeRegionPerInstanceConfigState
- func (gcrpic *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
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 (ps PreservedStateAttributes) Disk() terra.SetValue[PreservedStateDiskAttributes]
func (PreservedStateAttributes) ExternalIp ¶
func (ps PreservedStateAttributes) ExternalIp() terra.SetValue[PreservedStateExternalIpAttributes]
func (PreservedStateAttributes) InternalIp ¶
func (ps PreservedStateAttributes) InternalIp() terra.SetValue[PreservedStateInternalIpAttributes]
func (PreservedStateAttributes) InternalRef ¶
func (ps PreservedStateAttributes) InternalRef() (terra.Reference, error)
func (PreservedStateAttributes) InternalTokens ¶
func (ps PreservedStateAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PreservedStateAttributes) InternalWithRef ¶
func (ps PreservedStateAttributes) InternalWithRef(ref terra.Reference) PreservedStateAttributes
func (PreservedStateAttributes) Metadata ¶
func (ps PreservedStateAttributes) Metadata() terra.MapValue[terra.StringValue]
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 (d PreservedStateDiskAttributes) DeleteRule() terra.StringValue
func (PreservedStateDiskAttributes) DeviceName ¶
func (d PreservedStateDiskAttributes) DeviceName() terra.StringValue
func (PreservedStateDiskAttributes) InternalRef ¶
func (d PreservedStateDiskAttributes) InternalRef() (terra.Reference, error)
func (PreservedStateDiskAttributes) InternalTokens ¶
func (d PreservedStateDiskAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PreservedStateDiskAttributes) InternalWithRef ¶
func (d PreservedStateDiskAttributes) InternalWithRef(ref terra.Reference) PreservedStateDiskAttributes
func (PreservedStateDiskAttributes) Mode ¶
func (d PreservedStateDiskAttributes) Mode() terra.StringValue
func (PreservedStateDiskAttributes) Source ¶
func (d PreservedStateDiskAttributes) Source() terra.StringValue
type PreservedStateDiskState ¶
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 (ei PreservedStateExternalIpAttributes) AutoDelete() terra.StringValue
func (PreservedStateExternalIpAttributes) InterfaceName ¶
func (ei PreservedStateExternalIpAttributes) InterfaceName() terra.StringValue
func (PreservedStateExternalIpAttributes) InternalRef ¶
func (ei PreservedStateExternalIpAttributes) InternalRef() (terra.Reference, error)
func (PreservedStateExternalIpAttributes) InternalTokens ¶
func (ei PreservedStateExternalIpAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PreservedStateExternalIpAttributes) InternalWithRef ¶
func (ei PreservedStateExternalIpAttributes) InternalWithRef(ref terra.Reference) PreservedStateExternalIpAttributes
func (PreservedStateExternalIpAttributes) IpAddress ¶
func (ei PreservedStateExternalIpAttributes) IpAddress() terra.ListValue[PreservedStateExternalIpIpAddressAttributes]
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 (ia PreservedStateExternalIpIpAddressAttributes) Address() terra.StringValue
func (PreservedStateExternalIpIpAddressAttributes) InternalRef ¶
func (ia PreservedStateExternalIpIpAddressAttributes) InternalRef() (terra.Reference, error)
func (PreservedStateExternalIpIpAddressAttributes) InternalTokens ¶
func (ia PreservedStateExternalIpIpAddressAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PreservedStateExternalIpIpAddressAttributes) InternalWithRef ¶
func (ia PreservedStateExternalIpIpAddressAttributes) InternalWithRef(ref terra.Reference) PreservedStateExternalIpIpAddressAttributes
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 (ii PreservedStateInternalIpAttributes) AutoDelete() terra.StringValue
func (PreservedStateInternalIpAttributes) InterfaceName ¶
func (ii PreservedStateInternalIpAttributes) InterfaceName() terra.StringValue
func (PreservedStateInternalIpAttributes) InternalRef ¶
func (ii PreservedStateInternalIpAttributes) InternalRef() (terra.Reference, error)
func (PreservedStateInternalIpAttributes) InternalTokens ¶
func (ii PreservedStateInternalIpAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PreservedStateInternalIpAttributes) InternalWithRef ¶
func (ii PreservedStateInternalIpAttributes) InternalWithRef(ref terra.Reference) PreservedStateInternalIpAttributes
func (PreservedStateInternalIpAttributes) IpAddress ¶
func (ii PreservedStateInternalIpAttributes) IpAddress() terra.ListValue[PreservedStateInternalIpIpAddressAttributes]
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 (ia PreservedStateInternalIpIpAddressAttributes) Address() terra.StringValue
func (PreservedStateInternalIpIpAddressAttributes) InternalRef ¶
func (ia PreservedStateInternalIpIpAddressAttributes) InternalRef() (terra.Reference, error)
func (PreservedStateInternalIpIpAddressAttributes) InternalTokens ¶
func (ia PreservedStateInternalIpIpAddressAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PreservedStateInternalIpIpAddressAttributes) InternalWithRef ¶
func (ia PreservedStateInternalIpIpAddressAttributes) InternalWithRef(ref terra.Reference) PreservedStateInternalIpIpAddressAttributes
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 (*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) Dependencies ¶
func (gcrpic *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 ¶
func (t TimeoutsAttributes) Update() terra.StringValue
type TimeoutsState ¶
Click to show internal directories.
Click to hide internal directories.