Class CfnEventInvokeConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lambda.CfnEventInvokeConfig
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,IEventInvokeConfigRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:08.708Z")
@Stability(Stable)
public class CfnEventInvokeConfig
extends CfnResource
implements IInspectable, IEventInvokeConfigRef
The
AWS::Lambda::EventInvokeConfig resource configures options for asynchronous invocation on a version or an alias.
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
CfnEventInvokeConfig cfnEventInvokeConfig = CfnEventInvokeConfig.Builder.create(this, "MyCfnEventInvokeConfig")
.functionName("functionName")
.qualifier("qualifier")
// the properties below are optional
.destinationConfig(DestinationConfigProperty.builder()
.onFailure(OnFailureProperty.builder()
.destination("destination")
.build())
.onSuccess(OnSuccessProperty.builder()
.destination("destination")
.build())
.build())
.maximumEventAgeInSeconds(123)
.maximumRetryAttempts(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEventInvokeConfig.static interfaceA configuration object that specifies the destination of an event after Lambda processes it.static interfaceA destination for events that failed processing.static interfaceA destination for events that were processed successfully.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IEventInvokeConfigRef
IEventInvokeConfigRef.Jsii$Default, IEventInvokeConfigRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEventInvokeConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEventInvokeConfig(software.amazon.jsii.JsiiObjectRef objRef) CfnEventInvokeConfig(software.constructs.Construct scope, String id, CfnEventInvokeConfigProps props) -
Method Summary
Modifier and TypeMethodDescriptionA destination for events after they have been sent to a function for processing.A reference to a EventInvokeConfig resource.The name of the Lambda function.The maximum age of a request that Lambda sends to a function for processing.The maximum number of times to retry when the function returns an error.The identifier of a version or alias.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDestinationConfig(IResolvable value) A destination for events after they have been sent to a function for processing.voidA destination for events after they have been sent to a function for processing.voidsetFunctionName(String value) The name of the Lambda function.voidThe maximum age of a request that Lambda sends to a function for processing.voidsetMaximumRetryAttempts(Number value) The maximum number of times to retry when the function returns an error.voidsetQualifier(String value) The identifier of a version or alias.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEventInvokeConfig
protected CfnEventInvokeConfig(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEventInvokeConfig
protected CfnEventInvokeConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEventInvokeConfig
@Stability(Stable) public CfnEventInvokeConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEventInvokeConfigProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEventInvokeConfigRef
A reference to a EventInvokeConfig resource.- Specified by:
getEventInvokeConfigRefin interfaceIEventInvokeConfigRef
-
getFunctionName
The name of the Lambda function. -
setFunctionName
The name of the Lambda function. -
getQualifier
The identifier of a version or alias. -
setQualifier
The identifier of a version or alias. -
getDestinationConfig
A destination for events after they have been sent to a function for processing.Returns union: either
IResolvableorCfnEventInvokeConfig.DestinationConfigProperty -
setDestinationConfig
A destination for events after they have been sent to a function for processing. -
setDestinationConfig
@Stability(Stable) public void setDestinationConfig(@Nullable CfnEventInvokeConfig.DestinationConfigProperty value) A destination for events after they have been sent to a function for processing. -
getMaximumEventAgeInSeconds
The maximum age of a request that Lambda sends to a function for processing. -
setMaximumEventAgeInSeconds
The maximum age of a request that Lambda sends to a function for processing. -
getMaximumRetryAttempts
The maximum number of times to retry when the function returns an error. -
setMaximumRetryAttempts
The maximum number of times to retry when the function returns an error.
-