interface VolumeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EC2.CfnInstancePropsMixin.VolumeProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsec2#CfnInstancePropsMixin_VolumeProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstancePropsMixin.VolumeProperty |
Python | aws_cdk.cfn_property_mixins.aws_ec2.CfnInstancePropsMixin.VolumeProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ec2 » CfnInstancePropsMixin » VolumeProperty |
Specifies a volume to attach to an instance.
Volume is an embedded property of the AWS::EC2::Instance resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from '@aws-cdk/cfn-property-mixins';
const volumeProperty: ec2.CfnInstancePropsMixin.VolumeProperty = {
device: 'device',
volumeId: 'volumeId',
};
Properties
| Name | Type | Description |
|---|---|---|
| device? | string | The device name (for example, /dev/sdh or xvdh ). |
| volume | string | IVolume | The ID of the EBS volume. |
device?
Type:
string
(optional)
The device name (for example, /dev/sdh or xvdh ).
volumeId?
Type:
string | IVolume
(optional)
The ID of the EBS volume.
The volume and instance must be within the same Availability Zone.

.NET
Go
Java
Python
TypeScript