CfnVolumeAttachmentProps

class aws_cdk.aws_ec2.CfnVolumeAttachmentProps(*, device, instance_id, volume_id)

Bases: object

Properties for defining a CfnVolumeAttachment.

Parameters:
Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_volume_attachment_props = ec2.CfnVolumeAttachmentProps(
    device="device",
    instance_id="instanceId",
    volume_id="volumeId"
)

Attributes

device

The device name (for example, /dev/sdh or xvdh ).

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-device

instance_id

The ID of the instance to which the volume attaches.

This value can be a reference to an `AWS::EC2::Instance <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html>`_ resource, or it can be the physical ID of an existing EC2 instance.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-instanceid

volume_id

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 <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html>`_ resource, or it can be the volume ID of an existing Amazon EBS volume.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volumeattachment.html#cfn-ec2-ebs-volumeattachment-volumeid