deleteFunctionConcurrency method

Future<void> deleteFunctionConcurrency({
  1. required String functionName,
})

Removes a concurrent execution limit from a function.

May throw ServiceException. May throw ResourceNotFoundException. May throw TooManyRequestsException. May throw InvalidParameterValueException. May throw ResourceConflictException.

Parameter functionName : 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.

Implementation

Future<void> deleteFunctionConcurrency({
  required String functionName,
}) async {
  ArgumentError.checkNotNull(functionName, 'functionName');
  _s.validateStringLength(
    'functionName',
    functionName,
    1,
    140,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/2017-10-31/functions/${Uri.encodeComponent(functionName)}/concurrency',
    exceptionFnMap: _exceptionFns,
  );
}