CfnDiskMixinProps
- class aws_cdk.mixins_preview.aws_lightsail.mixins.CfnDiskMixinProps(*, add_ons=None, availability_zone=None, disk_name=None, location=None, size_in_gb=None, tags=None)
Bases:
objectProperties for CfnDiskPropsMixin.
- Parameters:
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).disk_name (
Optional[str]) – The name of the disk.location (
Union[IResolvable,LocationProperty,Dict[str,Any],None]) – The AWS Region and Availability Zone where the disk is located.size_in_gb (
Union[int,float,None]) – The size of the disk in GB.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:: TheValueofTagsis 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.mixins_preview.aws_lightsail import mixins as lightsail_mixins cfn_disk_mixin_props = lightsail_mixins.CfnDiskMixinProps( add_ons=[lightsail_mixins.CfnDiskPropsMixin.AddOnProperty( add_on_type="addOnType", auto_snapshot_add_on_request=lightsail_mixins.CfnDiskPropsMixin.AutoSnapshotAddOnProperty( snapshot_time_of_day="snapshotTimeOfDay" ), status="status" )], availability_zone="availabilityZone", disk_name="diskName", location=lightsail_mixins.CfnDiskPropsMixin.LocationProperty( availability_zone="availabilityZone", region_name="regionName" ), size_in_gb=123, 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.
- availability_zone
The AWS Region and Availability Zone location for the disk (for example,
us-east-1a).
- disk_name
The name of the disk.
- location
The AWS Region and Availability Zone where the disk is located.
- size_in_gb
The size of the disk in GB.