deleteAuthorizer method

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

Deletes an existing Authorizer resource.

May throw BadRequestException. May throw ConflictException. May throw NotFoundException. May throw TooManyRequestsException. May throw UnauthorizedException.

Parameter authorizerId : The identifier of the Authorizer resource.

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

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