Class StreamGrants.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.StreamGrants.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StreamGrants>
- Enclosing class:
StreamGrants
@Stability(Stable)
public static final class StreamGrants.Builder
extends Object
implements software.amazon.jsii.Builder<StreamGrants>
A fluent builder for
StreamGrants.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static StreamGrants.Buildercreate()encryptionKey(IKey encryptionKey) The encryption key of the table.The table this stream is for.tableStreamArn(String tableStreamArn) The ARN of the Stream.
-
Method Details
-
create
- Returns:
- a new instance of
StreamGrants.Builder.
-
table
The table this stream is for.- Parameters:
table- The table this stream is for. This parameter is required.- Returns:
this
-
tableStreamArn
The ARN of the Stream.- Parameters:
tableStreamArn- The ARN of the Stream. This parameter is required.- Returns:
this
-
encryptionKey
The encryption key of the table.Required permissions will be added to the key as well.
Default: - No key
- Parameters:
encryptionKey- The encryption key of the table. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StreamGrants>- Returns:
- a newly built instance of
StreamGrants.
-