# EksOptimizedImageProps

Properties for EksOptimizedImage.

Used as props by: [EksOptimizedImage](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks_v2.EksOptimizedImage.html)

- Source: [`aws-eks-v2/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-eks-v2/lib/cluster.ts#L2371)
- Type last changed: v2.240.0 · 23 Feb 2026

## Example

TypeScript:

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

Python:

```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_v2 as eks_v2

eks_optimized_image_props = eks_v2.EksOptimizedImageProps(
    cpu_arch=eks_v2.CpuArch.ARM_64,
    kubernetes_version="kubernetesVersion",
    node_type=eks_v2.NodeType.STANDARD
)
```

Java:

```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_v2.*;

EksOptimizedImageProps eksOptimizedImageProps = EksOptimizedImageProps.builder()
        .cpuArch(CpuArch.ARM_64)
        .kubernetesVersion("kubernetesVersion")
        .nodeType(NodeType.STANDARD)
        .build();
```

C# / .NET:

```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.EKSv2;

var eksOptimizedImageProps = new EksOptimizedImageProps {
    CpuArch = CpuArch.ARM_64,
    KubernetesVersion = "kubernetesVersion",
    NodeType = NodeType.STANDARD
};
```

Golang:

```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_v2.CpuArch_ARM_64,
	KubernetesVersion: jsii.String("kubernetesVersion"),
	NodeType: awscdk.*Aws_eks_v2.NodeType_STANDARD,
}
```

## Properties

- `cpuArch`: [CpuArch](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks_v2.CpuArch.html) = CpuArch.X86_64 — What cpu architecture to retrieve the image for (arm64 or x86_64).

- `kubernetesVersion`: string — The Kubernetes version to use.

  **Default:** The latest version

- `nodeType`: [NodeType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks_v2.NodeType.html) = NodeType.STANDARD — What instance type to retrieve the image for (standard or GPU-optimized).
