deleteFunction method
Deletes the specified Lambda function code and configuration.
This operation requires permission for the
lambda:DeleteFunction
action.
May throw ServiceException. May throw ResourceNotFoundException.
Parameter functionName
:
The Lambda function to delete.
Implementation
Future<void> deleteFunction({
required String functionName,
}) async {
ArgumentError.checkNotNull(functionName, 'functionName');
_s.validateStringLength(
'functionName',
functionName,
1,
64,
isRequired: true,
);
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/2014-11-13/functions/${Uri.encodeComponent(functionName)}',
exceptionFnMap: _exceptionFns,
);
}