get_function_event_invoke_config - Boto3 1.38.13 documentation (original) (raw)

Toggle table of contents sidebar

Lambda / Client / get_function_event_invoke_config

Lambda.Client.get_function_event_invoke_config(**kwargs)

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

To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.

See also: AWS API Documentation

Request Syntax

response = client.get_function_event_invoke_config( FunctionName='string', Qualifier='string' )

Parameters:

Name formats

Return type:

dict

Returns:

Response Syntax

{ 'LastModified': datetime(2015, 1, 1), 'FunctionArn': 'string', 'MaximumRetryAttempts': 123, 'MaximumEventAgeInSeconds': 123, 'DestinationConfig': { 'OnSuccess': { 'Destination': 'string' }, 'OnFailure': { 'Destination': 'string' } } }

Response Structure

Exceptions

Examples

The following example returns the asynchronous invocation configuration for the BLUE alias of a function named my-function.

response = client.get_function_event_invoke_config( FunctionName='my-function', Qualifier='BLUE', )

print(response)

Expected Output:

{ 'DestinationConfig': { 'OnFailure': { 'Destination': 'arn:aws:sqs:us-east-2:123456789012:failed-invocations', }, 'OnSuccess': { }, }, 'FunctionArn': 'arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE', 'LastModified': datetime(2016, 11, 21, 19, 49, 20, 0, 326, 0), 'MaximumEventAgeInSeconds': 3600, 'MaximumRetryAttempts': 0, 'ResponseMetadata': { '...': '...', }, }