EbsDeviceVolumeType

class aws_cdk.aws_ec2.EbsDeviceVolumeType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Supported EBS volume types for blockDevices.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc
# instance_type: ec2.InstanceType
# machine_image: ec2.IMachineImage


ec2.Instance(self, "Instance",
    vpc=vpc,
    instance_type=instance_type,
    machine_image=machine_image,

    # ...

    block_devices=[ec2.BlockDevice(
        device_name="/dev/sda1",
        volume=ec2.BlockDeviceVolume.ebs(100,
            volume_type=ec2.EbsDeviceVolumeType.GP3,
            throughput=250
        )
    )
    ]
)

Attributes

GP2

General Purpose SSD - GP2.

GP3

General Purpose SSD - GP3.

IO1

Provisioned IOPS SSD - IO1.

IO2

Provisioned IOPS SSD - IO2.

SC1

Cold HDD.

ST1

Throughput Optimized HDD.

STANDARD

Magnetic.