amazonka-apigateway-2.0: Amazon API Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.APIGateway.GetUsagePlanKey

Description

Gets a usage plan key of a given key identifier.

Synopsis

Creating a Request

data GetUsagePlanKey Source #

The GET request to get a usage plan key of a given key identifier.

See: newGetUsagePlanKey smart constructor.

Constructors

GetUsagePlanKey' 

Fields

  • usagePlanId :: Text

    The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

  • keyId :: Text

    The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.

Instances

Instances details
ToHeaders GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

ToPath GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

ToQuery GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

AWSRequest GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

Associated Types

type AWSResponse GetUsagePlanKey #

Generic GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

Associated Types

type Rep GetUsagePlanKey :: Type -> Type #

Read GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

Show GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

NFData GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

Methods

rnf :: GetUsagePlanKey -> () #

Eq GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

Hashable GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

type AWSResponse GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

type Rep GetUsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.GetUsagePlanKey

type Rep GetUsagePlanKey = D1 ('MetaData "GetUsagePlanKey" "Amazonka.APIGateway.GetUsagePlanKey" "amazonka-apigateway-2.0-zw0Lbt4rUGxZBjJ4Rpfi" 'False) (C1 ('MetaCons "GetUsagePlanKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "usagePlanId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "keyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetUsagePlanKey Source #

Create a value of GetUsagePlanKey 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:

GetUsagePlanKey, getUsagePlanKey_usagePlanId - The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

$sel:keyId:GetUsagePlanKey', getUsagePlanKey_keyId - The key Id of the to-be-retrieved UsagePlanKey resource representing a plan customer.

Request Lenses

getUsagePlanKey_usagePlanId :: Lens' GetUsagePlanKey Text Source #

The Id of the UsagePlan resource representing the usage plan containing the to-be-retrieved UsagePlanKey resource representing a plan customer.

getUsagePlanKey_keyId :: Lens' GetUsagePlanKey Text Source #

The key Id of the to-be-retrieved UsagePlanKey resource representing 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' 

Fields

Instances

Instances details
FromJSON 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 #

Read UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Show UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

NFData UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Methods

rnf :: UsagePlanKey -> () #

Eq UsagePlanKey Source # 
Instance details

Defined in Amazonka.APIGateway.Types.UsagePlanKey

Hashable 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" "amazonka-apigateway-2.0-zw0Lbt4rUGxZBjJ4Rpfi" 'False) (C1 ('MetaCons "UsagePlanKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "value") '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: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.