# CfnServerlessCacheSnapshotProps

Properties for defining a `CfnServerlessCacheSnapshot`.

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 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 cfnServerlessCacheSnapshotProps: elasticache.CfnServerlessCacheSnapshotProps = {
  serverlessCacheName: 'serverlessCacheName',
  serverlessCacheSnapshotName: 'serverlessCacheSnapshotName',

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

## Properties

- `kmsKeyId`: string — The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the snapshot.

  Provide the key ARN: the resource returns the key ARN on read, so supplying a bare key ID or alias for this createOnly property may be reported as drift by CloudFormation.

- `serverlessCacheName`: string (required) — The name of an existing serverless cache.

  The snapshot is created from this cache.

- `serverlessCacheSnapshotName`: string (required) — The name of the serverless cache snapshot.

  Must be unique for the customer account. This value is stored as a lowercase string.

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

## Used as props by

- [`CfnServerlessCacheSnapshot`](/v2/docs/aws-cdk-lib.aws_elasticache.CfnServerlessCacheSnapshot)
