Class: AWSCDK::Lex::CfnBot::IntentOverrideProperty

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

Overview

Override settings to configure the intent state.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, slots: nil) ⇒ IntentOverrideProperty

Returns a new instance of IntentOverrideProperty.

Parameters:



3509
3510
3511
3512
3513
3514
# File 'lex/cfn_bot.rb', line 3509

def initialize(name: nil, slots: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @slots = slots
  Jsii::Type.check_type(@slots, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGV4LkNmbkJvdC5TbG90VmFsdWVPdmVycmlkZU1hcFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "slots") unless @slots.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of the intent.

Only required when you're switching intents.



3522
3523
3524
# File 'lex/cfn_bot.rb', line 3522

def name
  @name
end

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

A map of all of the slot value overrides for the intent.

The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.



3529
3530
3531
# File 'lex/cfn_bot.rb', line 3529

def slots
  @slots
end

Class Method Details

.jsii_propertiesObject



3531
3532
3533
3534
3535
3536
# File 'lex/cfn_bot.rb', line 3531

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

Instance Method Details

#to_jsiiObject



3538
3539
3540
3541
3542
3543
3544
3545
# File 'lex/cfn_bot.rb', line 3538

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