CfnDiskProps

class aws_cdk.aws_lightsail.CfnDiskProps(*, disk_name, size_in_gb, add_ons=None, availability_zone=None, location=None, tags=None)

Bases: object

Properties for defining a CfnDisk.

Parameters:
  • disk_name (str) – The name of the disk.

  • size_in_gb (Union[int, float]) – The size of the disk in GB.

  • add_ons (Union[IResolvable, Sequence[Union[IResolvable, AddOnProperty, Dict[str, Any]]], None]) – An array of add-ons for the disk. .. epigraph:: If the disk has an add-on enabled when performing a delete disk request, the add-on is automatically disabled before the disk is deleted.

  • availability_zone (Optional[str]) – The AWS Region and Availability Zone location for the disk (for example, us-east-1a ).

  • location (Union[IResolvable, LocationProperty, Dict[str, Any], None]) – The AWS Region and Availability Zone where the disk is located.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag in the AWS CloudFormation User Guide . .. epigraph:: The Value of Tags is optional for Lightsail resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lightsail as lightsail

cfn_disk_props = lightsail.CfnDiskProps(
    disk_name="diskName",
    size_in_gb=123,

    # the properties below are optional
    add_ons=[lightsail.CfnDisk.AddOnProperty(
        add_on_type="addOnType",

        # the properties below are optional
        auto_snapshot_add_on_request=lightsail.CfnDisk.AutoSnapshotAddOnProperty(
            snapshot_time_of_day="snapshotTimeOfDay"
        ),
        status="status"
    )],
    availability_zone="availabilityZone",
    location=lightsail.CfnDisk.LocationProperty(
        availability_zone="availabilityZone",
        region_name="regionName"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

add_ons

An array of add-ons for the disk.

If the disk has an add-on enabled when performing a delete disk request, the add-on is automatically disabled before the disk is deleted.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html#cfn-lightsail-disk-addons

availability_zone

The AWS Region and Availability Zone location for the disk (for example, us-east-1a ).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html#cfn-lightsail-disk-availabilityzone

disk_name

The name of the disk.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html#cfn-lightsail-disk-diskname

location

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html#cfn-lightsail-disk-location

size_in_gb

The size of the disk in GB.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html#cfn-lightsail-disk-sizeingb

tags

An array of key-value pairs to apply to this resource.

For more information, see Tag in the AWS CloudFormation User Guide . .. epigraph:

The ``Value`` of ``Tags`` is optional for Lightsail resources.
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html#cfn-lightsail-disk-tags