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:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:45.461Z")
@Stability(Stable)
public class CfnEventInvokeConfig
extends CfnResource
implements IInspectable
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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnEventInvokeConfig
.static interface
A configuration object that specifies the destination of an event after Lambda processes it.static interface
A destination for events that failed processing.static interface
A destination for events that were processed successfully.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnEventInvokeConfig
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEventInvokeConfig
(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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDestinationConfig
(IResolvable value) A destination for events after they have been sent to a function for processing.void
A destination for events after they have been sent to a function for processing.void
setFunctionName
(String value) The name of the Lambda function.void
The maximum age of a request that Lambda sends to a function for processing.void
setMaximumRetryAttempts
(Number value) The maximum number of times to retry when the function returns an error.void
setQualifier
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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.
-