Class: AWSCDK::Lex::CfnBot::PostDialogCodeHookInvocationSpecificationProperty

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

Overview

Specifies next steps to run after the dialog code hook finishes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(failure_conditional: nil, failure_next_step: nil, failure_response: nil, success_conditional: nil, success_next_step: nil, success_response: nil, timeout_conditional: nil, timeout_next_step: nil, timeout_response: nil) ⇒ PostDialogCodeHookInvocationSpecificationProperty

Returns a new instance of PostDialogCodeHookInvocationSpecificationProperty.

Parameters:



4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
# File 'lex/cfn_bot.rb', line 4274

def initialize(failure_conditional: nil, failure_next_step: nil, failure_response: nil, success_conditional: nil, success_next_step: nil, success_response: nil, timeout_conditional: nil, timeout_next_step: nil, timeout_response: nil)
  @failure_conditional = failure_conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**failure_conditional.transform_keys(&:to_sym)) : failure_conditional
  Jsii::Type.check_type(@failure_conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "failureConditional") unless @failure_conditional.nil?
  @failure_next_step = failure_next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**failure_next_step.transform_keys(&:to_sym)) : failure_next_step
  Jsii::Type.check_type(@failure_next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "failureNextStep") unless @failure_next_step.nil?
  @failure_response = failure_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**failure_response.transform_keys(&:to_sym)) : failure_response
  Jsii::Type.check_type(@failure_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "failureResponse") unless @failure_response.nil?
  @success_conditional = success_conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**success_conditional.transform_keys(&:to_sym)) : success_conditional
  Jsii::Type.check_type(@success_conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "successConditional") unless @success_conditional.nil?
  @success_next_step = success_next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**success_next_step.transform_keys(&:to_sym)) : success_next_step
  Jsii::Type.check_type(@success_next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "successNextStep") unless @success_next_step.nil?
  @success_response = success_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**success_response.transform_keys(&:to_sym)) : success_response
  Jsii::Type.check_type(@success_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "successResponse") unless @success_response.nil?
  @timeout_conditional = timeout_conditional.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ConditionalSpecificationProperty.new(**timeout_conditional.transform_keys(&:to_sym)) : timeout_conditional
  Jsii::Type.check_type(@timeout_conditional, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkNvbmRpdGlvbmFsU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "timeoutConditional") unless @timeout_conditional.nil?
  @timeout_next_step = timeout_next_step.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::DialogStateProperty.new(**timeout_next_step.transform_keys(&:to_sym)) : timeout_next_step
  Jsii::Type.check_type(@timeout_next_step, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LkRpYWxvZ1N0YXRlUHJvcGVydHkifV19fQ==")), "timeoutNextStep") unless @timeout_next_step.nil?
  @timeout_response = timeout_response.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::ResponseSpecificationProperty.new(**timeout_response.transform_keys(&:to_sym)) : timeout_response
  Jsii::Type.check_type(@timeout_response, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlJlc3BvbnNlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "timeoutResponse") unless @timeout_response.nil?
end

Instance Attribute Details

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

A list of conditional branches to evaluate after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed .



4299
4300
4301
# File 'lex/cfn_bot.rb', line 4299

def failure_conditional
  @failure_conditional
end

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

Specifies the next step the bot runs after the dialog code hook throws an exception or returns with the State field of the Intent object set to Failed .



4304
4305
4306
# File 'lex/cfn_bot.rb', line 4304

def failure_next_step
  @failure_next_step
end

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

Specifies a list of message groups that Amazon Lex uses to respond the user input when the code hook fails.



4309
4310
4311
# File 'lex/cfn_bot.rb', line 4309

def failure_response
  @failure_response
end

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

A list of conditional branches to evaluate after the dialog code hook finishes successfully.



4314
4315
4316
# File 'lex/cfn_bot.rb', line 4314

def success_conditional
  @success_conditional
end

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

Specifics the next step the bot runs after the dialog code hook finishes successfully.



4319
4320
4321
# File 'lex/cfn_bot.rb', line 4319

def success_next_step
  @success_next_step
end

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

Specifies a list of message groups that Amazon Lex uses to respond when the code hook succeeds.



4324
4325
4326
# File 'lex/cfn_bot.rb', line 4324

def success_response
  @success_response
end

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

A list of conditional branches to evaluate if the code hook times out.



4329
4330
4331
# File 'lex/cfn_bot.rb', line 4329

def timeout_conditional
  @timeout_conditional
end

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

Specifies the next step that the bot runs when the code hook times out.



4334
4335
4336
# File 'lex/cfn_bot.rb', line 4334

def timeout_next_step
  @timeout_next_step
end

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

Specifies a list of message groups that Amazon Lex uses to respond to the user input when the code hook times out.



4339
4340
4341
# File 'lex/cfn_bot.rb', line 4339

def timeout_response
  @timeout_response
end

Class Method Details

.jsii_propertiesObject



4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
# File 'lex/cfn_bot.rb', line 4341

def self.jsii_properties
  {
    :failure_conditional => "failureConditional",
    :failure_next_step => "failureNextStep",
    :failure_response => "failureResponse",
    :success_conditional => "successConditional",
    :success_next_step => "successNextStep",
    :success_response => "successResponse",
    :timeout_conditional => "timeoutConditional",
    :timeout_next_step => "timeoutNextStep",
    :timeout_response => "timeoutResponse",
  }
end

Instance Method Details

#to_jsiiObject



4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
# File 'lex/cfn_bot.rb', line 4355

def to_jsii
  result = {}
  result.merge!({
    "failureConditional" => @failure_conditional,
    "failureNextStep" => @failure_next_step,
    "failureResponse" => @failure_response,
    "successConditional" => @success_conditional,
    "successNextStep" => @success_next_step,
    "successResponse" => @success_response,
    "timeoutConditional" => @timeout_conditional,
    "timeoutNextStep" => @timeout_next_step,
    "timeoutResponse" => @timeout_response,
  })
  result.compact
end