CfnVolumeAttachmentMixinProps

class aws_cdk.mixins_preview.aws_ec2.mixins.CfnVolumeAttachmentMixinProps(*, device=None, instance_id=None, volume_id=None)

Bases: object

Properties for CfnVolumeAttachmentPropsMixin.

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.mixins_preview.aws_ec2 import mixins as ec2_mixins

cfn_volume_attachment_mixin_props = ec2_mixins.CfnVolumeAttachmentMixinProps(
    device="device",
    instance_id="instanceId",
    volume_id="volumeId"
)

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