1. Packages
  2. AWS
  3. API Docs
  4. lambda
  5. FunctionEventInvokeConfig
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.lambda.FunctionEventInvokeConfig

Explore with Pulumi AI

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

NOTE: Ensure the Lambda Function IAM Role has necessary permissions for the destination, such as sqs:SendMessage or sns:Publish, otherwise the API will return a generic InvalidParameterValueException: The destination ARN arn:PARTITION:SERVICE:REGION:ACCOUNT:RESOURCE is invalid. error.

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: exampleAwsLambdaAlias.functionName,
    destinationConfig: {
        onFailure: {
            destination: exampleAwsSqsQueue.arn,
        },
        onSuccess: {
            destination: exampleAwsSnsTopic.arn,
        },
    },
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=example_aws_lambda_alias["functionName"],
    destination_config={
        "on_failure": {
            "destination": example_aws_sqs_queue["arn"],
        },
        "on_success": {
            "destination": example_aws_sns_topic["arn"],
        },
    })
Copy
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.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(exampleAwsLambdaAlias.FunctionName),
			DestinationConfig: &lambda.FunctionEventInvokeConfigDestinationConfigArgs{
				OnFailure: &lambda.FunctionEventInvokeConfigDestinationConfigOnFailureArgs{
					Destination: pulumi.Any(exampleAwsSqsQueue.Arn),
				},
				OnSuccess: &lambda.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs{
					Destination: pulumi.Any(exampleAwsSnsTopic.Arn),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new()
    {
        FunctionName = exampleAwsLambdaAlias.FunctionName,
        DestinationConfig = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigArgs
        {
            OnFailure = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigOnFailureArgs
            {
                Destination = exampleAwsSqsQueue.Arn,
            },
            OnSuccess = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs
            {
                Destination = exampleAwsSnsTopic.Arn,
            },
        },
    });

});
Copy
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(exampleAwsLambdaAlias.functionName())
            .destinationConfig(FunctionEventInvokeConfigDestinationConfigArgs.builder()
                .onFailure(FunctionEventInvokeConfigDestinationConfigOnFailureArgs.builder()
                    .destination(exampleAwsSqsQueue.arn())
                    .build())
                .onSuccess(FunctionEventInvokeConfigDestinationConfigOnSuccessArgs.builder()
                    .destination(exampleAwsSnsTopic.arn())
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${exampleAwsLambdaAlias.functionName}
      destinationConfig:
        onFailure:
          destination: ${exampleAwsSqsQueue.arn}
        onSuccess:
          destination: ${exampleAwsSnsTopic.arn}
Copy

Error Handling Configuration

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: exampleAwsLambdaAlias.functionName,
    maximumEventAgeInSeconds: 60,
    maximumRetryAttempts: 0,
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=example_aws_lambda_alias["functionName"],
    maximum_event_age_in_seconds=60,
    maximum_retry_attempts=0)
Copy
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.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName:             pulumi.Any(exampleAwsLambdaAlias.FunctionName),
			MaximumEventAgeInSeconds: pulumi.Int(60),
			MaximumRetryAttempts:     pulumi.Int(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

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

});
Copy
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(exampleAwsLambdaAlias.functionName())
            .maximumEventAgeInSeconds(60)
            .maximumRetryAttempts(0)
            .build());

    }
}
Copy
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${exampleAwsLambdaAlias.functionName}
      maximumEventAgeInSeconds: 60
      maximumRetryAttempts: 0
Copy

Configuration for Alias Name

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: exampleAwsLambdaAlias.functionName,
    qualifier: exampleAwsLambdaAlias.name,
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=example_aws_lambda_alias["functionName"],
    qualifier=example_aws_lambda_alias["name"])
Copy
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.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(exampleAwsLambdaAlias.FunctionName),
			Qualifier:    pulumi.Any(exampleAwsLambdaAlias.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

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

});
Copy
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(exampleAwsLambdaAlias.functionName())
            .qualifier(exampleAwsLambdaAlias.name())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${exampleAwsLambdaAlias.functionName}
      qualifier: ${exampleAwsLambdaAlias.name}
Copy

Configuration for Function Latest Unpublished Version

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: exampleAwsLambdaFunction.functionName,
    qualifier: "$LATEST",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=example_aws_lambda_function["functionName"],
    qualifier="$LATEST")
Copy
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.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(exampleAwsLambdaFunction.FunctionName),
			Qualifier:    pulumi.String("$LATEST"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

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

});
Copy
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(exampleAwsLambdaFunction.functionName())
            .qualifier("$LATEST")
            .build());

    }
}
Copy
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${exampleAwsLambdaFunction.functionName}
      qualifier: $LATEST
Copy

Configuration for Function Published Version

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.lambda.FunctionEventInvokeConfig("example", {
    functionName: exampleAwsLambdaFunction.functionName,
    qualifier: exampleAwsLambdaFunction.version,
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.lambda_.FunctionEventInvokeConfig("example",
    function_name=example_aws_lambda_function["functionName"],
    qualifier=example_aws_lambda_function["version"])
Copy
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.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(exampleAwsLambdaFunction.FunctionName),
			Qualifier:    pulumi.Any(exampleAwsLambdaFunction.Version),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

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

});
Copy
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(exampleAwsLambdaFunction.functionName())
            .qualifier(exampleAwsLambdaFunction.version())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:lambda:FunctionEventInvokeConfig
    properties:
      functionName: ${exampleAwsLambdaFunction.functionName}
      qualifier: ${exampleAwsLambdaFunction.version}
Copy

Create FunctionEventInvokeConfig Resource

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

Constructor syntax

new FunctionEventInvokeConfig(name: string, args: FunctionEventInvokeConfigArgs, opts?: CustomResourceOptions);
@overload
def FunctionEventInvokeConfig(resource_name: str,
                              args: FunctionEventInvokeConfigArgs,
                              opts: Optional[ResourceOptions] = None)

@overload
def FunctionEventInvokeConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              function_name: Optional[str] = None,
                              destination_config: Optional[_lambda_.FunctionEventInvokeConfigDestinationConfigArgs] = None,
                              maximum_event_age_in_seconds: Optional[int] = None,
                              maximum_retry_attempts: Optional[int] = None,
                              qualifier: Optional[str] = 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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FunctionEventInvokeConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. FunctionEventInvokeConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FunctionEventInvokeConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FunctionEventInvokeConfigArgs
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 functionEventInvokeConfigResource = new Aws.Lambda.FunctionEventInvokeConfig("functionEventInvokeConfigResource", new()
{
    FunctionName = "string",
    DestinationConfig = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigArgs
    {
        OnFailure = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigOnFailureArgs
        {
            Destination = "string",
        },
        OnSuccess = new Aws.Lambda.Inputs.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs
        {
            Destination = "string",
        },
    },
    MaximumEventAgeInSeconds = 0,
    MaximumRetryAttempts = 0,
    Qualifier = "string",
});
Copy
example, err := lambda.NewFunctionEventInvokeConfig(ctx, "functionEventInvokeConfigResource", &lambda.FunctionEventInvokeConfigArgs{
	FunctionName: pulumi.String("string"),
	DestinationConfig: &lambda.FunctionEventInvokeConfigDestinationConfigArgs{
		OnFailure: &lambda.FunctionEventInvokeConfigDestinationConfigOnFailureArgs{
			Destination: pulumi.String("string"),
		},
		OnSuccess: &lambda.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs{
			Destination: pulumi.String("string"),
		},
	},
	MaximumEventAgeInSeconds: pulumi.Int(0),
	MaximumRetryAttempts:     pulumi.Int(0),
	Qualifier:                pulumi.String("string"),
})
Copy
var functionEventInvokeConfigResource = new FunctionEventInvokeConfig("functionEventInvokeConfigResource", FunctionEventInvokeConfigArgs.builder()
    .functionName("string")
    .destinationConfig(FunctionEventInvokeConfigDestinationConfigArgs.builder()
        .onFailure(FunctionEventInvokeConfigDestinationConfigOnFailureArgs.builder()
            .destination("string")
            .build())
        .onSuccess(FunctionEventInvokeConfigDestinationConfigOnSuccessArgs.builder()
            .destination("string")
            .build())
        .build())
    .maximumEventAgeInSeconds(0)
    .maximumRetryAttempts(0)
    .qualifier("string")
    .build());
Copy
function_event_invoke_config_resource = aws.lambda_.FunctionEventInvokeConfig("functionEventInvokeConfigResource",
    function_name="string",
    destination_config={
        "on_failure": {
            "destination": "string",
        },
        "on_success": {
            "destination": "string",
        },
    },
    maximum_event_age_in_seconds=0,
    maximum_retry_attempts=0,
    qualifier="string")
Copy
const functionEventInvokeConfigResource = new aws.lambda.FunctionEventInvokeConfig("functionEventInvokeConfigResource", {
    functionName: "string",
    destinationConfig: {
        onFailure: {
            destination: "string",
        },
        onSuccess: {
            destination: "string",
        },
    },
    maximumEventAgeInSeconds: 0,
    maximumRetryAttempts: 0,
    qualifier: "string",
});
Copy
type: aws:lambda:FunctionEventInvokeConfig
properties:
    destinationConfig:
        onFailure:
            destination: string
        onSuccess:
            destination: string
    functionName: string
    maximumEventAgeInSeconds: 0
    maximumRetryAttempts: 0
    qualifier: string
Copy

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

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

The FunctionEventInvokeConfig resource accepts the following input properties:

FunctionName
This property is required.
Changes to this property will trigger replacement.
string

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

The following arguments are optional:

DestinationConfig FunctionEventInvokeConfigDestinationConfig
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 Changes to this property will trigger replacement. string
Lambda Function published version, $LATEST, or Lambda Alias name.
FunctionName
This property is required.
Changes to this property will trigger replacement.
string

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

The following arguments are optional:

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 Changes to this property will trigger replacement. string
Lambda Function published version, $LATEST, or Lambda Alias name.
functionName
This property is required.
Changes to this property will trigger replacement.
String

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

The following arguments are optional:

destinationConfig FunctionEventInvokeConfigDestinationConfig
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 Changes to this property will trigger replacement. String
Lambda Function published version, $LATEST, or Lambda Alias name.
functionName
This property is required.
Changes to this property will trigger replacement.
string

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

The following arguments are optional:

destinationConfig FunctionEventInvokeConfigDestinationConfig
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 Changes to this property will trigger replacement. string
Lambda Function published version, $LATEST, or Lambda Alias name.
function_name
This property is required.
Changes to this property will trigger replacement.
str

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

The following arguments are optional:

destination_config lambda_.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 Changes to this property will trigger replacement. str
Lambda Function published version, $LATEST, or Lambda Alias name.
functionName
This property is required.
Changes to this property will trigger replacement.
String

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

The following arguments are optional:

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 Changes to this property will trigger replacement. 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)
resources:  _:    type: aws:lambda:FunctionEventInvokeConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 FunctionEventInvokeConfigDestinationConfig
Configuration block with destination configuration. See below for details.
FunctionName Changes to this property will trigger replacement. string

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

The following arguments are optional:

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 Changes to this property will trigger replacement. string
Lambda Function published version, $LATEST, or Lambda Alias name.
DestinationConfig FunctionEventInvokeConfigDestinationConfigArgs
Configuration block with destination configuration. See below for details.
FunctionName Changes to this property will trigger replacement. string

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

The following arguments are optional:

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 Changes to this property will trigger replacement. string
Lambda Function published version, $LATEST, or Lambda Alias name.
destinationConfig FunctionEventInvokeConfigDestinationConfig
Configuration block with destination configuration. See below for details.
functionName Changes to this property will trigger replacement. String

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

The following arguments are optional:

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 Changes to this property will trigger replacement. String
Lambda Function published version, $LATEST, or Lambda Alias name.
destinationConfig FunctionEventInvokeConfigDestinationConfig
Configuration block with destination configuration. See below for details.
functionName Changes to this property will trigger replacement. string

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

The following arguments are optional:

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 Changes to this property will trigger replacement. string
Lambda Function published version, $LATEST, or Lambda Alias name.
destination_config lambda_.FunctionEventInvokeConfigDestinationConfigArgs
Configuration block with destination configuration. See below for details.
function_name Changes to this property will trigger replacement. str

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

The following arguments are optional:

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 Changes to this property will trigger replacement. str
Lambda Function published version, $LATEST, or Lambda Alias name.
destinationConfig Property Map
Configuration block with destination configuration. See below for details.
functionName Changes to this property will trigger replacement. String

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

The following arguments are optional:

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 Changes to this property will trigger replacement. String
Lambda Function published version, $LATEST, or Lambda Alias name.

Supporting Types

FunctionEventInvokeConfigDestinationConfig
, FunctionEventInvokeConfigDestinationConfigArgs

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 lambda_.FunctionEventInvokeConfigDestinationConfigOnFailure
Configuration block with destination configuration for failed asynchronous invocations. See below for details.
on_success lambda_.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
, FunctionEventInvokeConfigDestinationConfigOnFailureArgs

Destination This property is required. string
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
Destination This property is required. string
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. String
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. string
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. str
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. String
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

FunctionEventInvokeConfigDestinationConfigOnSuccess
, FunctionEventInvokeConfigDestinationConfigOnSuccessArgs

Destination This property is required. string
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
Destination This property is required. string
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. String
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. string
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. str
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.
destination This property is required. String
Amazon Resource Name (ARN) of the destination resource. See the Lambda Developer Guide for acceptable resource types and associated IAM permissions.

Import

ARN with qualifier:

Name without qualifier (all versions and aliases):

Name with qualifier:

Using pulumi import to import Lambda Function Event Invoke Configs using the fully qualified Function name or Amazon Resource Name (ARN). For example:

ARN without qualifier (all versions and aliases):

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

ARN with qualifier:

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

Name without qualifier (all versions and aliases):

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

Name with qualifier:

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

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.