Interface IEventInvokeConfigOptions
Options to add an EventInvokeConfig to a function.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public interface IEventInvokeConfigOptions
Syntax (vb)
Public Interface 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
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. |
Properties
MaxEventAge
The maximum age of a request that Lambda sends to a function for processing.
virtual Duration MaxEventAge { get; }
Property Value
Remarks
Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
OnFailure
The destination for failed invocations.
virtual IDestination OnFailure { get; }
Property Value
Remarks
Default: - no destination
OnSuccess
The destination for successful invocations.
virtual IDestination OnSuccess { get; }
Property Value
Remarks
Default: - no destination
RetryAttempts
The maximum number of times to retry when the function returns an error.
virtual Nullable<double> RetryAttempts { get; }
Property Value
System.Nullable<System.Double>
Remarks
Minimum: 0 Maximum: 2
Default: 2