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
BottleRocketImage(IBottleRocketImageProps) | Constructs a new instance of the BottleRocketImage class. |
BottleRocketImage(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
BottleRocketImage(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
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
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.ByRefValue
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.DeputyBase.DeputyProps
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.Boolean