aws_eks_cluster

package
v5.45.0 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 {
	// EnabledClusterLogTypes: set of string, optional
	EnabledClusterLogTypes terra.SetValue[terra.StringValue] `hcl:"enabled_cluster_log_types,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,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"`
	// EncryptionConfig: optional
	EncryptionConfig *EncryptionConfig `hcl:"encryption_config,block"`
	// KubernetesNetworkConfig: optional
	KubernetesNetworkConfig *KubernetesNetworkConfig `hcl:"kubernetes_network_config,block"`
	// OutpostConfig: optional
	OutpostConfig *OutpostConfig `hcl:"outpost_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// VpcConfig: required
	VpcConfig *VpcConfig `hcl:"vpc_config,block" validate:"required"`
}

Args contains the configurations for aws_eks_cluster.

type CertificateAuthorityAttributes

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

func (CertificateAuthorityAttributes) Data

func (CertificateAuthorityAttributes) InternalRef

func (CertificateAuthorityAttributes) InternalTokens

func (ca CertificateAuthorityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CertificateAuthorityAttributes) InternalWithRef

type CertificateAuthorityState

type CertificateAuthorityState struct {
	Data string `json:"data"`
}

type DataArgs

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

DataArgs contains the configurations for aws_eks_cluster.

type DataCertificateAuthorityAttributes

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

func (DataCertificateAuthorityAttributes) Data

func (DataCertificateAuthorityAttributes) InternalRef

func (DataCertificateAuthorityAttributes) InternalTokens

func (DataCertificateAuthorityAttributes) InternalWithRef

type DataCertificateAuthorityState

type DataCertificateAuthorityState struct {
	Data string `json:"data"`
}

type DataIdentityAttributes

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

func (DataIdentityAttributes) InternalRef

func (i DataIdentityAttributes) InternalRef() (terra.Reference, error)

func (DataIdentityAttributes) InternalTokens

func (i DataIdentityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataIdentityAttributes) InternalWithRef

func (DataIdentityAttributes) Oidc

type DataIdentityOidcAttributes

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

func (DataIdentityOidcAttributes) InternalRef

func (o DataIdentityOidcAttributes) InternalRef() (terra.Reference, error)

func (DataIdentityOidcAttributes) InternalTokens

func (o DataIdentityOidcAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataIdentityOidcAttributes) InternalWithRef

func (DataIdentityOidcAttributes) Issuer

type DataIdentityOidcState

type DataIdentityOidcState struct {
	Issuer string `json:"issuer"`
}

type DataIdentityState

type DataIdentityState struct {
	Oidc []DataIdentityOidcState `json:"oidc"`
}

type DataKubernetesNetworkConfigAttributes

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

func (DataKubernetesNetworkConfigAttributes) InternalRef

func (DataKubernetesNetworkConfigAttributes) InternalTokens

func (DataKubernetesNetworkConfigAttributes) InternalWithRef

func (DataKubernetesNetworkConfigAttributes) IpFamily

func (DataKubernetesNetworkConfigAttributes) ServiceIpv4Cidr

func (DataKubernetesNetworkConfigAttributes) ServiceIpv6Cidr

type DataKubernetesNetworkConfigState

type DataKubernetesNetworkConfigState struct {
	IpFamily        string `json:"ip_family"`
	ServiceIpv4Cidr string `json:"service_ipv4_cidr"`
	ServiceIpv6Cidr string `json:"service_ipv6_cidr"`
}

type DataOutpostConfigAttributes

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

func (DataOutpostConfigAttributes) ControlPlaneInstanceType

func (oc DataOutpostConfigAttributes) ControlPlaneInstanceType() terra.StringValue

func (DataOutpostConfigAttributes) InternalRef

func (oc DataOutpostConfigAttributes) InternalRef() (terra.Reference, error)

func (DataOutpostConfigAttributes) InternalTokens

func (oc DataOutpostConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataOutpostConfigAttributes) InternalWithRef

func (DataOutpostConfigAttributes) OutpostArns

type DataOutpostConfigState

type DataOutpostConfigState struct {
	ControlPlaneInstanceType string   `json:"control_plane_instance_type"`
	OutpostArns              []string `json:"outpost_arns"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_eks_cluster.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (aec *DataSource) Attributes() dataAwsEksClusterAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (aec *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (aec *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataVpcConfigAttributes

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

func (DataVpcConfigAttributes) ClusterSecurityGroupId

func (vc DataVpcConfigAttributes) ClusterSecurityGroupId() terra.StringValue

func (DataVpcConfigAttributes) EndpointPrivateAccess

func (vc DataVpcConfigAttributes) EndpointPrivateAccess() terra.BoolValue

func (DataVpcConfigAttributes) EndpointPublicAccess

func (vc DataVpcConfigAttributes) EndpointPublicAccess() terra.BoolValue

func (DataVpcConfigAttributes) InternalRef

func (vc DataVpcConfigAttributes) InternalRef() (terra.Reference, error)

func (DataVpcConfigAttributes) InternalTokens

func (vc DataVpcConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataVpcConfigAttributes) InternalWithRef

func (DataVpcConfigAttributes) PublicAccessCidrs

func (vc DataVpcConfigAttributes) PublicAccessCidrs() terra.SetValue[terra.StringValue]

func (DataVpcConfigAttributes) SecurityGroupIds

func (vc DataVpcConfigAttributes) SecurityGroupIds() terra.SetValue[terra.StringValue]

func (DataVpcConfigAttributes) SubnetIds

func (DataVpcConfigAttributes) VpcId

type DataVpcConfigState

type DataVpcConfigState struct {
	ClusterSecurityGroupId string   `json:"cluster_security_group_id"`
	EndpointPrivateAccess  bool     `json:"endpoint_private_access"`
	EndpointPublicAccess   bool     `json:"endpoint_public_access"`
	PublicAccessCidrs      []string `json:"public_access_cidrs"`
	SecurityGroupIds       []string `json:"security_group_ids"`
	SubnetIds              []string `json:"subnet_ids"`
	VpcId                  string   `json:"vpc_id"`
}

type EncryptionConfig

type EncryptionConfig struct {
	// Resources: set of string, required
	Resources terra.SetValue[terra.StringValue] `hcl:"resources,attr" validate:"required"`
	// EncryptionConfigProvider: required
	Provider *EncryptionConfigProvider `hcl:"provider,block" validate:"required"`
}

type EncryptionConfigAttributes

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

func (EncryptionConfigAttributes) InternalRef

func (ec EncryptionConfigAttributes) InternalRef() (terra.Reference, error)

func (EncryptionConfigAttributes) InternalTokens

func (ec EncryptionConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EncryptionConfigAttributes) InternalWithRef

func (EncryptionConfigAttributes) Provider

func (EncryptionConfigAttributes) Resources

type EncryptionConfigProvider

type EncryptionConfigProvider struct {
	// KeyArn: string, required
	KeyArn terra.StringValue `hcl:"key_arn,attr" validate:"required"`
}

type EncryptionConfigProviderAttributes

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

func (EncryptionConfigProviderAttributes) InternalRef

func (EncryptionConfigProviderAttributes) InternalTokens

func (EncryptionConfigProviderAttributes) InternalWithRef

func (EncryptionConfigProviderAttributes) KeyArn

type EncryptionConfigProviderState

type EncryptionConfigProviderState struct {
	KeyArn string `json:"key_arn"`
}

type EncryptionConfigState

type EncryptionConfigState struct {
	Resources []string                        `json:"resources"`
	Provider  []EncryptionConfigProviderState `json:"provider"`
}

type IdentityAttributes

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

func (IdentityAttributes) InternalRef

func (i IdentityAttributes) InternalRef() (terra.Reference, error)

func (IdentityAttributes) InternalTokens

func (i IdentityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IdentityAttributes) InternalWithRef

func (i IdentityAttributes) InternalWithRef(ref terra.Reference) IdentityAttributes

func (IdentityAttributes) Oidc

type IdentityOidcAttributes

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

func (IdentityOidcAttributes) InternalRef

func (o IdentityOidcAttributes) InternalRef() (terra.Reference, error)

func (IdentityOidcAttributes) InternalTokens

func (o IdentityOidcAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IdentityOidcAttributes) InternalWithRef

func (IdentityOidcAttributes) Issuer

type IdentityOidcState

type IdentityOidcState struct {
	Issuer string `json:"issuer"`
}

type IdentityState

type IdentityState struct {
	Oidc []IdentityOidcState `json:"oidc"`
}

type KubernetesNetworkConfig

type KubernetesNetworkConfig struct {
	// IpFamily: string, optional
	IpFamily terra.StringValue `hcl:"ip_family,attr"`
	// ServiceIpv4Cidr: string, optional
	ServiceIpv4Cidr terra.StringValue `hcl:"service_ipv4_cidr,attr"`
}

type KubernetesNetworkConfigAttributes

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

func (KubernetesNetworkConfigAttributes) InternalRef

func (KubernetesNetworkConfigAttributes) InternalTokens

func (knc KubernetesNetworkConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (KubernetesNetworkConfigAttributes) InternalWithRef

func (KubernetesNetworkConfigAttributes) IpFamily

func (KubernetesNetworkConfigAttributes) ServiceIpv4Cidr

func (knc KubernetesNetworkConfigAttributes) ServiceIpv4Cidr() terra.StringValue

func (KubernetesNetworkConfigAttributes) ServiceIpv6Cidr

func (knc KubernetesNetworkConfigAttributes) ServiceIpv6Cidr() terra.StringValue

type KubernetesNetworkConfigState

type KubernetesNetworkConfigState struct {
	IpFamily        string `json:"ip_family"`
	ServiceIpv4Cidr string `json:"service_ipv4_cidr"`
	ServiceIpv6Cidr string `json:"service_ipv6_cidr"`
}

type OutpostConfig

type OutpostConfig struct {
	// ControlPlaneInstanceType: string, required
	ControlPlaneInstanceType terra.StringValue `hcl:"control_plane_instance_type,attr" validate:"required"`
	// OutpostArns: set of string, required
	OutpostArns terra.SetValue[terra.StringValue] `hcl:"outpost_arns,attr" validate:"required"`
	// OutpostConfigControlPlanePlacement: optional
	ControlPlanePlacement *OutpostConfigControlPlanePlacement `hcl:"control_plane_placement,block"`
}

type OutpostConfigAttributes

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

func (OutpostConfigAttributes) ControlPlaneInstanceType

func (oc OutpostConfigAttributes) ControlPlaneInstanceType() terra.StringValue

func (OutpostConfigAttributes) ControlPlanePlacement

func (OutpostConfigAttributes) InternalRef

func (oc OutpostConfigAttributes) InternalRef() (terra.Reference, error)

func (OutpostConfigAttributes) InternalTokens

func (oc OutpostConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OutpostConfigAttributes) InternalWithRef

func (OutpostConfigAttributes) OutpostArns

type OutpostConfigControlPlanePlacement

type OutpostConfigControlPlanePlacement struct {
	// GroupName: string, required
	GroupName terra.StringValue `hcl:"group_name,attr" validate:"required"`
}

type OutpostConfigControlPlanePlacementAttributes

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

func (OutpostConfigControlPlanePlacementAttributes) GroupName

func (OutpostConfigControlPlanePlacementAttributes) InternalRef

func (OutpostConfigControlPlanePlacementAttributes) InternalTokens

func (OutpostConfigControlPlanePlacementAttributes) InternalWithRef

type OutpostConfigControlPlanePlacementState

type OutpostConfigControlPlanePlacementState struct {
	GroupName string `json:"group_name"`
}

type OutpostConfigState

type OutpostConfigState struct {
	ControlPlaneInstanceType string                                    `json:"control_plane_instance_type"`
	OutpostArns              []string                                  `json:"outpost_arns"`
	ControlPlanePlacement    []OutpostConfigControlPlanePlacementState `json:"control_plane_placement"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aec *Resource) Attributes() awsEksClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aec *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aec *Resource) State() (*awsEksClusterState, bool)

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

func (*Resource) StateMust

func (aec *Resource) StateMust() *awsEksClusterState

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

func (*Resource) Type

func (aec *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 VpcConfig

type VpcConfig struct {
	// EndpointPrivateAccess: bool, optional
	EndpointPrivateAccess terra.BoolValue `hcl:"endpoint_private_access,attr"`
	// EndpointPublicAccess: bool, optional
	EndpointPublicAccess terra.BoolValue `hcl:"endpoint_public_access,attr"`
	// PublicAccessCidrs: set of string, optional
	PublicAccessCidrs terra.SetValue[terra.StringValue] `hcl:"public_access_cidrs,attr"`
	// SecurityGroupIds: set of string, optional
	SecurityGroupIds terra.SetValue[terra.StringValue] `hcl:"security_group_ids,attr"`
	// SubnetIds: set of string, required
	SubnetIds terra.SetValue[terra.StringValue] `hcl:"subnet_ids,attr" validate:"required"`
}

type VpcConfigAttributes

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

func (VpcConfigAttributes) ClusterSecurityGroupId

func (vc VpcConfigAttributes) ClusterSecurityGroupId() terra.StringValue

func (VpcConfigAttributes) EndpointPrivateAccess

func (vc VpcConfigAttributes) EndpointPrivateAccess() terra.BoolValue

func (VpcConfigAttributes) EndpointPublicAccess

func (vc VpcConfigAttributes) EndpointPublicAccess() terra.BoolValue

func (VpcConfigAttributes) InternalRef

func (vc VpcConfigAttributes) InternalRef() (terra.Reference, error)

func (VpcConfigAttributes) InternalTokens

func (vc VpcConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VpcConfigAttributes) InternalWithRef

func (vc VpcConfigAttributes) InternalWithRef(ref terra.Reference) VpcConfigAttributes

func (VpcConfigAttributes) PublicAccessCidrs

func (vc VpcConfigAttributes) PublicAccessCidrs() terra.SetValue[terra.StringValue]

func (VpcConfigAttributes) SecurityGroupIds

func (vc VpcConfigAttributes) SecurityGroupIds() terra.SetValue[terra.StringValue]

func (VpcConfigAttributes) SubnetIds

func (VpcConfigAttributes) VpcId

type VpcConfigState

type VpcConfigState struct {
	ClusterSecurityGroupId string   `json:"cluster_security_group_id"`
	EndpointPrivateAccess  bool     `json:"endpoint_private_access"`
	EndpointPublicAccess   bool     `json:"endpoint_public_access"`
	PublicAccessCidrs      []string `json:"public_access_cidrs"`
	SecurityGroupIds       []string `json:"security_group_ids"`
	SubnetIds              []string `json:"subnet_ids"`
	VpcId                  string   `json:"vpc_id"`
}

Jump to

Keyboard shortcuts

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