Skip to content
v2.278.0

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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dynamodb as dynamodb
from aws_cdk import aws_kms as kms
from aws_cdk.interfaces import aws_dynamodb as interfaces_dynamodb

# key: kms.Key
# table_ref: interfaces_dynamodb.ITableRef

stream_grants_props = dynamodb.StreamGrantsProps(
    table_stream_arn="tableStreamArn",

    # the properties below are optional
    encryption_key=key,
    table=table_ref
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;
import software.amazon.awscdk.services.kms.*;
import software.amazon.awscdk.interfaces.dynamodb.*;

Key key;
ITableRef tableRef;

StreamGrantsProps streamGrantsProps = StreamGrantsProps.builder()
        .tableStreamArn("tableStreamArn")

        // the properties below are optional
        .encryptionKey(key)
        .table(tableRef)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;
using Amazon.CDK.AWS.KMS;
using Amazon.CDK.Interfaces.DynamoDB;

Key key;
ITableRef tableRef;

var streamGrantsProps = new StreamGrantsProps {
    TableStreamArn = "tableStreamArn",

    // the properties below are optional
    EncryptionKey = key,
    Table = tableRef
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var key Key
var tableRef ITableRef

streamGrantsProps := &StreamGrantsProps{
	TableStreamArn: jsii.String("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.

tableoptionalITableReftableoptionalITableReftableoptionalITableRefTableoptionalITableRefTableoptionalITableRef deprecated #
This property is not used anymore

Default: None, no longer required

tableStreamArnstringtable_stream_arnstrtableStreamArnStringTableStreamArnstringTableStreamArn*string required #
The ARN of the Stream.