CfnEventInvokeConfigMixinProps

class aws_cdk.mixins_preview.aws_lambda.mixins.CfnEventInvokeConfigMixinProps(*, destination_config=None, function_name=None, maximum_event_age_in_seconds=None, maximum_retry_attempts=None, qualifier=None)

Bases: object

Properties for CfnEventInvokeConfigPropsMixin.

Parameters:
  • 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. - Bucket - The ARN of an Amazon S3 bucket. - Topic - The ARN of a standard SNS topic. - Event Bus - The ARN of an Amazon EventBridge event bus. .. epigraph:: S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.

  • function_name (Optional[str]) – The name of the Lambda function. Minimum : 1 Maximum : 64 Pattern : ([a-zA-Z0-9-_]+)

  • 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.

  • qualifier (Optional[str]) – The identifier of a version or alias. - Version - A version number. - Alias - An alias name. - Latest - To specify the unpublished version, use $LATEST .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html

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.mixins_preview.aws_lambda import mixins as lambda_mixins

cfn_event_invoke_config_mixin_props = lambda_mixins.CfnEventInvokeConfigMixinProps(
    destination_config=lambda_mixins.CfnEventInvokeConfigPropsMixin.DestinationConfigProperty(
        on_failure=lambda_mixins.CfnEventInvokeConfigPropsMixin.OnFailureProperty(
            destination="destination"
        ),
        on_success=lambda_mixins.CfnEventInvokeConfigPropsMixin.OnSuccessProperty(
            destination="destination"
        )
    ),
    function_name="functionName",
    maximum_event_age_in_seconds=123,
    maximum_retry_attempts=123,
    qualifier="qualifier"
)

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.

  • Bucket - The ARN of an Amazon S3 bucket.

  • Topic - The ARN of a standard SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig

function_name

The name of the Lambda function.

Minimum : 1

Maximum : 64

Pattern : ([a-zA-Z0-9-_]+)

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-functionname

maximum_event_age_in_seconds

The maximum age of a request that Lambda sends to a function for processing.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumeventageinseconds

maximum_retry_attempts

The maximum number of times to retry when the function returns an error.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-maximumretryattempts

qualifier

The identifier of a version or alias.

  • Version - A version number.

  • Alias - An alias name.

  • Latest - To specify the unpublished version, use $LATEST .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-qualifier