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.97.0 (build 729de35)", date="2024-04-24T21:00:29.112Z") @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

    • isBottleRocketImage

      @Stability(Stable) @NotNull public static Boolean isBottleRocketImage(@NotNull Object x)
      Return whether the given object is a BottleRocketImage.

      Parameters:
      x - This parameter is required.
    • getImage

      @Stability(Stable) @NotNull public MachineImageConfig getImage(@NotNull software.constructs.Construct scope)
      Return the correct image.

      Specified by:
      getImage in interface IMachineImage
      Parameters:
      scope - This parameter is required.