Class: AWSCDK::Lex::CfnBot::LambdaCodeHookProperty

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

Overview

Specifies a Lambda function that verifies requests to a bot or fulfills the user's request to a bot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code_hook_interface_version:, lambda_arn:) ⇒ LambdaCodeHookProperty

Returns a new instance of LambdaCodeHookProperty.

Parameters:

  • code_hook_interface_version (String)

    The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.

  • lambda_arn (String)

    The Amazon Resource Name (ARN) of the Lambda function.



3818
3819
3820
3821
3822
3823
# File 'lex/cfn_bot.rb', line 3818

def initialize(code_hook_interface_version:, lambda_arn:)
  @code_hook_interface_version = code_hook_interface_version
  Jsii::Type.check_type(@code_hook_interface_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codeHookInterfaceVersion")
  @lambda_arn = lambda_arn
  Jsii::Type.check_type(@lambda_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lambdaArn")
end

Instance Attribute Details

#code_hook_interface_versionString (readonly)

The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.



3829
3830
3831
# File 'lex/cfn_bot.rb', line 3829

def code_hook_interface_version
  @code_hook_interface_version
end

#lambda_arnString (readonly)

The Amazon Resource Name (ARN) of the Lambda function.



3834
3835
3836
# File 'lex/cfn_bot.rb', line 3834

def lambda_arn
  @lambda_arn
end

Class Method Details

.jsii_propertiesObject



3836
3837
3838
3839
3840
3841
# File 'lex/cfn_bot.rb', line 3836

def self.jsii_properties
  {
    :code_hook_interface_version => "codeHookInterfaceVersion",
    :lambda_arn => "lambdaArn",
  }
end

Instance Method Details

#to_jsiiObject



3843
3844
3845
3846
3847
3848
3849
3850
# File 'lex/cfn_bot.rb', line 3843

def to_jsii
  result = {}
  result.merge!({
    "codeHookInterfaceVersion" => @code_hook_interface_version,
    "lambdaArn" => @lambda_arn,
  })
  result.compact
end