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());
 
  • Constructor Details

    • BottleRocketImage

      protected BottleRocketImage(software.amazon.jsii.JsiiObjectRef objRef)
    • BottleRocketImage

      protected BottleRocketImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • BottleRocketImage

      @Stability(Stable) public BottleRocketImage(@Nullable BottleRocketImageProps props)
      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