Class: AWSCDK::Lex::CfnBot::IntentClosingSettingProperty

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

Overview

Provides a statement the Amazon Lex conveys to the user when the intent is successfully fulfilled.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(closing_response: nil, conditional: nil, is_active: nil, next_step: nil) ⇒ IntentClosingSettingProperty

Returns a new instance of IntentClosingSettingProperty.

Parameters:



3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
# File 'lex/cfn_bot.rb', line 3222

def initialize(closing_response: nil, conditional: nil, is_active: nil, next_step: nil)
  @closing_response = closing_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**closing_response.transform_keys(&:to_sym)) : closing_response
  Jsii::Type.check_type(@closing_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "closingResponse") unless @closing_response.nil?
  @conditional = conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**conditional.transform_keys(&:to_sym)) : conditional
  Jsii::Type.check_type(@conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "conditional") unless @conditional.nil?
  @is_active = is_active
  Jsii::Type.check_type(@is_active, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isActive") unless @is_active.nil?
  @next_step = next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**next_step.transform_keys(&:to_sym)) : next_step
  Jsii::Type.check_type(@next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "nextStep") unless @next_step.nil?
end

Instance Attribute Details

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

The response that Amazon Lex sends to the user when the intent is complete.



3237
3238
3239
# File 'lex/cfn_bot.rb', line 3237

def closing_response
  @closing_response
end

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

A list of conditional branches associated with the intent's closing response.

These branches are executed when the next_step attribute is set to EvalutateConditional .



3244
3245
3246
# File 'lex/cfn_bot.rb', line 3244

def conditional
  @conditional
end

#is_activeBoolean, ... (readonly)

Specifies whether an intent's closing response is used.

When this field is false, the closing response isn't sent to the user. If the IsActive field isn't specified, the default is true.



3251
3252
3253
# File 'lex/cfn_bot.rb', line 3251

def is_active
  @is_active
end

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

Specifies the next step that the bot executes after playing the intent's closing response.



3256
3257
3258
# File 'lex/cfn_bot.rb', line 3256

def next_step
  @next_step
end

Class Method Details

.jsii_propertiesObject



3258
3259
3260
3261
3262
3263
3264
3265
# File 'lex/cfn_bot.rb', line 3258

def self.jsii_properties
  {
    :closing_response => "closingResponse",
    :conditional => "conditional",
    :is_active => "isActive",
    :next_step => "nextStep",
  }
end

Instance Method Details

#to_jsiiObject



3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
# File 'lex/cfn_bot.rb', line 3267

def to_jsii
  result = {}
  result.merge!({
    "closingResponse" => @closing_response,
    "conditional" => @conditional,
    "isActive" => @is_active,
    "nextStep" => @next_step,
  })
  result.compact
end