Workspace

class Workspace : KotlinCustomResource

A Data Mapper workspace is used to configure Data Mapper access, permissions and data sources for mapping clinical patient data to the FHIR standard. To get more information about Workspace, see:

Example Usage

Healthcare Workspace Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const dataset = new gcp.healthcare.Dataset("dataset", {
name: "example-dataset",
location: "us-central1",
});
const _default = new gcp.healthcare.Workspace("default", {
name: "example-dm-workspace",
dataset: dataset.id,
settings: {
dataProjectIds: ["example-data-source-project-id"],
},
labels: {
label1: "labelvalue1",
},
});
import pulumi
import pulumi_gcp as gcp
dataset = gcp.healthcare.Dataset("dataset",
name="example-dataset",
location="us-central1")
default = gcp.healthcare.Workspace("default",
name="example-dm-workspace",
dataset=dataset.id,
settings={
"data_project_ids": ["example-data-source-project-id"],
},
labels={
"label1": "labelvalue1",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var dataset = new Gcp.Healthcare.Dataset("dataset", new()
{
Name = "example-dataset",
Location = "us-central1",
});
var @default = new Gcp.Healthcare.Workspace("default", new()
{
Name = "example-dm-workspace",
Dataset = dataset.Id,
Settings = new Gcp.Healthcare.Inputs.WorkspaceSettingsArgs
{
DataProjectIds = new[]
{
"example-data-source-project-id",
},
},
Labels =
{
{ "label1", "labelvalue1" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/healthcare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
dataset, err := healthcare.NewDataset(ctx, "dataset", &healthcare.DatasetArgs{
Name: pulumi.String("example-dataset"),
Location: pulumi.String("us-central1"),
})
if err != nil {
return err
}
_, err = healthcare.NewWorkspace(ctx, "default", &healthcare.WorkspaceArgs{
Name: pulumi.String("example-dm-workspace"),
Dataset: dataset.ID(),
Settings: &healthcare.WorkspaceSettingsArgs{
DataProjectIds: pulumi.StringArray{
pulumi.String("example-data-source-project-id"),
},
},
Labels: pulumi.StringMap{
"label1": pulumi.String("labelvalue1"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.healthcare.Dataset;
import com.pulumi.gcp.healthcare.DatasetArgs;
import com.pulumi.gcp.healthcare.Workspace;
import com.pulumi.gcp.healthcare.WorkspaceArgs;
import com.pulumi.gcp.healthcare.inputs.WorkspaceSettingsArgs;
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 dataset = new Dataset("dataset", DatasetArgs.builder()
.name("example-dataset")
.location("us-central1")
.build());
var default_ = new Workspace("default", WorkspaceArgs.builder()
.name("example-dm-workspace")
.dataset(dataset.id())
.settings(WorkspaceSettingsArgs.builder()
.dataProjectIds("example-data-source-project-id")
.build())
.labels(Map.of("label1", "labelvalue1"))
.build());
}
}
resources:
default:
type: gcp:healthcare:Workspace
properties:
name: example-dm-workspace
dataset: ${dataset.id}
settings:
dataProjectIds:
- example-data-source-project-id
labels:
label1: labelvalue1
dataset:
type: gcp:healthcare:Dataset
properties:
name: example-dataset
location: us-central1

Import

Workspace can be imported using any of these accepted formats:

  • {{dataset}}/dataMapperWorkspaces/{{name}} When using the pulumi import command, Workspace can be imported using one of the formats above. For example:

$ pulumi import gcp:healthcare/workspace:Workspace default {{dataset}}/dataMapperWorkspaces/{{name}}

Properties

Link copied to clipboard
val dataset: Output<String>

Identifies the dataset addressed by this request. Must be in the format 'projects/{project}/locations/{location}/datasets/{dataset}'

Link copied to clipboard

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labels: Output<Map<String, String>>?

The user labels. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" } Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.

Link copied to clipboard
val name: Output<String>

The name of the workspace, in the format 'projects/{projectId}/locations/{location}/datasets/{datasetId}/dataMapperWorkspaces/{workspaceId}'

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
val pulumiLabels: Output<Map<String, String>>

The combination of labels configured directly on the resource and default labels configured on the provider.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Settings associated with this workspace. Structure is documented below.

Link copied to clipboard
val urn: Output<String>