Class BottleRocketImage
Construct an Bottlerocket image from the latest AMI published in SSM.
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BottleRocketImage : DeputyBase, IMachineImage
Syntax (vb)
Public Class BottleRocketImage Inherits DeputyBase Implements IMachineImage
Remarks
ExampleMetadata: infused
Examples
Cluster cluster;
cluster.AddCapacity("bottlerocket-asg", new AddCapacityOptions {
MinCapacity = 2,
InstanceType = new InstanceType("c5.large"),
MachineImage = new BottleRocketImage()
});
Synopsis
Constructors
BottleRocketImage(IBottleRocketImageProps?) | Constructs a new instance of the BottleRocketImage class. |
Methods
GetImage(Construct) | Return the correct image. |
IsBottleRocketImage(object) | Return whether the given object is a BottleRocketImage. |
Constructors
BottleRocketImage(IBottleRocketImageProps?)
Constructs a new instance of the BottleRocketImage class.
public BottleRocketImage(IBottleRocketImageProps? props = null)
Parameters
- props IBottleRocketImageProps
Remarks
ExampleMetadata: infused
Methods
GetImage(Construct)
Return the correct image.
public virtual IMachineImageConfig GetImage(Construct scope)
Parameters
- scope Construct
Returns
Remarks
ExampleMetadata: infused
IsBottleRocketImage(object)
Return whether the given object is a BottleRocketImage.
public static bool IsBottleRocketImage(object x)
Parameters
- x object
Returns
Remarks
ExampleMetadata: infused