# BlockDevice

Block device.

- Source: [`aws-autoscaling/lib/volume.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-autoscaling/lib/volume.ts#L12)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling as autoscaling } from 'aws-cdk-lib';

declare const blockDeviceVolume: autoscaling.BlockDeviceVolume;
const blockDevice: autoscaling.BlockDevice = {
  deviceName: 'deviceName',
  volume: blockDeviceVolume,
};
```

## Properties

- `deviceName`: string (required) — The device name exposed to the EC2 instance.

  Supply a value like `/dev/sdh`, `xvdh`.

- `volume`: [BlockDeviceVolume](/cdk/api/v2/docs/aws-cdk-lib.aws_autoscaling.BlockDeviceVolume.html) (required) — 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)`.
