EksOptimizedImageProps Struct
Properties for EksOptimizedImage.
| Source | aws-eks-v2/lib/cluster.ts |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
};
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
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