deleteFunctionCodeSigningConfig method

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

Removes the code signing configuration from the function.

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

Parameter functionName : The name of the Lambda function.

Name formats

  • Function name - MyFunction.
  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
  • Partial ARN - 123456789012:function:MyFunction.
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> deleteFunctionCodeSigningConfig({
  required String functionName,
}) async {
  ArgumentError.checkNotNull(functionName, 'functionName');
  _s.validateStringLength(
    'functionName',
    functionName,
    1,
    140,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/2020-06-30/functions/${Uri.encodeComponent(functionName)}/code-signing-config',
    exceptionFnMap: _exceptionFns,
  );
}