Class CfnDiskProps
Properties for defining a CfnDisk
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.AWS.Lightsail.dll
Syntax (csharp)
public class CfnDiskProps : Object, ICfnDiskProps
Syntax (vb)
Public Class CfnDiskProps
Inherits Object
Implements ICfnDiskProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-disk.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lightsail;
var cfnDiskProps = new CfnDiskProps {
DiskName = "diskName",
SizeInGb = 123,
// the properties below are optional
AddOns = new [] { new AddOnProperty {
AddOnType = "addOnType",
// the properties below are optional
AutoSnapshotAddOnRequest = new AutoSnapshotAddOnProperty {
SnapshotTimeOfDay = "snapshotTimeOfDay"
},
Status = "status"
} },
AvailabilityZone = "availabilityZone",
Location = new LocationProperty {
AvailabilityZone = "availabilityZone",
RegionName = "regionName"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnDiskProps() |
Properties
AddOns | An array of add-ons for the disk. |
AvailabilityZone | The AWS Region and Availability Zone location for the disk (for example, |
DiskName | The name of the disk. |
Location |
|
SizeInGb | The size of the disk in GB. |
Tags | An array of key-value pairs to apply to this resource. |
Constructors
CfnDiskProps()
public CfnDiskProps()
Properties
AddOns
An array of add-ons for the disk.
public object AddOns { get; set; }
Property Value
System.Object
Remarks
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
The AWS Region and Availability Zone location for the disk (for example, us-east-1a
).
public string AvailabilityZone { get; set; }
Property Value
System.String
Remarks
DiskName
The name of the disk.
public string DiskName { get; set; }
Property Value
System.String
Remarks
Location
AWS::Lightsail::Disk.Location
.
public object Location { get; set; }
Property Value
System.Object
Remarks
SizeInGb
The size of the disk in GB.
public double SizeInGb { get; set; }
Property Value
System.Double
Remarks
Tags
An array of key-value pairs to apply to this resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
For more information, see Tag in the AWS CloudFormation User Guide .
The Value
of Tags
is optional for Lightsail resources.