interface CfnDiskMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Lightsail.Mixins.CfnDiskMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslightsail/mixins#CfnDiskMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.lightsail.mixins.CfnDiskMixinProps |
Python | aws_cdk.mixins_preview.aws_lightsail.mixins.CfnDiskMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_lightsail » mixins » CfnDiskMixinProps |
Properties for CfnDiskPropsMixin.
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 { mixins as lightsail_mixins } from '@aws-cdk/mixins-preview/aws-lightsail';
const cfnDiskMixinProps: lightsail_mixins.CfnDiskMixinProps = {
addOns: [{
addOnType: 'addOnType',
autoSnapshotAddOnRequest: {
snapshotTimeOfDay: 'snapshotTimeOfDay',
},
status: 'status',
}],
availabilityZone: 'availabilityZone',
diskName: 'diskName',
location: {
availabilityZone: 'availabilityZone',
regionName: 'regionName',
},
sizeInGb: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| 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 ). |
| disk | string | The name of the disk. |
| location? | IResolvable | Location | The AWS Region and Availability Zone where the disk is located. |
| size | number | The size of the disk in GB. |
| tags? | Cfn[] | An array of key-value pairs to apply to this resource. |
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 ).
diskName?
Type:
string
(optional)
The name of the disk.
location?
Type:
IResolvable | Location
(optional)
The AWS Region and Availability Zone where the disk is located.
sizeInGb?
Type:
number
(optional)
The size of the disk in GB.
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