EcsOptimizedAmi

class aws_cdk.aws_ecs.EcsOptimizedAmi(*, generation=None, hardware_type=None, windows_version=None)

Bases: object

Construct a Linux or Windows machine image from the latest ECS Optimized AMI published in SSM.

deprecated :deprecated: see {@link EcsOptimizedImage#amazonLinux}, {@link EcsOptimizedImage#amazonLinux} and {@link EcsOptimizedImage#windows}

stability :stability: deprecated

__init__(*, generation=None, hardware_type=None, windows_version=None)

Constructs a new instance of the EcsOptimizedAmi class.

Parameters
  • props

  • generation (Optional[AmazonLinuxGeneration]) – The Amazon Linux generation to use. Default: AmazonLinuxGeneration.AmazonLinux2

  • hardware_type (Optional[AmiHardwareType]) – The ECS-optimized AMI variant to use. Default: AmiHardwareType.Standard

  • windows_version (Optional[WindowsOptimizedVersion]) – The Windows Server version to use. Default: none, uses Linux generation

stability :stability: deprecated

Return type

None

Methods

get_image(scope)

Return the correct image.

Parameters

scope (Construct) –

stability :stability: deprecated

Return type

MachineImageConfig