Class EcsOptimizedAmi
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.EcsOptimizedAmi
- All Implemented Interfaces:
IMachineImage,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.299Z")
@Stability(Deprecated)
@Deprecated
public class EcsOptimizedAmi
extends software.amazon.jsii.JsiiObject
implements IMachineImage
Deprecated.
(deprecated) Construct a Linux or Windows machine image from the latest ECS Optimized AMI published in SSM.
Example:
Vpc vpc;
ComputeEnvironment myComputeEnv = ComputeEnvironment.Builder.create(this, "ComputeEnv")
.computeResources(ComputeResources.builder()
.image(EcsOptimizedAmi.Builder.create()
.generation(AmazonLinuxGeneration.AMAZON_LINUX_2)
.build())
.vpc(vpc)
.build())
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IMachineImage
IMachineImage.Jsii$Default, IMachineImage.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.Deprecated.protectedEcsOptimizedAmi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedEcsOptimizedAmi(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EcsOptimizedAmi
protected EcsOptimizedAmi(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
EcsOptimizedAmi
protected EcsOptimizedAmi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated. -
EcsOptimizedAmi
Deprecated.(deprecated) Constructs a new instance of the EcsOptimizedAmi class.- Parameters:
props-
-
EcsOptimizedAmi
Deprecated.(deprecated) Constructs a new instance of the EcsOptimizedAmi class.
-
-
Method Details
-
getImage
@Stability(Deprecated) @Deprecated @NotNull public MachineImageConfig getImage(@NotNull Construct scope) Deprecated.(deprecated) Return the correct image.- Specified by:
getImagein interfaceIMachineImage- Parameters:
scope- This parameter is required.
-
EcsOptimizedImage.amazonLinux(software.amazon.awscdk.services.ecs.EcsOptimizedImageOptions),EcsOptimizedImage.amazonLinux(software.amazon.awscdk.services.ecs.EcsOptimizedImageOptions)andEcsOptimizedImage.windows(software.amazon.awscdk.services.ecs.WindowsOptimizedVersion, software.amazon.awscdk.services.ecs.EcsOptimizedImageOptions)