Class: AWSCDK::Lex::CfnBotAlias::LambdaCodeHookProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBotAlias::LambdaCodeHookProperty
- Defined in:
- lex/cfn_bot_alias.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.
923 924 925 926 927 928 |
# File 'lex/cfn_bot_alias.rb', line 923 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.
934 935 936 |
# File 'lex/cfn_bot_alias.rb', line 934 def code_hook_interface_version @code_hook_interface_version end |
#lambda_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the Lambda function.
939 940 941 |
# File 'lex/cfn_bot_alias.rb', line 939 def lambda_arn @lambda_arn end |
Class Method Details
.jsii_properties ⇒ Object
941 942 943 944 945 946 |
# File 'lex/cfn_bot_alias.rb', line 941 def self.jsii_properties { :code_hook_interface_version => "codeHookInterfaceVersion", :lambda_arn => "lambdaArn", } end |
Instance Method Details
#to_jsii ⇒ Object
948 949 950 951 952 953 954 955 |
# File 'lex/cfn_bot_alias.rb', line 948 def to_jsii result = {} result.merge!({ "codeHookInterfaceVersion" => @code_hook_interface_version, "lambdaArn" => @lambda_arn, }) result.compact end |