Class CfnDiskSnapshot
Describes a block storage disk snapshot.
Inherited Members
Namespace: Amazon.CDK.AWS.Lightsail
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDiskSnapshot : CfnResource, IInspectable, IDiskSnapshotRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnDiskSnapshot Inherits CfnResource Implements IInspectable, IDiskSnapshotRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
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 cfnDiskSnapshot = new CfnDiskSnapshot(this, "MyCfnDiskSnapshot", new CfnDiskSnapshotProps {
DiskName = "diskName",
DiskSnapshotName = "diskSnapshotName",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
| CfnDiskSnapshot(Construct, string, ICfnDiskSnapshotProps) | Create a new |
Properties
| AttrCreatedAt | The date when the disk snapshot was created. |
| AttrDiskSnapshotArn | The Amazon Resource Name (ARN) of the disk snapshot. |
| AttrFromDiskName | The unique name of the source disk from which the disk snapshot was created. |
| AttrIsFromAutoSnapshot | A Boolean value indicating whether the snapshot was created from an automatic snapshot. |
| AttrLocation | The AWS Region and Availability Zone where the disk snapshot was created. |
| AttrProgress | The progress of the snapshot. |
| AttrResourceType | The Lightsail resource type ( |
| AttrSizeInGb | The size of the disk in GB. |
| AttrState | The status of the disk snapshot operation. |
| AttrSupportCode | The support code. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | Describes a block storage disk snapshot. |
| CfnPropertyNames | Describes a block storage disk snapshot. |
| DiskName | The unique name of the disk. |
| DiskSnapshotName | The name of the disk snapshot ( |
| DiskSnapshotRef | A reference to a DiskSnapshot resource. |
| Tags | The tag keys and optional values for the resource. |
Methods
| ArnForDiskSnapshot(IDiskSnapshotRef) | Describes a block storage disk snapshot. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnDiskSnapshot(object) | Checks whether the given object is a CfnDiskSnapshot. |
| RenderProperties(IDictionary<string, object>) | Describes a block storage disk snapshot. |
Constructors
CfnDiskSnapshot(Construct, string, ICfnDiskSnapshotProps)
Create a new AWS::Lightsail::DiskSnapshot.
public CfnDiskSnapshot(Construct scope, string id, ICfnDiskSnapshotProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnDiskSnapshotProps
Resource properties.
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
Properties
AttrCreatedAt
The date when the disk snapshot was created.
public virtual string AttrCreatedAt { get; }
Property Value
Remarks
CloudformationAttribute: CreatedAt
AttrDiskSnapshotArn
The Amazon Resource Name (ARN) of the disk snapshot.
public virtual string AttrDiskSnapshotArn { get; }
Property Value
Remarks
CloudformationAttribute: DiskSnapshotArn
AttrFromDiskName
The unique name of the source disk from which the disk snapshot was created.
public virtual string AttrFromDiskName { get; }
Property Value
Remarks
CloudformationAttribute: FromDiskName
AttrIsFromAutoSnapshot
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
public virtual IResolvable AttrIsFromAutoSnapshot { get; }
Property Value
Remarks
CloudformationAttribute: IsFromAutoSnapshot
AttrLocation
The AWS Region and Availability Zone where the disk snapshot was created.
public virtual IResolvable AttrLocation { get; }
Property Value
Remarks
CloudformationAttribute: Location
AttrProgress
The progress of the snapshot.
public virtual string AttrProgress { get; }
Property Value
Remarks
CloudformationAttribute: Progress
AttrResourceType
The Lightsail resource type ( DiskSnapshot ).
public virtual string AttrResourceType { get; }
Property Value
Remarks
CloudformationAttribute: ResourceType
AttrSizeInGb
The size of the disk in GB.
public virtual double AttrSizeInGb { get; }
Property Value
Remarks
CloudformationAttribute: SizeInGb
AttrState
The status of the disk snapshot operation.
public virtual string AttrState { get; }
Property Value
Remarks
CloudformationAttribute: State
AttrSupportCode
The support code.
public virtual string AttrSupportCode { get; }
Property Value
Remarks
Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
CloudformationAttribute: SupportCode
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
CfnProperties
Describes a block storage disk snapshot.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
CfnPropertyNames
Describes a block storage disk snapshot.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
DiskName
The unique name of the disk.
public virtual string DiskName { get; set; }
Property Value
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
DiskSnapshotName
The name of the disk snapshot ( my-disk-snapshot ).
public virtual string DiskSnapshotName { get; set; }
Property Value
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
DiskSnapshotRef
A reference to a DiskSnapshot resource.
public virtual IDiskSnapshotReference DiskSnapshotRef { get; }
Property Value
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
Tags
The tag keys and optional values for the resource.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
Methods
ArnForDiskSnapshot(IDiskSnapshotRef)
Describes a block storage disk snapshot.
public static string ArnForDiskSnapshot(IDiskSnapshotRef resource)
Parameters
- resource IDiskSnapshotRef
Returns
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
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 cfnDiskSnapshot = new CfnDiskSnapshot(this, "MyCfnDiskSnapshot", new CfnDiskSnapshotProps {
DiskName = "diskName",
DiskSnapshotName = "diskSnapshotName",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
IsCfnDiskSnapshot(object)
Checks whether the given object is a CfnDiskSnapshot.
public static bool IsCfnDiskSnapshot(object x)
Parameters
- x object
Returns
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Describes a block storage disk snapshot.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::Lightsail::DiskSnapshot
ExampleMetadata: fixture=_generated