Skip to content
v2.278.0

EksOptimizedImageProps Struct ​

Properties for EksOptimizedImage.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const eksOptimizedImageProps: eks.EksOptimizedImageProps = {
  cpuArch: eks.CpuArch.ARM_64,
  kubernetesVersion: 'kubernetesVersion',
  nodeType: eks.NodeType.STANDARD,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

eks_optimized_image_props = eks.EksOptimizedImageProps(
    cpu_arch=eks.CpuArch.ARM_64,
    kubernetes_version="kubernetesVersion",
    node_type=eks.NodeType.STANDARD
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;

EksOptimizedImageProps eksOptimizedImageProps = EksOptimizedImageProps.builder()
        .cpuArch(CpuArch.ARM_64)
        .kubernetesVersion("kubernetesVersion")
        .nodeType(NodeType.STANDARD)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var eksOptimizedImageProps = new EksOptimizedImageProps {
    CpuArch = CpuArch.ARM_64,
    KubernetesVersion = "kubernetesVersion",
    NodeType = NodeType.STANDARD
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eksOptimizedImageProps := &EksOptimizedImageProps{
	CpuArch: awscdk.Aws_eks.CpuArch_ARM_64,
	KubernetesVersion: jsii.String("kubernetesVersion"),
	NodeType: awscdk.*Aws_eks.NodeType_STANDARD,
}

Properties ​

cpuArchoptionalCpuArchcpu_archoptionalCpuArchcpuArchoptionalCpuArchCpuArchoptionalCpuArchCpuArchoptionalCpuArch = CpuArch.X86_64 #
What cpu architecture to retrieve the image for (arm64 or x86_64).
kubernetesVersionoptionalstringkubernetes_versionoptionalstrkubernetesVersionoptionalStringKubernetesVersionoptionalstringKubernetesVersionoptional*string #
The Kubernetes version to use.

Default: The latest version

nodeTypeoptionalNodeTypenode_typeoptionalNodeTypenodeTypeoptionalNodeTypeNodeTypeoptionalNodeTypeNodeTypeoptionalNodeType = NodeType.STANDARD #
What instance type to retrieve the image for (standard or GPU-optimized).