libZSservicesZSamazonka-apigatewayZSamazonka-apigateway
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.APIGateway.GetSdk

Description

Generates a client SDK for a RestApi and Stage.

Synopsis

Creating a Request

data GetSdk Source #

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

See: newGetSdk smart constructor.

Constructors

GetSdk' 

Fields

  • parameters :: Maybe (HashMap Text Text)

    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.

  • restApiId :: Text
    Required
    The string identifier of the associated RestApi.
  • stageName :: Text
    Required
    The name of the Stage that the SDK will use.
  • sdkType :: Text
    Required
    The language for the generated SDK. Currently java, javascript, android, objectivec (for iOS), swift (for iOS), and ruby are supported.

Instances

Instances details
Eq GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Methods

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

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

Read GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Show GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Generic GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Associated Types

type Rep GetSdk :: Type -> Type #

Methods

from :: GetSdk -> Rep GetSdk x #

to :: Rep GetSdk x -> GetSdk #

NFData GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Methods

rnf :: GetSdk -> () #

Hashable GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Methods

hashWithSalt :: Int -> GetSdk -> Int #

hash :: GetSdk -> Int #

AWSRequest GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Associated Types

type AWSResponse GetSdk #

ToHeaders GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Methods

toHeaders :: GetSdk -> [Header] #

ToPath GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Methods

toPath :: GetSdk -> ByteString #

ToQuery GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

type Rep GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

type Rep GetSdk = D1 ('MetaData "GetSdk" "Amazonka.APIGateway.GetSdk" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "GetSdk'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "restApiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "stageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sdkType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse GetSdk Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

newGetSdk Source #

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.

$sel:restApiId:GetSdk', getSdk_restApiId - [Required] The string identifier of the associated RestApi.

$sel:stageName:GetSdk', getSdk_stageName - [Required] The name of the Stage that the SDK will use.

$sel:sdkType:GetSdk', getSdk_sdkType - [Required] 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_restApiId :: Lens' GetSdk Text Source #

Required
The string identifier of the associated RestApi.

getSdk_stageName :: Lens' GetSdk Text Source #

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

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

data GetSdkResponse Source #

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

See: newGetSdkResponse smart constructor.

Constructors

GetSdkResponse' 

Fields

Instances

Instances details
Eq GetSdkResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Show GetSdkResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Generic GetSdkResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Associated Types

type Rep GetSdkResponse :: Type -> Type #

NFData GetSdkResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

Methods

rnf :: GetSdkResponse -> () #

type Rep GetSdkResponse Source # 
Instance details

Defined in Amazonka.APIGateway.GetSdk

type Rep GetSdkResponse = D1 ('MetaData "GetSdkResponse" "Amazonka.APIGateway.GetSdk" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "GetSdkResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 ('MetaSel ('Just "contentDisposition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetSdkResponse Source #

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.

$sel:contentType: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.