Class CfnSnapshot
Resource Type definition for AWS::MemoryDB::Snapshot.
Inherited Members
Namespace: Amazon.CDK.AWS.MemoryDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSnapshot : CfnResource, IInspectable, ISnapshotRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Syntax (vb)
Public Class CfnSnapshot Inherits CfnResource Implements IInspectable, ISnapshotRef, IConstruct, IDependable, IEnvironmentAware, ITaggableV2
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
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.MemoryDB;
var cfnSnapshot = new CfnSnapshot(this, "MyCfnSnapshot", new CfnSnapshotProps {
ClusterName = "clusterName",
SnapshotName = "snapshotName",
// the properties below are optional
KmsKeyId = "kmsKeyId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
| CfnSnapshot(Construct, string, ICfnSnapshotProps) | Create a new |
Properties
| AttrArn | The ARN (Amazon Resource Name) of the snapshot. |
| AttrClusterConfiguration | Resource Type definition for AWS::MemoryDB::Snapshot. |
| AttrDataTiering | Enables data tiering. |
| AttrSource | Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual). |
| AttrStatus | The status of the snapshot. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CdkTagManager | Tag Manager which manages the tags for this resource. |
| CfnProperties | Resource Type definition for AWS::MemoryDB::Snapshot. |
| CfnPropertyNames | Resource Type definition for AWS::MemoryDB::Snapshot. |
| ClusterName | The name of the cluster from which the snapshot was taken. |
| KmsKeyId | The ID of the KMS key used to encrypt the snapshot. |
| SnapshotName | The name of the snapshot. |
| SnapshotRef | A reference to a Snapshot resource. |
| Tags | A list of tags to be added to this resource. |
Methods
| ArnForSnapshot(ISnapshotRef) | Resource Type definition for AWS::MemoryDB::Snapshot. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnSnapshot(object) | Checks whether the given object is a CfnSnapshot. |
| RenderProperties(IDictionary<string, object>) | Resource Type definition for AWS::MemoryDB::Snapshot. |
Constructors
CfnSnapshot(Construct, string, ICfnSnapshotProps)
Create a new AWS::MemoryDB::Snapshot.
public CfnSnapshot(Construct scope, string id, ICfnSnapshotProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnSnapshotProps
Resource properties.
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
Properties
AttrArn
The ARN (Amazon Resource Name) of the snapshot.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrClusterConfiguration
Resource Type definition for AWS::MemoryDB::Snapshot.
public virtual IResolvable AttrClusterConfiguration { get; }
Property Value
Remarks
CloudformationAttribute: ClusterConfiguration
AttrDataTiering
Enables data tiering.
public virtual string AttrDataTiering { get; }
Property Value
Remarks
Data tiering is only supported for clusters using the r6gd node type.
CloudformationAttribute: DataTiering
AttrSource
Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
public virtual string AttrSource { get; }
Property Value
Remarks
CloudformationAttribute: Source
AttrStatus
The status of the snapshot.
public virtual string AttrStatus { get; }
Property Value
Remarks
Valid values: creating | available | restoring | copying | deleting.
CloudformationAttribute: Status
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
CfnProperties
Resource Type definition for AWS::MemoryDB::Snapshot.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
CfnPropertyNames
Resource Type definition for AWS::MemoryDB::Snapshot.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
ClusterName
The name of the cluster from which the snapshot was taken.
public virtual string ClusterName { get; set; }
Property Value
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
KmsKeyId
The ID of the KMS key used to encrypt the snapshot.
public virtual string? KmsKeyId { get; set; }
Property Value
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
SnapshotName
The name of the snapshot.
public virtual string SnapshotName { get; set; }
Property Value
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
SnapshotRef
A reference to a Snapshot resource.
public virtual ISnapshotReference SnapshotRef { get; }
Property Value
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
Tags
A list of tags to be added to this resource.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
Methods
ArnForSnapshot(ISnapshotRef)
Resource Type definition for AWS::MemoryDB::Snapshot.
public static string ArnForSnapshot(ISnapshotRef resource)
Parameters
- resource ISnapshotRef
Returns
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
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.MemoryDB;
var cfnSnapshot = new CfnSnapshot(this, "MyCfnSnapshot", new CfnSnapshotProps {
ClusterName = "clusterName",
SnapshotName = "snapshotName",
// the properties below are optional
KmsKeyId = "kmsKeyId",
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
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
IsCfnSnapshot(object)
Checks whether the given object is a CfnSnapshot.
public static bool IsCfnSnapshot(object x)
Parameters
- x object
Returns
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Resource Type definition for AWS::MemoryDB::Snapshot.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
Represents a copy of an entire cluster as of the time when the snapshot was taken.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-memorydb-snapshot.html
CloudformationResource: AWS::MemoryDB::Snapshot
ExampleMetadata: fixture=_generated