EksOptimizedImage

class aws_cdk.aws_eks.EksOptimizedImage(*, kubernetes_version=None, node_type=None)

Bases: object

Construct an Amazon Linux 2 image from the latest EKS Optimized AMI published in SSM.

stability :stability: experimental

__init__(*, kubernetes_version=None, node_type=None)

Constructs a new instance of the EcsOptimizedAmi class.

Parameters
  • kubernetes_version (Optional[str]) – The Kubernetes version to use. Default: - The latest version

  • node_type (Optional[NodeType]) – What instance type to retrieve the image for (standard or GPU-optimized). Default: NodeType.STANDARD

stability :stability: experimental

Return type

None

Methods

get_image(scope)

Return the correct image.

Parameters

scope (Construct) –

stability :stability: experimental

Return type

MachineImageConfig