@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
145 lines • 5.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides access to Kubernetes ConfigMap configuration for a given project, region and Managed Airflow Environment.
*
* To get more information about Managed Airflow User Workloads Config Map, see:
*
* * [API documentation](https://cloud.google.com/composer/docs/reference/rest/v1/projects.locations.environments.userWorkloadsConfigMaps)
* * How-to Guides
* * [Official Documentation](https://clouddocs.devsite.corp.google.com/composer/docs/composer-3/use-kubernetes-pod-operator#secret-config)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const exampleEnvironment = new gcp.composer.Environment("example", {
* name: "example-environment",
* config: {
* softwareConfig: {
* imageVersion: "composer-3-airflow-2",
* },
* },
* });
* const exampleUserWorkloadsConfigMap = new gcp.composer.UserWorkloadsConfigMap("example", {
* environment: exampleEnvironment.name,
* name: "example-config-map",
* data: {
* db_host: "dbhost:5432",
* api_host: "apihost:443",
* },
* });
* const example = gcp.composer.getUserWorkloadsConfigMapOutput({
* environment: exampleEnvironment.name,
* name: googleComposerUserWorkloadsConfigMap.example.name,
* });
* export const debug = example;
* ```
*/
export declare function getUserWorkloadsConfigMap(args: GetUserWorkloadsConfigMapArgs, opts?: pulumi.InvokeOptions): Promise<GetUserWorkloadsConfigMapResult>;
/**
* A collection of arguments for invoking getUserWorkloadsConfigMap.
*/
export interface GetUserWorkloadsConfigMapArgs {
/**
* Environment where the ConfigMap is stored.
*/
environment: string;
/**
* Name of the ConfigMap.
*/
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 getUserWorkloadsConfigMap.
*/
export interface GetUserWorkloadsConfigMapResult {
/**
* The "data" field of Kubernetes ConfigMap, organized in key-value pairs.
* For details see: https://kubernetes.io/docs/concepts/configuration/configmap/
*/
readonly data: {
[key: string]: string;
};
readonly deletionPolicy: string;
readonly environment: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly project?: string;
readonly region?: string;
}
/**
* Provides access to Kubernetes ConfigMap configuration for a given project, region and Managed Airflow Environment.
*
* To get more information about Managed Airflow User Workloads Config Map, see:
*
* * [API documentation](https://cloud.google.com/composer/docs/reference/rest/v1/projects.locations.environments.userWorkloadsConfigMaps)
* * How-to Guides
* * [Official Documentation](https://clouddocs.devsite.corp.google.com/composer/docs/composer-3/use-kubernetes-pod-operator#secret-config)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const exampleEnvironment = new gcp.composer.Environment("example", {
* name: "example-environment",
* config: {
* softwareConfig: {
* imageVersion: "composer-3-airflow-2",
* },
* },
* });
* const exampleUserWorkloadsConfigMap = new gcp.composer.UserWorkloadsConfigMap("example", {
* environment: exampleEnvironment.name,
* name: "example-config-map",
* data: {
* db_host: "dbhost:5432",
* api_host: "apihost:443",
* },
* });
* const example = gcp.composer.getUserWorkloadsConfigMapOutput({
* environment: exampleEnvironment.name,
* name: googleComposerUserWorkloadsConfigMap.example.name,
* });
* export const debug = example;
* ```
*/
export declare function getUserWorkloadsConfigMapOutput(args: GetUserWorkloadsConfigMapOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUserWorkloadsConfigMapResult>;
/**
* A collection of arguments for invoking getUserWorkloadsConfigMap.
*/
export interface GetUserWorkloadsConfigMapOutputArgs {
/**
* Environment where the ConfigMap is stored.
*/
environment: pulumi.Input<string>;
/**
* Name of the ConfigMap.
*/
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=getUserWorkloadsConfigMap.d.ts.map