BlockDevice

class aws_cdk.aws_autoscaling.BlockDevice(*, device_name, volume)

Bases: object

Block device.

Parameters:
  • device_name (str) – The device name exposed to the EC2 instance. Supply a value like /dev/sdh, xvdh.

  • volume (BlockDeviceVolume) – Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume. Supply a value like BlockDeviceVolume.ebs(15), BlockDeviceVolume.ephemeral(0).

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_autoscaling as autoscaling

# block_device_volume: autoscaling.BlockDeviceVolume

block_device = autoscaling.BlockDevice(
    device_name="deviceName",
    volume=block_device_volume
)

Attributes

device_name

The device name exposed to the EC2 instance.

Supply a value like /dev/sdh, xvdh.

See:

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html

volume

Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.

Supply a value like BlockDeviceVolume.ebs(15), BlockDeviceVolume.ephemeral(0).