AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.6.0 published on Friday, May 27, 2022 by Pulumi

getLambdaFunctionAssociation

Provides details about a specific Connect Lambda Function Association.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Connect.GetLambdaFunctionAssociation.InvokeAsync(new Aws.Connect.GetLambdaFunctionAssociationArgs
        {
            FunctionArn = "arn:aws:lambda:us-west-2:123456789123:function:abcdefg",
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(ConnectFunctions.getLambdaFunctionAssociation(GetLambdaFunctionAssociationArgs.builder()
            .functionArn("arn:aws:lambda:us-west-2:123456789123:function:abcdefg")
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .build()));

    }
}
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")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.connect.getLambdaFunctionAssociation({
    functionArn: "arn:aws:lambda:us-west-2:123456789123:function:abcdefg",
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
}));
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

Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.

InstanceId string

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

FunctionArn string

Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.

InstanceId string

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

functionArn String

Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.

instanceId String

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

functionArn string

Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.

instanceId string

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

function_arn str

Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.

instance_id str

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

functionArn String

Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.

instanceId String

The 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
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.