Skip to content

AttachVolumeRequest

Source code in docs_src/capo_ec2/types/attach_volume_request.py
class AttachVolumeRequest(TypedDict, closed=True):
    device: NotRequired["capo_ec2.types.string.String"]
    """<p>The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>"""
    instance_id: NotRequired["capo_ec2.types.instance_id.InstanceId"]
    """<p>The ID of the instance.</p>"""
    volume_id: NotRequired["capo_ec2.types.volume_id.VolumeId"]
    """<p>The ID of the EBS volume. The volume and instance must be within the same Availability Zone.</p>"""
    ebs_card_index: NotRequired["capo_ec2.types.boxed_integer.BoxedInteger"]
    """<p>The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""

device instance-attribute

device: NotRequired[String]

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

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

ebs_card_index instance-attribute

ebs_card_index: NotRequired[BoxedInteger]

The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.

instance_id instance-attribute

instance_id: NotRequired[InstanceId]

The ID of the instance.

volume_id instance-attribute

volume_id: NotRequired[VolumeId]

The ID of the EBS volume. The volume and instance must be within the same Availability Zone.