Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Gets a usage plan key of a given key identifier.
Synopsis
- getUsagePlanKey :: Text -> Text -> GetUsagePlanKey
- data GetUsagePlanKey
- gUsagePlanId :: Lens' GetUsagePlanKey Text
- gKeyId :: Lens' GetUsagePlanKey Text
- usagePlanKey :: UsagePlanKey
- data UsagePlanKey
- upkValue :: Lens' UsagePlanKey (Maybe Text)
- upkName :: Lens' UsagePlanKey (Maybe Text)
- upkId :: Lens' UsagePlanKey (Maybe Text)
- upkType :: Lens' UsagePlanKey (Maybe Text)
Creating a Request
Creates a value of GetUsagePlanKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gUsagePlanId
- [Required] The Id of theUsagePlan
resource representing the usage plan containing the to-be-retrievedUsagePlanKey
resource representing a plan customer.gKeyId
- [Required] The key Id of the to-be-retrievedUsagePlanKey
resource representing a plan customer.
data GetUsagePlanKey Source #
The GET request to get a usage plan key of a given key identifier.
See: getUsagePlanKey
smart constructor.
Instances
Request Lenses
gUsagePlanId :: Lens' GetUsagePlanKey Text Source #
- Required
- The Id of the
UsagePlan
resource representing the usage plan containing the to-be-retrievedUsagePlanKey
resource representing a plan customer.
gKeyId :: Lens' GetUsagePlanKey Text Source #
- Required
- The key Id of the to-be-retrieved
UsagePlanKey
resource representing a plan customer.
Destructuring the Response
usagePlanKey :: UsagePlanKey Source #
Creates a value of UsagePlanKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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: usagePlanKey
smart constructor.