amazonka-apigateway-1.4.1: 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.GetExport

Contents

Description

Exports a deployed version of a RestApi in a specified format.

Synopsis

Creating a Request

getExport Source #

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

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

data GetExport Source #

Request a new export of a RestApi for a particular Stage.

See: getExport smart constructor.

Instances

Eq GetExport Source # 
Data GetExport Source # 

Methods

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

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

toConstr :: GetExport -> Constr #

dataTypeOf :: GetExport -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetExport Source # 
Show GetExport Source # 
Generic GetExport Source # 

Associated Types

type Rep GetExport :: * -> * #

Hashable GetExport Source # 
NFData GetExport Source # 

Methods

rnf :: GetExport -> () #

AWSRequest GetExport Source # 
ToQuery GetExport Source # 
ToPath GetExport Source # 
ToHeaders GetExport Source # 

Methods

toHeaders :: GetExport -> [Header] #

type Rep GetExport Source # 
type Rep GetExport = D1 (MetaData "GetExport" "Network.AWS.APIGateway.GetExport" "amazonka-apigateway-1.4.1-9LwN6bvDRGjBL5d3wQjvoh" False) (C1 (MetaCons "GetExport'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_geParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_geAccepts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_geRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_geStageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_geExportType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs GetExport Source # 

Request Lenses

geParameters :: Lens' GetExport (HashMap Text Text) Source #

A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType 'swagger', any combination of the following parameters are supported: 'integrations' will export x-amazon-apigateway-integration extensions 'authorizers' will export x-amazon-apigateway-authorizer extensions 'postman' will export with Postman extensions, allowing for import to the Postman tool

geAccepts :: Lens' GetExport (Maybe Text) Source #

The content-type of the export, for example 'application/json'. Currently 'application/json' and 'application/yaml' are supported for exportType 'swagger'. Should be specifed in the 'Accept' header for direct API requests.

geRestAPIId :: Lens' GetExport Text Source #

The identifier of the RestApi to be exported.

geStageName :: Lens' GetExport Text Source #

The name of the Stage that will be exported.

geExportType :: Lens' GetExport Text Source #

The type of export. Currently only 'swagger' is supported.

Destructuring the Response

getExportResponse Source #

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

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

data GetExportResponse Source #

The binary blob response to GetExport, which contains the generated SDK.

See: getExportResponse smart constructor.

Instances

Eq GetExportResponse Source # 
Data GetExportResponse Source # 

Methods

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

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

toConstr :: GetExportResponse -> Constr #

dataTypeOf :: GetExportResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetExportResponse Source # 
Generic GetExportResponse Source # 
NFData GetExportResponse Source # 

Methods

rnf :: GetExportResponse -> () #

type Rep GetExportResponse Source # 
type Rep GetExportResponse = D1 (MetaData "GetExportResponse" "Network.AWS.APIGateway.GetExport" "amazonka-apigateway-1.4.1-9LwN6bvDRGjBL5d3wQjvoh" False) (C1 (MetaCons "GetExportResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gersBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (HashMap Text Value)))) (S1 (MetaSel (Just Symbol "_gersContentDisposition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_gersContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gersBody :: Lens' GetExportResponse (Maybe (HashMap Text Value)) Source #

The binary blob response to GetExport, which contains the export.

gersContentDisposition :: Lens' GetExportResponse (Maybe Text) Source #

The content-disposition header value in the HTTP reseponse.

gersContentType :: Lens' GetExportResponse (Maybe Text) Source #

The content-type header value in the HTTP response. This will correspond to a valid 'accept' type in the request.