getAwsVersions

Provides access to available Kubernetes versions in a location for a given project.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.container.ContainerFunctions;
import com.pulumi.gcp.container.inputs.GetAwsVersionsArgs;
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 central1b = ContainerFunctions.getAwsVersions(GetAwsVersionsArgs.builder()
.location("us-west1")
.project("my-project")
.build());
ctx.export("firstAvailableVersion", data.google_container_aws_versions().versions().valid_versions()[0]);
}
}

Return

A collection of values returned by getAwsVersions.

Parameters

argument

A collection of arguments for invoking getAwsVersions.


suspend fun getAwsVersions(location: String? = null, project: String? = null): GetAwsVersionsResult

Return

A collection of values returned by getAwsVersions.

Parameters

location

The location to list versions for.

project

ID of the project to list available cluster versions for. Should match the project the cluster will be deployed to. Defaults to the project that the provider is authenticated with.

See also


Return

A collection of values returned by getAwsVersions.

Parameters

argument

Builder for com.pulumi.gcp.container.kotlin.inputs.GetAwsVersionsPlainArgs.

See also