Class: AWSCDK::SAM::CfnSimpleTable::PrimaryKeyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnSimpleTable::PrimaryKeyProperty
- Defined in:
- sam/cfn_simple_table.rb
Overview
Instance Attribute Summary collapse
- #name ⇒ String? readonly
- #type ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, name: nil) ⇒ PrimaryKeyProperty
constructor
A new instance of PrimaryKeyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, name: nil) ⇒ PrimaryKeyProperty
Returns a new instance of PrimaryKeyProperty.
552 553 554 555 556 557 |
# File 'sam/cfn_simple_table.rb', line 552 def initialize(type:, name: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
564 565 566 |
# File 'sam/cfn_simple_table.rb', line 564 def name @name end |
#type ⇒ String (readonly)
561 562 563 |
# File 'sam/cfn_simple_table.rb', line 561 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
566 567 568 569 570 571 |
# File 'sam/cfn_simple_table.rb', line 566 def self.jsii_properties { :type => "type", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
573 574 575 576 577 578 579 580 |
# File 'sam/cfn_simple_table.rb', line 573 def to_jsii result = {} result.merge!({ "type" => @type, "name" => @name, }) result.compact end |