com.pulumi.aws.lambda.kotlin.FunctionRecursionConfigArgs.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.lambda.kotlin
import com.pulumi.aws.lambda.FunctionRecursionConfigArgs.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
/**
* Resource for managing an AWS Lambda Function Recursion Config.
* > Destruction of this resource will return the `recursive_loop` configuration back to the default value of `Terminate`.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.lambda.FunctionRecursionConfig("example", {
* functionName: "SomeFunction",
* recursiveLoop: "Allow",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.lambda_.FunctionRecursionConfig("example",
* function_name="SomeFunction",
* recursive_loop="Allow")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Lambda.FunctionRecursionConfig("example", new()
* {
* FunctionName = "SomeFunction",
* RecursiveLoop = "Allow",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/lambda"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := lambda.NewFunctionRecursionConfig(ctx, "example", &lambda.FunctionRecursionConfigArgs{
* FunctionName: pulumi.String("SomeFunction"),
* RecursiveLoop: pulumi.String("Allow"),
* })
* 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.lambda.FunctionRecursionConfig;
* import com.pulumi.aws.lambda.FunctionRecursionConfigArgs;
* 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 FunctionRecursionConfig("example", FunctionRecursionConfigArgs.builder()
* .functionName("SomeFunction")
* .recursiveLoop("Allow")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:lambda:FunctionRecursionConfig
* properties:
* functionName: SomeFunction
* recursiveLoop: Allow
* ```
*
* ## Import
* Using `pulumi import`, import AWS Lambda Function Recursion Config using the `function_name`. For example:
* ```sh
* $ pulumi import aws:lambda/functionRecursionConfig:FunctionRecursionConfig example SomeFunction
* ```
* @property functionName Lambda function name.
* @property recursiveLoop Lambda function recursion configuration. Valid values are `Allow` or `Terminate`.
*/
public data class FunctionRecursionConfigArgs(
public val functionName: Output? = null,
public val recursiveLoop: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lambda.FunctionRecursionConfigArgs =
com.pulumi.aws.lambda.FunctionRecursionConfigArgs.builder()
.functionName(functionName?.applyValue({ args0 -> args0 }))
.recursiveLoop(recursiveLoop?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FunctionRecursionConfigArgs].
*/
@PulumiTagMarker
public class FunctionRecursionConfigArgsBuilder internal constructor() {
private var functionName: Output? = null
private var recursiveLoop: Output? = null
/**
* @param value Lambda function name.
*/
@JvmName("hepnsmtrjgxnyjkc")
public suspend fun functionName(`value`: Output) {
this.functionName = value
}
/**
* @param value Lambda function recursion configuration. Valid values are `Allow` or `Terminate`.
*/
@JvmName("publnefkuaybnbmf")
public suspend fun recursiveLoop(`value`: Output) {
this.recursiveLoop = value
}
/**
* @param value Lambda function name.
*/
@JvmName("ceubxyljuhttdrpc")
public suspend fun functionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.functionName = mapped
}
/**
* @param value Lambda function recursion configuration. Valid values are `Allow` or `Terminate`.
*/
@JvmName("lbhdlshugybsbutv")
public suspend fun recursiveLoop(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.recursiveLoop = mapped
}
internal fun build(): FunctionRecursionConfigArgs = FunctionRecursionConfigArgs(
functionName = functionName,
recursiveLoop = recursiveLoop,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy