interface CfnVolumeAttachmentProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnVolumeAttachmentProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnVolumeAttachmentProps |
![]() | software.amazon.awscdk.services.ec2.CfnVolumeAttachmentProps |
![]() | aws_cdk.aws_ec2.CfnVolumeAttachmentProps |
![]() | aws-cdk-lib » aws_ec2 » CfnVolumeAttachmentProps |
Properties for defining a CfnVolumeAttachment
.
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-lib';
const cfnVolumeAttachmentProps: ec2.CfnVolumeAttachmentProps = {
instanceId: 'instanceId',
volumeId: 'volumeId',
// the properties below are optional
device: 'device',
};
Properties
Name | Type | Description |
---|---|---|
instance | string | The ID of the instance to which the volume attaches. |
volume | string | The ID of the Amazon EBS volume. |
device? | string | The device name (for example, /dev/sdh or xvdh ). |
instanceId
Type:
string
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
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.
device?
Type:
string
(optional)
The device name (for example, /dev/sdh
or xvdh
).