interface BlockDevice
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AutoScaling.BlockDevice |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#BlockDevice |
Java | software.amazon.awscdk.services.autoscaling.BlockDevice |
Python | aws_cdk.aws_autoscaling.BlockDevice |
TypeScript (source) | aws-cdk-lib » aws_autoscaling » BlockDevice |
Block device.
Example
// 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
Name | Type | Description |
---|---|---|
device | string | The device name exposed to the EC2 instance. |
volume | Block | Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume. |
deviceName
Type:
string
The device name exposed to the EC2 instance.
Supply a value like /dev/sdh
, xvdh
.
See also: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html
volume
Type:
Block
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)
.