deleteUsagePlan method

Future<void> deleteUsagePlan({
  1. required String usagePlanId,
})

Deletes a usage plan of a given plan Id.

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

Parameter usagePlanId : Required The Id of the to-be-deleted usage plan.

Implementation

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