Show / Hide Table of Contents

Class BottleRocketImage

Construct an Bottlerocket image from the latest AMI published in SSM.

Inheritance
System.Object
BottleRocketImage
Implements
IMachineImage
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.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.

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 Construct
Returns

IMachineImageConfig

Implements

IMachineImage
Back to top Generated by DocFX