amazonka-apigateway-1.4.5: Amazon API Gateway SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 # 
Data CreateUsagePlanKey Source # 

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 # 
Show CreateUsagePlanKey Source # 
Generic CreateUsagePlanKey Source # 
Hashable CreateUsagePlanKey Source # 
ToJSON CreateUsagePlanKey Source # 
NFData CreateUsagePlanKey Source # 

Methods

rnf :: CreateUsagePlanKey -> () #

AWSRequest CreateUsagePlanKey Source # 
ToPath CreateUsagePlanKey Source # 
ToHeaders CreateUsagePlanKey Source # 
ToQuery CreateUsagePlanKey Source # 
type Rep CreateUsagePlanKey Source # 
type Rep CreateUsagePlanKey = D1 (MetaData "CreateUsagePlanKey" "Network.AWS.APIGateway.CreateUsagePlanKey" "amazonka-apigateway-1.4.5-BIK2fycuXdJFBbWQ9Hqf16" False) (C1 (MetaCons "CreateUsagePlanKey'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cupkUsagePlanId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_cupkKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cupkKeyType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateUsagePlanKey Source # 

Request Lenses

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

cupkKeyId :: Lens' CreateUsagePlanKey Text Source #

The identifier of a UsagePlanKey resource for a plan customer.

cupkKeyType :: Lens' CreateUsagePlanKey Text Source #

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 # 
Data UsagePlanKey Source # 

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 # 
Show UsagePlanKey Source # 
Generic UsagePlanKey Source # 

Associated Types

type Rep UsagePlanKey :: * -> * #

Hashable UsagePlanKey Source # 
FromJSON UsagePlanKey Source # 
NFData UsagePlanKey Source # 

Methods

rnf :: UsagePlanKey -> () #

type Rep UsagePlanKey Source # 
type Rep UsagePlanKey = D1 (MetaData "UsagePlanKey" "Network.AWS.APIGateway.Types.Product" "amazonka-apigateway-1.4.5-BIK2fycuXdJFBbWQ9Hqf16" False) (C1 (MetaCons "UsagePlanKey'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_upkValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_upkName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_upkId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_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 .