Learn Idem

Learn Idem

Powered by Idem Project

aws.lambda_aws.function_event_invoke_config

**Autogenerated function**

Deletes the configuration for asynchronous invocation for a function, version, or alias.

Args:
    name(string): An Idem name of the resource.
    resource_id(string, Optional): The Amazon Resource Name (ARN) of the function. Idem automatically considers this
        resource being absent if this field is not specified.

Returns:
    Dict[str, Any]

Examples:

    .. code-block:: sls

        function_event_invoke_config-01234672f3336db8:
          aws.lambda_aws.function_event_invoke_config.absent:
            - name: value
            - resource_id: value
Retrieves a list of configurations for asynchronous invocation for a function.

Returns:
    Dict[str, Any]

Examples:
        $ idem describe aws.lambda_aws.function_event_invoke_config
**Autogenerated function**

Configures options for asynchronous invocation on a function, version, or alias. If a configuration already
exists for a function, version, or alias, this operation overwrites it. 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. To send an invocation record to a queue, topic,
function, or event bus, specify a destination. 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.

Args:
    name(string): An Idem name of the resource.
    resource_id(string, optional): The Amazon Resource Name (ARN) of the function. Defaults to None.
    function_name(string): The name of the Lambda function.
      Name formats
          Function name - my-function.
          Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.
          Partial ARN - 123456789012:function:my-function.
      The length constraint applies only to the full ARN. If you  specify only the function name, it is limited to 64 characters in length.
    qualifier(string, optional): A version number or alias name. Defaults to None.
    maximum_retry_attempts(int, optional): The maximum number of times to retry when the function returns an error. Defaults to None.
    maximum_event_age_in_seconds(int, optional): The maximum age of a request that Lambda sends to a function for processing. Defaults to None.
    destination_config(Dict, optional): A destination for events after they have been sent to a function for processing.
      * (OnSuccess, Dict, optional): The destination configuration for successful invocations.
      * (OnFailure, Dict, optional): The destination configuration for failed invocations.
      Destinations
          Function - The Amazon Resource Name (ARN) of a Lambda function.
          Queue - The ARN of an SQS queue.
          Topic - The ARN of an SNS topic.
          Event Bus - The ARN of an Amazon EventBridge event bus. Defaults to None.

Returns:
    Dict[str, Any]

Examples:

    .. code-block:: sls

        function_event_invoke_config-01234672f3336db8:
          aws.lambda_aws.function_event_invoke_config.present:
            - name: value
            - function_name: value

Full plugin documentation is available on the Idem documentation site - aws.lambda_aws.function_event_invoke_config .

Last updated on 20 Sep 2022
 Edit on GitHub