CfnVolumeAttachmentProps

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

Bases: object

Properties for defining a CfnVolumeAttachment.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-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.
from aws_cdk import aws_ec2 as ec2

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

    # the properties below are optional
    device="device"
)

Attributes

device

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.html#cfn-ec2-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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-volumeattachment.html#cfn-ec2-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.

See:

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