| 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 |
Network.AWS.APIGateway.CreateUsagePlanKey
Description
Creates a usage plan key for adding an existing API key to a usage plan.
Synopsis
- 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
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateUsagePlanKey |
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:
cupkUsagePlanId- [Required] The Id of theUsagePlanresource representing the usage plan containing the to-be-createdUsagePlanKeyresource representing a plan customer.cupkKeyId- [Required] The identifier of aUsagePlanKeyresource for a plan customer.cupkKeyType- [Required] The type of aUsagePlanKeyresource for a plan customer.
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.
Instances
Request Lenses
cupkUsagePlanId :: Lens' CreateUsagePlanKey Text Source #
- Required
- The Id of the
UsagePlanresource representing the usage plan containing the to-be-createdUsagePlanKeyresource representing a plan customer.
cupkKeyId :: Lens' CreateUsagePlanKey Text Source #
- Required
- The identifier of a
UsagePlanKeyresource for a plan customer.
cupkKeyType :: Lens' CreateUsagePlanKey Text Source #
- Required
- The type of a
UsagePlanKeyresource 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.