Class: AWSCDK::Interfaces::AWSCassandra::TableReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSCassandra::TableReference
- Defined in:
- interfaces/aws_cassandra/table_reference.rb
Overview
A reference to a Table resource.
Instance Attribute Summary collapse
-
#keyspace_name ⇒ String
readonly
The KeyspaceName of the Table resource.
-
#table_name ⇒ String
readonly
The TableName of the Table resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(keyspace_name:, table_name:) ⇒ TableReference
constructor
A new instance of TableReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(keyspace_name:, table_name:) ⇒ TableReference
Returns a new instance of TableReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_cassandra/table_reference.rb', line 9 def initialize(keyspace_name:, table_name:) @keyspace_name = keyspace_name Jsii::Type.check_type(@keyspace_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyspaceName") @table_name = table_name Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName") end |
Instance Attribute Details
#keyspace_name ⇒ String (readonly)
The KeyspaceName of the Table resource.
19 20 21 |
# File 'interfaces/aws_cassandra/table_reference.rb', line 19 def keyspace_name @keyspace_name end |
#table_name ⇒ String (readonly)
The TableName of the Table resource.
23 24 25 |
# File 'interfaces/aws_cassandra/table_reference.rb', line 23 def table_name @table_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_cassandra/table_reference.rb', line 25 def self.jsii_properties { :keyspace_name => "keyspaceName", :table_name => "tableName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_cassandra/table_reference.rb', line 32 def to_jsii result = {} result.merge!({ "keyspaceName" => @keyspace_name, "tableName" => @table_name, }) result.compact end |