Class: AWSCDK::Lex::CfnBot::DialogCodeHookInvocationSettingProperty

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 at a step of the conversation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable_code_hook_invocation:, is_active:, post_code_hook_specification:, invocation_label: nil) ⇒ DialogCodeHookInvocationSettingProperty

Returns a new instance of DialogCodeHookInvocationSettingProperty.

Parameters:



2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
# File 'lex/cfn_bot.rb', line 2377

def initialize(enable_code_hook_invocation:, is_active:, post_code_hook_specification:, 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")
  @is_active = is_active
  Jsii::Type.check_type(@is_active, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isActive")
  @post_code_hook_specification = post_code_hook_specification.is_a?(Hash) ? ::AWSCDK::Lex::CfnBot::PostDialogCodeHookInvocationSpecificationProperty.new(**post_code_hook_specification.transform_keys(&:to_sym)) : post_code_hook_specification
  Jsii::Type.check_type(@post_code_hook_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sZXguQ2ZuQm90LlBvc3REaWFsb2dDb2RlSG9va0ludm9jYXRpb25TcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "postCodeHookSpecification")
  @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.



2392
2393
2394
# File 'lex/cfn_bot.rb', line 2392

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.



2407
2408
2409
# File 'lex/cfn_bot.rb', line 2407

def invocation_label
  @invocation_label
end

#is_activeBoolean, AWSCDK::IResolvable (readonly)

Determines whether a dialog code hook is used when the intent is activated.



2397
2398
2399
# File 'lex/cfn_bot.rb', line 2397

def is_active
  @is_active
end

#post_code_hook_specificationAWSCDK::IResolvable, AWSCDK::Lex::CfnBot::PostDialogCodeHookInvocationSpecificationProperty (readonly)

Contains the responses and actions that Amazon Lex takes after the Lambda function is complete.



2402
2403
2404
# File 'lex/cfn_bot.rb', line 2402

def post_code_hook_specification
  @post_code_hook_specification
end

Class Method Details

.jsii_propertiesObject



2409
2410
2411
2412
2413
2414
2415
2416
# File 'lex/cfn_bot.rb', line 2409

def self.jsii_properties
  {
    :enable_code_hook_invocation => "enableCodeHookInvocation",
    :is_active => "isActive",
    :post_code_hook_specification => "postCodeHookSpecification",
    :invocation_label => "invocationLabel",
  }
end

Instance Method Details

#to_jsiiObject



2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
# File 'lex/cfn_bot.rb', line 2418

def to_jsii
  result = {}
  result.merge!({
    "enableCodeHookInvocation" => @enable_code_hook_invocation,
    "isActive" => @is_active,
    "postCodeHookSpecification" => @post_code_hook_specification,
    "invocationLabel" => @invocation_label,
  })
  result.compact
end