lambda_functions
Creates, updates, deletes, gets or lists a lambda_functions resource.
Overview
| Name | lambda_functions |
| Type | Resource |
| Id | aws.connect.lambda_functions |
Fields
The following fields are returned by SELECT queries:
- list_lambda_functions
| Name | Datatype | Description |
|---|---|---|
lambda_function | string | The Lambdafunction ARNs associated with the specified instance. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_lambda_functions | select | instance_id, region | nextToken, maxResults | This API is in preview release for Connect Customer and is subject to change. Returns a paginated list of all Lambda functions that display in the dropdown options in the relevant flow blocks. |
associate_lambda_function | update | instance_id, region, FunctionArn | This API is in preview release for Connect Customer and is subject to change. Allows the specified Connect Customer instance to access the specified Lambda function. | |
disassociate_lambda_function | update | instance_id, region | functionArn, clientToken | This API is in preview release for Connect Customer and is subject to change. Remove the Lambda function from the dropdown options available in the relevant flow blocks. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
instance_id | string | The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.. |
region | string | AWS region (default: us-east-1) |
clientToken | string | A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs. |
functionArn | string | The Amazon Resource Name (ARN) of the Lambda function being disassociated. |
maxResults | integer | The maximum number of results to return per page. |
nextToken | string | The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. |
SELECT examples
- list_lambda_functions
This API is in preview release for Connect Customer and is subject to change. Returns a paginated list of all Lambda functions that display in the dropdown options in the relevant flow blocks.
SELECT
lambda_function
FROM aws.connect.lambda_functions
WHERE instance_id = '{{ instance_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;
UPDATE examples
- associate_lambda_function
- disassociate_lambda_function
This API is in preview release for Connect Customer and is subject to change. Allows the specified Connect Customer instance to access the specified Lambda function.
UPDATE aws.connect.lambda_functions
SET
FunctionArn = '{{ FunctionArn }}',
ClientToken = '{{ ClientToken }}'
WHERE
instance_id = '{{ instance_id }}' --required
AND region = '{{ region }}' --required
AND FunctionArn = '{{ FunctionArn }}' --required;
This API is in preview release for Connect Customer and is subject to change. Remove the Lambda function from the dropdown options available in the relevant flow blocks.
UPDATE aws.connect.lambda_functions
SET
-- No updatable properties
WHERE
instance_id = '{{ instance_id }}' --required
AND region = '{{ region }}' --required
AND functionArn = '{{ functionArn}}'
AND clientToken = '{{ clientToken}}';