Class: AWSCDK::Lex::CfnBot::LambdaCodeHookProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBot::LambdaCodeHookProperty
- 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
-
#code_hook_interface_version ⇒ String
readonly
The version of the request-response that you want Amazon Lex to use to invoke your Lambda function.
-
#lambda_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the Lambda function.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code_hook_interface_version:, lambda_arn:) ⇒ LambdaCodeHookProperty
constructor
A new instance of LambdaCodeHookProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code_hook_interface_version:, lambda_arn:) ⇒ LambdaCodeHookProperty
Returns a new instance of LambdaCodeHookProperty.
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_version ⇒ String (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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |