@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
101 lines (100 loc) • 3.4 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides access to available platform versions in a location for a given project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const manifest = gcp.container.getAttachedInstallManifest({
* location: "us-west1",
* project: "my-project",
* clusterId: "test-cluster-1",
* platformVersion: "1.25.0-gke.1",
* });
* export const installManifest = manifest;
* ```
*/
export declare function getAttachedInstallManifest(args: GetAttachedInstallManifestArgs, opts?: pulumi.InvokeOptions): Promise<GetAttachedInstallManifestResult>;
/**
* A collection of arguments for invoking getAttachedInstallManifest.
*/
export interface GetAttachedInstallManifestArgs {
/**
* The name that will be used when creating the attached cluster resource.
*/
clusterId: string;
/**
* The location to list versions for.
*/
location: string;
/**
* The platform version for the cluster. A list of valid values can be retrieved using the `gcp.container.getAttachedVersions` data source.
*/
platformVersion: string;
/**
* ID of the project to list available platform 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 getAttachedInstallManifest.
*/
export interface GetAttachedInstallManifestResult {
readonly clusterId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
/**
* A string with the YAML manifest that needs to be applied to the cluster.
*/
readonly manifest: string;
readonly platformVersion: string;
readonly project: string;
}
/**
* Provides access to available platform versions in a location for a given project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const manifest = gcp.container.getAttachedInstallManifest({
* location: "us-west1",
* project: "my-project",
* clusterId: "test-cluster-1",
* platformVersion: "1.25.0-gke.1",
* });
* export const installManifest = manifest;
* ```
*/
export declare function getAttachedInstallManifestOutput(args: GetAttachedInstallManifestOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAttachedInstallManifestResult>;
/**
* A collection of arguments for invoking getAttachedInstallManifest.
*/
export interface GetAttachedInstallManifestOutputArgs {
/**
* The name that will be used when creating the attached cluster resource.
*/
clusterId: pulumi.Input<string>;
/**
* The location to list versions for.
*/
location: pulumi.Input<string>;
/**
* The platform version for the cluster. A list of valid values can be retrieved using the `gcp.container.getAttachedVersions` data source.
*/
platformVersion: pulumi.Input<string>;
/**
* ID of the project to list available platform 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>;
}