# EksOptimizedImageProps

Properties for EksOptimizedImage.

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

- Source: [`aws-eks/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-eks/lib/cluster.ts#L2888)

## 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 as eks } from 'aws-cdk-lib';
const eksOptimizedImageProps: eks.EksOptimizedImageProps = {
  cpuArch: eks.CpuArch.ARM_64,
  kubernetesVersion: 'kubernetesVersion',
  nodeType: eks.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 as eks

eks_optimized_image_props = eks.EksOptimizedImageProps(
    cpu_arch=eks.CpuArch.ARM_64,
    kubernetes_version="kubernetesVersion",
    node_type=eks.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.*;

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.EKS;

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

## Properties

- `cpuArch`: [CpuArch](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.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.NodeType.html) = NodeType.STANDARD — What instance type to retrieve the image for (standard or GPU-optimized).
