Skip to content

Resource: awsConnectLambdaFunctionAssociation

Provides an Amazon Connect Lambda Function Association. For more information see Amazon Connect: Getting Started and Invoke AWS Lambda functions.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.connectLambdaFunctionAssociation.ConnectLambdaFunctionAssociation(
  this,
  "example",
  {
    functionArn: "${aws_lambda_function.example.arn}",
    instanceId: "${aws_connect_instance.example.id}",
  }
);

Argument Reference

The following arguments are supported:

  • functionArn - (Required) Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.
  • instanceId - (Required) The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - The Amazon Connect instance ID and Lambda Function ARN separated by a comma (,).

Import

awsConnectLambdaFunctionAssociation can be imported using the instanceId and functionArn separated by a comma (,) e.g.,

$ terraform import aws_connect_lambda_function_association.example aaaaaaaa-bbbb-cccc-dddd-111111111111,arn:aws:lambda:us-west-2:123456789123:function:example