# CfnSnapshotProps

Properties for defining a `CfnSnapshot`.

Extends: CfnSnapshotProps
Used as props by: CfnSnapshot

- Source: Generated code
- Type last changed: v2.273.0 · 8 Oct 2026

## 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

- `cacheClusterId`: string — The identifier of an existing cluster to create a snapshot from.

  The snapshot is created from this cluster.

- `kmsKeyId`: string — The ID of the KMS key used to encrypt the snapshot.

- `replicationGroupId`: string — The identifier of an existing replication group to create a snapshot from.

  The snapshot is created from this replication group.

- `snapshotName`: string (required) — The name of a snapshot.

  Must be unique within the customer account.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags to be added to this resource.
