| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.APIGateway.GetSdk
Description
Generates a client SDK for a RestApi and Stage.
Synopsis
- data GetSdk = GetSdk' {}
- newGetSdk :: Text -> Text -> Text -> GetSdk
- getSdk_parameters :: Lens' GetSdk (Maybe (HashMap Text Text))
- getSdk_restApiId :: Lens' GetSdk Text
- getSdk_stageName :: Lens' GetSdk Text
- getSdk_sdkType :: Lens' GetSdk Text
- data GetSdkResponse = GetSdkResponse' {}
- newGetSdkResponse :: Int -> GetSdkResponse
- getSdkResponse_body :: Lens' GetSdkResponse (Maybe ByteString)
- getSdkResponse_contentDisposition :: Lens' GetSdkResponse (Maybe Text)
- getSdkResponse_contentType :: Lens' GetSdkResponse (Maybe Text)
- getSdkResponse_httpStatus :: Lens' GetSdkResponse Int
Creating a Request
Request a new generated client SDK for a RestApi and Stage.
See: newGetSdk smart constructor.
Constructors
| GetSdk' | |
Fields
| |
Instances
Create a value of GetSdk with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:parameters:GetSdk', getSdk_parameters - 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.
GetSdk, getSdk_restApiId - The string identifier of the associated RestApi.
GetSdk, getSdk_stageName - The name of the Stage that the SDK will use.
$sel:sdkType:GetSdk', getSdk_sdkType - The language for the generated SDK. Currently java, javascript,
android, objectivec (for iOS), swift (for iOS), and ruby are
supported.
Request Lenses
getSdk_parameters :: Lens' GetSdk (Maybe (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.
getSdk_sdkType :: Lens' GetSdk Text Source #
The language for the generated SDK. Currently java, javascript,
android, objectivec (for iOS), swift (for iOS), and ruby are
supported.
Destructuring the Response
data GetSdkResponse Source #
The binary blob response to GetSdk, which contains the generated SDK.
See: newGetSdkResponse smart constructor.
Constructors
| GetSdkResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetSdkResponse |
Create a value of GetSdkResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:body:GetSdkResponse', getSdkResponse_body - The binary blob response to GetSdk, which contains the generated SDK.
$sel:contentDisposition:GetSdkResponse', getSdkResponse_contentDisposition - The content-disposition header value in the HTTP response.
GetSdkResponse, getSdkResponse_contentType - The content-type header value in the HTTP response.
$sel:httpStatus:GetSdkResponse', getSdkResponse_httpStatus - The response's http status code.
Response Lenses
getSdkResponse_body :: Lens' GetSdkResponse (Maybe ByteString) Source #
The binary blob response to GetSdk, which contains the generated SDK.
getSdkResponse_contentDisposition :: Lens' GetSdkResponse (Maybe Text) Source #
The content-disposition header value in the HTTP response.
getSdkResponse_contentType :: Lens' GetSdkResponse (Maybe Text) Source #
The content-type header value in the HTTP response.
getSdkResponse_httpStatus :: Lens' GetSdkResponse Int Source #
The response's http status code.