@@ -344,7 +344,7 @@ export interface VolumeProps {
344
344
345
345
/**
346
346
* The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size.
347
- * See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties -ec2-ebs -volume.html
347
+ * See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource -ec2-volume.html
348
348
* for details on the allowable size for each type of volume.
349
349
*
350
350
* @default If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
@@ -427,7 +427,7 @@ export interface VolumeProps {
427
427
/**
428
428
* The number of I/O operations per second (IOPS) to provision for the volume. The maximum ratio is 50 IOPS/GiB for PROVISIONED_IOPS_SSD,
429
429
* and 500 IOPS/GiB for both PROVISIONED_IOPS_SSD_IO2 and GENERAL_PURPOSE_SSD_GP3.
430
- * See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties -ec2-ebs -volume.html
430
+ * See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource -ec2-volume.html
431
431
* for more information.
432
432
*
433
433
* This parameter is valid only for PROVISIONED_IOPS_SSD, PROVISIONED_IOPS_SSD_IO2 and GENERAL_PURPOSE_SSD_GP3 volumes.
@@ -446,7 +446,7 @@ export interface VolumeProps {
446
446
/**
447
447
* The throughput that the volume supports, in MiB/s
448
448
* Takes a minimum of 125 and maximum of 1000.
449
- * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties -ec2-ebs- volume.html#cfn-ec2-ebs -volume-throughput
449
+ * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource -ec2-volume.html#cfn-ec2-volume-throughput
450
450
* @default - 125 MiB/s. Only valid on gp3 volumes.
451
451
*/
452
452
readonly throughput ?: number ;
@@ -691,11 +691,11 @@ export class Volume extends VolumeBase {
691
691
) ;
692
692
}
693
693
// Enforce minimum & maximum IOPS:
694
- // https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties -ec2-ebs -volume.html
694
+ // https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource -ec2-volume.html
695
695
const iopsRanges : { [ key : string ] : { Min : number , Max : number } } = { } ;
696
696
iopsRanges [ EbsDeviceVolumeType . GENERAL_PURPOSE_SSD_GP3 ] = { Min : 3000 , Max : 16000 } ;
697
697
iopsRanges [ EbsDeviceVolumeType . PROVISIONED_IOPS_SSD ] = { Min : 100 , Max : 64000 } ;
698
- iopsRanges [ EbsDeviceVolumeType . PROVISIONED_IOPS_SSD_IO2 ] = { Min : 100 , Max : 64000 } ;
698
+ iopsRanges [ EbsDeviceVolumeType . PROVISIONED_IOPS_SSD_IO2 ] = { Min : 100 , Max : 256000 } ;
699
699
const { Min, Max } = iopsRanges [ volumeType ] ;
700
700
if ( props . iops < Min || props . iops > Max ) {
701
701
throw new Error ( `\`${ volumeType } \` volumes iops must be between ${ Min } and ${ Max } .` ) ;
@@ -739,7 +739,7 @@ export class Volume extends VolumeBase {
739
739
if ( props . size ) {
740
740
const size = props . size . toGibibytes ( { rounding : SizeRoundingBehavior . FAIL } ) ;
741
741
// Enforce minimum & maximum volume size:
742
- // https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties -ec2-ebs -volume.html
742
+ // https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource -ec2-volume.html
743
743
const sizeRanges : { [ key : string ] : { Min : number , Max : number } } = { } ;
744
744
sizeRanges [ EbsDeviceVolumeType . GENERAL_PURPOSE_SSD ] = { Min : 1 , Max : 16384 } ;
745
745
sizeRanges [ EbsDeviceVolumeType . GENERAL_PURPOSE_SSD_GP3 ] = { Min : 1 , Max : 16384 } ;
0 commit comments