Class BottleRocketImage
Construct an Bottlerocket image from the latest AMI published in SSM.
Inheritance
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
Bottle |
Constructs a new instance of the BottleRocketImage class. |
Bottle |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Bottle |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Get |
Return the correct image. |
Is |
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 IBottle
Rocket Image Props
BottleRocketImage(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected BottleRocketImage(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
BottleRocketImage(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected BottleRocketImage(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Methods
GetImage(Construct)
Return the correct image.
public virtual IMachineImageConfig GetImage(Construct scope)
Parameters
- scope Constructs.
Construct
Returns
IsBottleRocketImage(Object)
Return whether the given object is a BottleRocketImage.
public static bool IsBottleRocketImage(object x)
Parameters
- x System.
Object
Returns
System.