| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.APIGateway.GetSDK
Description
Generates a client SDK for a RestApi and Stage .
Synopsis
- getSDK :: Text -> Text -> Text -> GetSDK
- data GetSDK
- gsdkParameters :: Lens' GetSDK (HashMap Text Text)
- gsdkRestAPIId :: Lens' GetSDK Text
- gsdkStageName :: Lens' GetSDK Text
- gsdkSdkType :: Lens' GetSDK Text
- getSDKResponse :: Int -> GetSDKResponse
- data GetSDKResponse
- gsdkrsBody :: Lens' GetSDKResponse (Maybe ByteString)
- gsdkrsContentDisposition :: Lens' GetSDKResponse (Maybe Text)
- gsdkrsContentType :: Lens' GetSDKResponse (Maybe Text)
- gsdkrsResponseStatus :: Lens' GetSDKResponse Int
Creating a Request
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 parameterssdkType-dependent properties of the SDK. ForsdkTypeofobjectivecorswift, a parameter namedclassPrefixis required. ForsdkTypeofandroid, parameters namedgroupId,artifactId,artifactVersion, andinvokerPackageare required. ForsdkTypeofjava, parameters namedserviceNameandjavaPackageNameare required.gsdkRestAPIId- [Required] The string identifier of the associatedRestApi.gsdkStageName- [Required] The name of theStagethat the SDK will use.gsdkSdkType- [Required] The language for the generated SDK. Currentlyjava,javascript,android,objectivec(for iOS),swift(for iOS), andrubyare supported.
Instances
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.
gsdkSdkType :: Lens' GetSDK Text Source #
- Required
- The language for the generated SDK. Currently
java,javascript,android,objectivec(for iOS),swift(for iOS), andrubyare supported.
Destructuring the Response
Arguments
| :: Int | |
| -> GetSDKResponse |
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:
gsdkrsBody- The binary blob response toGetSdk, which contains the generated SDK.gsdkrsContentDisposition- The content-disposition header value in the HTTP response.gsdkrsContentType- The content-type header value in the HTTP response.gsdkrsResponseStatus- -- | The response status code.
data GetSDKResponse Source #
The binary blob response to GetSdk , which contains the generated SDK.
See: getSDKResponse smart constructor.
Instances
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.