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 Details

    • create

      @Stability(Stable) public static StreamGrants.Builder create()
      Returns:
      a new instance of StreamGrants.Builder.
    • table

      @Stability(Stable) public StreamGrants.Builder table(ITableRef table)
      The table this stream is for.

      Parameters:
      table - The table this stream is for. This parameter is required.
      Returns:
      this
    • tableStreamArn

      @Stability(Stable) public StreamGrants.Builder tableStreamArn(String tableStreamArn)
      The ARN of the Stream.

      Parameters:
      tableStreamArn - The ARN of the Stream. This parameter is required.
      Returns:
      this
    • encryptionKey

      @Stability(Stable) public StreamGrants.Builder encryptionKey(IKey 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

      @Stability(Stable) public StreamGrants build()
      Specified by:
      build in interface software.amazon.jsii.Builder<StreamGrants>
      Returns:
      a newly built instance of StreamGrants.