AWS connect documentation change
Summary
Updated Lambda function block documentation with expanded configuration options, including synchronous/asynchronous execution modes, response validation types, timeout limits, and Load Lambda Result action for async operations
Security assessment
Changes focus on operational configuration improvements rather than addressing security vulnerabilities. The added response validation (STRING_MAP/JSON) and timeout specifications improve reliability but don't explicitly mitigate security risks. No mention of authentication, access control, or vulnerability fixes.
Diff
diff --git a/connect/latest/adminguide/invoke-lambda-function-block.md b/connect/latest/adminguide/invoke-lambda-function-block.md index 4fb61aaa1..974520175 100644 --- a//connect/latest/adminguide/invoke-lambda-function-block.md +++ b//connect/latest/adminguide/invoke-lambda-function-block.md @@ -7 +7 @@ DescriptionSupported channelsFlow typesPropertiesConfiguration tipsConfigured bl -# Flow block in Amazon Connect: Invoke an AWS Lambda function +# Flow block in Amazon Connect: AWS Lambda function @@ -9 +9 @@ DescriptionSupported channelsFlow typesPropertiesConfiguration tipsConfigured bl -This topic defines the flow block for calling AWS Lambda to return key-value pairs that you can use to set contact attributes. +This topic defines the flow block for calling AWS Lambda. The fetched response can be used in the [Set contact attributes](./set-contact-attributes.html) block. @@ -13 +13 @@ This topic defines the flow block for calling AWS Lambda to return key-value pai - * Calls AWS Lambda, and optionally returns key-value pairs. + * Calls AWS Lambda. @@ -15 +15 @@ This topic defines the flow block for calling AWS Lambda to return key-value pai - * The returned key-value pairs can be used to set contact attributes. + * The returned data can be used to set contact attributes in the [Set contact attributes](./set-contact-attributes.html) block. @@ -60 +60 @@ The following image shows the **Properties** page of the **AWS Lambda function** - + @@ -62 +62 @@ The following image shows the **Properties** page of the **AWS Lambda function** -Note the following properties: +In the **Select an action** box, choose from the following options: @@ -64 +64,22 @@ Note the following properties: - * **Timeout** : Enter how long to wait for Lambda to time out. + * Invoke Lambda + + * Load Lambda result (if run asynchronously) + + + + +### Invoke Lambda + + + +When **Select an action** is set to **Invoke Lambda** , note the following properties: + + * **Execution mode** : + + * **Synchronous** : When Synchronous is selected, the contact is routed to the next block only after the Lambda invocation completes. + + * **Asynchronous** : The contact is routed to the next block without waiting for the Lambda to complete. + +You can configure [Wait](./wait.html) block to wait for a Lambda that is invoked using the asynchronous execution mode. + + * **Timeout** : Enter how long to wait for Lambda to time out. You can enter maximum of 8 seconds for **Synchronous mode** and 60 seconds for **Asynchronous mode**. @@ -68 +89,27 @@ If your Lambda invocation gets throttled, the request is retried. It is also ret -When a synchronous invocation returns an error, Amazon Connect retries up to three times, for a maximum of 8 seconds. At that point, the contact is routed down the **Error** branch. +When a Lambda invocation returns an error, Amazon Connect retries up to three times, for maximum until timeout specified. At that point, the contact is routed down the **Error** branch. + + * **Response validation** : The Lambda function response may be either a STRING_MAP or JSON. You must set it when you configure the **AWS Lambda function** block in the flow. + + * When the response validation is set to STRING_MAP, the Lambda function returns a flat object of key/value pairs of the string type. + + * When the response validation is set to JSON, the Lambda function returns any valid JSON including nested JSON. + + + + +### Load Lambda Result + + + +When **Select an action** is set to **Load Lambda Result** , note the following properties: + + * **Lambda Invocation RequestId** : This is the requestId of the Lambda when it is run in **Asynchronous mode**. + +`$.LambdaInvocation.InvocationId` contains the requestId of the most recent asynchronously run Lambda. + + + + +When you choose the **Load Lambda Result** action, choose the following options under **Lambda Invocation RequestId** : + + * **Namespace** = **Lambda Invocation** @@ -70 +117 @@ When a synchronous invocation returns an error, Amazon Connect retries up to thr - * **Response validation** : The Lambda function response could be either a STRING_MAP or JSON and has to be set while configuring the **Invoke AWS Lambda function** block in the flow. If response validation is set to STRING_MAP, then the lambda function should return a flat object of key/value pairs of the string type. Otherwise, if response validation is set to JSON, the lambda function can return any valid JSON including nested JSON. + * **Key** = **Invocation ID** @@ -77 +124 @@ When a synchronous invocation returns an error, Amazon Connect retries up to thr - * To use an AWS Lambda function in a flow, first add the function to your instance. For more information, see [Add a Lambda function to your Amazon Connect instance](./connect-lambda-functions.html#add-lambda-function), + * To use an AWS Lambda function in a flow, first add the function to your instance. For more information, see [Add a Lambda function to your Amazon Connect instance](./connect-lambda-functions.html#add-lambda-function). @@ -86 +133 @@ When a synchronous invocation returns an error, Amazon Connect retries up to thr -The following image shows an example of what this block looks like when it is configured. It has two branches: **Success** and **Error**. +The following image shows an example of what this block looks like when it is configured. It has two branches: **Success** and **Error**. It is configured for **Asynchronous** execution mode. When it's configured for **Synchronous** execution mode, it has a **Timeout** branch. @@ -88 +135 @@ The following image shows an example of what this block looks like when it is co - +