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 ...
}
}
Inherited Members
Namespace: Pulumi.Aws.Lambda
Assembly: Pulumi.Aws.dll
Syntax
public class FunctionEventInvokeConfig : CustomResource
Constructors
View SourceFunctionEventInvokeConfig(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 SourceDestinationConfig
Configuration block with destination configuration. See below for details.
Declaration
public Output<FunctionEventInvokeConfigDestinationConfig> DestinationConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<FunctionEventInvokeConfigDestinationConfig> |
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> |
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>> |
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>> |
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 SourceGet(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 |