Show / Hide Table of Contents

Class 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

Error Handling Configuration

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new Aws.Lambda.FunctionEventInvokeConfigArgs
    {
        FunctionName = aws_lambda_alias.Example.Function_name,
        MaximumEventAgeInSeconds = 60,
        MaximumRetryAttempts = 0,
    });
}

}

Configuration for Alias Name

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new Aws.Lambda.FunctionEventInvokeConfigArgs
    {
        FunctionName = aws_lambda_alias.Example.Function_name,
        Qualifier = aws_lambda_alias.Example.Name,
    });
    // ... other configuration ...
}

}

Configuration for Function Latest Unpublished Version

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new Aws.Lambda.FunctionEventInvokeConfigArgs
    {
        FunctionName = aws_lambda_function.Example.Function_name,
        Qualifier = "$LATEST",
    });
    // ... other configuration ...
}

}

Configuration for Function Published Version

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.Lambda.FunctionEventInvokeConfig("example", new Aws.Lambda.FunctionEventInvokeConfigArgs
    {
        FunctionName = aws_lambda_function.Example.Function_name,
        Qualifier = aws_lambda_function.Example.Version,
    });
    // ... other configuration ...
}

}
Inheritance
System.Object
Resource
CustomResource
FunctionEventInvokeConfig
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Lambda
Assembly: Pulumi.Aws.dll
Syntax
public class FunctionEventInvokeConfig : CustomResource

Constructors

View Source

FunctionEventInvokeConfig(String, FunctionEventInvokeConfigArgs, CustomResourceOptions)

Create a FunctionEventInvokeConfig resource with the given unique name, arguments, and options.

Declaration
public FunctionEventInvokeConfig(string name, FunctionEventInvokeConfigArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

FunctionEventInvokeConfigArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

DestinationConfig

Configuration block with destination configuration. See below for details.

Declaration
public Output<FunctionEventInvokeConfigDestinationConfig> DestinationConfig { get; }
Property Value
Type Description
Output<FunctionEventInvokeConfigDestinationConfig>
View Source

FunctionName

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

Declaration
public Output<string> FunctionName { get; }
Property Value
Type Description
Output<System.String>
View Source

MaximumEventAgeInSeconds

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

Declaration
public Output<int?> MaximumEventAgeInSeconds { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

MaximumRetryAttempts

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

Declaration
public Output<int?> MaximumRetryAttempts { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Qualifier

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

Declaration
public Output<string> Qualifier { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, FunctionEventInvokeConfigState, CustomResourceOptions)

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

Declaration
public static FunctionEventInvokeConfig Get(string name, Input<string> id, FunctionEventInvokeConfigState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

FunctionEventInvokeConfigState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
FunctionEventInvokeConfig
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.