Interface CfnTable.IStreamSpecificationProperty
Represents the DynamoDB Streams configuration for a table in DynamoDB.
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IStreamSpecificationProperty
Syntax (vb)
Public Interface IStreamSpecificationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;
var policyDocument;
var streamSpecificationProperty = new StreamSpecificationProperty {
StreamViewType = "streamViewType",
// the properties below are optional
ResourcePolicy = new ResourcePolicyProperty {
PolicyDocument = policyDocument
}
};
Synopsis
Properties
ResourcePolicy | Creates or updates a resource-based policy document that contains the permissions for DynamoDB resources, such as a table's streams. |
StreamViewType | When an item in the table is modified, |
Properties
ResourcePolicy
Creates or updates a resource-based policy document that contains the permissions for DynamoDB resources, such as a table's streams.
virtual object ResourcePolicy { get; }
Property Value
System.Object
Remarks
Resource-based policies let you define access permissions by specifying who has access to each resource, and the actions they are allowed to perform on each resource.
In a CloudFormation template, you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to DynamoDB . For more information about resource-based policies, see Using resource-based policies for DynamoDB and Resource-based policy examples .
StreamViewType
When an item in the table is modified, StreamViewType
determines what information is written to the stream for this table.
string StreamViewType { get; }
Property Value
System.String