# StreamGrantsProps

Construction properties for StreamGrants.

Extends: StreamGrantsProps
Used as props by: StreamGrants

- Source: [`aws-dynamodb/lib/stream-grants.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-dynamodb/lib/stream-grants.ts#L9)
- Type last changed: v2.255.0 · 19 May 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
import { aws_kms as kms } from 'aws-cdk-lib';
import { aws_dynamodb as interfaces_dynamodb } from 'aws-cdk-lib/interfaces';

declare const key: kms.Key;
declare const tableRef: interfaces_dynamodb.ITableRef;
const streamGrantsProps: dynamodb.StreamGrantsProps = {
  tableStreamArn: 'tableStreamArn',

  // the properties below are optional
  encryptionKey: key,
  table: tableRef,
};
```

## Properties

- `encryptionKey`: [IKey](/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The encryption key of the table.

  **Default:** No key

  Required permissions will be added to the key as well.

- `table`: [ITableRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_dynamodb.ITableRef.html) — This property is not used anymore

  **Default:** None, no longer required

- `tableStreamArn`: string (required) — The ARN of the Stream.
