Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a usage plan key for adding an existing API key to a usage plan.
- createUsagePlanKey :: Text -> Text -> Text -> CreateUsagePlanKey
- data CreateUsagePlanKey
- cupkUsagePlanId :: Lens' CreateUsagePlanKey Text
- cupkKeyId :: Lens' CreateUsagePlanKey Text
- cupkKeyType :: Lens' CreateUsagePlanKey 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 CreateUsagePlanKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateUsagePlanKey Source #
The POST request to create a usage plan key for adding an existing API key to a usage plan.
See: createUsagePlanKey
smart constructor.
Request Lenses
cupkUsagePlanId :: Lens' CreateUsagePlanKey Text Source #
The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.
cupkKeyId :: Lens' CreateUsagePlanKey Text Source #
The identifier of a UsagePlanKey resource for a plan customer.
cupkKeyType :: Lens' CreateUsagePlanKey Text Source #
The type of a UsagePlanKey resource for 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.