StreamGrantsProps Struct
Construction properties for StreamGrants.
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
encryptionKeyoptionalIKeyencryption_keyoptionalIKeyencryptionKeyoptionalIKeyEncryptionKeyoptionalIKeyEncryptionKeyoptionalIKey#The encryption key of the table.
Default: No key
Required permissions will be added to the key as well.
tableoptionalITableReftableoptionalITableReftableoptionalITableRefTableoptionalITableRefTableoptionalITableRefdeprecated#This property is not used anymore
Default: None, no longer required
tableStreamArnstringtable_stream_arnstrtableStreamArnStringTableStreamArnstringTableStreamArn*stringrequired#The ARN of the Stream.