Class: AWSCDK::SAM::CfnSimpleTable::PrimaryKeyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sam/cfn_simple_table.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, name: nil) ⇒ PrimaryKeyProperty

Returns a new instance of PrimaryKeyProperty.

Parameters:

  • type (String)
  • name (String, nil) (defaults to: nil)


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

#nameString? (readonly)



564
565
566
# File 'sam/cfn_simple_table.rb', line 564

def name
  @name
end

#typeString (readonly)



561
562
563
# File 'sam/cfn_simple_table.rb', line 561

def type
  @type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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