google_compute_region_instance_group_manager

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 AllInstancesConfig

type AllInstancesConfig struct {
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Metadata: map of string, optional
	Metadata terra.MapValue[terra.StringValue] `hcl:"metadata,attr"`
}

type AllInstancesConfigAttributes

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

func (AllInstancesConfigAttributes) InternalRef

func (aic AllInstancesConfigAttributes) InternalRef() (terra.Reference, error)

func (AllInstancesConfigAttributes) InternalTokens

func (aic AllInstancesConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AllInstancesConfigAttributes) InternalWithRef

func (AllInstancesConfigAttributes) Labels

func (AllInstancesConfigAttributes) Metadata

type AllInstancesConfigState

type AllInstancesConfigState struct {
	Labels   map[string]string `json:"labels"`
	Metadata map[string]string `json:"metadata"`
}

type Args

type Args struct {
	// BaseInstanceName: string, required
	BaseInstanceName terra.StringValue `hcl:"base_instance_name,attr" validate:"required"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// DistributionPolicyTargetShape: string, optional
	DistributionPolicyTargetShape terra.StringValue `hcl:"distribution_policy_target_shape,attr"`
	// DistributionPolicyZones: set of string, optional
	DistributionPolicyZones terra.SetValue[terra.StringValue] `hcl:"distribution_policy_zones,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// ListManagedInstancesResults: string, optional
	ListManagedInstancesResults terra.StringValue `hcl:"list_managed_instances_results,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"`
	// TargetPools: set of string, optional
	TargetPools terra.SetValue[terra.StringValue] `hcl:"target_pools,attr"`
	// TargetSize: number, optional
	TargetSize terra.NumberValue `hcl:"target_size,attr"`
	// WaitForInstances: bool, optional
	WaitForInstances terra.BoolValue `hcl:"wait_for_instances,attr"`
	// WaitForInstancesStatus: string, optional
	WaitForInstancesStatus terra.StringValue `hcl:"wait_for_instances_status,attr"`
	// AllInstancesConfig: optional
	AllInstancesConfig *AllInstancesConfig `hcl:"all_instances_config,block"`
	// AutoHealingPolicies: optional
	AutoHealingPolicies *AutoHealingPolicies `hcl:"auto_healing_policies,block"`
	// InstanceLifecyclePolicy: optional
	InstanceLifecyclePolicy *InstanceLifecyclePolicy `hcl:"instance_lifecycle_policy,block"`
	// NamedPort: min=0
	NamedPort []NamedPort `hcl:"named_port,block" validate:"min=0"`
	// StatefulDisk: min=0
	StatefulDisk []StatefulDisk `hcl:"stateful_disk,block" validate:"min=0"`
	// StatefulExternalIp: min=0
	StatefulExternalIp []StatefulExternalIp `hcl:"stateful_external_ip,block" validate:"min=0"`
	// StatefulInternalIp: min=0
	StatefulInternalIp []StatefulInternalIp `hcl:"stateful_internal_ip,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// UpdatePolicy: optional
	UpdatePolicy *UpdatePolicy `hcl:"update_policy,block"`
	// Version: min=1
	Version []Version `hcl:"version,block" validate:"min=1"`
}

Args contains the configurations for google_compute_region_instance_group_manager.

type AutoHealingPolicies

type AutoHealingPolicies struct {
	// HealthCheck: string, required
	HealthCheck terra.StringValue `hcl:"health_check,attr" validate:"required"`
	// InitialDelaySec: number, required
	InitialDelaySec terra.NumberValue `hcl:"initial_delay_sec,attr" validate:"required"`
}

type AutoHealingPoliciesAttributes

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

func (AutoHealingPoliciesAttributes) HealthCheck

func (AutoHealingPoliciesAttributes) InitialDelaySec

func (ahp AutoHealingPoliciesAttributes) InitialDelaySec() terra.NumberValue

func (AutoHealingPoliciesAttributes) InternalRef

func (ahp AutoHealingPoliciesAttributes) InternalRef() (terra.Reference, error)

func (AutoHealingPoliciesAttributes) InternalTokens

func (ahp AutoHealingPoliciesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoHealingPoliciesAttributes) InternalWithRef

type AutoHealingPoliciesState

type AutoHealingPoliciesState struct {
	HealthCheck     string  `json:"health_check"`
	InitialDelaySec float64 `json:"initial_delay_sec"`
}

type InstanceLifecyclePolicy

type InstanceLifecyclePolicy struct {
	// DefaultActionOnFailure: string, optional
	DefaultActionOnFailure terra.StringValue `hcl:"default_action_on_failure,attr"`
	// ForceUpdateOnRepair: string, optional
	ForceUpdateOnRepair terra.StringValue `hcl:"force_update_on_repair,attr"`
}

type InstanceLifecyclePolicyAttributes

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

func (InstanceLifecyclePolicyAttributes) DefaultActionOnFailure

func (ilp InstanceLifecyclePolicyAttributes) DefaultActionOnFailure() terra.StringValue

func (InstanceLifecyclePolicyAttributes) ForceUpdateOnRepair

func (ilp InstanceLifecyclePolicyAttributes) ForceUpdateOnRepair() terra.StringValue

func (InstanceLifecyclePolicyAttributes) InternalRef

func (InstanceLifecyclePolicyAttributes) InternalTokens

func (ilp InstanceLifecyclePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstanceLifecyclePolicyAttributes) InternalWithRef

type InstanceLifecyclePolicyState

type InstanceLifecyclePolicyState struct {
	DefaultActionOnFailure string `json:"default_action_on_failure"`
	ForceUpdateOnRepair    string `json:"force_update_on_repair"`
}

type NamedPort

type NamedPort struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
}

type NamedPortAttributes

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

func (NamedPortAttributes) InternalRef

func (np NamedPortAttributes) InternalRef() (terra.Reference, error)

func (NamedPortAttributes) InternalTokens

func (np NamedPortAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NamedPortAttributes) InternalWithRef

func (np NamedPortAttributes) InternalWithRef(ref terra.Reference) NamedPortAttributes

func (NamedPortAttributes) Name

func (NamedPortAttributes) Port

type NamedPortState

type NamedPortState struct {
	Name string  `json:"name"`
	Port float64 `json:"port"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcrigm *Resource) Attributes() googleComputeRegionInstanceGroupManagerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcrigm *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcrigm *Resource) State() (*googleComputeRegionInstanceGroupManagerState, bool)

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

func (*Resource) StateMust

func (gcrigm *Resource) StateMust() *googleComputeRegionInstanceGroupManagerState

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

func (*Resource) Type

func (gcrigm *Resource) Type() string

Type returns the Terraform object type for Resource.

type StatefulDisk

type StatefulDisk struct {
	// DeleteRule: string, optional
	DeleteRule terra.StringValue `hcl:"delete_rule,attr"`
	// DeviceName: string, required
	DeviceName terra.StringValue `hcl:"device_name,attr" validate:"required"`
}

type StatefulDiskAttributes

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

func (StatefulDiskAttributes) DeleteRule

func (sd StatefulDiskAttributes) DeleteRule() terra.StringValue

func (StatefulDiskAttributes) DeviceName

func (sd StatefulDiskAttributes) DeviceName() terra.StringValue

func (StatefulDiskAttributes) InternalRef

func (sd StatefulDiskAttributes) InternalRef() (terra.Reference, error)

func (StatefulDiskAttributes) InternalTokens

func (sd StatefulDiskAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatefulDiskAttributes) InternalWithRef

type StatefulDiskState

type StatefulDiskState struct {
	DeleteRule string `json:"delete_rule"`
	DeviceName string `json:"device_name"`
}

type StatefulExternalIp

type StatefulExternalIp struct {
	// DeleteRule: string, optional
	DeleteRule terra.StringValue `hcl:"delete_rule,attr"`
	// InterfaceName: string, optional
	InterfaceName terra.StringValue `hcl:"interface_name,attr"`
}

type StatefulExternalIpAttributes

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

func (StatefulExternalIpAttributes) DeleteRule

func (StatefulExternalIpAttributes) InterfaceName

func (sei StatefulExternalIpAttributes) InterfaceName() terra.StringValue

func (StatefulExternalIpAttributes) InternalRef

func (sei StatefulExternalIpAttributes) InternalRef() (terra.Reference, error)

func (StatefulExternalIpAttributes) InternalTokens

func (sei StatefulExternalIpAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatefulExternalIpAttributes) InternalWithRef

type StatefulExternalIpState

type StatefulExternalIpState struct {
	DeleteRule    string `json:"delete_rule"`
	InterfaceName string `json:"interface_name"`
}

type StatefulInternalIp

type StatefulInternalIp struct {
	// DeleteRule: string, optional
	DeleteRule terra.StringValue `hcl:"delete_rule,attr"`
	// InterfaceName: string, optional
	InterfaceName terra.StringValue `hcl:"interface_name,attr"`
}

type StatefulInternalIpAttributes

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

func (StatefulInternalIpAttributes) DeleteRule

func (StatefulInternalIpAttributes) InterfaceName

func (sii StatefulInternalIpAttributes) InterfaceName() terra.StringValue

func (StatefulInternalIpAttributes) InternalRef

func (sii StatefulInternalIpAttributes) InternalRef() (terra.Reference, error)

func (StatefulInternalIpAttributes) InternalTokens

func (sii StatefulInternalIpAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatefulInternalIpAttributes) InternalWithRef

type StatefulInternalIpState

type StatefulInternalIpState struct {
	DeleteRule    string `json:"delete_rule"`
	InterfaceName string `json:"interface_name"`
}

type StatusAllInstancesConfigAttributes

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

func (StatusAllInstancesConfigAttributes) CurrentRevision

func (StatusAllInstancesConfigAttributes) Effective

func (StatusAllInstancesConfigAttributes) InternalRef

func (StatusAllInstancesConfigAttributes) InternalTokens

func (aic StatusAllInstancesConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatusAllInstancesConfigAttributes) InternalWithRef

type StatusAllInstancesConfigState

type StatusAllInstancesConfigState struct {
	CurrentRevision string `json:"current_revision"`
	Effective       bool   `json:"effective"`
}

type StatusAttributes

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

func (StatusAttributes) AllInstancesConfig

func (StatusAttributes) InternalRef

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

func (StatusAttributes) InternalTokens

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

func (StatusAttributes) InternalWithRef

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

func (StatusAttributes) IsStable

func (s StatusAttributes) IsStable() terra.BoolValue

func (StatusAttributes) Stateful

func (StatusAttributes) VersionTarget

type StatusState

type StatusState struct {
	IsStable           bool                            `json:"is_stable"`
	AllInstancesConfig []StatusAllInstancesConfigState `json:"all_instances_config"`
	Stateful           []StatusStatefulState           `json:"stateful"`
	VersionTarget      []StatusVersionTargetState      `json:"version_target"`
}

type StatusStatefulAttributes

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

func (StatusStatefulAttributes) HasStatefulConfig

func (s StatusStatefulAttributes) HasStatefulConfig() terra.BoolValue

func (StatusStatefulAttributes) InternalRef

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

func (StatusStatefulAttributes) InternalTokens

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

func (StatusStatefulAttributes) InternalWithRef

func (StatusStatefulAttributes) PerInstanceConfigs

type StatusStatefulPerInstanceConfigsAttributes

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

func (StatusStatefulPerInstanceConfigsAttributes) AllEffective

func (StatusStatefulPerInstanceConfigsAttributes) InternalRef

func (StatusStatefulPerInstanceConfigsAttributes) InternalTokens

func (StatusStatefulPerInstanceConfigsAttributes) InternalWithRef

type StatusStatefulPerInstanceConfigsState

type StatusStatefulPerInstanceConfigsState struct {
	AllEffective bool `json:"all_effective"`
}

type StatusStatefulState

type StatusStatefulState struct {
	HasStatefulConfig  bool                                    `json:"has_stateful_config"`
	PerInstanceConfigs []StatusStatefulPerInstanceConfigsState `json:"per_instance_configs"`
}

type StatusVersionTargetAttributes

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

func (StatusVersionTargetAttributes) InternalRef

func (vt StatusVersionTargetAttributes) InternalRef() (terra.Reference, error)

func (StatusVersionTargetAttributes) InternalTokens

func (vt StatusVersionTargetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StatusVersionTargetAttributes) InternalWithRef

func (StatusVersionTargetAttributes) IsReached

type StatusVersionTargetState

type StatusVersionTargetState struct {
	IsReached bool `json:"is_reached"`
}

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

type UpdatePolicy

type UpdatePolicy struct {
	// InstanceRedistributionType: string, optional
	InstanceRedistributionType terra.StringValue `hcl:"instance_redistribution_type,attr"`
	// MaxSurgeFixed: number, optional
	MaxSurgeFixed terra.NumberValue `hcl:"max_surge_fixed,attr"`
	// MaxSurgePercent: number, optional
	MaxSurgePercent terra.NumberValue `hcl:"max_surge_percent,attr"`
	// MaxUnavailableFixed: number, optional
	MaxUnavailableFixed terra.NumberValue `hcl:"max_unavailable_fixed,attr"`
	// MaxUnavailablePercent: number, optional
	MaxUnavailablePercent terra.NumberValue `hcl:"max_unavailable_percent,attr"`
	// MinimalAction: string, required
	MinimalAction terra.StringValue `hcl:"minimal_action,attr" validate:"required"`
	// MostDisruptiveAllowedAction: string, optional
	MostDisruptiveAllowedAction terra.StringValue `hcl:"most_disruptive_allowed_action,attr"`
	// ReplacementMethod: string, optional
	ReplacementMethod terra.StringValue `hcl:"replacement_method,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type UpdatePolicyAttributes

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

func (UpdatePolicyAttributes) InstanceRedistributionType

func (up UpdatePolicyAttributes) InstanceRedistributionType() terra.StringValue

func (UpdatePolicyAttributes) InternalRef

func (up UpdatePolicyAttributes) InternalRef() (terra.Reference, error)

func (UpdatePolicyAttributes) InternalTokens

func (up UpdatePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (UpdatePolicyAttributes) InternalWithRef

func (UpdatePolicyAttributes) MaxSurgeFixed

func (up UpdatePolicyAttributes) MaxSurgeFixed() terra.NumberValue

func (UpdatePolicyAttributes) MaxSurgePercent

func (up UpdatePolicyAttributes) MaxSurgePercent() terra.NumberValue

func (UpdatePolicyAttributes) MaxUnavailableFixed

func (up UpdatePolicyAttributes) MaxUnavailableFixed() terra.NumberValue

func (UpdatePolicyAttributes) MaxUnavailablePercent

func (up UpdatePolicyAttributes) MaxUnavailablePercent() terra.NumberValue

func (UpdatePolicyAttributes) MinimalAction

func (up UpdatePolicyAttributes) MinimalAction() terra.StringValue

func (UpdatePolicyAttributes) MostDisruptiveAllowedAction

func (up UpdatePolicyAttributes) MostDisruptiveAllowedAction() terra.StringValue

func (UpdatePolicyAttributes) ReplacementMethod

func (up UpdatePolicyAttributes) ReplacementMethod() terra.StringValue

func (UpdatePolicyAttributes) Type

type UpdatePolicyState

type UpdatePolicyState struct {
	InstanceRedistributionType  string  `json:"instance_redistribution_type"`
	MaxSurgeFixed               float64 `json:"max_surge_fixed"`
	MaxSurgePercent             float64 `json:"max_surge_percent"`
	MaxUnavailableFixed         float64 `json:"max_unavailable_fixed"`
	MaxUnavailablePercent       float64 `json:"max_unavailable_percent"`
	MinimalAction               string  `json:"minimal_action"`
	MostDisruptiveAllowedAction string  `json:"most_disruptive_allowed_action"`
	ReplacementMethod           string  `json:"replacement_method"`
	Type                        string  `json:"type"`
}

type Version

type Version struct {
	// InstanceTemplate: string, required
	InstanceTemplate terra.StringValue `hcl:"instance_template,attr" validate:"required"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// VersionTargetSize: optional
	TargetSize *VersionTargetSize `hcl:"target_size,block"`
}

type VersionAttributes

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

func (VersionAttributes) InstanceTemplate

func (v VersionAttributes) InstanceTemplate() terra.StringValue

func (VersionAttributes) InternalRef

func (v VersionAttributes) InternalRef() (terra.Reference, error)

func (VersionAttributes) InternalTokens

func (v VersionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VersionAttributes) InternalWithRef

func (v VersionAttributes) InternalWithRef(ref terra.Reference) VersionAttributes

func (VersionAttributes) Name

func (VersionAttributes) TargetSize

type VersionState

type VersionState struct {
	InstanceTemplate string                   `json:"instance_template"`
	Name             string                   `json:"name"`
	TargetSize       []VersionTargetSizeState `json:"target_size"`
}

type VersionTargetSize

type VersionTargetSize struct {
	// Fixed: number, optional
	Fixed terra.NumberValue `hcl:"fixed,attr"`
	// Percent: number, optional
	Percent terra.NumberValue `hcl:"percent,attr"`
}

type VersionTargetSizeAttributes

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

func (VersionTargetSizeAttributes) Fixed

func (VersionTargetSizeAttributes) InternalRef

func (ts VersionTargetSizeAttributes) InternalRef() (terra.Reference, error)

func (VersionTargetSizeAttributes) InternalTokens

func (ts VersionTargetSizeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VersionTargetSizeAttributes) InternalWithRef

func (VersionTargetSizeAttributes) Percent

type VersionTargetSizeState

type VersionTargetSizeState struct {
	Fixed   float64 `json:"fixed"`
	Percent float64 `json:"percent"`
}

Jump to

Keyboard shortcuts

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