Skip to main content

sdks

Creates, updates, deletes, gets or lists a sdks resource.

Overview

Namesdks
TypeResource
Idaws.apigateway.sdks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bodystring (byte)The binary blob response to GetSdk, which contains the generated SDK.
content_dispositionstringThe content-disposition header value in the HTTP response.
content_typestringThe content-type header value in the HTTP response.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sdkselectrestapi_id, stage_name, sdk_type, regionparametersGenerates a client SDK for a RestApi and Stage.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
restapi_idstringThe string identifier of the associated RestApi.
sdk_typestringThe language for the generated SDK. Currently java, javascript, android, objectivec (for iOS), swift (for iOS), and ruby are supported.
stage_namestringThe name of the Stage that the SDK will use.
parametersobjectA 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.

SELECT examples

Generates a client SDK for a RestApi and Stage.

SELECT
body,
content_disposition,
content_type
FROM aws.apigateway.sdks
WHERE restapi_id = '{{ restapi_id }}' -- required
AND stage_name = '{{ stage_name }}' -- required
AND sdk_type = '{{ sdk_type }}' -- required
AND region = '{{ region }}' -- required
AND parameters = '{{ parameters }}'
;