com.pulumi.aws.connect.kotlin.LambdaFunctionAssociationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.connect.kotlin
import com.pulumi.aws.connect.LambdaFunctionAssociationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides an Amazon Connect Lambda Function Association. For more information see
* [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html) and [Invoke AWS Lambda functions](https://docs.aws.amazon.com/connect/latest/adminguide/connect-lambda-functions.html).
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.connect.LambdaFunctionAssociation("example", {
* functionArn: exampleAwsLambdaFunction.arn,
* instanceId: exampleAwsConnectInstance.id,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.connect.LambdaFunctionAssociation("example",
* function_arn=example_aws_lambda_function["arn"],
* instance_id=example_aws_connect_instance["id"])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Connect.LambdaFunctionAssociation("example", new()
* {
* FunctionArn = exampleAwsLambdaFunction.Arn,
* InstanceId = exampleAwsConnectInstance.Id,
* });
* });
* ```
* ```go
* 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.NewLambdaFunctionAssociation(ctx, "example", &connect.LambdaFunctionAssociationArgs{
* FunctionArn: pulumi.Any(exampleAwsLambdaFunction.Arn),
* InstanceId: pulumi.Any(exampleAwsConnectInstance.Id),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.connect.LambdaFunctionAssociation;
* import com.pulumi.aws.connect.LambdaFunctionAssociationArgs;
* 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) {
* var example = new LambdaFunctionAssociation("example", LambdaFunctionAssociationArgs.builder()
* .functionArn(exampleAwsLambdaFunction.arn())
* .instanceId(exampleAwsConnectInstance.id())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:connect:LambdaFunctionAssociation
* properties:
* functionArn: ${exampleAwsLambdaFunction.arn}
* instanceId: ${exampleAwsConnectInstance.id}
* ```
*
* ## Import
* Using `pulumi import`, import `aws_connect_lambda_function_association` using the `instance_id` and `function_arn` separated by a comma (`,`). For example:
* ```sh
* $ pulumi import aws:connect/lambdaFunctionAssociation:LambdaFunctionAssociation example aaaaaaaa-bbbb-cccc-dddd-111111111111,arn:aws:lambda:us-west-2:123456789123:function:example
* ```
* @property functionArn Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.
* @property instanceId The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
*/
public data class LambdaFunctionAssociationArgs(
public val functionArn: Output? = null,
public val instanceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.connect.LambdaFunctionAssociationArgs =
com.pulumi.aws.connect.LambdaFunctionAssociationArgs.builder()
.functionArn(functionArn?.applyValue({ args0 -> args0 }))
.instanceId(instanceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LambdaFunctionAssociationArgs].
*/
@PulumiTagMarker
public class LambdaFunctionAssociationArgsBuilder internal constructor() {
private var functionArn: Output? = null
private var instanceId: Output? = null
/**
* @param value Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.
*/
@JvmName("grfahfkctqvaltjb")
public suspend fun functionArn(`value`: Output) {
this.functionArn = value
}
/**
* @param value The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
*/
@JvmName("nxjptephwevwadbh")
public suspend fun instanceId(`value`: Output) {
this.instanceId = value
}
/**
* @param value Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.
*/
@JvmName("bvqgrgnqasuipmkg")
public suspend fun functionArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.functionArn = mapped
}
/**
* @param value The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
*/
@JvmName("orijbcergwknyuso")
public suspend fun instanceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.instanceId = mapped
}
internal fun build(): LambdaFunctionAssociationArgs = LambdaFunctionAssociationArgs(
functionArn = functionArn,
instanceId = instanceId,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy