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

aws.lambda.FunctionRecursionConfig

Explore with Pulumi AI

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

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.lambda.FunctionRecursionConfig("example", {
        functionName: "SomeFunction",
        recursiveLoop: "Allow",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.lambda_.FunctionRecursionConfig("example",
        function_name="SomeFunction",
        recursive_loop="Allow")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      example:
        type: aws:lambda:FunctionRecursionConfig
        properties:
          functionName: SomeFunction
          recursiveLoop: Allow
    

    Create FunctionRecursionConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FunctionRecursionConfig(name: string, args: FunctionRecursionConfigArgs, opts?: CustomResourceOptions);
    @overload
    def FunctionRecursionConfig(resource_name: str,
                                args: FunctionRecursionConfigArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def FunctionRecursionConfig(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                function_name: Optional[str] = None,
                                recursive_loop: Optional[str] = None)
    func NewFunctionRecursionConfig(ctx *Context, name string, args FunctionRecursionConfigArgs, opts ...ResourceOption) (*FunctionRecursionConfig, error)
    public FunctionRecursionConfig(string name, FunctionRecursionConfigArgs args, CustomResourceOptions? opts = null)
    public FunctionRecursionConfig(String name, FunctionRecursionConfigArgs args)
    public FunctionRecursionConfig(String name, FunctionRecursionConfigArgs args, CustomResourceOptions options)
    
    type: aws:lambda:FunctionRecursionConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FunctionRecursionConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FunctionRecursionConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FunctionRecursionConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FunctionRecursionConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FunctionRecursionConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var functionRecursionConfigResource = new Aws.Lambda.FunctionRecursionConfig("functionRecursionConfigResource", new()
    {
        FunctionName = "string",
        RecursiveLoop = "string",
    });
    
    example, err := lambda.NewFunctionRecursionConfig(ctx, "functionRecursionConfigResource", &lambda.FunctionRecursionConfigArgs{
    	FunctionName:  pulumi.String("string"),
    	RecursiveLoop: pulumi.String("string"),
    })
    
    var functionRecursionConfigResource = new FunctionRecursionConfig("functionRecursionConfigResource", FunctionRecursionConfigArgs.builder()
        .functionName("string")
        .recursiveLoop("string")
        .build());
    
    function_recursion_config_resource = aws.lambda_.FunctionRecursionConfig("functionRecursionConfigResource",
        function_name="string",
        recursive_loop="string")
    
    const functionRecursionConfigResource = new aws.lambda.FunctionRecursionConfig("functionRecursionConfigResource", {
        functionName: "string",
        recursiveLoop: "string",
    });
    
    type: aws:lambda:FunctionRecursionConfig
    properties:
        functionName: string
        recursiveLoop: string
    

    FunctionRecursionConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FunctionRecursionConfig resource accepts the following input properties:

    FunctionName string
    Lambda function name.
    RecursiveLoop string
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    FunctionName string
    Lambda function name.
    RecursiveLoop string
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    functionName String
    Lambda function name.
    recursiveLoop String
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    functionName string
    Lambda function name.
    recursiveLoop string
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    function_name str
    Lambda function name.
    recursive_loop str
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    functionName String
    Lambda function name.
    recursiveLoop String
    Lambda function recursion configuration. Valid values are Allow or Terminate.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FunctionRecursionConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FunctionRecursionConfig Resource

    Get an existing FunctionRecursionConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FunctionRecursionConfigState, opts?: CustomResourceOptions): FunctionRecursionConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            function_name: Optional[str] = None,
            recursive_loop: Optional[str] = None) -> FunctionRecursionConfig
    func GetFunctionRecursionConfig(ctx *Context, name string, id IDInput, state *FunctionRecursionConfigState, opts ...ResourceOption) (*FunctionRecursionConfig, error)
    public static FunctionRecursionConfig Get(string name, Input<string> id, FunctionRecursionConfigState? state, CustomResourceOptions? opts = null)
    public static FunctionRecursionConfig get(String name, Output<String> id, FunctionRecursionConfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    FunctionName string
    Lambda function name.
    RecursiveLoop string
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    FunctionName string
    Lambda function name.
    RecursiveLoop string
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    functionName String
    Lambda function name.
    recursiveLoop String
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    functionName string
    Lambda function name.
    recursiveLoop string
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    function_name str
    Lambda function name.
    recursive_loop str
    Lambda function recursion configuration. Valid values are Allow or Terminate.
    functionName String
    Lambda function name.
    recursiveLoop String
    Lambda function recursion configuration. Valid values are Allow or Terminate.

    Import

    Using pulumi import, import AWS Lambda Function Recursion Config using the function_name. For example:

    $ pulumi import aws:lambda/functionRecursionConfig:FunctionRecursionConfig example SomeFunction
    

    To learn more about importing existing cloud resources, see Importing resources.

    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