Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets a usage plan key of a given key identifier.
Synopsis
- data GetUsagePlanKey = GetUsagePlanKey' {
- usagePlanId :: Text
- keyId :: Text
- newGetUsagePlanKey :: Text -> Text -> GetUsagePlanKey
- getUsagePlanKey_usagePlanId :: Lens' GetUsagePlanKey Text
- getUsagePlanKey_keyId :: Lens' GetUsagePlanKey Text
- data UsagePlanKey = UsagePlanKey' {}
- newUsagePlanKey :: UsagePlanKey
- usagePlanKey_value :: Lens' UsagePlanKey (Maybe Text)
- usagePlanKey_name :: Lens' UsagePlanKey (Maybe Text)
- usagePlanKey_id :: Lens' UsagePlanKey (Maybe Text)
- usagePlanKey_type :: Lens' UsagePlanKey (Maybe Text)
Creating a Request
data GetUsagePlanKey Source #
The GET request to get a usage plan key of a given key identifier.
See: newGetUsagePlanKey
smart constructor.
GetUsagePlanKey' | |
|
Instances
Create a value of GetUsagePlanKey
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:usagePlanId:GetUsagePlanKey'
, getUsagePlanKey_usagePlanId
- [Required] The Id of the UsagePlan resource representing the usage plan
containing the to-be-retrieved UsagePlanKey resource representing a plan
customer.
$sel:keyId:GetUsagePlanKey'
, getUsagePlanKey_keyId
- [Required] The key Id of the to-be-retrieved UsagePlanKey resource
representing a plan customer.
Request Lenses
getUsagePlanKey_usagePlanId :: Lens' GetUsagePlanKey Text Source #
- Required
- The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.
getUsagePlanKey_keyId :: Lens' GetUsagePlanKey Text Source #
- Required
- The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.
Destructuring the Response
data UsagePlanKey Source #
Represents a usage plan key to identify a plan customer.
To associate an API stage with a selected API key in a usage plan, you must create a UsagePlanKey resource to represent the selected ApiKey.
"
See: newUsagePlanKey
smart constructor.
Instances
newUsagePlanKey :: UsagePlanKey Source #
Create a value of UsagePlanKey
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:value:UsagePlanKey'
, usagePlanKey_value
- The value of a usage plan key.
$sel:name:UsagePlanKey'
, usagePlanKey_name
- The name of a usage plan key.
$sel:id:UsagePlanKey'
, usagePlanKey_id
- The Id of a usage plan key.
$sel:type':UsagePlanKey'
, usagePlanKey_type
- The type of a usage plan key. Currently, the valid key type is
API_KEY
.
Response Lenses
usagePlanKey_value :: Lens' UsagePlanKey (Maybe Text) Source #
The value of a usage plan key.
usagePlanKey_name :: Lens' UsagePlanKey (Maybe Text) Source #
The name of a usage plan key.
usagePlanKey_id :: Lens' UsagePlanKey (Maybe Text) Source #
The Id of a usage plan key.
usagePlanKey_type :: Lens' UsagePlanKey (Maybe Text) Source #
The type of a usage plan key. Currently, the valid key type is
API_KEY
.