AWS::Lightsail::DiskThe `AWS::Lightsail::Disk` resource specifies a disk that can be attached to an Amazon Lightsail instance that is in the same AWS Region and Availability Zone.
import { CfnDisk } from 'aws-cdk-lib/aws-lightsail';Or use the module namespace:
import * as lightsail from 'aws-cdk-lib/aws-lightsail';
// lightsail.CfnDiskConfiguration passed to the constructor as CfnDiskProps.
diskNameRequiredstringThe name of the disk.
sizeInGbRequirednumberThe size of the disk in GB.
addOnsOptionalIResolvable | IResolvable | AddOnProperty[]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.
availabilityZoneOptionalstringThe AWS Region and Availability Zone location for the disk (for example, `us-east-1a` ).
locationOptionalIResolvable | LocationPropertyThe AWS Region and Availability Zone where the disk is located.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . > The `Value` of `Tags` is optional for Lightsail resources.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-lightsailAWS::Lightsail::Disk