1. Packages
  2. AWS
  3. API Docs
  4. connect
  5. getLambdaFunctionAssociation
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.connect.getLambdaFunctionAssociation

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides details about a specific Connect Lambda Function Association.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.connect.getLambdaFunctionAssociation({
        functionArn: "arn:aws:lambda:us-west-2:123456789123:function:abcdefg",
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.connect.get_lambda_function_association(function_arn="arn:aws:lambda:us-west-2:123456789123:function:abcdefg",
        instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := connect.LookupLambdaFunctionAssociation(ctx, &connect.LookupLambdaFunctionAssociationArgs{
    			FunctionArn: "arn:aws:lambda:us-west-2:123456789123:function:abcdefg",
    			InstanceId:  "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Connect.GetLambdaFunctionAssociation.Invoke(new()
        {
            FunctionArn = "arn:aws:lambda:us-west-2:123456789123:function:abcdefg",
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.connect.ConnectFunctions;
    import com.pulumi.aws.connect.inputs.GetLambdaFunctionAssociationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = ConnectFunctions.getLambdaFunctionAssociation(GetLambdaFunctionAssociationArgs.builder()
                .functionArn("arn:aws:lambda:us-west-2:123456789123:function:abcdefg")
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:connect:getLambdaFunctionAssociation
          Arguments:
            functionArn: arn:aws:lambda:us-west-2:123456789123:function:abcdefg
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
    

    Using getLambdaFunctionAssociation

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLambdaFunctionAssociation(args: GetLambdaFunctionAssociationArgs, opts?: InvokeOptions): Promise<GetLambdaFunctionAssociationResult>
    function getLambdaFunctionAssociationOutput(args: GetLambdaFunctionAssociationOutputArgs, opts?: InvokeOptions): Output<GetLambdaFunctionAssociationResult>
    def get_lambda_function_association(function_arn: Optional[str] = None,
                                        instance_id: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetLambdaFunctionAssociationResult
    def get_lambda_function_association_output(function_arn: Optional[pulumi.Input[str]] = None,
                                        instance_id: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetLambdaFunctionAssociationResult]
    func LookupLambdaFunctionAssociation(ctx *Context, args *LookupLambdaFunctionAssociationArgs, opts ...InvokeOption) (*LookupLambdaFunctionAssociationResult, error)
    func LookupLambdaFunctionAssociationOutput(ctx *Context, args *LookupLambdaFunctionAssociationOutputArgs, opts ...InvokeOption) LookupLambdaFunctionAssociationResultOutput

    > Note: This function is named LookupLambdaFunctionAssociation in the Go SDK.

    public static class GetLambdaFunctionAssociation 
    {
        public static Task<GetLambdaFunctionAssociationResult> InvokeAsync(GetLambdaFunctionAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetLambdaFunctionAssociationResult> Invoke(GetLambdaFunctionAssociationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLambdaFunctionAssociationResult> getLambdaFunctionAssociation(GetLambdaFunctionAssociationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:connect/getLambdaFunctionAssociation:getLambdaFunctionAssociation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FunctionArn string
    ARN of the Lambda Function, omitting any version or alias qualifier.
    InstanceId string
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    FunctionArn string
    ARN of the Lambda Function, omitting any version or alias qualifier.
    InstanceId string
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    functionArn String
    ARN of the Lambda Function, omitting any version or alias qualifier.
    instanceId String
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    functionArn string
    ARN of the Lambda Function, omitting any version or alias qualifier.
    instanceId string
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    function_arn str
    ARN of the Lambda Function, omitting any version or alias qualifier.
    instance_id str
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
    functionArn String
    ARN of the Lambda Function, omitting any version or alias qualifier.
    instanceId String
    Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

    getLambdaFunctionAssociation Result

    The following output properties are available:

    FunctionArn string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    FunctionArn string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    functionArn String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    functionArn string
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    function_arn str
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    functionArn String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi