Skip to content

Disk

Source code in docs_src/capo_lightsail/types/disk.py
class Disk(TypedDict, closed=True):
    name: NotRequired["capo_lightsail.types.resource_name.ResourceName"]
    """<p>The unique name of the disk.</p>"""
    arn: NotRequired["capo_lightsail.types.non_empty_string.NonEmptyString"]
    """<p>The Amazon Resource Name (ARN) of the disk.</p>"""
    support_code: NotRequired["capo_lightsail.types.string.string"]
    """<p>The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.</p>"""
    created_at: NotRequired["capo_lightsail.types.iso_date.IsoDate"]
    """<p>The date when the disk was created.</p>"""
    location: NotRequired["capo_lightsail.types.resource_location.ResourceLocation"]
    """<p>The AWS Region and Availability Zone where the disk is located.</p>"""
    resource_type: NotRequired["capo_lightsail.types.resource_type.ResourceType"]
    """<p>The Lightsail resource type (<code>Disk</code>).</p>"""
    tags: NotRequired["capo_lightsail.types.tag_list.TagList"]
    """<p>The tag keys and optional values for the resource. For more information about tags in Lightsail, see the <a href="https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags">Amazon Lightsail Developer Guide</a>.</p>"""
    add_ons: NotRequired["capo_lightsail.types.add_on_list.AddOnList"]
    """<p>An array of objects representing the add-ons enabled on the disk.</p>"""
    size_in_gb: NotRequired["capo_lightsail.types.integer.integer"]
    """<p>The size of the disk in GB.</p>"""
    is_system_disk: NotRequired["capo_lightsail.types.boolean.boolean"]
    """<p>A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).</p>"""
    iops: NotRequired["capo_lightsail.types.integer.integer"]
    """<p>The input/output operations per second (IOPS) of the disk.</p>"""
    path: NotRequired["capo_lightsail.types.string.string"]
    """<p>The disk path.</p>"""
    state: NotRequired["capo_lightsail.types.disk_state.DiskState"]
    """<p>Describes the status of the disk.</p>"""
    attached_to: NotRequired["capo_lightsail.types.resource_name.ResourceName"]
    """<p>The resources to which the disk is attached.</p>"""
    is_attached: NotRequired["capo_lightsail.types.boolean.boolean"]
    """<p>A Boolean value indicating whether the disk is attached.</p>"""
    attachment_state: NotRequired["capo_lightsail.types.string.string"]
    """<p>(Discontinued) The attachment state of the disk.</p> <note> <p>In releases prior to November 14, 2017, this parameter returned <code>attached</code> for system disks in the API response. It is now discontinued, but still included in the response. Use <code>isAttached</code> instead.</p> </note>"""
    gb_in_use: NotRequired["capo_lightsail.types.integer.integer"]
    """<p>(Discontinued) The number of GB in use by the disk.</p> <note> <p>In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.</p> </note>"""
    auto_mount_status: NotRequired[
        "capo_lightsail.types.auto_mount_status.AutoMountStatus"
    ]
    """<p>The status of automatically mounting a storage disk to a virtual computer.</p> <important> <p>This parameter only applies to Lightsail for Research resources.</p> </important>"""

add_ons instance-attribute

add_ons: NotRequired[AddOnList]

An array of objects representing the add-ons enabled on the disk.

arn instance-attribute

arn: NotRequired[NonEmptyString]

The Amazon Resource Name (ARN) of the disk.

attached_to instance-attribute

attached_to: NotRequired[ResourceName]

The resources to which the disk is attached.

attachment_state instance-attribute

attachment_state: NotRequired[string]

(Discontinued) The attachment state of the disk.

In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now discontinued, but still included in the response. Use isAttached instead.

auto_mount_status instance-attribute

auto_mount_status: NotRequired[AutoMountStatus]

The status of automatically mounting a storage disk to a virtual computer.

This parameter only applies to Lightsail for Research resources.

created_at instance-attribute

created_at: NotRequired[IsoDate]

The date when the disk was created.

gb_in_use instance-attribute

gb_in_use: NotRequired[integer]

(Discontinued) The number of GB in use by the disk.

In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.

iops instance-attribute

iops: NotRequired[integer]

The input/output operations per second (IOPS) of the disk.

is_attached instance-attribute

is_attached: NotRequired[boolean]

A Boolean value indicating whether the disk is attached.

is_system_disk instance-attribute

is_system_disk: NotRequired[boolean]

A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

location instance-attribute

location: NotRequired[ResourceLocation]

The AWS Region and Availability Zone where the disk is located.

name instance-attribute

name: NotRequired[ResourceName]

The unique name of the disk.

path instance-attribute

path: NotRequired[string]

The disk path.

resource_type instance-attribute

resource_type: NotRequired[ResourceType]

The Lightsail resource type (Disk).

size_in_gb instance-attribute

size_in_gb: NotRequired[integer]

The size of the disk in GB.

state instance-attribute

state: NotRequired[DiskState]

Describes the status of the disk.

support_code instance-attribute

support_code: NotRequired[string]

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

tags instance-attribute

tags: NotRequired[TagList]

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.