Class EventInvokeConfigProps
Properties for an EventInvokeConfig.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class EventInvokeConfigProps : Object, IEventInvokeConfigProps, IEventInvokeConfigOptions
Syntax (vb)
Public Class EventInvokeConfigProps
Inherits Object
Implements IEventInvokeConfigProps, 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;
Function function_;
var eventInvokeConfigProps = new EventInvokeConfigProps {
Function = function_,
// the properties below are optional
MaxEventAge = Duration.Minutes(30),
OnFailure = destination,
OnSuccess = destination,
Qualifier = "qualifier",
RetryAttempts = 123
};
Synopsis
Constructors
EventInvokeConfigProps() |
Properties
Function | The Lambda function. |
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. |
Qualifier | The qualifier. |
RetryAttempts | The maximum number of times to retry when the function returns an error. |
Constructors
EventInvokeConfigProps()
public EventInvokeConfigProps()
Properties
Function
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
Qualifier
The qualifier.
public string Qualifier { get; set; }
Property Value
System.String
Remarks
Default: - latest version
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