deleteAuthorizer method

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

Deletes an existing Authorizer resource.

AWS CLI

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

Parameter authorizerId : Required The identifier of the Authorizer resource.

Parameter restApiId : Required The string identifier of the associated RestApi.

Implementation

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