Module Values_7.AttachVolumeRequestSource

Attaches an Amazon EBS volume to a running or stopped instance, and exposes it to the instance with the specified device name. The maximum number of Amazon EBS volumes that you can attach to an instance depends on the instance type. If you exceed the volume attachment limit for an instance type, the attachment request fails with the AttachmentLimitExceeded error. For more information, see Instance volume limits. After you attach an EBS volume, you must make it available for use. For more information, see Make an EBS volume available for use. If a volume has an Amazon Web Services Marketplace product code: The volume can be attached only to a stopped instance. Amazon Web Services Marketplace product codes are copied from the volume to the instance. You must be subscribed to the product. The instance type and operating system of the instance must support the product. For example, you can't detach a volume from a Windows instance and attach it to a Linux instance. For more information, see Attach an Amazon EBS volume to an instance in the Amazon EBS User Guide.

Sourcetype nonrec t = {
  1. device : Values_0.String_.t;
    (*

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

    *)
  2. instanceId : Values_0.InstanceId.t;
    (*

    The ID of the instance.

    *)
  3. volumeId : Values_0.VolumeId.t;
    (*

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

    *)
  4. ebsCardIndex : Values_1.BoxedInteger.t option;
    (*

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

    *)
  5. dryRun : Values_0.Boolean.t option;
    (*

    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.

    *)
}
Sourceval context_ : string
Sourceval make : ?ebsCardIndex:??? -> ?dryRun:??? -> device:Values_0.String_.t -> instanceId:Values_0.InstanceId.t -> volumeId:Values_0.VolumeId.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Values_0.Boolean.t | `Integer of Values_1.BoxedInteger.t | `String of Values_0.String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t