File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/@aws-cdk/aws-ecs Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ export interface EcsOptimizedAmiProps {
221
221
/**
222
222
* What generation of Amazon Linux to use
223
223
*
224
- * @default AmazonLinuxGeneration.AmazonLinux if hwType equal to AmiHardwareType.Standard else AmazonLinuxGeneration.AmazonLinux2
224
+ * @default AmazonLinuxGeneration.AmazonLinux if hardwareType equal to AmiHardwareType.Standard else AmazonLinuxGeneration.AmazonLinux2
225
225
*/
226
226
readonly generation ?: ec2 . AmazonLinuxGeneration ;
227
227
@@ -230,7 +230,7 @@ export interface EcsOptimizedAmiProps {
230
230
*
231
231
* @default AmiHardwareType.Standard
232
232
*/
233
- readonly hwType ?: AmiHardwareType ;
233
+ readonly hardwareType ?: AmiHardwareType ;
234
234
}
235
235
236
236
/**
@@ -243,7 +243,7 @@ export class EcsOptimizedAmi implements ec2.IMachineImageSource {
243
243
private readonly amiParameterName : string ;
244
244
245
245
constructor ( props ?: EcsOptimizedAmiProps ) {
246
- this . hwType = ( props && props . hwType ) || AmiHardwareType . Standard ;
246
+ this . hwType = ( props && props . hardwareType ) || AmiHardwareType . Standard ;
247
247
if ( props && props . generation ) { // generation defined in the props object
248
248
if ( props . generation === ec2 . AmazonLinuxGeneration . AmazonLinux && this . hwType !== AmiHardwareType . Standard ) {
249
249
throw new Error ( `Amazon Linux does not support special hardware type. Use Amazon Linux 2 instead` ) ;
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ export = {
229
229
cluster . addCapacity ( 'GpuAutoScalingGroup' , {
230
230
instanceType : new ec2 . InstanceType ( 't2.micro' ) ,
231
231
machineImage : new ecs . EcsOptimizedAmi ( {
232
- hwType : ecs . AmiHardwareType . Gpu
232
+ hardwareType : ecs . AmiHardwareType . Gpu
233
233
} ) ,
234
234
} ) ;
235
235
@@ -254,7 +254,7 @@ export = {
254
254
instanceType : new ec2 . InstanceType ( 't2.micro' ) ,
255
255
machineImage : new ecs . EcsOptimizedAmi ( {
256
256
generation : ec2 . AmazonLinuxGeneration . AmazonLinux ,
257
- hwType : ecs . AmiHardwareType . Gpu ,
257
+ hardwareType : ecs . AmiHardwareType . Gpu ,
258
258
} ) ,
259
259
} ) ;
260
260
} ) ;
You can’t perform that action at this time.
0 commit comments