@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
83 lines (82 loc) • 2.61 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides access to available Kubernetes versions in a location for a given project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const central1b = gcp.container.getAzureVersions({
* location: "us-west1",
* project: "my-project",
* });
* export const firstAvailableVersion = versions.validVersions[0];
* ```
*/
export declare function getAzureVersions(args?: GetAzureVersionsArgs, opts?: pulumi.InvokeOptions): Promise<GetAzureVersionsResult>;
/**
* A collection of arguments for invoking getAzureVersions.
*/
export interface GetAzureVersionsArgs {
/**
* The location to list versions for.
*/
location?: 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.
*/
project?: string;
}
/**
* A collection of values returned by getAzureVersions.
*/
export interface GetAzureVersionsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location?: string;
readonly project?: string;
/**
* A list of Azure regions that are available for use with this project and GCP location.
*/
readonly supportedRegions: string[];
/**
* A list of versions available for use with this project and location.
*/
readonly validVersions: string[];
}
/**
* Provides access to available Kubernetes versions in a location for a given project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const central1b = gcp.container.getAzureVersions({
* location: "us-west1",
* project: "my-project",
* });
* export const firstAvailableVersion = versions.validVersions[0];
* ```
*/
export declare function getAzureVersionsOutput(args?: GetAzureVersionsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAzureVersionsResult>;
/**
* A collection of arguments for invoking getAzureVersions.
*/
export interface GetAzureVersionsOutputArgs {
/**
* The location to list versions for.
*/
location?: pulumi.Input<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.
*/
project?: pulumi.Input<string>;
}