deleteAuthorizer method
Deletes an authorizer.
May throw DeleteConflictException. May throw ResourceNotFoundException. May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.
Parameter authorizerName
:
The name of the authorizer to delete.
Implementation
Future<void> deleteAuthorizer({
required String authorizerName,
}) async {
ArgumentError.checkNotNull(authorizerName, 'authorizerName');
_s.validateStringLength(
'authorizerName',
authorizerName,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/authorizer/${Uri.encodeComponent(authorizerName)}',
exceptionFnMap: _exceptionFns,
);
}