amazonka-apigateway-1.6.0: 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.ImportAPIKeys

Contents

Description

Import API keys from an external source, such as a CSV-formatted file.

Synopsis

Creating a Request

importAPIKeys Source #

Creates a value of ImportAPIKeys with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • iakFailOnWarnings - A query parameter to indicate whether to rollback ApiKey importation (true ) or not (false ) when error is encountered.
  • iakBody - The payload of the POST request to import API keys. For the payload format, see API Key File Format .
  • iakFormat - A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.

data ImportAPIKeys Source #

The POST request to import API keys from an external source, such as a CSV-formatted file.

See: importAPIKeys smart constructor.

Instances

Eq ImportAPIKeys Source # 
Data ImportAPIKeys Source # 

Methods

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

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

toConstr :: ImportAPIKeys -> Constr #

dataTypeOf :: ImportAPIKeys -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ImportAPIKeys Source # 
Generic ImportAPIKeys Source # 

Associated Types

type Rep ImportAPIKeys :: * -> * #

Hashable ImportAPIKeys Source # 
NFData ImportAPIKeys Source # 

Methods

rnf :: ImportAPIKeys -> () #

AWSRequest ImportAPIKeys Source # 
ToBody ImportAPIKeys Source # 
ToHeaders ImportAPIKeys Source # 
ToPath ImportAPIKeys Source # 
ToQuery ImportAPIKeys Source # 
type Rep ImportAPIKeys Source # 
type Rep ImportAPIKeys = D1 * (MetaData "ImportAPIKeys" "Network.AWS.APIGateway.ImportAPIKeys" "amazonka-apigateway-1.6.0-JJ9NJtNe0aRBcVRYpJCEA2" False) (C1 * (MetaCons "ImportAPIKeys'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_iakFailOnWarnings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_iakBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ByteString)) (S1 * (MetaSel (Just Symbol "_iakFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * APIKeysFormat)))))
type Rs ImportAPIKeys Source # 

Request Lenses

iakFailOnWarnings :: Lens' ImportAPIKeys (Maybe Bool) Source #

A query parameter to indicate whether to rollback ApiKey importation (true ) or not (false ) when error is encountered.

iakBody :: Lens' ImportAPIKeys ByteString Source #

The payload of the POST request to import API keys. For the payload format, see API Key File Format .

iakFormat :: Lens' ImportAPIKeys APIKeysFormat Source #

A query parameter to specify the input format to imported API keys. Currently, only the csv format is supported.

Destructuring the Response

importAPIKeysResponse Source #

Creates a value of ImportAPIKeysResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ImportAPIKeysResponse Source #

The identifier of an ApiKey used in a UsagePlan .

See: importAPIKeysResponse smart constructor.

Instances

Eq ImportAPIKeysResponse Source # 
Data ImportAPIKeysResponse Source # 

Methods

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

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

toConstr :: ImportAPIKeysResponse -> Constr #

dataTypeOf :: ImportAPIKeysResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportAPIKeysResponse Source # 
Show ImportAPIKeysResponse Source # 
Generic ImportAPIKeysResponse Source # 
NFData ImportAPIKeysResponse Source # 

Methods

rnf :: ImportAPIKeysResponse -> () #

type Rep ImportAPIKeysResponse Source # 
type Rep ImportAPIKeysResponse = D1 * (MetaData "ImportAPIKeysResponse" "Network.AWS.APIGateway.ImportAPIKeys" "amazonka-apigateway-1.6.0-JJ9NJtNe0aRBcVRYpJCEA2" False) (C1 * (MetaCons "ImportAPIKeysResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_iakrsIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_iakrsWarnings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_iakrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

iakrsIds :: Lens' ImportAPIKeysResponse [Text] Source #

A list of all the ApiKey identifiers.

iakrsWarnings :: Lens' ImportAPIKeysResponse [Text] Source #

A list of warning messages.

iakrsResponseStatus :: Lens' ImportAPIKeysResponse Int Source #

  • - | The response status code.