Bases: EventInvokeConfigOptions
Properties for an EventInvokeConfig.
max_event_age (Optional
[Duration
]) â The maximum age of a request that Lambda sends to a function for processing. Minimum: 60 seconds Maximum: 6 hours Default: Duration.hours(6)
on_failure (Optional
[IDestination
]) â The destination for failed invocations. Default: - no destination
on_success (Optional
[IDestination
]) â The destination for successful invocations. Default: - no destination
retry_attempts (Union
[int
, float
, None
]) â The maximum number of times to retry when the function returns an error. Minimum: 0 Maximum: 2 Default: 2
function (IFunction
) â The Lambda function.
qualifier (Optional
[str
]) â The qualifier. Default: - latest version
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_lambda as lambda_ import aws_cdk.core as cdk # destination: lambda.IDestination # function_: lambda.Function event_invoke_config_props = lambda.EventInvokeConfigProps( function=function_, # the properties below are optional max_event_age=cdk.Duration.minutes(30), on_failure=destination, on_success=destination, qualifier="qualifier", retry_attempts=123 )
Attributes
The Lambda function.
The maximum age of a request that Lambda sends to a function for processing.
Minimum: 60 seconds Maximum: 6 hours
Duration.hours(6)
The destination for failed invocations.
no destination
The destination for successful invocations.
no destination
The qualifier.
latest version
The maximum number of times to retry when the function returns an error.
Minimum: 0 Maximum: 2
2
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4