Class: AWSCDK::Lex::CfnBot::GrammarSlotTypeSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lex/cfn_bot.rb

Overview

Settings requried for a slot type based on a grammar that you provide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source: nil) ⇒ GrammarSlotTypeSettingProperty

Returns a new instance of GrammarSlotTypeSettingProperty.

Parameters:



2960
2961
2962
2963
# File 'lex/cfn_bot.rb', line 2960

def initialize(source: nil)
  @source = source.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::GrammarSlotTypeSourceProperty.new(**source.transform_keys(&:to_sym)) : source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkdyYW1tYXJTbG90VHlwZVNvdXJjZVByb3BlcnR5In1dfX0=")), "source") unless @source.nil?
end

Instance Attribute Details

#sourceAWSCDK::IResolvable, ... (readonly)

The source of the grammar used to create the slot type.



2969
2970
2971
# File 'lex/cfn_bot.rb', line 2969

def source
  @source
end

Class Method Details

.jsii_propertiesObject



2971
2972
2973
2974
2975
# File 'lex/cfn_bot.rb', line 2971

def self.jsii_properties
  {
    :source => "source",
  }
end

Instance Method Details

#to_jsiiObject



2977
2978
2979
2980
2981
2982
2983
# File 'lex/cfn_bot.rb', line 2977

def to_jsii
  result = {}
  result.merge!({
    "source" => @source,
  })
  result.compact
end