EksOptimizedImage

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

Bases: object

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

Stability:

deprecated

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_eks_legacy as eks_legacy

eks_optimized_image = eks_legacy.EksOptimizedImage(
    kubernetes_version="kubernetesVersion",
    node_type=eks_legacy.NodeType.STANDARD
)

(deprecated) Constructs a new instance of the EcsOptimizedAmi class.

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

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

Stability:

deprecated

Methods

get_image(scope)

(deprecated) Return the correct image.

Parameters:

scope (Construct) –

Stability:

deprecated

Return type:

MachineImageConfig