deleteAuthorizer method

Future<void> deleteAuthorizer({
  1. required String apiId,
  2. required String authorizerId,
})

Deletes an Authorizer.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

Parameter authorizerId : The authorizer identifier.

Implementation

Future<void> deleteAuthorizer({
  required String apiId,
  required String authorizerId,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(authorizerId, 'authorizerId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/authorizers/${Uri.encodeComponent(authorizerId)}',
    exceptionFnMap: _exceptionFns,
  );
}