Google Cloud (GCP) Classic

Pulumi Official
Package maintained by Pulumi
v6.24.0 published on Tuesday, May 17, 2022 by Pulumi

getAwsVersions

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

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
    public MyStack()
    {
        var central1b = Output.Create(Gcp.Container.GetAwsVersions.InvokeAsync(new Gcp.Container.GetAwsVersionsArgs
        {
            Location = "us-west1",
            Project = "my-project",
        }));
        this.FirstAvailableVersion = data.Google_container_aws_versions.Versions.Valid_versions[0];
    }

    [Output("firstAvailableVersion")]
    public Output<string> FirstAvailableVersion { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/container"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := container.GetAwsVersions(ctx, &container.GetAwsVersionsArgs{
			Location: pulumi.StringRef("us-west1"),
			Project:  pulumi.StringRef("my-project"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstAvailableVersion", data.Google_container_aws_versions.Versions.Valid_versions[0])
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var central1b = Output.of(ContainerFunctions.getAwsVersions(GetAwsVersionsArgs.builder()
            .location("us-west1")
            .project("my-project")
            .build()));

        ctx.export("firstAvailableVersion", data.getGoogle_container_aws_versions().getVersions().getValid_versions()[0]);
        }
}
import pulumi
import pulumi_gcp as gcp

central1b = gcp.container.get_aws_versions(location="us-west1",
    project="my-project")
pulumi.export("firstAvailableVersion", data["google_container_aws_versions"]["versions"]["valid_versions"])
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const central1b = gcp.container.getAwsVersions({
    location: "us-west1",
    project: "my-project",
});
export const firstAvailableVersion = data.google_container_aws_versions.versions.valid_versions[0];
variables:
  central1b:
    Fn::Invoke:
      Function: gcp:container:getAwsVersions
      Arguments:
        location: us-west1
        project: my-project
outputs:
  firstAvailableVersion: ${data.google_container_aws_versions.versions.valid_versions[0]}

Using getAwsVersions

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAwsVersions(args: GetAwsVersionsArgs, opts?: InvokeOptions): Promise<GetAwsVersionsResult>
function getAwsVersionsOutput(args: GetAwsVersionsOutputArgs, opts?: InvokeOptions): Output<GetAwsVersionsResult>
def get_aws_versions(location: Optional[str] = None,
                     project: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetAwsVersionsResult
def get_aws_versions_output(location: Optional[pulumi.Input[str]] = None,
                     project: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetAwsVersionsResult]
func GetAwsVersions(ctx *Context, args *GetAwsVersionsArgs, opts ...InvokeOption) (*GetAwsVersionsResult, error)
func GetAwsVersionsOutput(ctx *Context, args *GetAwsVersionsOutputArgs, opts ...InvokeOption) GetAwsVersionsResultOutput

> Note: This function is named GetAwsVersions in the Go SDK.

public static class GetAwsVersions 
{
    public static Task<GetAwsVersionsResult> InvokeAsync(GetAwsVersionsArgs args, InvokeOptions? opts = null)
    public static Output<GetAwsVersionsResult> Invoke(GetAwsVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAwsVersionsResult> getAwsVersions(GetAwsVersionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: gcp:container/getAwsVersions:getAwsVersions
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Location string

The location to list versions for.

Project string

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.

Location string

The location to list versions for.

Project string

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.

location String

The location to list versions for.

project String

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.

location string

The location to list versions for.

project string

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.

location str

The location to list versions for.

project str

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.

location String

The location to list versions for.

project String

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.

getAwsVersions Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

SupportedRegions List<string>

A list of AWS regions that are available for use with this project and GCP location.

ValidVersions List<string>

A list of versions available for use with this project and location.

Location string
Project string
Id string

The provider-assigned unique ID for this managed resource.

SupportedRegions []string

A list of AWS regions that are available for use with this project and GCP location.

ValidVersions []string

A list of versions available for use with this project and location.

Location string
Project string
id String

The provider-assigned unique ID for this managed resource.

supportedRegions List

A list of AWS regions that are available for use with this project and GCP location.

validVersions List

A list of versions available for use with this project and location.

location String
project String
id string

The provider-assigned unique ID for this managed resource.

supportedRegions string[]

A list of AWS regions that are available for use with this project and GCP location.

validVersions string[]

A list of versions available for use with this project and location.

location string
project string
id str

The provider-assigned unique ID for this managed resource.

supported_regions Sequence[str]

A list of AWS regions that are available for use with this project and GCP location.

valid_versions Sequence[str]

A list of versions available for use with this project and location.

location str
project str
id String

The provider-assigned unique ID for this managed resource.

supportedRegions List

A list of AWS regions that are available for use with this project and GCP location.

validVersions List

A list of versions available for use with this project and location.

location String
project String

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes

This Pulumi package is based on the google-beta Terraform Provider.