amazonka-apigateway-1.6.1: Amazon API Gateway SDK.

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

Network.AWS.APIGateway.CreateUsagePlanKey

Contents

Description

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

Synopsis

Creating a Request

createUsagePlanKey Source #

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.

Instances
Eq CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Data CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateUsagePlanKey -> c CreateUsagePlanKey #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateUsagePlanKey #

toConstr :: CreateUsagePlanKey -> Constr #

dataTypeOf :: CreateUsagePlanKey -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateUsagePlanKey) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateUsagePlanKey) #

gmapT :: (forall b. Data b => b -> b) -> CreateUsagePlanKey -> CreateUsagePlanKey #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateUsagePlanKey -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateUsagePlanKey -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateUsagePlanKey -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateUsagePlanKey -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateUsagePlanKey -> m CreateUsagePlanKey #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateUsagePlanKey -> m CreateUsagePlanKey #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateUsagePlanKey -> m CreateUsagePlanKey #

Read CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Show CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Generic CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Associated Types

type Rep CreateUsagePlanKey :: Type -> Type #

Hashable CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

ToJSON CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

AWSRequest CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Associated Types

type Rs CreateUsagePlanKey :: Type #

ToHeaders CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

ToPath CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

ToQuery CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

NFData CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Methods

rnf :: CreateUsagePlanKey -> () #

type Rep CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

type Rep CreateUsagePlanKey = D1 (MetaData "CreateUsagePlanKey" "Network.AWS.APIGateway.CreateUsagePlanKey" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "CreateUsagePlanKey'" PrefixI True) (S1 (MetaSel (Just "_cupkUsagePlanId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_cupkKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cupkKeyType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateUsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.CreateUsagePlanKey

Request Lenses

cupkUsagePlanId :: 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.

cupkKeyId :: Lens' CreateUsagePlanKey Text Source #

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

cupkKeyType :: Lens' CreateUsagePlanKey Text Source #

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

  • upkValue - The value of a usage plan key.
  • upkName - The name of a usage plan key.
  • upkId - The Id of a usage plan key.
  • upkType - The type of a usage plan key. Currently, the valid key type is API_KEY .

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: usagePlanKey smart constructor.

Instances
Eq UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Data UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsagePlanKey -> c UsagePlanKey #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsagePlanKey #

toConstr :: UsagePlanKey -> Constr #

dataTypeOf :: UsagePlanKey -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UsagePlanKey) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsagePlanKey) #

gmapT :: (forall b. Data b => b -> b) -> UsagePlanKey -> UsagePlanKey #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsagePlanKey -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsagePlanKey -> r #

gmapQ :: (forall d. Data d => d -> u) -> UsagePlanKey -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UsagePlanKey -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsagePlanKey -> m UsagePlanKey #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsagePlanKey -> m UsagePlanKey #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsagePlanKey -> m UsagePlanKey #

Read UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Show UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Generic UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Associated Types

type Rep UsagePlanKey :: Type -> Type #

Hashable UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

FromJSON UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

NFData UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

Methods

rnf :: UsagePlanKey -> () #

type Rep UsagePlanKey Source # 
Instance details

Defined in Network.AWS.APIGateway.Types.Product

type Rep UsagePlanKey = D1 (MetaData "UsagePlanKey" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "UsagePlanKey'" PrefixI True) ((S1 (MetaSel (Just "_upkValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_upkName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_upkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_upkType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

Response Lenses

upkValue :: Lens' UsagePlanKey (Maybe Text) Source #

The value of a usage plan key.

upkName :: Lens' UsagePlanKey (Maybe Text) Source #

The name of a usage plan key.

upkId :: Lens' UsagePlanKey (Maybe Text) Source #

The Id of a usage plan key.

upkType :: Lens' UsagePlanKey (Maybe Text) Source #

The type of a usage plan key. Currently, the valid key type is API_KEY .