CfnVolumeAttachmentProps

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

Bases: object

Properties for defining a AWS::EC2::VolumeAttachment.

Parameters
  • device (str) – AWS::EC2::VolumeAttachment.Device.

  • instance_id (str) – AWS::EC2::VolumeAttachment.InstanceId.

  • volume_id (str) – AWS::EC2::VolumeAttachment.VolumeId.

Link

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

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

AWS::EC2::VolumeAttachment.Device.

Link

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

Return type

str

instance_id

AWS::EC2::VolumeAttachment.InstanceId.

Link

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

Return type

str

volume_id

AWS::EC2::VolumeAttachment.VolumeId.

Link

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

Return type

str