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'
)
[REQUIRED]
The name of the Lambda function.
Name formats
my-function
.arn:aws:lambda:us-west-2:123456789012:function:my-function
.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.
{
'ReservedConcurrentExecutions': 123
}
Response Structure
The number of simultaneous executions that are reserved for the function.
Exceptions
Lambda.Client.exceptions.InvalidParameterValueException
Lambda.Client.exceptions.ResourceNotFoundException
Lambda.Client.exceptions.TooManyRequestsException
Lambda.Client.exceptions.ServiceException
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': {
'...': '...',
},
}