Skip to content

CreateDiskRequest

Source code in docs_src/capo_lightsail/types/create_disk_request.py
class CreateDiskRequest(TypedDict, closed=True):
    disk_name: "capo_lightsail.types.resource_name.ResourceName"
    """<p>The unique Lightsail disk name (<code>my-disk</code>).</p>"""
    availability_zone: "capo_lightsail.types.non_empty_string.NonEmptyString"
    """<p>The Availability Zone where you want to create the disk (<code>us-east-2a</code>). Use the same Availability Zone as the Lightsail instance to which you want to attach the disk.</p> <p>Use the <code>get regions</code> operation to list the Availability Zones where Lightsail is currently available.</p>"""
    size_in_gb: "capo_lightsail.types.integer.integer"
    """<p>The size of the disk in GB (<code>32</code>).</p>"""
    tags: NotRequired["capo_lightsail.types.tag_list.TagList"]
    """<p>The tag keys and optional values to add to the resource during create.</p> <p>Use the <code>TagResource</code> action to tag a resource after it's created.</p>"""
    add_ons: NotRequired["capo_lightsail.types.add_on_request_list.AddOnRequestList"]
    """<p>An array of objects that represent the add-ons to enable for the new disk.</p>"""

add_ons instance-attribute

add_ons: NotRequired[AddOnRequestList]

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

availability_zone instance-attribute

availability_zone: NonEmptyString

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.

disk_name instance-attribute

disk_name: ResourceName

The unique Lightsail disk name (my-disk).

size_in_gb instance-attribute

size_in_gb: integer

The size of the disk in GB (32).

tags instance-attribute

tags: NotRequired[TagList]

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.