AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.connect.getLambdaFunctionAssociation
Explore with Pulumi AI
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:
- Function
Arn string - ARN of the Lambda Function, omitting any version or alias qualifier.
- Instance
Id string - Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- Function
Arn string - ARN of the Lambda Function, omitting any version or alias qualifier.
- Instance
Id string - Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- function
Arn String - ARN of the Lambda Function, omitting any version or alias qualifier.
- instance
Id String - Identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
- function
Arn string - ARN of the Lambda Function, omitting any version or alias qualifier.
- instance
Id 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.
- function
Arn String - ARN of the Lambda Function, omitting any version or alias qualifier.
- instance
Id 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:
- Function
Arn string - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string
- Function
Arn string - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string
- function
Arn String - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String
- function
Arn string - id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string
- function_
arn str - id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str
- function
Arn String - id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.