gcp.healthcare.Dataset
Explore with Pulumi AI
A Healthcare Dataset
is a toplevel logical grouping of dicomStores
, fhirStores
and hl7V2Stores
.
To get more information about Dataset, see:
- API documentation
- How-to Guides
Example Usage
Healthcare Dataset Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.healthcare.Dataset("default", {
name: "example-dataset",
location: "us-central1",
timeZone: "UTC",
});
import pulumi
import pulumi_gcp as gcp
default = gcp.healthcare.Dataset("default",
name="example-dataset",
location="us-central1",
time_zone="UTC")
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 {
_, err := healthcare.NewDataset(ctx, "default", &healthcare.DatasetArgs{
Name: pulumi.String("example-dataset"),
Location: pulumi.String("us-central1"),
TimeZone: pulumi.String("UTC"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.Healthcare.Dataset("default", new()
{
Name = "example-dataset",
Location = "us-central1",
TimeZone = "UTC",
});
});
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 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 default_ = new Dataset("default", DatasetArgs.builder()
.name("example-dataset")
.location("us-central1")
.timeZone("UTC")
.build());
}
}
resources:
default:
type: gcp:healthcare:Dataset
properties:
name: example-dataset
location: us-central1
timeZone: UTC
Healthcare Dataset Cmek
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const project = gcp.organizations.getProject({});
const keyRing = new gcp.kms.KeyRing("key_ring", {
name: "example-keyring",
location: "us-central1",
});
const cryptoKey = new gcp.kms.CryptoKey("crypto_key", {
name: "example-key",
keyRing: keyRing.id,
purpose: "ENCRYPT_DECRYPT",
});
const healthcareCmekKeyuser = new gcp.kms.CryptoKeyIAMBinding("healthcare_cmek_keyuser", {
cryptoKeyId: cryptoKey.id,
role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
members: [project.then(project => `serviceAccount:service-${project.number}@gcp-sa-healthcare.iam.gserviceaccount.com`)],
});
const _default = new gcp.healthcare.Dataset("default", {
name: "example-dataset",
location: "us-central1",
timeZone: "UTC",
encryptionSpec: {
kmsKeyName: cryptoKey.id,
},
}, {
dependsOn: [healthcareCmekKeyuser],
});
import pulumi
import pulumi_gcp as gcp
project = gcp.organizations.get_project()
key_ring = gcp.kms.KeyRing("key_ring",
name="example-keyring",
location="us-central1")
crypto_key = gcp.kms.CryptoKey("crypto_key",
name="example-key",
key_ring=key_ring.id,
purpose="ENCRYPT_DECRYPT")
healthcare_cmek_keyuser = gcp.kms.CryptoKeyIAMBinding("healthcare_cmek_keyuser",
crypto_key_id=crypto_key.id,
role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
members=[f"serviceAccount:service-{project.number}@gcp-sa-healthcare.iam.gserviceaccount.com"])
default = gcp.healthcare.Dataset("default",
name="example-dataset",
location="us-central1",
time_zone="UTC",
encryption_spec={
"kms_key_name": crypto_key.id,
},
opts = pulumi.ResourceOptions(depends_on=[healthcare_cmek_keyuser]))
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/healthcare"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/kms"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{}, nil)
if err != nil {
return err
}
keyRing, err := kms.NewKeyRing(ctx, "key_ring", &kms.KeyRingArgs{
Name: pulumi.String("example-keyring"),
Location: pulumi.String("us-central1"),
})
if err != nil {
return err
}
cryptoKey, err := kms.NewCryptoKey(ctx, "crypto_key", &kms.CryptoKeyArgs{
Name: pulumi.String("example-key"),
KeyRing: keyRing.ID(),
Purpose: pulumi.String("ENCRYPT_DECRYPT"),
})
if err != nil {
return err
}
healthcareCmekKeyuser, err := kms.NewCryptoKeyIAMBinding(ctx, "healthcare_cmek_keyuser", &kms.CryptoKeyIAMBindingArgs{
CryptoKeyId: cryptoKey.ID(),
Role: pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
Members: pulumi.StringArray{
pulumi.Sprintf("serviceAccount:service-%v@gcp-sa-healthcare.iam.gserviceaccount.com", project.Number),
},
})
if err != nil {
return err
}
_, err = healthcare.NewDataset(ctx, "default", &healthcare.DatasetArgs{
Name: pulumi.String("example-dataset"),
Location: pulumi.String("us-central1"),
TimeZone: pulumi.String("UTC"),
EncryptionSpec: &healthcare.DatasetEncryptionSpecArgs{
KmsKeyName: cryptoKey.ID(),
},
}, pulumi.DependsOn([]pulumi.Resource{
healthcareCmekKeyuser,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var project = Gcp.Organizations.GetProject.Invoke();
var keyRing = new Gcp.Kms.KeyRing("key_ring", new()
{
Name = "example-keyring",
Location = "us-central1",
});
var cryptoKey = new Gcp.Kms.CryptoKey("crypto_key", new()
{
Name = "example-key",
KeyRing = keyRing.Id,
Purpose = "ENCRYPT_DECRYPT",
});
var healthcareCmekKeyuser = new Gcp.Kms.CryptoKeyIAMBinding("healthcare_cmek_keyuser", new()
{
CryptoKeyId = cryptoKey.Id,
Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter",
Members = new[]
{
$"serviceAccount:service-{project.Apply(getProjectResult => getProjectResult.Number)}@gcp-sa-healthcare.iam.gserviceaccount.com",
},
});
var @default = new Gcp.Healthcare.Dataset("default", new()
{
Name = "example-dataset",
Location = "us-central1",
TimeZone = "UTC",
EncryptionSpec = new Gcp.Healthcare.Inputs.DatasetEncryptionSpecArgs
{
KmsKeyName = cryptoKey.Id,
},
}, new CustomResourceOptions
{
DependsOn =
{
healthcareCmekKeyuser,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.kms.KeyRing;
import com.pulumi.gcp.kms.KeyRingArgs;
import com.pulumi.gcp.kms.CryptoKey;
import com.pulumi.gcp.kms.CryptoKeyArgs;
import com.pulumi.gcp.kms.CryptoKeyIAMBinding;
import com.pulumi.gcp.kms.CryptoKeyIAMBindingArgs;
import com.pulumi.gcp.healthcare.Dataset;
import com.pulumi.gcp.healthcare.DatasetArgs;
import com.pulumi.gcp.healthcare.inputs.DatasetEncryptionSpecArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
final var project = OrganizationsFunctions.getProject();
var keyRing = new KeyRing("keyRing", KeyRingArgs.builder()
.name("example-keyring")
.location("us-central1")
.build());
var cryptoKey = new CryptoKey("cryptoKey", CryptoKeyArgs.builder()
.name("example-key")
.keyRing(keyRing.id())
.purpose("ENCRYPT_DECRYPT")
.build());
var healthcareCmekKeyuser = new CryptoKeyIAMBinding("healthcareCmekKeyuser", CryptoKeyIAMBindingArgs.builder()
.cryptoKeyId(cryptoKey.id())
.role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
.members(String.format("serviceAccount:service-%s@gcp-sa-healthcare.iam.gserviceaccount.com", project.applyValue(getProjectResult -> getProjectResult.number())))
.build());
var default_ = new Dataset("default", DatasetArgs.builder()
.name("example-dataset")
.location("us-central1")
.timeZone("UTC")
.encryptionSpec(DatasetEncryptionSpecArgs.builder()
.kmsKeyName(cryptoKey.id())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(healthcareCmekKeyuser)
.build());
}
}
resources:
default:
type: gcp:healthcare:Dataset
properties:
name: example-dataset
location: us-central1
timeZone: UTC
encryptionSpec:
kmsKeyName: ${cryptoKey.id}
options:
dependson:
- ${healthcareCmekKeyuser}
cryptoKey:
type: gcp:kms:CryptoKey
name: crypto_key
properties:
name: example-key
keyRing: ${keyRing.id}
purpose: ENCRYPT_DECRYPT
keyRing:
type: gcp:kms:KeyRing
name: key_ring
properties:
name: example-keyring
location: us-central1
healthcareCmekKeyuser:
type: gcp:kms:CryptoKeyIAMBinding
name: healthcare_cmek_keyuser
properties:
cryptoKeyId: ${cryptoKey.id}
role: roles/cloudkms.cryptoKeyEncrypterDecrypter
members:
- serviceAccount:service-${project.number}@gcp-sa-healthcare.iam.gserviceaccount.com
variables:
project:
fn::invoke:
Function: gcp:organizations:getProject
Arguments: {}
Create Dataset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Dataset(name: string, args: DatasetArgs, opts?: CustomResourceOptions);
@overload
def Dataset(resource_name: str,
args: DatasetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Dataset(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
encryption_spec: Optional[DatasetEncryptionSpecArgs] = None,
name: Optional[str] = None,
project: Optional[str] = None,
time_zone: Optional[str] = None)
func NewDataset(ctx *Context, name string, args DatasetArgs, opts ...ResourceOption) (*Dataset, error)
public Dataset(string name, DatasetArgs args, CustomResourceOptions? opts = null)
public Dataset(String name, DatasetArgs args)
public Dataset(String name, DatasetArgs args, CustomResourceOptions options)
type: gcp:healthcare:Dataset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatasetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gcpDatasetResource = new Gcp.Healthcare.Dataset("gcpDatasetResource", new()
{
Location = "string",
EncryptionSpec = new Gcp.Healthcare.Inputs.DatasetEncryptionSpecArgs
{
KmsKeyName = "string",
},
Name = "string",
Project = "string",
TimeZone = "string",
});
example, err := healthcare.NewDataset(ctx, "gcpDatasetResource", &healthcare.DatasetArgs{
Location: pulumi.String("string"),
EncryptionSpec: &healthcare.DatasetEncryptionSpecArgs{
KmsKeyName: pulumi.String("string"),
},
Name: pulumi.String("string"),
Project: pulumi.String("string"),
TimeZone: pulumi.String("string"),
})
var gcpDatasetResource = new Dataset("gcpDatasetResource", DatasetArgs.builder()
.location("string")
.encryptionSpec(DatasetEncryptionSpecArgs.builder()
.kmsKeyName("string")
.build())
.name("string")
.project("string")
.timeZone("string")
.build());
gcp_dataset_resource = gcp.healthcare.Dataset("gcpDatasetResource",
location="string",
encryption_spec={
"kms_key_name": "string",
},
name="string",
project="string",
time_zone="string")
const gcpDatasetResource = new gcp.healthcare.Dataset("gcpDatasetResource", {
location: "string",
encryptionSpec: {
kmsKeyName: "string",
},
name: "string",
project: "string",
timeZone: "string",
});
type: gcp:healthcare:Dataset
properties:
encryptionSpec:
kmsKeyName: string
location: string
name: string
project: string
timeZone: string
Dataset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Dataset resource accepts the following input properties:
- Location string
- The location for the Dataset.
- Encryption
Spec DatasetEncryption Spec - A nested object resource. Structure is documented below.
- Name string
- The resource name for the Dataset.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Time
Zone string - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- Location string
- The location for the Dataset.
- Encryption
Spec DatasetEncryption Spec Args - A nested object resource. Structure is documented below.
- Name string
- The resource name for the Dataset.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Time
Zone string - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- location String
- The location for the Dataset.
- encryption
Spec DatasetEncryption Spec - A nested object resource. Structure is documented below.
- name String
- The resource name for the Dataset.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- time
Zone String - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- location string
- The location for the Dataset.
- encryption
Spec DatasetEncryption Spec - A nested object resource. Structure is documented below.
- name string
- The resource name for the Dataset.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- time
Zone string - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- location str
- The location for the Dataset.
- encryption_
spec DatasetEncryption Spec Args - A nested object resource. Structure is documented below.
- name str
- The resource name for the Dataset.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- time_
zone str - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- location String
- The location for the Dataset.
- encryption
Spec Property Map - A nested object resource. Structure is documented below.
- name String
- The resource name for the Dataset.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- time
Zone String - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the Dataset resource produces the following output properties:
Look up Existing Dataset Resource
Get an existing Dataset resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatasetState, opts?: CustomResourceOptions): Dataset
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
encryption_spec: Optional[DatasetEncryptionSpecArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
self_link: Optional[str] = None,
time_zone: Optional[str] = None) -> Dataset
func GetDataset(ctx *Context, name string, id IDInput, state *DatasetState, opts ...ResourceOption) (*Dataset, error)
public static Dataset Get(string name, Input<string> id, DatasetState? state, CustomResourceOptions? opts = null)
public static Dataset get(String name, Output<String> id, DatasetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Encryption
Spec DatasetEncryption Spec - A nested object resource. Structure is documented below.
- Location string
- The location for the Dataset.
- Name string
- The resource name for the Dataset.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string - The fully qualified name of this dataset
- Time
Zone string - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- Encryption
Spec DatasetEncryption Spec Args - A nested object resource. Structure is documented below.
- Location string
- The location for the Dataset.
- Name string
- The resource name for the Dataset.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string - The fully qualified name of this dataset
- Time
Zone string - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- encryption
Spec DatasetEncryption Spec - A nested object resource. Structure is documented below.
- location String
- The location for the Dataset.
- name String
- The resource name for the Dataset.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String - The fully qualified name of this dataset
- time
Zone String - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- encryption
Spec DatasetEncryption Spec - A nested object resource. Structure is documented below.
- location string
- The location for the Dataset.
- name string
- The resource name for the Dataset.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link string - The fully qualified name of this dataset
- time
Zone string - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- encryption_
spec DatasetEncryption Spec Args - A nested object resource. Structure is documented below.
- location str
- The location for the Dataset.
- name str
- The resource name for the Dataset.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self_
link str - The fully qualified name of this dataset
- time_
zone str - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
- encryption
Spec Property Map - A nested object resource. Structure is documented below.
- location String
- The location for the Dataset.
- name String
- The resource name for the Dataset.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String - The fully qualified name of this dataset
- time
Zone String - The default timezone used by this dataset. Must be a either a valid IANA time zone name such as "America/New_York" or empty, which defaults to UTC. This is used for parsing times in resources (e.g., HL7 messages) where no explicit timezone is specified.
Supporting Types
DatasetEncryptionSpec, DatasetEncryptionSpecArgs
- Kms
Key stringName - KMS encryption key that is used to secure this dataset and its sub-resources. The key used for encryption and the dataset must be in the same location. If empty, the default Google encryption key will be used to secure this dataset. The format is projects/{projectId}/locations/{locationId}/keyRings/{keyRingId}/cryptoKeys/{keyId}.
- Kms
Key stringName - KMS encryption key that is used to secure this dataset and its sub-resources. The key used for encryption and the dataset must be in the same location. If empty, the default Google encryption key will be used to secure this dataset. The format is projects/{projectId}/locations/{locationId}/keyRings/{keyRingId}/cryptoKeys/{keyId}.
- kms
Key StringName - KMS encryption key that is used to secure this dataset and its sub-resources. The key used for encryption and the dataset must be in the same location. If empty, the default Google encryption key will be used to secure this dataset. The format is projects/{projectId}/locations/{locationId}/keyRings/{keyRingId}/cryptoKeys/{keyId}.
- kms
Key stringName - KMS encryption key that is used to secure this dataset and its sub-resources. The key used for encryption and the dataset must be in the same location. If empty, the default Google encryption key will be used to secure this dataset. The format is projects/{projectId}/locations/{locationId}/keyRings/{keyRingId}/cryptoKeys/{keyId}.
- kms_
key_ strname - KMS encryption key that is used to secure this dataset and its sub-resources. The key used for encryption and the dataset must be in the same location. If empty, the default Google encryption key will be used to secure this dataset. The format is projects/{projectId}/locations/{locationId}/keyRings/{keyRingId}/cryptoKeys/{keyId}.
- kms
Key StringName - KMS encryption key that is used to secure this dataset and its sub-resources. The key used for encryption and the dataset must be in the same location. If empty, the default Google encryption key will be used to secure this dataset. The format is projects/{projectId}/locations/{locationId}/keyRings/{keyRingId}/cryptoKeys/{keyId}.
Import
Dataset can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/datasets/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
When using the pulumi import
command, Dataset can be imported using one of the formats above. For example:
$ pulumi import gcp:healthcare/dataset:Dataset default projects/{{project}}/locations/{{location}}/datasets/{{name}}
$ pulumi import gcp:healthcare/dataset:Dataset default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:healthcare/dataset:Dataset default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.