Zone Args
data class ZoneArgs(val description: Output<String>? = null, val discoverySpec: Output<ZoneDiscoverySpecArgs>? = null, val displayName: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val lake: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val resourceSpec: Output<ZoneResourceSpecArgs>? = null, val type: Output<String>? = null) : ConvertibleToJava<ZoneArgs>
The Dataplex Zone resource
Example Usage
Basic_zone
A basic example of a dataplex zone
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dataplex.Lake;
import com.pulumi.gcp.dataplex.LakeArgs;
import com.pulumi.gcp.dataplex.Zone;
import com.pulumi.gcp.dataplex.ZoneArgs;
import com.pulumi.gcp.dataplex.inputs.ZoneDiscoverySpecArgs;
import com.pulumi.gcp.dataplex.inputs.ZoneResourceSpecArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var basic = new Lake("basic", LakeArgs.builder()
.location("us-west1")
.description("Lake for DCL")
.displayName("Lake for DCL")
.labels(Map.of("my-lake", "exists"))
.project("my-project-name")
.build());
var primary = new Zone("primary", ZoneArgs.builder()
.discoverySpec(ZoneDiscoverySpecArgs.builder()
.enabled(false)
.build())
.lake(basic.name())
.location("us-west1")
.resourceSpec(ZoneResourceSpecArgs.builder()
.locationType("MULTI_REGION")
.build())
.type("RAW")
.description("Zone for DCL")
.displayName("Zone for DCL")
.labels()
.project("my-project-name")
.build());
}
}
Content copied to clipboard
Import
Zone can be imported using any of these accepted formats
$ pulumi import gcp:dataplex/zone:Zone default projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}
Content copied to clipboard
$ pulumi import gcp:dataplex/zone:Zone default {{project}}/{{location}}/{{lake}}/{{name}}
Content copied to clipboard
$ pulumi import gcp:dataplex/zone:Zone default {{location}}/{{lake}}/{{name}}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(description: Output<String>? = null, discoverySpec: Output<ZoneDiscoverySpecArgs>? = null, displayName: Output<String>? = null, labels: Output<Map<String, String>>? = null, lake: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, resourceSpec: Output<ZoneResourceSpecArgs>? = null, type: Output<String>? = null)
Properties
Link copied to clipboard
Optional. Description of the zone.
Link copied to clipboard
Required. Specification of the discovery feature applied to data in this zone.
Link copied to clipboard
Optional. User friendly display name.
Link copied to clipboard
Required. Immutable. Specification of the resources that are referenced by the assets within this zone.