Class EventInvokeConfigOptions
Options to add an EventInvokeConfig to a function.
Inheritance
System.Object
EventInvokeConfigOptions
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class EventInvokeConfigOptions : Object, IEventInvokeConfigOptions
Syntax (vb)
Public Class EventInvokeConfigOptions
Inherits Object
Implements IEventInvokeConfigOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK;
IDestination destination;
var eventInvokeConfigOptions = new EventInvokeConfigOptions {
MaxEventAge = Duration.Minutes(30),
OnFailure = destination,
OnSuccess = destination,
RetryAttempts = 123
};
Synopsis
Constructors
EventInvokeConfigOptions() |
Properties
MaxEventAge | The maximum age of a request that Lambda sends to a function for processing. |
OnFailure | The destination for failed invocations. |
OnSuccess | The destination for successful invocations. |
RetryAttempts | The maximum number of times to retry when the function returns an error. |
Constructors
EventInvokeConfigOptions()
public EventInvokeConfigOptions()
Properties
MaxEventAge
The maximum age of a request that Lambda sends to a function for processing.
public Duration MaxEventAge { get; set; }
Property Value
Remarks
Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
OnFailure
The destination for failed invocations.
public IDestination OnFailure { get; set; }
Property Value
Remarks
Default: - no destination
OnSuccess
The destination for successful invocations.
public IDestination OnSuccess { get; set; }
Property Value
Remarks
Default: - no destination
RetryAttempts
The maximum number of times to retry when the function returns an error.
public Nullable<double> RetryAttempts { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Minimum: 0 Maximum: 2
Default: 2