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.ImportDocumentationParts

Contents

Description

Undocumented operation.

Synopsis

Creating a Request

importDocumentationParts Source #

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

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

  • idpMode - A query parameter to indicate whether to overwrite (OVERWRITE ) any existing DocumentationParts definition or to merge (MERGE ) the new definition into the existing one. The default value is MERGE .
  • idpFailOnWarnings - A query parameter to specify whether to rollback the documentation importation (true ) or not (false ) when a warning is encountered. The default value is false .
  • idpRestAPIId - [Required] The string identifier of the associated RestApi .
  • idpBody - [Required] Raw byte array representing the to-be-imported documentation parts. To import from a Swagger file, this is a JSON object.

data ImportDocumentationParts Source #

Import documentation parts from an external (e.g., Swagger) definition file.

See: importDocumentationParts smart constructor.

Instances
Eq ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Data ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Methods

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

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

toConstr :: ImportDocumentationParts -> Constr #

dataTypeOf :: ImportDocumentationParts -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Generic ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Associated Types

type Rep ImportDocumentationParts :: Type -> Type #

Hashable ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

AWSRequest ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Associated Types

type Rs ImportDocumentationParts :: Type #

ToBody ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

ToHeaders ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

ToPath ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

ToQuery ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

NFData ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationParts = D1 (MetaData "ImportDocumentationParts" "Network.AWS.APIGateway.ImportDocumentationParts" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "ImportDocumentationParts'" PrefixI True) ((S1 (MetaSel (Just "_idpMode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PutMode)) :*: S1 (MetaSel (Just "_idpFailOnWarnings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_idpRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_idpBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ByteString))))
type Rs ImportDocumentationParts Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Request Lenses

idpMode :: Lens' ImportDocumentationParts (Maybe PutMode) Source #

A query parameter to indicate whether to overwrite (OVERWRITE ) any existing DocumentationParts definition or to merge (MERGE ) the new definition into the existing one. The default value is MERGE .

idpFailOnWarnings :: Lens' ImportDocumentationParts (Maybe Bool) Source #

A query parameter to specify whether to rollback the documentation importation (true ) or not (false ) when a warning is encountered. The default value is false .

idpRestAPIId :: Lens' ImportDocumentationParts Text Source #

Required
The string identifier of the associated RestApi .

idpBody :: Lens' ImportDocumentationParts ByteString Source #

Required
Raw byte array representing the to-be-imported documentation parts. To import from a Swagger file, this is a JSON object.

Destructuring the Response

importDocumentationPartsResponse Source #

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

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

  • idprsIds - A list of the returned documentation part identifiers.
  • idprsWarnings - A list of warning messages reported during import of documentation parts.
  • idprsResponseStatus - -- | The response status code.

data ImportDocumentationPartsResponse Source #

A collection of the imported DocumentationPart identifiers.

This is used to return the result when documentation parts in an external (e.g., Swagger) file are imported into API GatewayDocumenting an API , documentationpart:import , DocumentationPart

See: importDocumentationPartsResponse smart constructor.

Instances
Eq ImportDocumentationPartsResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Data ImportDocumentationPartsResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Methods

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

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

toConstr :: ImportDocumentationPartsResponse -> Constr #

dataTypeOf :: ImportDocumentationPartsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportDocumentationPartsResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Show ImportDocumentationPartsResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Generic ImportDocumentationPartsResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

Associated Types

type Rep ImportDocumentationPartsResponse :: Type -> Type #

NFData ImportDocumentationPartsResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationPartsResponse Source # 
Instance details

Defined in Network.AWS.APIGateway.ImportDocumentationParts

type Rep ImportDocumentationPartsResponse = D1 (MetaData "ImportDocumentationPartsResponse" "Network.AWS.APIGateway.ImportDocumentationParts" "amazonka-apigateway-1.6.1-BCCM2RP3l9Q2ENgHvKrj59" False) (C1 (MetaCons "ImportDocumentationPartsResponse'" PrefixI True) (S1 (MetaSel (Just "_idprsIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 (MetaSel (Just "_idprsWarnings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_idprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

idprsIds :: Lens' ImportDocumentationPartsResponse [Text] Source #

A list of the returned documentation part identifiers.

idprsWarnings :: Lens' ImportDocumentationPartsResponse [Text] Source #

A list of warning messages reported during import of documentation parts.