interface CfnVolumeAttachmentMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EC2.CfnVolumeAttachmentMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsec2#CfnVolumeAttachmentMixinProps |
Java | software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVolumeAttachmentMixinProps |
Python | aws_cdk.cfn_property_mixins.aws_ec2.CfnVolumeAttachmentMixinProps |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ec2 » CfnVolumeAttachmentMixinProps |
Properties for CfnVolumeAttachmentPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.html
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 cfnVolumeAttachmentMixinProps: ec2.CfnVolumeAttachmentMixinProps = {
device: 'device',
ebsCardIndex: 123,
instanceId: 'instanceId',
volumeId: 'volumeId',
};
Properties
| Name | Type | Description |
|---|---|---|
| device? | string | The device name (for example, /dev/sdh or xvdh ). |
| ebs | number | The index of the EBS card. |
| instance | string | IInstance | The ID of the instance to which the volume attaches. |
| volume | string | IVolume | The ID of the Amazon EBS volume. |
device?
Type:
string
(optional)
The device name (for example, /dev/sdh or xvdh ).
ebsCardIndex?
Type:
number
(optional)
The index of the EBS card.
Some instance types support multiple EBS cards. The default EBS card index is 0.
instanceId?
Type:
string | IInstance
(optional)
The ID of the instance to which the volume attaches.
This value can be a reference to an AWS::EC2::Instance resource, or it can be the physical ID of an existing EC2 instance.
volumeId?
Type:
string | IVolume
(optional)
The ID of the Amazon EBS volume.
The volume and instance must be within the same Availability Zone. This value can be a reference to an AWS::EC2::Volume resource, or it can be the volume ID of an existing Amazon EBS volume.

.NET
Go
Java
Python
TypeScript