google_compute_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"`
	// 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"`
	// 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"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,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_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 DataAllInstancesConfigAttributes

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

func (DataAllInstancesConfigAttributes) InternalRef

func (DataAllInstancesConfigAttributes) InternalTokens

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

func (DataAllInstancesConfigAttributes) InternalWithRef

func (DataAllInstancesConfigAttributes) Labels

func (DataAllInstancesConfigAttributes) Metadata

type DataAllInstancesConfigState

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

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// SelfLink: string, optional
	SelfLink terra.StringValue `hcl:"self_link,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
}

DataArgs contains the configurations for google_compute_instance_group_manager.

type DataAutoHealingPoliciesAttributes

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

func (DataAutoHealingPoliciesAttributes) HealthCheck

func (DataAutoHealingPoliciesAttributes) InitialDelaySec

func (ahp DataAutoHealingPoliciesAttributes) InitialDelaySec() terra.NumberValue

func (DataAutoHealingPoliciesAttributes) InternalRef

func (DataAutoHealingPoliciesAttributes) InternalTokens

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

func (DataAutoHealingPoliciesAttributes) InternalWithRef

type DataAutoHealingPoliciesState

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

type DataInstanceLifecyclePolicyAttributes

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

func (DataInstanceLifecyclePolicyAttributes) DefaultActionOnFailure

func (ilp DataInstanceLifecyclePolicyAttributes) DefaultActionOnFailure() terra.StringValue

func (DataInstanceLifecyclePolicyAttributes) ForceUpdateOnRepair

func (ilp DataInstanceLifecyclePolicyAttributes) ForceUpdateOnRepair() terra.StringValue

func (DataInstanceLifecyclePolicyAttributes) InternalRef

func (DataInstanceLifecyclePolicyAttributes) InternalTokens

func (DataInstanceLifecyclePolicyAttributes) InternalWithRef

type DataInstanceLifecyclePolicyState

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

type DataNamedPortAttributes

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

func (DataNamedPortAttributes) InternalRef

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

func (DataNamedPortAttributes) InternalTokens

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

func (DataNamedPortAttributes) InternalWithRef

func (DataNamedPortAttributes) Name

func (DataNamedPortAttributes) Port

type DataNamedPortState

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

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_compute_instance_group_manager.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gcigm *DataSource) Attributes() dataGoogleComputeInstanceGroupManagerAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gcigm *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gcigm *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataStatefulDiskAttributes

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

func (DataStatefulDiskAttributes) DeleteRule

func (DataStatefulDiskAttributes) DeviceName

func (DataStatefulDiskAttributes) InternalRef

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

func (DataStatefulDiskAttributes) InternalTokens

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

func (DataStatefulDiskAttributes) InternalWithRef

type DataStatefulDiskState

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

type DataStatefulExternalIpAttributes

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

func (DataStatefulExternalIpAttributes) DeleteRule

func (DataStatefulExternalIpAttributes) InterfaceName

func (DataStatefulExternalIpAttributes) InternalRef

func (DataStatefulExternalIpAttributes) InternalTokens

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

func (DataStatefulExternalIpAttributes) InternalWithRef

type DataStatefulExternalIpState

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

type DataStatefulInternalIpAttributes

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

func (DataStatefulInternalIpAttributes) DeleteRule

func (DataStatefulInternalIpAttributes) InterfaceName

func (DataStatefulInternalIpAttributes) InternalRef

func (DataStatefulInternalIpAttributes) InternalTokens

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

func (DataStatefulInternalIpAttributes) InternalWithRef

type DataStatefulInternalIpState

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

type DataStatusAllInstancesConfigAttributes

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

func (DataStatusAllInstancesConfigAttributes) CurrentRevision

func (DataStatusAllInstancesConfigAttributes) Effective

func (DataStatusAllInstancesConfigAttributes) InternalRef

func (DataStatusAllInstancesConfigAttributes) InternalTokens

func (DataStatusAllInstancesConfigAttributes) InternalWithRef

type DataStatusAllInstancesConfigState

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

type DataStatusAttributes

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

func (DataStatusAttributes) AllInstancesConfig

func (DataStatusAttributes) InternalRef

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

func (DataStatusAttributes) InternalTokens

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

func (DataStatusAttributes) InternalWithRef

func (DataStatusAttributes) IsStable

func (s DataStatusAttributes) IsStable() terra.BoolValue

func (DataStatusAttributes) Stateful

func (DataStatusAttributes) VersionTarget

type DataStatusState

type DataStatusState struct {
	IsStable           bool                                `json:"is_stable"`
	AllInstancesConfig []DataStatusAllInstancesConfigState `json:"all_instances_config"`
	Stateful           []DataStatusStatefulState           `json:"stateful"`
	VersionTarget      []DataStatusVersionTargetState      `json:"version_target"`
}

type DataStatusStatefulAttributes

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

func (DataStatusStatefulAttributes) HasStatefulConfig

func (s DataStatusStatefulAttributes) HasStatefulConfig() terra.BoolValue

func (DataStatusStatefulAttributes) InternalRef

func (DataStatusStatefulAttributes) InternalTokens

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

func (DataStatusStatefulAttributes) InternalWithRef

func (DataStatusStatefulAttributes) PerInstanceConfigs

type DataStatusStatefulPerInstanceConfigsAttributes

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

func (DataStatusStatefulPerInstanceConfigsAttributes) AllEffective

func (DataStatusStatefulPerInstanceConfigsAttributes) InternalRef

func (DataStatusStatefulPerInstanceConfigsAttributes) InternalTokens

func (DataStatusStatefulPerInstanceConfigsAttributes) InternalWithRef

type DataStatusStatefulPerInstanceConfigsState

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

type DataStatusStatefulState

type DataStatusStatefulState struct {
	HasStatefulConfig  bool                                        `json:"has_stateful_config"`
	PerInstanceConfigs []DataStatusStatefulPerInstanceConfigsState `json:"per_instance_configs"`
}

type DataStatusVersionTargetAttributes

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

func (DataStatusVersionTargetAttributes) InternalRef

func (DataStatusVersionTargetAttributes) InternalTokens

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

func (DataStatusVersionTargetAttributes) InternalWithRef

func (DataStatusVersionTargetAttributes) IsReached

type DataStatusVersionTargetState

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

type DataUpdatePolicyAttributes

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

func (DataUpdatePolicyAttributes) InternalRef

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

func (DataUpdatePolicyAttributes) InternalTokens

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

func (DataUpdatePolicyAttributes) InternalWithRef

func (DataUpdatePolicyAttributes) MaxSurgeFixed

func (up DataUpdatePolicyAttributes) MaxSurgeFixed() terra.NumberValue

func (DataUpdatePolicyAttributes) MaxSurgePercent

func (up DataUpdatePolicyAttributes) MaxSurgePercent() terra.NumberValue

func (DataUpdatePolicyAttributes) MaxUnavailableFixed

func (up DataUpdatePolicyAttributes) MaxUnavailableFixed() terra.NumberValue

func (DataUpdatePolicyAttributes) MaxUnavailablePercent

func (up DataUpdatePolicyAttributes) MaxUnavailablePercent() terra.NumberValue

func (DataUpdatePolicyAttributes) MinReadySec

func (up DataUpdatePolicyAttributes) MinReadySec() terra.NumberValue

func (DataUpdatePolicyAttributes) MinimalAction

func (up DataUpdatePolicyAttributes) MinimalAction() terra.StringValue

func (DataUpdatePolicyAttributes) MostDisruptiveAllowedAction

func (up DataUpdatePolicyAttributes) MostDisruptiveAllowedAction() terra.StringValue

func (DataUpdatePolicyAttributes) ReplacementMethod

func (up DataUpdatePolicyAttributes) ReplacementMethod() terra.StringValue

func (DataUpdatePolicyAttributes) Type

type DataUpdatePolicyState

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

type DataVersionAttributes

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

func (DataVersionAttributes) InstanceTemplate

func (v DataVersionAttributes) InstanceTemplate() terra.StringValue

func (DataVersionAttributes) InternalRef

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

func (DataVersionAttributes) InternalTokens

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

func (DataVersionAttributes) InternalWithRef

func (DataVersionAttributes) Name

func (DataVersionAttributes) TargetSize

type DataVersionState

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

type DataVersionTargetSizeAttributes

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

func (DataVersionTargetSizeAttributes) Fixed

func (DataVersionTargetSizeAttributes) InternalRef

func (DataVersionTargetSizeAttributes) InternalTokens

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

func (DataVersionTargetSizeAttributes) InternalWithRef

func (DataVersionTargetSizeAttributes) Percent

type DataVersionTargetSizeState

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

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcigm *Resource) Attributes() googleComputeInstanceGroupManagerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcigm *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcigm *Resource) State() (*googleComputeInstanceGroupManagerState, bool)

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

func (*Resource) StateMust

func (gcigm *Resource) StateMust() *googleComputeInstanceGroupManagerState

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

func (*Resource) Type

func (gcigm *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 {
	// 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"`
	// MinReadySec: number, optional
	MinReadySec terra.NumberValue `hcl:"min_ready_sec,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) 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) MinReadySec

func (up UpdatePolicyAttributes) MinReadySec() 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 {
	MaxSurgeFixed               float64 `json:"max_surge_fixed"`
	MaxSurgePercent             float64 `json:"max_surge_percent"`
	MaxUnavailableFixed         float64 `json:"max_unavailable_fixed"`
	MaxUnavailablePercent       float64 `json:"max_unavailable_percent"`
	MinReadySec                 float64 `json:"min_ready_sec"`
	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