Class: AWSCDK::DynamoDB::StreamGrantsProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dynamo_db/stream_grants_props.rb

Overview

Construction properties for StreamGrants.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_stream_arn:, encryption_key: nil, table: nil) ⇒ StreamGrantsProps

Returns a new instance of StreamGrantsProps.

Parameters:



10
11
12
13
14
15
16
17
# File 'dynamo_db/stream_grants_props.rb', line 10

def initialize(table_stream_arn:, encryption_key: nil, table: nil)
  @table_stream_arn = table_stream_arn
  Jsii::Type.check_type(@table_stream_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableStreamArn")
  @encryption_key = encryption_key
  Jsii::Type.check_type(@encryption_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa21zLklLZXkifQ==")), "encryptionKey") unless @encryption_key.nil?
  @table = table
  Jsii::Type.check_type(@table, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19keW5hbW9kYi5JVGFibGVSZWYifQ==")), "table") unless @table.nil?
end

Instance Attribute Details

#encryption_keyAWSCDK::KMS::IKey? (readonly)

Note:

Default: - No key

The encryption key of the table.

Required permissions will be added to the key as well.

Returns:



29
30
31
# File 'dynamo_db/stream_grants_props.rb', line 29

def encryption_key
  @encryption_key
end

#tableAWSCDK::Interfaces::AWSDynamodb::ITableRef? (readonly)

Deprecated.

This property is not used anymore

Note:

Default: - None, no longer required

The table this stream is for.



35
36
37
# File 'dynamo_db/stream_grants_props.rb', line 35

def table
  @table
end

#table_stream_arnString (readonly)

The ARN of the Stream.

Returns:

  • (String)


22
23
24
# File 'dynamo_db/stream_grants_props.rb', line 22

def table_stream_arn
  @table_stream_arn
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
# File 'dynamo_db/stream_grants_props.rb', line 37

def self.jsii_properties
  {
    :table_stream_arn => "tableStreamArn",
    :encryption_key => "encryptionKey",
    :table => "table",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
53
# File 'dynamo_db/stream_grants_props.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "tableStreamArn" => @table_stream_arn,
    "encryptionKey" => @encryption_key,
    "table" => @table,
  })
  result.compact
end