Class EcsOptimizedAmi
(deprecated) Construct a Linux or Windows machine image from the latest ECS Optimized AMI published in SSM.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class EcsOptimizedAmi : DeputyBase, IMachineImage
Syntax (vb)
Public Class EcsOptimizedAmi
Inherits DeputyBase
Implements IMachineImage
Remarks
Stability: Deprecated
ExampleMetadata: infused
Examples
Vpc vpc;
var myComputeEnv = new ComputeEnvironment(this, "ComputeEnv", new ComputeEnvironmentProps {
ComputeResources = new ComputeResources {
Image = new EcsOptimizedAmi(new EcsOptimizedAmiProps {
Generation = AmazonLinuxGeneration.AMAZON_LINUX_2
}),
Vpc = vpc
}
});
Synopsis
Constructors
EcsOptimizedAmi(IEcsOptimizedAmiProps) | (deprecated) Constructs a new instance of the EcsOptimizedAmi class. |
EcsOptimizedAmi(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EcsOptimizedAmi(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
GetImage(Construct) | (deprecated) Return the correct image. |
Constructors
EcsOptimizedAmi(IEcsOptimizedAmiProps)
(deprecated) Constructs a new instance of the EcsOptimizedAmi class.
public EcsOptimizedAmi(IEcsOptimizedAmiProps props = null)
Parameters
- props IEcsOptimizedAmiProps
Remarks
Stability: Deprecated
EcsOptimizedAmi(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EcsOptimizedAmi(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EcsOptimizedAmi(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EcsOptimizedAmi(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
GetImage(Construct)
(deprecated) Return the correct image.
public virtual IMachineImageConfig GetImage(Construct scope)
Parameters
- scope Construct
Returns
Remarks
Stability: Deprecated