Class: AWSCDK::Lex::CfnBot::ElicitationCodeHookInvocationSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable_code_hook_invocation:, invocation_label: nil) ⇒ ElicitationCodeHookInvocationSettingProperty

Returns a new instance of ElicitationCodeHookInvocationSettingProperty.

Parameters:

  • enable_code_hook_invocation (Boolean, AWSCDK::IResolvable)

    Indicates whether a Lambda function should be invoked for the dialog.

  • invocation_label (String, nil) (defaults to: nil)

    A label that indicates the dialog step from which the dialog code hook is happening.



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_invocationBoolean, 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_labelString? (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_propertiesObject



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_jsiiObject



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