Skip to content

Commit

Permalink
chore: tsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
nmussy committed Mar 15, 2024
1 parent f16fe7d commit 228f212
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1362,8 +1362,23 @@ export enum InstanceSize {
XLARGE48METAL = 'metal-48xl',
}

/**
* Instance type properties
*/
export interface InstanceProperties {
/**
* If true, this instance type is current generation
*
* @default - not specified
*/
readonly currentGeneration?: boolean;

/**
* If true, this instance type is eligible for the AWS free trial
*
* @see https://aws.amazon.com/free/
* @default - not specified
*/
readonly freeTierEligible?: boolean;
}

Expand Down Expand Up @@ -1654,12 +1669,15 @@ export class InstanceType {
constructor(
/**
* The instance type, as returned by the EC2 API
*
* @example "t3.small"
*/
private readonly instanceTypeIdentifier: string,

/**
* Instance properties for the instance type, obtained from cached SDK data
*
* @default - Cached SDK data properties for the corresponding instance type
*/
public readonly instanceProperties = InstanceType.mapInstanceProperties(instanceTypeIdentifier)) {
}
Expand Down

0 comments on commit 228f212

Please sign in to comment.