getSdk

suspend fun getSdk(argument: GetSdkPlainArgs): GetSdkResult

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.apigateway.ApigatewayFunctions;
import com.pulumi.aws.apigateway.inputs.GetSdkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ApigatewayFunctions.getSdk(GetSdkArgs.builder()
.restApiId(aws_api_gateway_stage.example().rest_api_id())
.stageName(aws_api_gateway_stage.example().stage_name())
.sdkType("android")
.parameters(Map.ofEntries(
Map.entry("groupId", "example"),
Map.entry("artifactId", "example"),
Map.entry("artifactVersion", "example"),
Map.entry("invokerPackage", "example")
))
.build());
}
}

Return

A collection of values returned by getSdk.

Parameters

argument

A collection of arguments for invoking getSdk.


suspend fun getSdk(parameters: Map<String, String>? = null, restApiId: String, sdkType: String, stageName: String): GetSdkResult

Return

A collection of values returned by getSdk.

Parameters

parameters

Key-value map of query string parameters sdk_type properties of the SDK. For SDK Type of objectivec or swift, a parameter named classPrefix is required. For SDK Type of android, parameters named groupId, artifactId, artifactVersion, and invokerPackage are required. For SDK Type of java, parameters named serviceName and javaPackageName are required.

restApiId

Identifier of the associated REST API.

sdkType

Language for the generated SDK. Currently java, javascript, android, objectivec (for iOS), swift (for iOS), and ruby are supported.

stageName

Name of the Stage that will be exported.

See also


suspend fun getSdk(argument: suspend GetSdkPlainArgsBuilder.() -> Unit): GetSdkResult

Return

A collection of values returned by getSdk.

Parameters

argument

Builder for com.pulumi.aws.apigateway.kotlin.inputs.GetSdkPlainArgs.

See also