@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
114 lines • 3.75 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Provides access to Managed Airflow environment configuration in a region for a
* given project.
*
* To get more information about Managed Airflow Environment, see:
*
* * [API documentation](https://cloud.google.com/composer/docs/reference/rest/v1/projects.locations.environments)
* * How-to Guides
* * [Official Documentation](https://docs.cloud.google.com/composer/docs/latest/composer-overview)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const composerEnvEnvironment = new gcp.composer.Environment("composer_env", {name: "composer-environment"});
* const composerEnv = gcp.composer.getEnvironment({
* name: test.name,
* });
* export const debug = composerEnv.then(composerEnv => composerEnv.configs);
* ```
*/
export declare function getEnvironment(args: GetEnvironmentArgs, opts?: pulumi.InvokeOptions): Promise<GetEnvironmentResult>;
/**
* A collection of arguments for invoking getEnvironment.
*/
export interface GetEnvironmentArgs {
/**
* Name of the environment.
*/
name: string;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: string;
/**
* The location or Compute Engine region of the environment.
*/
region?: string;
}
/**
* A collection of values returned by getEnvironment.
*/
export interface GetEnvironmentResult {
/**
* Configuration parameters for the environment.
*/
readonly configs: outputs.composer.GetEnvironmentConfig[];
readonly deletionPolicy: string;
readonly effectiveLabels: {
[key: string]: string;
};
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly labels: {
[key: string]: string;
};
readonly name: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly region?: string;
readonly storageConfigs: outputs.composer.GetEnvironmentStorageConfig[];
}
/**
* Provides access to Managed Airflow environment configuration in a region for a
* given project.
*
* To get more information about Managed Airflow Environment, see:
*
* * [API documentation](https://cloud.google.com/composer/docs/reference/rest/v1/projects.locations.environments)
* * How-to Guides
* * [Official Documentation](https://docs.cloud.google.com/composer/docs/latest/composer-overview)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const composerEnvEnvironment = new gcp.composer.Environment("composer_env", {name: "composer-environment"});
* const composerEnv = gcp.composer.getEnvironment({
* name: test.name,
* });
* export const debug = composerEnv.then(composerEnv => composerEnv.configs);
* ```
*/
export declare function getEnvironmentOutput(args: GetEnvironmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEnvironmentResult>;
/**
* A collection of arguments for invoking getEnvironment.
*/
export interface GetEnvironmentOutputArgs {
/**
* Name of the environment.
*/
name: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* The location or Compute Engine region of the environment.
*/
region?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getEnvironment.d.ts.map