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

  • gsdkParameters - A string-to-string key-value map of query parameters sdkType -dependent properties of the SDK. For sdkType of objectivec or swift , a parameter named classPrefix is required. For sdkType of android , parameters named groupId , artifactId , artifactVersion , and invokerPackage are required. For sdkType of java , parameters named serviceName and javaPackageName are required.
  • gsdkRestAPIId - [Required] The string identifier of the associated RestApi .
  • gsdkStageName - [Required] The name of the Stage that the SDK will use.
  • gsdkSdkType - [Required] The language for the generated SDK. Currently java , javascript , android , objectivec (for iOS), swift (for iOS), and ruby are supported.

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 :: * #

ToHeaders GetSDK Source # 

Methods

toHeaders :: GetSDK -> [Header] #

ToPath GetSDK Source # 

Methods

toPath :: GetSDK -> ByteString #

ToQuery GetSDK Source # 
type Rep GetSDK Source # 
type Rep GetSDK = D1 * (MetaData "GetSDK" "Network.AWS.APIGateway.GetSDK" "amazonka-apigateway-1.6.0-JJ9NJtNe0aRBcVRYpJCEA2" 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 string-to-string key-value map of query parameters sdkType -dependent properties of the SDK. For sdkType of objectivec or swift , a parameter named classPrefix is required. For sdkType of android , parameters named groupId , artifactId , artifactVersion , and invokerPackage are required. For sdkType of java , parameters named serviceName and javaPackageName are required.

gsdkRestAPIId :: Lens' GetSDK Text Source #

Required
The string identifier of the associated RestApi .

gsdkStageName :: Lens' GetSDK Text Source #

Required
The name of the Stage that the SDK will use.

gsdkSdkType :: Lens' GetSDK Text Source #

Required
The language for the generated SDK. Currently java , javascript , android , objectivec (for iOS), swift (for iOS), and ruby 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.6.0-JJ9NJtNe0aRBcVRYpJCEA2" False) (C1 * (MetaCons "GetSDKResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_gsdkrsBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ByteString))) (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 ByteString) 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 response.

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

The content-type header value in the HTTP response.

gsdkrsResponseStatus :: Lens' GetSDKResponse Int Source #

  • - | The response status code.