get_usage_plan_key
async
¶
get_usage_plan_key(
usage_plan_id: String,
key_id: String,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = None,
) -> UsagePlanKey
Gets a usage plan key of a given key identifier.
Parameters:
-
usage_plan_id(String) –The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.
-
key_id(String) –The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
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.