aws_eks_node_group

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 {
	// AmiType: string, optional
	AmiType terra.StringValue `hcl:"ami_type,attr"`
	// CapacityType: string, optional
	CapacityType terra.StringValue `hcl:"capacity_type,attr"`
	// ClusterName: string, required
	ClusterName terra.StringValue `hcl:"cluster_name,attr" validate:"required"`
	// DiskSize: number, optional
	DiskSize terra.NumberValue `hcl:"disk_size,attr"`
	// ForceUpdateVersion: bool, optional
	ForceUpdateVersion terra.BoolValue `hcl:"force_update_version,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceTypes: list of string, optional
	InstanceTypes terra.ListValue[terra.StringValue] `hcl:"instance_types,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// NodeGroupName: string, optional
	NodeGroupName terra.StringValue `hcl:"node_group_name,attr"`
	// NodeGroupNamePrefix: string, optional
	NodeGroupNamePrefix terra.StringValue `hcl:"node_group_name_prefix,attr"`
	// NodeRoleArn: string, required
	NodeRoleArn terra.StringValue `hcl:"node_role_arn,attr" validate:"required"`
	// ReleaseVersion: string, optional
	ReleaseVersion terra.StringValue `hcl:"release_version,attr"`
	// SubnetIds: set of string, required
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
	// LaunchTemplate: optional
	LaunchTemplate *LaunchTemplate `hcl:"launch_template,block"`
	// RemoteAccess: optional
	RemoteAccess *RemoteAccess `hcl:"remote_access,block"`
	// ScalingConfig: required
	ScalingConfig *ScalingConfig `hcl:"scaling_config,block" validate:"required"`
	// Taint: min=0,max=50
	Taint []Taint `hcl:"taint,block" validate:"min=0,max=50"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// UpdateConfig: optional
	UpdateConfig *UpdateConfig `hcl:"update_config,block"`
}

Args contains the configurations for aws_eks_node_group.

type DataArgs

type DataArgs struct {
	// ClusterName: string, required
	ClusterName terra.StringValue `hcl:"cluster_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// NodeGroupName: string, required
	NodeGroupName terra.StringValue `hcl:"node_group_name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_eks_node_group.

type DataLaunchTemplateAttributes

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

func (DataLaunchTemplateAttributes) Id

func (DataLaunchTemplateAttributes) InternalRef

func (lt DataLaunchTemplateAttributes) InternalRef() (terra.Reference, error)

func (DataLaunchTemplateAttributes) InternalTokens

func (lt DataLaunchTemplateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataLaunchTemplateAttributes) InternalWithRef

func (DataLaunchTemplateAttributes) Name

func (DataLaunchTemplateAttributes) Version

type DataLaunchTemplateState

type DataLaunchTemplateState struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

type DataRemoteAccessAttributes

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

func (DataRemoteAccessAttributes) Ec2SshKey

func (DataRemoteAccessAttributes) InternalRef

func (ra DataRemoteAccessAttributes) InternalRef() (terra.Reference, error)

func (DataRemoteAccessAttributes) InternalTokens

func (ra DataRemoteAccessAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRemoteAccessAttributes) InternalWithRef

func (DataRemoteAccessAttributes) SourceSecurityGroupIds

func (ra DataRemoteAccessAttributes) SourceSecurityGroupIds() terra.SetValue[terra.StringValue]

type DataRemoteAccessState

type DataRemoteAccessState struct {
	Ec2SshKey              string   `json:"ec2_ssh_key"`
	SourceSecurityGroupIds []string `json:"source_security_group_ids"`
}

type DataResourcesAttributes

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

func (DataResourcesAttributes) AutoscalingGroups

func (DataResourcesAttributes) InternalRef

func (r DataResourcesAttributes) InternalRef() (terra.Reference, error)

func (DataResourcesAttributes) InternalTokens

func (r DataResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataResourcesAttributes) InternalWithRef

func (DataResourcesAttributes) RemoteAccessSecurityGroupId

func (r DataResourcesAttributes) RemoteAccessSecurityGroupId() terra.StringValue

type DataResourcesAutoscalingGroupsAttributes

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

func (DataResourcesAutoscalingGroupsAttributes) InternalRef

func (DataResourcesAutoscalingGroupsAttributes) InternalTokens

func (DataResourcesAutoscalingGroupsAttributes) InternalWithRef

func (DataResourcesAutoscalingGroupsAttributes) Name

type DataResourcesAutoscalingGroupsState

type DataResourcesAutoscalingGroupsState struct {
	Name string `json:"name"`
}

type DataResourcesState

type DataResourcesState struct {
	RemoteAccessSecurityGroupId string                                `json:"remote_access_security_group_id"`
	AutoscalingGroups           []DataResourcesAutoscalingGroupsState `json:"autoscaling_groups"`
}

type DataScalingConfigAttributes

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

func (DataScalingConfigAttributes) DesiredSize

func (DataScalingConfigAttributes) InternalRef

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

func (DataScalingConfigAttributes) InternalTokens

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

func (DataScalingConfigAttributes) InternalWithRef

func (DataScalingConfigAttributes) MaxSize

func (DataScalingConfigAttributes) MinSize

type DataScalingConfigState

type DataScalingConfigState struct {
	DesiredSize float64 `json:"desired_size"`
	MaxSize     float64 `json:"max_size"`
	MinSize     float64 `json:"min_size"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_eks_node_group.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aeng *DataSource) Attributes() dataAwsEksNodeGroupAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aeng *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aeng *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTaintsAttributes

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

func (DataTaintsAttributes) Effect

func (DataTaintsAttributes) InternalRef

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

func (DataTaintsAttributes) InternalTokens

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

func (DataTaintsAttributes) InternalWithRef

func (DataTaintsAttributes) Key

func (DataTaintsAttributes) Value

type DataTaintsState

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

type LaunchTemplate

type LaunchTemplate struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Version: string, required
	Version terra.StringValue `hcl:"version,attr" validate:"required"`
}

type LaunchTemplateAttributes

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

func (LaunchTemplateAttributes) Id

func (LaunchTemplateAttributes) InternalRef

func (lt LaunchTemplateAttributes) InternalRef() (terra.Reference, error)

func (LaunchTemplateAttributes) InternalTokens

func (lt LaunchTemplateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LaunchTemplateAttributes) InternalWithRef

func (LaunchTemplateAttributes) Name

func (LaunchTemplateAttributes) Version

type LaunchTemplateState

type LaunchTemplateState struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

type RemoteAccess

type RemoteAccess struct {
	// Ec2SshKey: string, optional
	Ec2SshKey terra.StringValue `hcl:"ec2_ssh_key,attr"`
	// SourceSecurityGroupIds: set of string, optional
	SourceSecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"source_security_group_ids,attr"`
}

type RemoteAccessAttributes

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

func (RemoteAccessAttributes) Ec2SshKey

func (ra RemoteAccessAttributes) Ec2SshKey() terra.StringValue

func (RemoteAccessAttributes) InternalRef

func (ra RemoteAccessAttributes) InternalRef() (terra.Reference, error)

func (RemoteAccessAttributes) InternalTokens

func (ra RemoteAccessAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RemoteAccessAttributes) InternalWithRef

func (RemoteAccessAttributes) SourceSecurityGroupIds

func (ra RemoteAccessAttributes) SourceSecurityGroupIds() terra.SetValue[terra.StringValue]

type RemoteAccessState

type RemoteAccessState struct {
	Ec2SshKey              string   `json:"ec2_ssh_key"`
	SourceSecurityGroupIds []string `json:"source_security_group_ids"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aeng *Resource) Attributes() awsEksNodeGroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aeng *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aeng *Resource) State() (*awsEksNodeGroupState, bool)

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

func (*Resource) StateMust

func (aeng *Resource) StateMust() *awsEksNodeGroupState

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

func (*Resource) Type

func (aeng *Resource) Type() string

Type returns the Terraform object type for Resource.

type ResourcesAttributes

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

func (ResourcesAttributes) AutoscalingGroups

func (ResourcesAttributes) InternalRef

func (r ResourcesAttributes) InternalRef() (terra.Reference, error)

func (ResourcesAttributes) InternalTokens

func (r ResourcesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ResourcesAttributes) InternalWithRef

func (r ResourcesAttributes) InternalWithRef(ref terra.Reference) ResourcesAttributes

func (ResourcesAttributes) RemoteAccessSecurityGroupId

func (r ResourcesAttributes) RemoteAccessSecurityGroupId() terra.StringValue

type ResourcesAutoscalingGroupsAttributes

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

func (ResourcesAutoscalingGroupsAttributes) InternalRef

func (ResourcesAutoscalingGroupsAttributes) InternalTokens

func (ResourcesAutoscalingGroupsAttributes) InternalWithRef

func (ResourcesAutoscalingGroupsAttributes) Name

type ResourcesAutoscalingGroupsState

type ResourcesAutoscalingGroupsState struct {
	Name string `json:"name"`
}

type ResourcesState

type ResourcesState struct {
	RemoteAccessSecurityGroupId string                            `json:"remote_access_security_group_id"`
	AutoscalingGroups           []ResourcesAutoscalingGroupsState `json:"autoscaling_groups"`
}

type ScalingConfig

type ScalingConfig struct {
	// DesiredSize: number, required
	DesiredSize terra.NumberValue `hcl:"desired_size,attr" validate:"required"`
	// MaxSize: number, required
	MaxSize terra.NumberValue `hcl:"max_size,attr" validate:"required"`
	// MinSize: number, required
	MinSize terra.NumberValue `hcl:"min_size,attr" validate:"required"`
}

type ScalingConfigAttributes

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

func (ScalingConfigAttributes) DesiredSize

func (sc ScalingConfigAttributes) DesiredSize() terra.NumberValue

func (ScalingConfigAttributes) InternalRef

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

func (ScalingConfigAttributes) InternalTokens

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

func (ScalingConfigAttributes) InternalWithRef

func (ScalingConfigAttributes) MaxSize

func (ScalingConfigAttributes) MinSize

type ScalingConfigState

type ScalingConfigState struct {
	DesiredSize float64 `json:"desired_size"`
	MaxSize     float64 `json:"max_size"`
	MinSize     float64 `json:"min_size"`
}

type Taint

type Taint 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, optional
	Value terra.StringValue `hcl:"value,attr"`
}

type TaintAttributes

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

func (TaintAttributes) Effect

func (t TaintAttributes) Effect() terra.StringValue

func (TaintAttributes) InternalRef

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

func (TaintAttributes) InternalTokens

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

func (TaintAttributes) InternalWithRef

func (t TaintAttributes) InternalWithRef(ref terra.Reference) TaintAttributes

func (TaintAttributes) Key

func (TaintAttributes) Value

func (t TaintAttributes) Value() terra.StringValue

type TaintState

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

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 UpdateConfig

type UpdateConfig struct {
	// MaxUnavailable: number, optional
	MaxUnavailable terra.NumberValue `hcl:"max_unavailable,attr"`
	// MaxUnavailablePercentage: number, optional
	MaxUnavailablePercentage terra.NumberValue `hcl:"max_unavailable_percentage,attr"`
}

type UpdateConfigAttributes

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

func (UpdateConfigAttributes) InternalRef

func (uc UpdateConfigAttributes) InternalRef() (terra.Reference, error)

func (UpdateConfigAttributes) InternalTokens

func (uc UpdateConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (UpdateConfigAttributes) InternalWithRef

func (UpdateConfigAttributes) MaxUnavailable

func (uc UpdateConfigAttributes) MaxUnavailable() terra.NumberValue

func (UpdateConfigAttributes) MaxUnavailablePercentage

func (uc UpdateConfigAttributes) MaxUnavailablePercentage() terra.NumberValue

type UpdateConfigState

type UpdateConfigState struct {
	MaxUnavailable           float64 `json:"max_unavailable"`
	MaxUnavailablePercentage float64 `json:"max_unavailable_percentage"`
}

Jump to

Keyboard shortcuts

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