import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A Healthcare `Dataset` is a toplevel logical grouping of `dicomStores`, `fhirStores` and `hl7V2Stores`. * * To get more information about Dataset, see: * * * [API documentation](https://cloud.google.com/healthcare/docs/reference/rest/v1/projects.locations.datasets) * * How-to Guides * * [Creating a dataset](https://cloud.google.com/healthcare/docs/how-tos/datasets) * * ## Example Usage * * ### Healthcare Dataset Basic * * ```typescript * 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", * }); * ``` * ### Healthcare Dataset Cmek * * ```typescript * 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 * * 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: * * ```sh * $ 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}} * ``` */ export declare class Dataset extends pulumi.CustomResource { /** * Get an existing Dataset 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?: DatasetState, opts?: pulumi.CustomResourceOptions): Dataset; /** * Returns true if the given object is an instance of Dataset. 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 Dataset; /** * A nested object resource. * Structure is documented below. */ readonly encryptionSpec: pulumi.Output; /** * The location for the Dataset. */ readonly location: pulumi.Output; /** * The resource name for the Dataset. */ readonly name: pulumi.Output; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ readonly project: pulumi.Output; /** * The fully qualified name of this dataset */ readonly selfLink: pulumi.Output; /** * 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. */ readonly timeZone: pulumi.Output; /** * Create a Dataset 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: DatasetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Dataset resources. */ export interface DatasetState { /** * A nested object resource. * Structure is documented below. */ encryptionSpec?: pulumi.Input; /** * The location for the Dataset. */ location?: pulumi.Input; /** * The resource name for the Dataset. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * The fully qualified name of this dataset */ selfLink?: pulumi.Input; /** * 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. */ timeZone?: pulumi.Input; } /** * The set of arguments for constructing a Dataset resource. */ export interface DatasetArgs { /** * A nested object resource. * Structure is documented below. */ encryptionSpec?: pulumi.Input; /** * The location for the Dataset. */ location: pulumi.Input; /** * The resource name for the Dataset. */ name?: pulumi.Input; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * 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. */ timeZone?: pulumi.Input; }