AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the UpdateFunctionEventInvokeConfig operation. Updates the configuration for asynchronous invocation for a function, version, or alias.

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Lambda.AmazonLambdaRequest
      Amazon.Lambda.Model.UpdateFunctionEventInvokeConfigRequest

Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z

Syntax

C#
public class UpdateFunctionEventInvokeConfigRequest : AmazonLambdaRequest
         IAmazonWebServiceRequest

The UpdateFunctionEventInvokeConfigRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property DestinationConfig Amazon.Lambda.Model.DestinationConfig

Gets and sets the property DestinationConfig.

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of a standard SQS queue.

  • Topic - The ARN of a standard SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

Public Property FunctionName System.String

Gets and sets the property FunctionName.

The name or ARN of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Public Property MaximumEventAgeInSeconds System.Int32

Gets and sets the property MaximumEventAgeInSeconds.

The maximum age of a request that Lambda sends to a function for processing.

Public Property MaximumRetryAttempts System.Int32

Gets and sets the property MaximumRetryAttempts.

The maximum number of times to retry when the function returns an error.

Public Property Qualifier System.String

Gets and sets the property Qualifier.

A version number or alias name.

Examples

The following example adds an on-failure destination to the existing asynchronous invocation configuration for a function named my-function.

To update an asynchronous invocation configuration


var response = client.UpdateFunctionEventInvokeConfig(new UpdateFunctionEventInvokeConfigRequest 
{
    DestinationConfig = new DestinationConfig { OnFailure = new OnFailure { Destination = "arn:aws:sqs:us-east-2:123456789012:destination" } },
    FunctionName = "my-function"
});

DestinationConfig destinationConfig = response.DestinationConfig;
string functionArn = response.FunctionArn;
DateTime lastModified = response.LastModified;
int maximumEventAgeInSeconds = response.MaximumEventAgeInSeconds;
int maximumRetryAttempts = response.MaximumRetryAttempts;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5