import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The Dataplex Zone resource * * ## Example Usage * * ### Basic_zone * A basic example of a dataplex zone * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const basic = new gcp.dataplex.Lake("basic", { * location: "us-west1", * name: "lake", * description: "Lake for DCL", * displayName: "Lake for DCL", * project: "my-project-name", * labels: { * "my-lake": "exists", * }, * }); * const primary = new gcp.dataplex.Zone("primary", { * discoverySpec: { * enabled: false, * }, * lake: basic.name, * location: "us-west1", * name: "zone", * resourceSpec: { * locationType: "MULTI_REGION", * }, * type: "RAW", * description: "Zone for DCL", * displayName: "Zone for DCL", * project: "my-project-name", * labels: {}, * }); * ``` * * ## Import * * Zone can be imported using any of these accepted formats: * * `projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}` * * `{{project}}/{{location}}/{{lake}}/{{name}}` * * `{{location}}/{{lake}}/{{name}}` * * When using the `pulumi import` command, Zone can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:dataplex/zone:Zone default projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}} * $ pulumi import gcp:dataplex/zone:Zone default {{project}}/{{location}}/{{lake}}/{{name}} * $ pulumi import gcp:dataplex/zone:Zone default {{location}}/{{lake}}/{{name}} * ``` */ export declare class Zone extends pulumi.CustomResource { /** * Get an existing Zone 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, state?: ZoneState, opts?: pulumi.CustomResourceOptions): Zone; /** * Returns true if the given object is an instance of Zone. 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 Zone; /** * Output only. Aggregated status of the underlying assets of the zone. */ readonly assetStatuses: pulumi.Output; /** * Output only. The time when the zone was created. */ readonly createTime: pulumi.Output; /** * Optional. Description of the zone. */ readonly description: pulumi.Output; /** * Required. Specification of the discovery feature applied to data in this zone. */ readonly discoverySpec: pulumi.Output; /** * Optional. User friendly display name. */ readonly displayName: pulumi.Output; /** * 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 zone. * * **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 lake for the resource */ readonly lake: pulumi.Output; /** * The location for the resource */ readonly location: pulumi.Output; /** * The name of the zone. */ readonly name: pulumi.Output; /** * The project for the resource */ readonly project: pulumi.Output; /** * The combination of labels configured directly on the resource and default labels configured on the provider. */ readonly pulumiLabels: pulumi.Output<{ [key: string]: string; }>; /** * Required. Immutable. Specification of the resources that are referenced by the assets within this zone. */ readonly resourceSpec: pulumi.Output; /** * Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED */ readonly state: pulumi.Output; /** * Required. Immutable. The type of the zone. Possible values: TYPE_UNSPECIFIED, RAW, CURATED */ readonly type: pulumi.Output; /** * Output only. System generated globally unique ID for the zone. This ID will be different if the zone is deleted and re-created with the same name. */ readonly uid: pulumi.Output; /** * Output only. The time when the zone was last updated. */ readonly updateTime: pulumi.Output; /** * Create a Zone 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: ZoneArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Zone resources. */ export interface ZoneState { /** * Output only. Aggregated status of the underlying assets of the zone. */ assetStatuses?: pulumi.Input[]>; /** * Output only. The time when the zone was created. */ createTime?: pulumi.Input; /** * Optional. Description of the zone. */ description?: pulumi.Input; /** * Required. Specification of the discovery feature applied to data in this zone. */ discoverySpec?: pulumi.Input; /** * Optional. User friendly display name. */ displayName?: pulumi.Input; /** * 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; }>; /** * Optional. User defined labels for the zone. * * **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; }>; /** * The lake for the resource */ lake?: pulumi.Input; /** * The location for the resource */ location?: pulumi.Input; /** * The name of the zone. */ name?: pulumi.Input; /** * The project for the resource */ project?: pulumi.Input; /** * The combination of labels configured directly on the resource and default labels configured on the provider. */ pulumiLabels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Required. Immutable. Specification of the resources that are referenced by the assets within this zone. */ resourceSpec?: pulumi.Input; /** * Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED */ state?: pulumi.Input; /** * Required. Immutable. The type of the zone. Possible values: TYPE_UNSPECIFIED, RAW, CURATED */ type?: pulumi.Input; /** * Output only. System generated globally unique ID for the zone. This ID will be different if the zone is deleted and re-created with the same name. */ uid?: pulumi.Input; /** * Output only. The time when the zone was last updated. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a Zone resource. */ export interface ZoneArgs { /** * Optional. Description of the zone. */ description?: pulumi.Input; /** * Required. Specification of the discovery feature applied to data in this zone. */ discoverySpec: pulumi.Input; /** * Optional. User friendly display name. */ displayName?: pulumi.Input; /** * Optional. User defined labels for the zone. * * **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; }>; /** * The lake for the resource */ lake: pulumi.Input; /** * The location for the resource */ location: pulumi.Input; /** * The name of the zone. */ name?: pulumi.Input; /** * The project for the resource */ project?: pulumi.Input; /** * Required. Immutable. Specification of the resources that are referenced by the assets within this zone. */ resourceSpec: pulumi.Input; /** * Required. Immutable. The type of the zone. Possible values: TYPE_UNSPECIFIED, RAW, CURATED */ type: pulumi.Input; }