Class: AWSCDK::DynamoDB::StreamGrantsProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DynamoDB::StreamGrantsProps
- Defined in:
- dynamo_db/stream_grants_props.rb
Overview
Construction properties for StreamGrants.
Instance Attribute Summary collapse
-
#encryption_key ⇒ AWSCDK::KMS::IKey?
readonly
The encryption key of the table.
-
#table ⇒ AWSCDK::Interfaces::AWSDynamodb::ITableRef?
readonly
deprecated
Deprecated.
This property is not used anymore
-
#table_stream_arn ⇒ String
readonly
The ARN of the Stream.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(table_stream_arn:, encryption_key: nil, table: nil) ⇒ StreamGrantsProps
constructor
A new instance of StreamGrantsProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(table_stream_arn:, encryption_key: nil, table: nil) ⇒ StreamGrantsProps
Returns a new instance of StreamGrantsProps.
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_key ⇒ AWSCDK::KMS::IKey? (readonly)
Note:
Default: - No key
The encryption key of the table.
Required permissions will be added to the key as well.
29 30 31 |
# File 'dynamo_db/stream_grants_props.rb', line 29 def encryption_key @encryption_key end |
#table ⇒ AWSCDK::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_arn ⇒ String (readonly)
The ARN of the Stream.
22 23 24 |
# File 'dynamo_db/stream_grants_props.rb', line 22 def table_stream_arn @table_stream_arn end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |