Class: AWSCDK::Lex::CfnBot::ElicitationCodeHookInvocationSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::ElicitationCodeHookInvocationSettingProperty
- Defined in:
- lex/cfn_bot.rb
Overview
Settings that specify the dialog code hook that is called by Amazon Lex between eliciting slot values.
Instance Attribute Summary collapse
-
#enable_code_hook_invocation ⇒ Boolean, AWSCDK::IResolvable
readonly
Indicates whether a Lambda function should be invoked for the dialog.
-
#invocation_label ⇒ String?
readonly
A label that indicates the dialog step from which the dialog code hook is happening.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enable_code_hook_invocation:, invocation_label: nil) ⇒ ElicitationCodeHookInvocationSettingProperty
constructor
A new instance of ElicitationCodeHookInvocationSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enable_code_hook_invocation:, invocation_label: nil) ⇒ ElicitationCodeHookInvocationSettingProperty
Returns a new instance of ElicitationCodeHookInvocationSettingProperty.
2526 2527 2528 2529 2530 2531 |
# File 'lex/cfn_bot.rb', line 2526 def initialize(enable_code_hook_invocation:, invocation_label: nil) @enable_code_hook_invocation = enable_code_hook_invocation Jsii::Type.check_type(@enable_code_hook_invocation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableCodeHookInvocation") @invocation_label = invocation_label Jsii::Type.check_type(@invocation_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invocationLabel") unless @invocation_label.nil? end |
Instance Attribute Details
#enable_code_hook_invocation ⇒ Boolean, AWSCDK::IResolvable (readonly)
Indicates whether a Lambda function should be invoked for the dialog.
2537 2538 2539 |
# File 'lex/cfn_bot.rb', line 2537 def enable_code_hook_invocation @enable_code_hook_invocation end |
#invocation_label ⇒ String? (readonly)
A label that indicates the dialog step from which the dialog code hook is happening.
2542 2543 2544 |
# File 'lex/cfn_bot.rb', line 2542 def invocation_label @invocation_label end |
Class Method Details
.jsii_properties ⇒ Object
2544 2545 2546 2547 2548 2549 |
# File 'lex/cfn_bot.rb', line 2544 def self.jsii_properties { :enable_code_hook_invocation => "enableCodeHookInvocation", :invocation_label => "invocationLabel", } end |
Instance Method Details
#to_jsii ⇒ Object
2551 2552 2553 2554 2555 2556 2557 2558 |
# File 'lex/cfn_bot.rb', line 2551 def to_jsii result = {} result.merge!({ "enableCodeHookInvocation" => @enable_code_hook_invocation, "invocationLabel" => @invocation_label, }) result.compact end |