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

Contents

Description

Generates a client SDK for a RestApi and Stage.

Synopsis

Creating a Request

getSDK Source #

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

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

data GetSDK Source #

Request a new generated client SDK for a RestApi and Stage.

See: getSDK smart constructor.

Instances

Eq GetSDK Source # 

Methods

(==) :: GetSDK -> GetSDK -> Bool #

(/=) :: GetSDK -> GetSDK -> Bool #

Data GetSDK Source # 

Methods

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

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

toConstr :: GetSDK -> Constr #

dataTypeOf :: GetSDK -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetSDK Source # 
Show GetSDK Source # 
Generic GetSDK Source # 

Associated Types

type Rep GetSDK :: * -> * #

Methods

from :: GetSDK -> Rep GetSDK x #

to :: Rep GetSDK x -> GetSDK #

Hashable GetSDK Source # 

Methods

hashWithSalt :: Int -> GetSDK -> Int #

hash :: GetSDK -> Int #

NFData GetSDK Source # 

Methods

rnf :: GetSDK -> () #

AWSRequest GetSDK Source # 

Associated Types

type Rs GetSDK :: * #

ToQuery GetSDK Source # 
ToPath GetSDK Source # 

Methods

toPath :: GetSDK -> ByteString #

ToHeaders GetSDK Source # 

Methods

toHeaders :: GetSDK -> [Header] #

type Rep GetSDK Source # 
type Rep GetSDK = D1 (MetaData "GetSDK" "Network.AWS.APIGateway.GetSDK" "amazonka-apigateway-1.4.1-9LwN6bvDRGjBL5d3wQjvoh" False) (C1 (MetaCons "GetSDK'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gsdkParameters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) (S1 (MetaSel (Just Symbol "_gsdkRestAPIId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gsdkStageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gsdkSdkType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs GetSDK Source # 

Request Lenses

gsdkParameters :: Lens' GetSDK (HashMap Text Text) Source #

A key-value map of query string parameters that specify properties of the SDK, depending on the requested sdkType. For sdkType 'objectivec', a parameter named "classPrefix" is required. For sdkType 'android', parameters named "groupId", "artifactId", "artifactVersion", and "invokerPackage" are required.

gsdkRestAPIId :: Lens' GetSDK Text Source #

The identifier of the RestApi that the SDK will use.

gsdkStageName :: Lens' GetSDK Text Source #

The name of the Stage that the SDK will use.

gsdkSdkType :: Lens' GetSDK Text Source #

The language for the generated SDK. Currently javascript, android, and objectivec (for iOS) are supported.

Destructuring the Response

getSDKResponse Source #

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

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

data GetSDKResponse Source #

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

See: getSDKResponse smart constructor.

Instances

Eq GetSDKResponse Source # 
Data GetSDKResponse Source # 

Methods

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

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

toConstr :: GetSDKResponse -> Constr #

dataTypeOf :: GetSDKResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show GetSDKResponse Source # 
Generic GetSDKResponse Source # 

Associated Types

type Rep GetSDKResponse :: * -> * #

NFData GetSDKResponse Source # 

Methods

rnf :: GetSDKResponse -> () #

type Rep GetSDKResponse Source # 
type Rep GetSDKResponse = D1 (MetaData "GetSDKResponse" "Network.AWS.APIGateway.GetSDK" "amazonka-apigateway-1.4.1-9LwN6bvDRGjBL5d3wQjvoh" False) (C1 (MetaCons "GetSDKResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gsdkrsBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (HashMap Text Value)))) (S1 (MetaSel (Just Symbol "_gsdkrsContentDisposition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_gsdkrsContentType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gsdkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gsdkrsBody :: Lens' GetSDKResponse (Maybe (HashMap Text Value)) Source #

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

gsdkrsContentDisposition :: Lens' GetSDKResponse (Maybe Text) Source #

The content-disposition header value in the HTTP reseponse.

gsdkrsContentType :: Lens' GetSDKResponse (Maybe Text) Source #

The content-type header value in the HTTP response.

gsdkrsResponseStatus :: Lens' GetSDKResponse Int Source #

The response status code.