Class EventInvokeConfig
Configure options for asynchronous invocation on a version or an alias.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EventInvokeConfig : Resource, IResource
Syntax (vb)
Public Class EventInvokeConfig
Inherits Resource
Implements IResource
Remarks
By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it.
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;
using Amazon.CDK.AWS.Lambda;
IDestination destination;
Function function_;
var eventInvokeConfig = new EventInvokeConfig(this, "MyEventInvokeConfig", new EventInvokeConfigProps {
Function = function_,
// the properties below are optional
MaxEventAge = Duration.Minutes(30),
OnFailure = destination,
OnSuccess = destination,
Qualifier = "qualifier",
RetryAttempts = 123
});
Synopsis
Constructors
EventInvokeConfig(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EventInvokeConfig(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
EventInvokeConfig(Construct, String, IEventInvokeConfigProps) |
Constructors
EventInvokeConfig(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EventInvokeConfig(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EventInvokeConfig(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EventInvokeConfig(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
EventInvokeConfig(Construct, String, IEventInvokeConfigProps)
public EventInvokeConfig(Construct scope, string id, IEventInvokeConfigProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IEventInvokeConfigProps
Implements
Constructs.IConstruct
Constructs.IDependable