delete_usage_plan_key
async
¶
delete_usage_plan_key(
usage_plan_id: String,
key_id: String,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
) -> None
Deletes a usage plan key and remove the underlying API key from the associated usage plan.
Parameters:
-
usage_plan_id(String) –The Id of the UsagePlan resource representing the usage plan containing the to-be-deleted UsagePlanKey resource representing a plan customer.
-
key_id(String) –The Id of the UsagePlanKey resource to be deleted.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.