Class BottleRocketImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.BottleRocketImage
- All Implemented Interfaces:
IMachineImage
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.024Z")
@Stability(Stable)
public class BottleRocketImage
extends software.amazon.jsii.JsiiObject
implements IMachineImage
Construct an Bottlerocket image from the latest AMI published in SSM.
Example:
Cluster cluster; cluster.addCapacity("bottlerocket-asg", AddCapacityOptions.builder() .minCapacity(2) .instanceType(new InstanceType("c5.large")) .machineImage(new BottleRocketImage()) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IMachineImage
IMachineImage.Jsii$Default, IMachineImage.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionConstructs a new instance of the BottleRocketImage class.Constructs a new instance of the BottleRocketImage class.protected
BottleRocketImage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
BottleRocketImage
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturn the correct image.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BottleRocketImage
protected BottleRocketImage(software.amazon.jsii.JsiiObjectRef objRef) -
BottleRocketImage
protected BottleRocketImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BottleRocketImage
Constructs a new instance of the BottleRocketImage class.- Parameters:
props
-
-
BottleRocketImage
@Stability(Stable) public BottleRocketImage()Constructs a new instance of the BottleRocketImage class.
-
-
Method Details
-
getImage
Return the correct image.- Specified by:
getImage
in interfaceIMachineImage
- Parameters:
scope
- This parameter is required.
-