CmdID

CmdID / aws / aws lambda

aws lambda put-function-event-invoke-config

Configures options for asynchronous invocation on a function, version, or alias. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To configure error handling for asynchronous invocation

The following put-function-event-invoke-config example sets a maximum event age of one hour and disables retries for the specified function.

aws lambda put-function-event-invoke-config --function-name my-function --maximum-event-age-in-seconds 3600 --maximum-retry-attempts 0Identify
--function-nameThe name or ARN of the Lambda function, version, or alias.
--maximum-event-age-in-secondsThe maximum age of a request that Lambda sends to a function for processing.
--maximum-retry-attemptsThe maximum number of times to retry when the function returns an error.
Its output
{
    "LastModified": 1573686021.479,
    "FunctionArn": "arn:aws:lambda:us-west-2:123456789012:function:my-function:$LATEST",
    "MaximumRetryAttempts": 0,
    "MaximumEventAgeInSeconds": 3600,
    "DestinationConfig": {
        "OnSuccess": {},
        "OnFailure": {}
    }
}

For more information, see Configuring error handling settings for Lambda asynchronous invocations in the AWS Lambda Developer Guide.

Options

5 in the AWS CLI reference
--destination-configA destination for events after they have been sent to a function for processing.
--function-nameThe name or ARN of the Lambda function, version, or alias.
--maximum-event-age-in-secondsThe maximum age of a request that Lambda sends to a function for processing.
--maximum-retry-attemptsThe maximum number of times to retry when the function returns an error.
--qualifierA version number or alias name.