27 lines
731 B
TypeScript
27 lines
731 B
TypeScript
import type { Construct } from 'constructs';
|
|
import * as ec2 from '../../../aws-ec2';
|
|
/**
|
|
* Properties for BottleRocketImage
|
|
*/
|
|
export interface BottleRocketImageProps {
|
|
/**
|
|
* The Kubernetes version to use
|
|
*/
|
|
readonly kubernetesVersion: string;
|
|
}
|
|
/**
|
|
* Construct an Bottlerocket image from the latest AMI published in SSM
|
|
*/
|
|
export declare class BottleRocketImage implements ec2.IMachineImage {
|
|
private readonly kubernetesVersion;
|
|
private readonly amiParameterName;
|
|
/**
|
|
* Constructs a new instance of the BottleRocketImage class.
|
|
*/
|
|
constructor(props: BottleRocketImageProps);
|
|
/**
|
|
* Return the correct image
|
|
*/
|
|
getImage(scope: Construct): ec2.MachineImageConfig;
|
|
}
|