---
title: "PUT /2019-09-25/functions/{FunctionName}/event-invoke-config"
method: PUT
path: "/2019-09-25/functions/{FunctionName}/event-invoke-config"
---

# PUT /2019-09-25/functions/{FunctionName}/event-invoke-config

`PUT /2019-09-25/functions/{FunctionName}/event-invoke-config`

Configures options for [asynchronous invocation](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html) on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.

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. To retain discarded events, configure a dead-letter queue with UpdateFunctionConfiguration.

To send an invocation record to a queue, topic, function, or event bus, specify a [destination](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations). You can configure separate destinations for successful invocations (on-success) and events that fail all processing attempts (on-failure). You can configure destinations in addition to or instead of a dead-letter queue.

## Path parameters

- `FunctionName` string, required

## Query parameters

- `Qualifier` string

## Request body

- object
  - `MaximumRetryAttempts` integer — The maximum number of times to retry when the function returns an error.
  - `MaximumEventAgeInSeconds` integer — The maximum age of a request that Lambda sends to a function for processing.
  - `DestinationConfig` object — A configuration object that specifies the destination of an event after Lambda processes it.
    - `OnSuccess` object — The destination configuration for successful invocations.
      - `Destination` string — The Amazon Resource Name (ARN) of the destination resource.
    - `OnFailure` object — The destination configuration for failed invocations.
      - `Destination` string — The Amazon Resource Name (ARN) of the destination resource.

## Response `200`

Success

- FunctionEventInvokeConfig
  - `LastModified` string, date-time — The date and time that the configuration was last updated.
  - `FunctionArn` string — The Amazon Resource Name (ARN) of the function.
  - `MaximumRetryAttempts` integer — The maximum number of times to retry when the function returns an error.
  - `MaximumEventAgeInSeconds` integer — The maximum age of a request that Lambda sends to a function for processing.
  - `DestinationConfig` object — <p>A destination for events after they have been sent to a function for processing.</p> <p class="title"> <b>Destinations</b> </p> <ul> <li> <p> <b>Function</b> - The Amazon Resource Name (ARN) of a Lambda function.</p> </li> <li> <p> <b>Queue</b> - The ARN of a standard SQS queue.</p> </li> <li> <p> <b>Topic</b> - The ARN of a standard SNS topic.</p> </li> <li> <p> <b>Event Bus</b> - The ARN of an Amazon EventBridge event bus.</p> </li> </ul>
    - `OnSuccess` object — The destination configuration for successful invocations.
      - `Destination` string — The Amazon Resource Name (ARN) of the destination resource.
    - `OnFailure` object — The destination configuration for failed invocations.
      - `Destination` string — The Amazon Resource Name (ARN) of the destination resource.

## Other responses

- `480` — ServiceException
- `481` — ResourceNotFoundException
- `482` — InvalidParameterValueException
- `483` — TooManyRequestsException
- `484` — ResourceConflictException

---

[API](https://skmtc.net/aws/apis/lambda.md) · [All operations](https://skmtc.net/aws/apis/lambda/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lambda/revisions/2d9fde023ce9/schema)
