Class: AWSCDK::ElementalInference::CfnDictionaryProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elemental_inference/cfn_dictionary_props.rb

Overview

Properties for defining a CfnDictionary.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(language:, name:, entries: nil, tags: nil) ⇒ CfnDictionaryProps

Returns a new instance of CfnDictionaryProps.

Parameters:

  • language (String)
  • name (String)
  • entries (String, nil) (defaults to: nil)
  • tags (Hash{String => String}, nil) (defaults to: nil)


13
14
15
16
17
18
19
20
21
22
# File 'elemental_inference/cfn_dictionary_props.rb', line 13

def initialize(language:, name:, entries: nil, tags: nil)
  @language = language
  Jsii::Type.check_type(@language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "language")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @entries = entries
  Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entries") unless @entries.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#entriesString? (readonly)



32
33
34
# File 'elemental_inference/cfn_dictionary_props.rb', line 32

def entries
  @entries
end

#languageString (readonly)



26
27
28
# File 'elemental_inference/cfn_dictionary_props.rb', line 26

def language
  @language
end

#nameString (readonly)



29
30
31
# File 'elemental_inference/cfn_dictionary_props.rb', line 29

def name
  @name
end

#tagsHash{String => String}? (readonly)



35
36
37
# File 'elemental_inference/cfn_dictionary_props.rb', line 35

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



37
38
39
40
41
42
43
44
# File 'elemental_inference/cfn_dictionary_props.rb', line 37

def self.jsii_properties
  {
    :language => "language",
    :name => "name",
    :entries => "entries",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



46
47
48
49
50
51
52
53
54
55
# File 'elemental_inference/cfn_dictionary_props.rb', line 46

def to_jsii
  result = {}
  result.merge!({
    "language" => @language,
    "name" => @name,
    "entries" => @entries,
    "tags" => @tags,
  })
  result.compact
end