Class CfnTable.StreamSpecificationProperty
Represents the DynamoDB Streams configuration for a table in DynamoDB.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.DynamoDB
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StreamSpecificationProperty : Object, CfnTable.IStreamSpecificationProperty
Syntax (vb)
Public Class StreamSpecificationProperty
Inherits Object
Implements CfnTable.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
Constructors
StreamSpecificationProperty() |
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, |
Constructors
StreamSpecificationProperty()
public StreamSpecificationProperty()
Properties
ResourcePolicy
Creates or updates a resource-based policy document that contains the permissions for DynamoDB resources, such as a table's streams.
public object ResourcePolicy { get; set; }
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.
public string StreamViewType { get; set; }
Property Value
System.String