FunctionEventInvokeConfig

Manages an asynchronous invocation configuration for a Lambda Function or Alias. More information about asynchronous invocations and the configurable values can be found in the Lambda Developer Guide.

Example Usage

Destination Configuration

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new()
    {
        FunctionName = aws_lambda_alias.Example.Function_name,
        DestinationConfig = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigArgs
        {
            OnFailure = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigOnFailureArgs
            {
                Destination = aws_sqs_queue.Example.Arn,
            },
            OnSuccess = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs
            {
                Destination = aws_sns_topic.Example.Arn,
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(aws_lambda_alias.Example.Function_name),
			DestinationConfig: &lambda.FunctionEventInvokeConfigDestinationConfigArgs{
				OnFailure: &lambda.FunctionEventInvokeConfigDestinationConfigOnFailureArgs{
					Destination: pulumi.Any(aws_sqs_queue.Example.Arn),
				},
				OnSuccess: &lambda.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs{
					Destination: pulumi.Any(aws_sns_topic.Example.Arn),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.FunctionEventInvokeConfig;
import com.pulumi.aws.lambda.FunctionEventInvokeConfigArgs;
import com.pulumi.aws.lambda.inputs.FunctionEventInvokeConfigDestinationConfigArgs;
import com.pulumi.aws.lambda.inputs.FunctionEventInvokeConfigDestinationConfigOnFailureArgs;
import com.pulumi.aws.lambda.inputs.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs;
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 FunctionEventInvokeConfig("example", FunctionEventInvokeConfigArgs.builder()        
            .functionName(aws_lambda_alias.example().function_name())
            .destinationConfig(FunctionEventInvokeConfigDestinationConfigArgs.builder()
                .onFailure(FunctionEventInvokeConfigDestinationConfigOnFailureArgs.builder()
                    .destination(aws_sqs_queue.example().arn())
                    .build())
                .onSuccess(FunctionEventInvokeConfigDestinationConfigOnSuccessArgs.builder()
                    .destination(aws_sns_topic.example().arn())
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=aws_lambda_alias["example"]["function_name"],
    destination_config=aws.lambda_.FunctionEventInvokeConfigDestinationConfigArgs(
        on_failure=aws.lambda_.FunctionEventInvokeConfigDestinationConfigOnFailureArgs(
            destination=aws_sqs_queue["example"]["arn"],
        ),
        on_success=aws.lambda_.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs(
            destination=aws_sns_topic["example"]["arn"],
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: aws_lambda_alias.example.function_name,
    destinationConfig: {
        onFailure: {
            destination: aws_sqs_queue.example.arn,
        },
        onSuccess: {
            destination: aws_sns_topic.example.arn,
        },
    },
});
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${aws_lambda_alias.example.function_name}
      destinationConfig:
        onFailure:
          destination: ${aws_sqs_queue.example.arn}
        onSuccess:
          destination: ${aws_sns_topic.example.arn}

Error Handling Configuration

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new()
    {
        FunctionName = aws_lambda_alias.Example.Function_name,
        MaximumEventAgeInSeconds = 60,
        MaximumRetryAttempts = 0,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName:             pulumi.Any(aws_lambda_alias.Example.Function_name),
			MaximumEventAgeInSeconds: pulumi.Int(60),
			MaximumRetryAttempts:     pulumi.Int(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.FunctionEventInvokeConfig;
import com.pulumi.aws.lambda.FunctionEventInvokeConfigArgs;
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 FunctionEventInvokeConfig("example", FunctionEventInvokeConfigArgs.builder()        
            .functionName(aws_lambda_alias.example().function_name())
            .maximumEventAgeInSeconds(60)
            .maximumRetryAttempts(0)
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=aws_lambda_alias["example"]["function_name"],
    maximum_event_age_in_seconds=60,
    maximum_retry_attempts=0)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: aws_lambda_alias.example.function_name,
    maximumEventAgeInSeconds: 60,
    maximumRetryAttempts: 0,
});
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${aws_lambda_alias.example.function_name}
      maximumEventAgeInSeconds: 60
      maximumRetryAttempts: 0

Configuration for Alias Name

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new()
    {
        FunctionName = aws_lambda_alias.Example.Function_name,
        Qualifier = aws_lambda_alias.Example.Name,
    });

    // ... other configuration ...
});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(aws_lambda_alias.Example.Function_name),
			Qualifier:    pulumi.Any(aws_lambda_alias.Example.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.FunctionEventInvokeConfig;
import com.pulumi.aws.lambda.FunctionEventInvokeConfigArgs;
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 FunctionEventInvokeConfig("example", FunctionEventInvokeConfigArgs.builder()        
            .functionName(aws_lambda_alias.example().function_name())
            .qualifier(aws_lambda_alias.example().name())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=aws_lambda_alias["example"]["function_name"],
    qualifier=aws_lambda_alias["example"]["name"])
# ... other configuration ...
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: aws_lambda_alias.example.function_name,
    qualifier: aws_lambda_alias.example.name,
});
// ... other configuration ...
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${aws_lambda_alias.example.function_name}
      qualifier: ${aws_lambda_alias.example.name}

Configuration for Function Latest Unpublished Version

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new()
    {
        FunctionName = aws_lambda_function.Example.Function_name,
        Qualifier = "$LATEST",
    });

    // ... other configuration ...
});
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(aws_lambda_function.Example.Function_name),
			Qualifier:    pulumi.String(fmt.Sprintf("$LATEST")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.FunctionEventInvokeConfig;
import com.pulumi.aws.lambda.FunctionEventInvokeConfigArgs;
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 FunctionEventInvokeConfig("example", FunctionEventInvokeConfigArgs.builder()        
            .functionName(aws_lambda_function.example().function_name())
            .qualifier("$LATEST")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=aws_lambda_function["example"]["function_name"],
    qualifier="$LATEST")
# ... other configuration ...
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: aws_lambda_function.example.function_name,
    qualifier: `$LATEST`,
});
// ... other configuration ...
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${aws_lambda_function.example.function_name}
      qualifier: $LATEST

Configuration for Function Published Version

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new()
    {
        FunctionName = aws_lambda_function.Example.Function_name,
        Qualifier = aws_lambda_function.Example.Version,
    });

    // ... other configuration ...
});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(aws_lambda_function.Example.Function_name),
			Qualifier:    pulumi.Any(aws_lambda_function.Example.Version),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.FunctionEventInvokeConfig;
import com.pulumi.aws.lambda.FunctionEventInvokeConfigArgs;
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 FunctionEventInvokeConfig("example", FunctionEventInvokeConfigArgs.builder()        
            .functionName(aws_lambda_function.example().function_name())
            .qualifier(aws_lambda_function.example().version())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=aws_lambda_function["example"]["function_name"],
    qualifier=aws_lambda_function["example"]["version"])
# ... other configuration ...
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: aws_lambda_function.example.function_name,
    qualifier: aws_lambda_function.example.version,
});
// ... other configuration ...
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${aws_lambda_function.example.function_name}
      qualifier: ${aws_lambda_function.example.version}

Create FunctionEventInvokeConfig Resource

new FunctionEventInvokeConfig(name: string, args: FunctionEventInvokeConfigArgs, opts?: CustomResourceOptions);
@overload
def FunctionEventInvokeConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              destination_config: Optional[_lambda_.FunctionEventInvokeConfigDestinationConfigArgs] = None,
                              function_name: Optional[str] = None,
                              maximum_event_age_in_seconds: Optional[int] = None,
                              maximum_retry_attempts: Optional[int] = None,
                              qualifier: Optional[str] = None)
@overload
def FunctionEventInvokeConfig(resource_name: str,
                              args: FunctionEventInvokeConfigArgs,
                              opts: Optional[ResourceOptions] = None)
func NewFunctionEventInvokeConfig(ctx *Context, name string, args FunctionEventInvokeConfigArgs, opts ...ResourceOption) (*FunctionEventInvokeConfig, error)
public FunctionEventInvokeConfig(string name, FunctionEventInvokeConfigArgs args, CustomResourceOptions? opts = null)
public FunctionEventInvokeConfig(String name, FunctionEventInvokeConfigArgs args)
public FunctionEventInvokeConfig(String name, FunctionEventInvokeConfigArgs args, CustomResourceOptions options)
type: aws:lambda:FunctionEventInvokeConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FunctionEventInvokeConfigArgs
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 FunctionEventInvokeConfigArgs
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 FunctionEventInvokeConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FunctionEventInvokeConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FunctionEventInvokeConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FunctionEventInvokeConfig Resource Properties

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

Inputs

The FunctionEventInvokeConfig resource accepts the following input properties:

FunctionName string

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

DestinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

MaximumEventAgeInSeconds int

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

MaximumRetryAttempts int

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

Qualifier string

Lambda Function published version, $LATEST, or Lambda Alias name.

FunctionName string

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

DestinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

MaximumEventAgeInSeconds int

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

MaximumRetryAttempts int

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

Qualifier string

Lambda Function published version, $LATEST, or Lambda Alias name.

functionName String

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

destinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

maximumEventAgeInSeconds Integer

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximumRetryAttempts Integer

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier String

Lambda Function published version, $LATEST, or Lambda Alias name.

functionName string

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

destinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

maximumEventAgeInSeconds number

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximumRetryAttempts number

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier string

Lambda Function published version, $LATEST, or Lambda Alias name.

function_name str

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

destination_config FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

maximum_event_age_in_seconds int

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximum_retry_attempts int

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier str

Lambda Function published version, $LATEST, or Lambda Alias name.

functionName String

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

destinationConfig Property Map

Configuration block with destination configuration. See below for details.

maximumEventAgeInSeconds Number

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximumRetryAttempts Number

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier String

Lambda Function published version, $LATEST, or Lambda Alias name.

Outputs

All input properties are implicitly available as output properties. Additionally, the FunctionEventInvokeConfig 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 FunctionEventInvokeConfig Resource

Get an existing FunctionEventInvokeConfig 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?: FunctionEventInvokeConfigState, opts?: CustomResourceOptions): FunctionEventInvokeConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        destination_config: Optional[_lambda_.FunctionEventInvokeConfigDestinationConfigArgs] = None,
        function_name: Optional[str] = None,
        maximum_event_age_in_seconds: Optional[int] = None,
        maximum_retry_attempts: Optional[int] = None,
        qualifier: Optional[str] = None) -> FunctionEventInvokeConfig
func GetFunctionEventInvokeConfig(ctx *Context, name string, id IDInput, state *FunctionEventInvokeConfigState, opts ...ResourceOption) (*FunctionEventInvokeConfig, error)
public static FunctionEventInvokeConfig Get(string name, Input<string> id, FunctionEventInvokeConfigState? state, CustomResourceOptions? opts = null)
public static FunctionEventInvokeConfig get(String name, Output<String> id, FunctionEventInvokeConfigState 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:
DestinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

FunctionName string

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

MaximumEventAgeInSeconds int

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

MaximumRetryAttempts int

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

Qualifier string

Lambda Function published version, $LATEST, or Lambda Alias name.

DestinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

FunctionName string

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

MaximumEventAgeInSeconds int

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

MaximumRetryAttempts int

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

Qualifier string

Lambda Function published version, $LATEST, or Lambda Alias name.

destinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

functionName String

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

maximumEventAgeInSeconds Integer

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximumRetryAttempts Integer

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier String

Lambda Function published version, $LATEST, or Lambda Alias name.

destinationConfig FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

functionName string

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

maximumEventAgeInSeconds number

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximumRetryAttempts number

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier string

Lambda Function published version, $LATEST, or Lambda Alias name.

destination_config FunctionEventInvokeConfigDestinationConfigArgs

Configuration block with destination configuration. See below for details.

function_name str

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

maximum_event_age_in_seconds int

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximum_retry_attempts int

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier str

Lambda Function published version, $LATEST, or Lambda Alias name.

destinationConfig Property Map

Configuration block with destination configuration. See below for details.

functionName String

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

maximumEventAgeInSeconds Number

Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.

maximumRetryAttempts Number

Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.

qualifier String

Lambda Function published version, $LATEST, or Lambda Alias name.

Supporting Types

FunctionEventInvokeConfigDestinationConfig

OnFailure FunctionEventInvokeConfigDestinationConfigOnFailure

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

OnSuccess FunctionEventInvokeConfigDestinationConfigOnSuccess

Configuration block with destination configuration for successful asynchronous invocations. See below for details.

OnFailure FunctionEventInvokeConfigDestinationConfigOnFailure

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

OnSuccess FunctionEventInvokeConfigDestinationConfigOnSuccess

Configuration block with destination configuration for successful asynchronous invocations. See below for details.

onFailure FunctionEventInvokeConfigDestinationConfigOnFailure

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

onSuccess FunctionEventInvokeConfigDestinationConfigOnSuccess

Configuration block with destination configuration for successful asynchronous invocations. See below for details.

onFailure FunctionEventInvokeConfigDestinationConfigOnFailure

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

onSuccess FunctionEventInvokeConfigDestinationConfigOnSuccess

Configuration block with destination configuration for successful asynchronous invocations. See below for details.

on_failure FunctionEventInvokeConfigDestinationConfigOnFailure

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

on_success FunctionEventInvokeConfigDestinationConfigOnSuccess

Configuration block with destination configuration for successful asynchronous invocations. See below for details.

onFailure Property Map

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

onSuccess Property Map

Configuration block with destination configuration for successful asynchronous invocations. See below for details.

FunctionEventInvokeConfigDestinationConfigOnFailure

Destination string

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

Destination string

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination String

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination string

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination str

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination String

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

FunctionEventInvokeConfigDestinationConfigOnSuccess

Destination string

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

Destination string

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination String

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination string

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination str

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

destination String

Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

Import

Lambda Function Event Invoke Configs can be imported using the fully qualified Function name or Amazon Resource Name (ARN), e.g., ARN without qualifier (all versions and aliases)

 $ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example arn:aws:us-east-1:123456789012:function:my_function

ARN with qualifier

 $ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example arn:aws:us-east-1:123456789012:function:my_function:production

Name without qualifier (all versions and aliases)

 $ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example my_function

Name with qualifier

 $ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example my_function:production

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.