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.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 # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Data ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

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 # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Generic ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Associated Types

type Rep ImportAPIKeys :: Type -> Type #

Hashable ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

AWSRequest ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Associated Types

type Rs ImportAPIKeys :: Type #

ToBody ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

ToHeaders ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

ToPath ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

ToQuery ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

NFData ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Methods

rnf :: ImportAPIKeys -> () #

type Rep ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

type Rep ImportAPIKeys = D1 (MetaData "ImportAPIKeys" "Network.AWS.APIGateway.ImportAPIKeys" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "ImportAPIKeys'" PrefixI True) (S1 (MetaSel (Just "_iakFailOnWarnings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_iakBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString) :*: S1 (MetaSel (Just "_iakFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 APIKeysFormat))))
type Rs ImportAPIKeys Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

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 # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Data ImportAPIKeysResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

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 # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Show ImportAPIKeysResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Generic ImportAPIKeysResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Associated Types

type Rep ImportAPIKeysResponse :: Type -> Type #

NFData ImportAPIKeysResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

Methods

rnf :: ImportAPIKeysResponse -> () #

type Rep ImportAPIKeysResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportAPIKeys

type Rep ImportAPIKeysResponse = D1 (MetaData "ImportAPIKeysResponse" "Network.AWS.APIGateway.ImportAPIKeys" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "ImportAPIKeysResponse'" PrefixI True) (S1 (MetaSel (Just "_iakrsIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_iakrsWarnings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_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.