Lambda / Client / get_function_concurrency

get_function_concurrency#

Lambda.Client.get_function_concurrency(**kwargs)#

Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.

See also: AWS API Documentation

Request Syntax

response = client.get_function_concurrency(
    FunctionName='string'
)
Parameters:

FunctionName (string) –

[REQUIRED]

The name or ARN of the Lambda function.

Name formats

  • Function namemy-function.

  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN123456789012: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.

Return type:

dict

Returns:

Response Syntax

{
    'ReservedConcurrentExecutions': 123
}

Response Structure

  • (dict) –

    • ReservedConcurrentExecutions (integer) –

      The number of simultaneous executions that are reserved for the function.

Exceptions

Examples

The following example returns the reserved concurrency setting for a function named my-function.

response = client.get_function_concurrency(
    FunctionName='my-function',
)

print(response)

Expected Output:

{
    'ReservedConcurrentExecutions': 250,
    'ResponseMetadata': {
        '...': '...',
    },
}