CfnEventInvokeConfigProps
- class aws_cdk.aws_lambda.CfnEventInvokeConfigProps(*, function_name, qualifier, destination_config=None, maximum_event_age_in_seconds=None, maximum_retry_attempts=None)
Bases:
object
Properties for defining a
CfnEventInvokeConfig
.- Parameters:
function_name (
str
) – The name of the Lambda function. Minimum :1
Maximum :64
Pattern :([a-zA-Z0-9-_]+)
qualifier (
str
) – The identifier of a version or alias. - Version - A version number. - Alias - An alias name. - Latest - To specify the unpublished version, use$LATEST
.destination_config (
Union
[IResolvable
,DestinationConfigProperty
,Dict
[str
,Any
],None
]) – A destination for events after they have been sent to a function for processing. Destinations - Function - The Amazon Resource Name (ARN) of a Lambda function. - Queue - The ARN of a standard SQS queue. - Topic - The ARN of a standard SNS topic. - Event Bus - The ARN of an Amazon EventBridge event bus.maximum_event_age_in_seconds (
Union
[int
,float
,None
]) – The maximum age of a request that Lambda sends to a function for processing.maximum_retry_attempts (
Union
[int
,float
,None
]) – The maximum number of times to retry when the function returns an error.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_lambda as lambda_ cfn_event_invoke_config_props = lambda.CfnEventInvokeConfigProps( function_name="functionName", qualifier="qualifier", # the properties below are optional destination_config=lambda.CfnEventInvokeConfig.DestinationConfigProperty( on_failure=lambda.CfnEventInvokeConfig.OnFailureProperty( destination="destination" ), on_success=lambda.CfnEventInvokeConfig.OnSuccessProperty( destination="destination" ) ), maximum_event_age_in_seconds=123, maximum_retry_attempts=123 )
Attributes
- destination_config
A destination for events after they have been sent to a function for processing.
Destinations - Function - The Amazon Resource Name (ARN) of a Lambda function.
Queue - The ARN of a standard SQS queue.
Topic - The ARN of a standard SNS topic.
Event Bus - The ARN of an Amazon EventBridge event bus.
- function_name
The name of the Lambda function.
Minimum :
1
Maximum :
64
Pattern :
([a-zA-Z0-9-_]+)
- maximum_event_age_in_seconds
The maximum age of a request that Lambda sends to a function for processing.
- maximum_retry_attempts
The maximum number of times to retry when the function returns an error.
- qualifier
The identifier of a version or alias.
Version - A version number.
Alias - An alias name.
Latest - To specify the unpublished version, use
$LATEST
.