| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.APIGateway.CreateUsagePlanKey
Description
Creates a usage plan key for adding an existing API key to a usage plan.
Synopsis
- data CreateUsagePlanKey = CreateUsagePlanKey' {}
- newCreateUsagePlanKey :: Text -> Text -> Text -> CreateUsagePlanKey
- createUsagePlanKey_usagePlanId :: Lens' CreateUsagePlanKey Text
- createUsagePlanKey_keyId :: Lens' CreateUsagePlanKey Text
- createUsagePlanKey_keyType :: Lens' CreateUsagePlanKey Text
- data UsagePlanKey = UsagePlanKey' {}
- newUsagePlanKey :: UsagePlanKey
- usagePlanKey_id :: Lens' UsagePlanKey (Maybe Text)
- usagePlanKey_name :: Lens' UsagePlanKey (Maybe Text)
- usagePlanKey_type :: Lens' UsagePlanKey (Maybe Text)
- usagePlanKey_value :: Lens' UsagePlanKey (Maybe Text)
Creating a Request
data CreateUsagePlanKey Source #
The POST request to create a usage plan key for adding an existing API key to a usage plan.
See: newCreateUsagePlanKey smart constructor.
Constructors
| CreateUsagePlanKey' | |
Fields
| |
Instances
newCreateUsagePlanKey Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateUsagePlanKey |
Create a value of CreateUsagePlanKey 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:
CreateUsagePlanKey, createUsagePlanKey_usagePlanId - The Id of the UsagePlan resource representing the usage plan containing
the to-be-created UsagePlanKey resource representing a plan customer.
$sel:keyId:CreateUsagePlanKey', createUsagePlanKey_keyId - The identifier of a UsagePlanKey resource for a plan customer.
$sel:keyType:CreateUsagePlanKey', createUsagePlanKey_keyType - The type of a UsagePlanKey resource for a plan customer.
Request Lenses
createUsagePlanKey_usagePlanId :: 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.
createUsagePlanKey_keyId :: Lens' CreateUsagePlanKey Text Source #
The identifier of a UsagePlanKey resource for a plan customer.
createUsagePlanKey_keyType :: Lens' CreateUsagePlanKey Text Source #
The type of a UsagePlanKey resource for a plan customer.
Destructuring the Response
data UsagePlanKey Source #
Represents a usage plan key to identify a plan customer.
See: newUsagePlanKey smart constructor.
Constructors
| UsagePlanKey' | |
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:id:UsagePlanKey', usagePlanKey_id - The Id of a usage plan key.
$sel:name:UsagePlanKey', usagePlanKey_name - The name 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.
$sel:value:UsagePlanKey', usagePlanKey_value - The value of a usage plan key.
Response Lenses
usagePlanKey_id :: Lens' UsagePlanKey (Maybe Text) Source #
The Id of a usage plan key.
usagePlanKey_name :: Lens' UsagePlanKey (Maybe Text) Source #
The name 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.
usagePlanKey_value :: Lens' UsagePlanKey (Maybe Text) Source #
The value of a usage plan key.