Skip to content
v2.273.0

CfnSnapshotProps Struct Added in v2.273.0 ​

Properties for defining a CfnSnapshot.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticache as elasticache } from 'aws-cdk-lib';
const cfnSnapshotProps: elasticache.CfnSnapshotProps = {
  snapshotName: 'snapshotName',

  // the properties below are optional
  cacheClusterId: 'cacheClusterId',
  kmsKeyId: 'kmsKeyId',
  replicationGroupId: 'replicationGroupId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

cacheClusterIdstringcache_cluster_idstrcacheClusterIdStringCacheClusterIdstringCacheClusterId*string#
The identifier of an existing cluster to create a snapshot from.

The snapshot is created from this cluster.

kmsKeyIdstringkms_key_idstrkmsKeyIdStringKmsKeyIdstringKmsKeyId*string#
The ID of the KMS key used to encrypt the snapshot.
replicationGroupIdstringreplication_group_idstrreplicationGroupIdStringReplicationGroupIdstringReplicationGroupId*string#
The identifier of an existing replication group to create a snapshot from.

The snapshot is created from this replication group.

snapshotNamestringsnapshot_namestrsnapshotNameStringSnapshotNamestringSnapshotName*stringrequired#
The name of a snapshot.

Must be unique within the customer account.

tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
A list of tags to be added to this resource.

Used as props by ​