@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
277 lines (276 loc) • 9.22 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* The Dataplex Lake resource
*
* ## Example Usage
*
* ### Basic_lake
* A basic example of a dataplex lake
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const primary = new gcp.dataplex.Lake("primary", {
* location: "us-west1",
* name: "lake",
* description: "Lake for DCL",
* displayName: "Lake for DCL",
* project: "my-project-name",
* labels: {
* "my-lake": "exists",
* },
* });
* ```
*
* ## Import
*
* Lake can be imported using any of these accepted formats:
*
* * `projects/{{project}}/locations/{{location}}/lakes/{{name}}`
*
* * `{{project}}/{{location}}/{{name}}`
*
* * `{{location}}/{{name}}`
*
* When using the `pulumi import` command, Lake can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:dataplex/lake:Lake default projects/{{project}}/locations/{{location}}/lakes/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:dataplex/lake:Lake default {{project}}/{{location}}/{{name}}
* ```
*
* ```sh
* $ pulumi import gcp:dataplex/lake:Lake default {{location}}/{{name}}
* ```
*/
export declare class Lake extends pulumi.CustomResource {
/**
* Get an existing Lake resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LakeState, opts?: pulumi.CustomResourceOptions): Lake;
/**
* Returns true if the given object is an instance of Lake. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Lake;
/**
* Output only. Aggregated status of the underlying assets of the lake.
*/
readonly assetStatuses: pulumi.Output<outputs.dataplex.LakeAssetStatus[]>;
/**
* Output only. The time when the lake was created.
*/
readonly createTime: pulumi.Output<string>;
/**
* Optional. Description of the lake.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Optional. User friendly display name.
*/
readonly displayName: pulumi.Output<string | undefined>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
readonly effectiveLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* Optional. User-defined labels for the lake.
*
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* The location for the resource
*/
readonly location: pulumi.Output<string>;
/**
* Optional. Settings to manage lake and Dataproc Metastore service instance association.
*/
readonly metastore: pulumi.Output<outputs.dataplex.LakeMetastore | undefined>;
/**
* Output only. Metastore status of the lake.
*/
readonly metastoreStatuses: pulumi.Output<outputs.dataplex.LakeMetastoreStatus[]>;
/**
* The name of the lake.
*
*
*
* - - -
*/
readonly name: pulumi.Output<string>;
/**
* The project for the resource
*/
readonly project: pulumi.Output<string>;
/**
* The combination of labels configured directly on the resource and default labels configured on the provider.
*/
readonly pulumiLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* Output only. Service account associated with this lake. This service account must be authorized to access or operate on resources managed by the lake.
*/
readonly serviceAccount: pulumi.Output<string>;
/**
* Output only. Current state of the lake. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
*/
readonly state: pulumi.Output<string>;
/**
* Output only. System generated globally unique ID for the lake. This ID will be different if the lake is deleted and re-created with the same name.
*/
readonly uid: pulumi.Output<string>;
/**
* Output only. The time when the lake was last updated.
*/
readonly updateTime: pulumi.Output<string>;
/**
* Create a Lake resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: LakeArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Lake resources.
*/
export interface LakeState {
/**
* Output only. Aggregated status of the underlying assets of the lake.
*/
assetStatuses?: pulumi.Input<pulumi.Input<inputs.dataplex.LakeAssetStatus>[]>;
/**
* Output only. The time when the lake was created.
*/
createTime?: pulumi.Input<string>;
/**
* Optional. Description of the lake.
*/
description?: pulumi.Input<string>;
/**
* Optional. User friendly display name.
*/
displayName?: pulumi.Input<string>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
effectiveLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Optional. User-defined labels for the lake.
*
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The location for the resource
*/
location?: pulumi.Input<string>;
/**
* Optional. Settings to manage lake and Dataproc Metastore service instance association.
*/
metastore?: pulumi.Input<inputs.dataplex.LakeMetastore>;
/**
* Output only. Metastore status of the lake.
*/
metastoreStatuses?: pulumi.Input<pulumi.Input<inputs.dataplex.LakeMetastoreStatus>[]>;
/**
* The name of the lake.
*
*
*
* - - -
*/
name?: pulumi.Input<string>;
/**
* The project for the resource
*/
project?: pulumi.Input<string>;
/**
* The combination of labels configured directly on the resource and default labels configured on the provider.
*/
pulumiLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Output only. Service account associated with this lake. This service account must be authorized to access or operate on resources managed by the lake.
*/
serviceAccount?: pulumi.Input<string>;
/**
* Output only. Current state of the lake. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED
*/
state?: pulumi.Input<string>;
/**
* Output only. System generated globally unique ID for the lake. This ID will be different if the lake is deleted and re-created with the same name.
*/
uid?: pulumi.Input<string>;
/**
* Output only. The time when the lake was last updated.
*/
updateTime?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Lake resource.
*/
export interface LakeArgs {
/**
* Optional. Description of the lake.
*/
description?: pulumi.Input<string>;
/**
* Optional. User friendly display name.
*/
displayName?: pulumi.Input<string>;
/**
* Optional. User-defined labels for the lake.
*
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The location for the resource
*/
location: pulumi.Input<string>;
/**
* Optional. Settings to manage lake and Dataproc Metastore service instance association.
*/
metastore?: pulumi.Input<inputs.dataplex.LakeMetastore>;
/**
* The name of the lake.
*
*
*
* - - -
*/
name?: pulumi.Input<string>;
/**
* The project for the resource
*/
project?: pulumi.Input<string>;
}