google_container_aws_node_pool

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 {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// SubnetId: string, required
	SubnetId terra.StringValue `hcl:"subnet_id,attr" validate:"required"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
	// Autoscaling: required
	Autoscaling *Autoscaling `hcl:"autoscaling,block" validate:"required"`
	// Config: required
	Config *Config `hcl:"config,block" validate:"required"`
	// Management: optional
	Management *Management `hcl:"management,block"`
	// MaxPodsConstraint: required
	MaxPodsConstraint *MaxPodsConstraint `hcl:"max_pods_constraint,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// UpdateSettings: optional
	UpdateSettings *UpdateSettings `hcl:"update_settings,block"`
}

Args contains the configurations for google_container_aws_node_pool.

type Autoscaling

type Autoscaling struct {
	// MaxNodeCount: number, required
	MaxNodeCount terra.NumberValue `hcl:"max_node_count,attr" validate:"required"`
	// MinNodeCount: number, required
	MinNodeCount terra.NumberValue `hcl:"min_node_count,attr" validate:"required"`
}

type AutoscalingAttributes

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

func (AutoscalingAttributes) InternalRef

func (a AutoscalingAttributes) InternalRef() (terra.Reference, error)

func (AutoscalingAttributes) InternalTokens

func (a AutoscalingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoscalingAttributes) InternalWithRef

func (AutoscalingAttributes) MaxNodeCount

func (a AutoscalingAttributes) MaxNodeCount() terra.NumberValue

func (AutoscalingAttributes) MinNodeCount

func (a AutoscalingAttributes) MinNodeCount() terra.NumberValue

type AutoscalingState

type AutoscalingState struct {
	MaxNodeCount float64 `json:"max_node_count"`
	MinNodeCount float64 `json:"min_node_count"`
}

type Config

type Config struct {
	// IamInstanceProfile: string, required
	IamInstanceProfile terra.StringValue `hcl:"iam_instance_profile,attr" validate:"required"`
	// InstanceType: string, optional
	InstanceType terra.StringValue `hcl:"instance_type,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// SecurityGroupIds: list of string, optional
	SecurityGroupIds terra.ListValue[terra.StringValue] `hcl:"security_group_ids,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// ConfigAutoscalingMetricsCollection: optional
	AutoscalingMetricsCollection *ConfigAutoscalingMetricsCollection `hcl:"autoscaling_metrics_collection,block"`
	// ConfigConfigEncryption: required
	ConfigEncryption *ConfigConfigEncryption `hcl:"config_encryption,block" validate:"required"`
	// ConfigProxyConfig: optional
	ProxyConfig *ConfigProxyConfig `hcl:"proxy_config,block"`
	// ConfigRootVolume: optional
	RootVolume *ConfigRootVolume `hcl:"root_volume,block"`
	// ConfigSshConfig: optional
	SshConfig *ConfigSshConfig `hcl:"ssh_config,block"`
	// ConfigTaints: min=0
	Taints []ConfigTaints `hcl:"taints,block" validate:"min=0"`
}

type ConfigAttributes

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

func (ConfigAttributes) AutoscalingMetricsCollection

func (ConfigAttributes) ConfigEncryption

func (ConfigAttributes) IamInstanceProfile

func (c ConfigAttributes) IamInstanceProfile() terra.StringValue

func (ConfigAttributes) InstanceType

func (c ConfigAttributes) InstanceType() terra.StringValue

func (ConfigAttributes) InternalRef

func (c ConfigAttributes) InternalRef() (terra.Reference, error)

func (ConfigAttributes) InternalTokens

func (c ConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigAttributes) InternalWithRef

func (c ConfigAttributes) InternalWithRef(ref terra.Reference) ConfigAttributes

func (ConfigAttributes) Labels

func (ConfigAttributes) ProxyConfig

func (ConfigAttributes) RootVolume

func (ConfigAttributes) SecurityGroupIds

func (c ConfigAttributes) SecurityGroupIds() terra.ListValue[terra.StringValue]

func (ConfigAttributes) SshConfig

func (ConfigAttributes) Tags

func (ConfigAttributes) Taints

type ConfigAutoscalingMetricsCollection

type ConfigAutoscalingMetricsCollection struct {
	// Granularity: string, required
	Granularity terra.StringValue `hcl:"granularity,attr" validate:"required"`
	// Metrics: list of string, optional
	Metrics terra.ListValue[terra.StringValue] `hcl:"metrics,attr"`
}

type ConfigAutoscalingMetricsCollectionAttributes

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

func (ConfigAutoscalingMetricsCollectionAttributes) Granularity

func (ConfigAutoscalingMetricsCollectionAttributes) InternalRef

func (ConfigAutoscalingMetricsCollectionAttributes) InternalTokens

func (ConfigAutoscalingMetricsCollectionAttributes) InternalWithRef

func (ConfigAutoscalingMetricsCollectionAttributes) Metrics

type ConfigAutoscalingMetricsCollectionState

type ConfigAutoscalingMetricsCollectionState struct {
	Granularity string   `json:"granularity"`
	Metrics     []string `json:"metrics"`
}

type ConfigConfigEncryption

type ConfigConfigEncryption struct {
	// KmsKeyArn: string, required
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr" validate:"required"`
}

type ConfigConfigEncryptionAttributes

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

func (ConfigConfigEncryptionAttributes) InternalRef

func (ConfigConfigEncryptionAttributes) InternalTokens

func (ce ConfigConfigEncryptionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigConfigEncryptionAttributes) InternalWithRef

func (ConfigConfigEncryptionAttributes) KmsKeyArn

type ConfigConfigEncryptionState

type ConfigConfigEncryptionState struct {
	KmsKeyArn string `json:"kms_key_arn"`
}

type ConfigProxyConfig

type ConfigProxyConfig struct {
	// SecretArn: string, required
	SecretArn terra.StringValue `hcl:"secret_arn,attr" validate:"required"`
	// SecretVersion: string, required
	SecretVersion terra.StringValue `hcl:"secret_version,attr" validate:"required"`
}

type ConfigProxyConfigAttributes

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

func (ConfigProxyConfigAttributes) InternalRef

func (pc ConfigProxyConfigAttributes) InternalRef() (terra.Reference, error)

func (ConfigProxyConfigAttributes) InternalTokens

func (pc ConfigProxyConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigProxyConfigAttributes) InternalWithRef

func (ConfigProxyConfigAttributes) SecretArn

func (ConfigProxyConfigAttributes) SecretVersion

func (pc ConfigProxyConfigAttributes) SecretVersion() terra.StringValue

type ConfigProxyConfigState

type ConfigProxyConfigState struct {
	SecretArn     string `json:"secret_arn"`
	SecretVersion string `json:"secret_version"`
}

type ConfigRootVolume

type ConfigRootVolume struct {
	// Iops: number, optional
	Iops terra.NumberValue `hcl:"iops,attr"`
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
	// SizeGib: number, optional
	SizeGib terra.NumberValue `hcl:"size_gib,attr"`
	// Throughput: number, optional
	Throughput terra.NumberValue `hcl:"throughput,attr"`
	// VolumeType: string, optional
	VolumeType terra.StringValue `hcl:"volume_type,attr"`
}

type ConfigRootVolumeAttributes

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

func (ConfigRootVolumeAttributes) InternalRef

func (rv ConfigRootVolumeAttributes) InternalRef() (terra.Reference, error)

func (ConfigRootVolumeAttributes) InternalTokens

func (rv ConfigRootVolumeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigRootVolumeAttributes) InternalWithRef

func (ConfigRootVolumeAttributes) Iops

func (ConfigRootVolumeAttributes) KmsKeyArn

func (ConfigRootVolumeAttributes) SizeGib

func (ConfigRootVolumeAttributes) Throughput

func (ConfigRootVolumeAttributes) VolumeType

type ConfigRootVolumeState

type ConfigRootVolumeState struct {
	Iops       float64 `json:"iops"`
	KmsKeyArn  string  `json:"kms_key_arn"`
	SizeGib    float64 `json:"size_gib"`
	Throughput float64 `json:"throughput"`
	VolumeType string  `json:"volume_type"`
}

type ConfigSshConfig

type ConfigSshConfig struct {
	// Ec2KeyPair: string, required
	Ec2KeyPair terra.StringValue `hcl:"ec2_key_pair,attr" validate:"required"`
}

type ConfigSshConfigAttributes

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

func (ConfigSshConfigAttributes) Ec2KeyPair

func (ConfigSshConfigAttributes) InternalRef

func (sc ConfigSshConfigAttributes) InternalRef() (terra.Reference, error)

func (ConfigSshConfigAttributes) InternalTokens

func (sc ConfigSshConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigSshConfigAttributes) InternalWithRef

type ConfigSshConfigState

type ConfigSshConfigState struct {
	Ec2KeyPair string `json:"ec2_key_pair"`
}

type ConfigState

type ConfigState struct {
	IamInstanceProfile           string                                    `json:"iam_instance_profile"`
	InstanceType                 string                                    `json:"instance_type"`
	Labels                       map[string]string                         `json:"labels"`
	SecurityGroupIds             []string                                  `json:"security_group_ids"`
	Tags                         map[string]string                         `json:"tags"`
	AutoscalingMetricsCollection []ConfigAutoscalingMetricsCollectionState `json:"autoscaling_metrics_collection"`
	ConfigEncryption             []ConfigConfigEncryptionState             `json:"config_encryption"`
	ProxyConfig                  []ConfigProxyConfigState                  `json:"proxy_config"`
	RootVolume                   []ConfigRootVolumeState                   `json:"root_volume"`
	SshConfig                    []ConfigSshConfigState                    `json:"ssh_config"`
	Taints                       []ConfigTaintsState                       `json:"taints"`
}

type ConfigTaints

type ConfigTaints struct {
	// Effect: string, required
	Effect terra.StringValue `hcl:"effect,attr" validate:"required"`
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type ConfigTaintsAttributes

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

func (ConfigTaintsAttributes) Effect

func (ConfigTaintsAttributes) InternalRef

func (t ConfigTaintsAttributes) InternalRef() (terra.Reference, error)

func (ConfigTaintsAttributes) InternalTokens

func (t ConfigTaintsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigTaintsAttributes) InternalWithRef

func (ConfigTaintsAttributes) Key

func (ConfigTaintsAttributes) Value

type ConfigTaintsState

type ConfigTaintsState struct {
	Effect string `json:"effect"`
	Key    string `json:"key"`
	Value  string `json:"value"`
}

type Management

type Management struct {
	// AutoRepair: bool, optional
	AutoRepair terra.BoolValue `hcl:"auto_repair,attr"`
}

type ManagementAttributes

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

func (ManagementAttributes) AutoRepair

func (m ManagementAttributes) AutoRepair() terra.BoolValue

func (ManagementAttributes) InternalRef

func (m ManagementAttributes) InternalRef() (terra.Reference, error)

func (ManagementAttributes) InternalTokens

func (m ManagementAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ManagementAttributes) InternalWithRef

type ManagementState

type ManagementState struct {
	AutoRepair bool `json:"auto_repair"`
}

type MaxPodsConstraint

type MaxPodsConstraint struct {
	// MaxPodsPerNode: number, required
	MaxPodsPerNode terra.NumberValue `hcl:"max_pods_per_node,attr" validate:"required"`
}

type MaxPodsConstraintAttributes

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

func (MaxPodsConstraintAttributes) InternalRef

func (mpc MaxPodsConstraintAttributes) InternalRef() (terra.Reference, error)

func (MaxPodsConstraintAttributes) InternalTokens

func (mpc MaxPodsConstraintAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaxPodsConstraintAttributes) InternalWithRef

func (MaxPodsConstraintAttributes) MaxPodsPerNode

func (mpc MaxPodsConstraintAttributes) MaxPodsPerNode() terra.NumberValue

type MaxPodsConstraintState

type MaxPodsConstraintState struct {
	MaxPodsPerNode float64 `json:"max_pods_per_node"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gcanp *Resource) Attributes() googleContainerAwsNodePoolAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gcanp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gcanp *Resource) State() (*googleContainerAwsNodePoolState, bool)

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

func (*Resource) StateMust

func (gcanp *Resource) StateMust() *googleContainerAwsNodePoolState

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

func (*Resource) Type

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

type UpdateSettings

type UpdateSettings struct {
	// UpdateSettingsSurgeSettings: optional
	SurgeSettings *UpdateSettingsSurgeSettings `hcl:"surge_settings,block"`
}

type UpdateSettingsAttributes

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

func (UpdateSettingsAttributes) InternalRef

func (us UpdateSettingsAttributes) InternalRef() (terra.Reference, error)

func (UpdateSettingsAttributes) InternalTokens

func (us UpdateSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (UpdateSettingsAttributes) InternalWithRef

func (UpdateSettingsAttributes) SurgeSettings

type UpdateSettingsState

type UpdateSettingsState struct {
	SurgeSettings []UpdateSettingsSurgeSettingsState `json:"surge_settings"`
}

type UpdateSettingsSurgeSettings

type UpdateSettingsSurgeSettings struct {
	// MaxSurge: number, optional
	MaxSurge terra.NumberValue `hcl:"max_surge,attr"`
	// MaxUnavailable: number, optional
	MaxUnavailable terra.NumberValue `hcl:"max_unavailable,attr"`
}

type UpdateSettingsSurgeSettingsAttributes

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

func (UpdateSettingsSurgeSettingsAttributes) InternalRef

func (UpdateSettingsSurgeSettingsAttributes) InternalTokens

func (UpdateSettingsSurgeSettingsAttributes) InternalWithRef

func (UpdateSettingsSurgeSettingsAttributes) MaxSurge

func (UpdateSettingsSurgeSettingsAttributes) MaxUnavailable

type UpdateSettingsSurgeSettingsState

type UpdateSettingsSurgeSettingsState struct {
	MaxSurge       float64 `json:"max_surge"`
	MaxUnavailable float64 `json:"max_unavailable"`
}

Jump to

Keyboard shortcuts

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