Skip to content

Api Gateway  >  Operations  >  get_usage_plan_key

get_usage_plan_key

Operation

get_usage_plan_key async

get_usage_plan_key(input: GetUsagePlanKeyInput, plugins: list[Plugin] | None = None) -> GetUsagePlanKeyOutput

Gets a usage plan key of a given key identifier.

Parameters:

Name Type Description Default
input GetUsagePlanKeyInput

An instance of GetUsagePlanKeyInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetUsagePlanKeyOutput

An instance of GetUsagePlanKeyOutput.

Input

GetUsagePlanKeyInput dataclass

The GET request to get a usage plan key of a given key identifier.

Attributes

key_id class-attribute instance-attribute
key_id: str | None = None

The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.

usage_plan_id class-attribute instance-attribute
usage_plan_id: str | None = None

The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

Output

GetUsagePlanKeyOutput dataclass

Represents a usage plan key to identify a plan customer.

Attributes

id class-attribute instance-attribute
id: str | None = None

The Id of a usage plan key.

name class-attribute instance-attribute
name: str | None = None

The name of a usage plan key.

type class-attribute instance-attribute
type: str | None = None

The type of a usage plan key. Currently, the valid key type is API_KEY.

value class-attribute instance-attribute
value: str | None = None

The value of a usage plan key.