interface CfnDiskProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lightsail.CfnDiskProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnDiskProps |
Java | software.amazon.awscdk.services.lightsail.CfnDiskProps |
Python | aws_cdk.aws_lightsail.CfnDiskProps |
TypeScript | aws-cdk-lib » aws_lightsail » CfnDiskProps |
Properties for defining a CfnDisk.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as lightsail } from 'aws-cdk-lib';
const cfnDiskProps: lightsail.CfnDiskProps = {
diskName: 'diskName',
sizeInGb: 123,
// the properties below are optional
addOns: [{
addOnType: 'addOnType',
// the properties below are optional
autoSnapshotAddOnRequest: {
snapshotTimeOfDay: 'snapshotTimeOfDay',
},
status: 'status',
}],
availabilityZone: 'availabilityZone',
location: {
availabilityZone: 'availabilityZone',
regionName: 'regionName',
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| disk | string | The name of the disk. |
| size | number | The size of the disk in GB. |
| add | IResolvable | (IResolvable | Add)[] | An array of add-ons for the disk. |
| availability | string | The AWS Region and Availability Zone location for the disk (for example, us-east-1a ). |
| location? | IResolvable | Location | The AWS Region and Availability Zone where the disk is located. |
| tags? | Cfn[] | An array of key-value pairs to apply to this resource. |
diskName
Type:
string
The name of the disk.
sizeInGb
Type:
number
The size of the disk in GB.
addOns?
Type:
IResolvable | (IResolvable | Add)[]
(optional)
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.
availabilityZone?
Type:
string
(optional)
The AWS Region and Availability Zone location for the disk (for example, us-east-1a ).
location?
Type:
IResolvable | Location
(optional)
The AWS Region and Availability Zone where the disk is located.
tags?
Type:
Cfn[]
(optional)
An array of key-value pairs to apply to this resource.
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.

.NET
Go
Java
Python
TypeScript