libZSservicesZSamazonka-apigatewayZSamazonka-apigateway
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.APIGateway.CreateUsagePlanKey

Description

Creates a usage plan key for adding an existing API key to a usage plan.

Synopsis

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

  • usagePlanId :: Text
    Required
    The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.
  • keyId :: Text
    Required
    The identifier of a UsagePlanKey resource for a plan customer.
  • keyType :: Text
    Required
    The type of a UsagePlanKey resource for a plan customer.

Instances

Instances details
Eq CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

Read CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

Show CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

Generic CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

Associated Types

type Rep CreateUsagePlanKey :: Type -> Type #

NFData CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

Methods

rnf :: CreateUsagePlanKey -> () #

Hashable CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

ToJSON CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

AWSRequest CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

Associated Types

type AWSResponse CreateUsagePlanKey #

ToHeaders CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

ToPath CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

ToQuery CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

type Rep CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

type Rep CreateUsagePlanKey = D1 ('MetaData "CreateUsagePlanKey" "Amazonka.APIGateway.CreateUsagePlanKey" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "CreateUsagePlanKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "usagePlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "keyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "keyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.CreateUsagePlanKey

newCreateUsagePlanKey Source #

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:

$sel:usagePlanId:CreateUsagePlanKey', createUsagePlanKey_usagePlanId - [Required] 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 - [Required] The identifier of a UsagePlanKey resource for a plan customer.

$sel:keyType:CreateUsagePlanKey', createUsagePlanKey_keyType - [Required] The type of a UsagePlanKey resource for a plan customer.

Request Lenses

createUsagePlanKey_usagePlanId :: Lens' CreateUsagePlanKey Text Source #

Required
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 #

Required
The identifier of a UsagePlanKey resource for a plan customer.

createUsagePlanKey_keyType :: Lens' CreateUsagePlanKey Text Source #

Required
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.

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.

"

Create and Use Usage Plans

See: newUsagePlanKey smart constructor.

Constructors

UsagePlanKey' 

Fields

Instances

Instances details
Eq UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Read UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Show UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Generic UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Associated Types

type Rep UsagePlanKey :: Type -> Type #

NFData UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Methods

rnf :: UsagePlanKey -> () #

Hashable UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

FromJSON UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

type Rep UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

type Rep UsagePlanKey = D1 ('MetaData "UsagePlanKey" "Amazonka.APIGateway.Types.UsagePlanKey" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "UsagePlanKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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.