deleteUsagePlanKey method
Deletes a usage plan key and remove the underlying API key from the associated usage plan.
May throw BadRequestException.
May throw ConflictException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter keyId :
The Id of the UsagePlanKey resource to be deleted.
Parameter usagePlanId :
The Id of the UsagePlan resource representing the usage plan containing
the to-be-deleted UsagePlanKey resource representing a plan customer.
Implementation
Future<void> deleteUsagePlanKey({
required String keyId,
required String usagePlanId,
}) async {
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/usageplans/${Uri.encodeComponent(usagePlanId)}/keys/${Uri.encodeComponent(keyId)}',
exceptionFnMap: _exceptionFns,
);
}