Module Values.CreateDiskRequestSource

Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (us-east-2a). The create disk operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.

Sourcetype nonrec t = {
  1. diskName : ResourceName.t;
    (*

    The unique Lightsail disk name (my-disk).

    *)
  2. availabilityZone : NonEmptyString.t;
    (*

    The Availability Zone where you want to create the disk (us-east-2a). Use the same Availability Zone as the Lightsail instance to which you want to attach the disk. Use the get regions operation to list the Availability Zones where Lightsail is currently available.

    *)
  3. sizeInGb : Integer.t;
    (*

    The size of the disk in GB (32).

    *)
  4. tags : TagList.t option;
    (*

    The tag keys and optional values to add to the resource during create. Use the TagResource action to tag a resource after it's created.

    *)
  5. addOns : AddOnRequestList.t option;
    (*

    An array of objects that represent the add-ons to enable for the new disk.

    *)
}
Sourceval context_ : string
Sourceval make : ?tags:??? -> ?addOns:??? -> diskName:ResourceName.t -> availabilityZone:NonEmptyString.t -> sizeInGb:Integer.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of Integer.t | `List of [> `Structure of (string * [> `Enum of string | `String of TagKey.t | `Structure of (string * [> `String of TimeOfDay.t ]) list ]) list ] list | `String of ResourceName.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