class BottleRocketImage
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.BottleRocketImage |
Java | software.amazon.awscdk.services.ecs.BottleRocketImage |
Python | aws_cdk.aws_ecs.BottleRocketImage |
TypeScript (source) | @aws-cdk/aws-ecs » BottleRocketImage |
Implements
IMachine
Construct an Bottlerocket image from the latest AMI published in SSM.
Example
declare const cluster: ecs.Cluster;
cluster.addCapacity('bottlerocket-asg', {
minCapacity: 2,
instanceType: new ec2.InstanceType('c5.large'),
machineImage: new ecs.BottleRocketImage(),
});
Initializer
new BottleRocketImage(props?: BottleRocketImageProps)
Parameters
- props
Bottle
Rocket Image Props
Constructs a new instance of the BottleRocketImage class.
Methods
Name | Description |
---|---|
get | Return the correct image. |
Image(scope)
getpublic getImage(scope: Construct): MachineImageConfig
Parameters
- scope
Construct
Returns
Return the correct image.