@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
218 lines • 8.64 kB
TypeScript
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<pulumi.ID>, 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;
/**
* Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
* When a 'terraform destroy' or 'pulumi up' would delete the resource,
* the command will fail if this field is set to "PREVENT" in Terraform state.
* When set to "ABANDON", the command will remove the resource from Terraform
* management without updating or deleting the resource in the API.
* When set to "DELETE", deleting the resource is allowed.
*/
readonly deletionPolicy: pulumi.Output<string>;
/**
* A nested object resource.
* Structure is documented below.
*/
readonly encryptionSpec: pulumi.Output<outputs.healthcare.DatasetEncryptionSpec>;
/**
* The location for the Dataset.
*/
readonly location: pulumi.Output<string>;
/**
* The resource name for the Dataset.
*/
readonly name: pulumi.Output<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
readonly project: pulumi.Output<string>;
/**
* The fully qualified name of this dataset
*/
readonly selfLink: pulumi.Output<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.
*/
readonly timeZone: pulumi.Output<string>;
/**
* 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 {
/**
* Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
* When a 'terraform destroy' or 'pulumi up' would delete the resource,
* the command will fail if this field is set to "PREVENT" in Terraform state.
* When set to "ABANDON", the command will remove the resource from Terraform
* management without updating or deleting the resource in the API.
* When set to "DELETE", deleting the resource is allowed.
*/
deletionPolicy?: pulumi.Input<string | undefined>;
/**
* A nested object resource.
* Structure is documented below.
*/
encryptionSpec?: pulumi.Input<inputs.healthcare.DatasetEncryptionSpec | undefined>;
/**
* The location for the Dataset.
*/
location?: pulumi.Input<string | undefined>;
/**
* The resource name for the Dataset.
*/
name?: pulumi.Input<string | undefined>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* The fully qualified name of this dataset
*/
selfLink?: pulumi.Input<string | undefined>;
/**
* 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<string | undefined>;
}
/**
* The set of arguments for constructing a Dataset resource.
*/
export interface DatasetArgs {
/**
* Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
* When a 'terraform destroy' or 'pulumi up' would delete the resource,
* the command will fail if this field is set to "PREVENT" in Terraform state.
* When set to "ABANDON", the command will remove the resource from Terraform
* management without updating or deleting the resource in the API.
* When set to "DELETE", deleting the resource is allowed.
*/
deletionPolicy?: pulumi.Input<string | undefined>;
/**
* A nested object resource.
* Structure is documented below.
*/
encryptionSpec?: pulumi.Input<inputs.healthcare.DatasetEncryptionSpec | undefined>;
/**
* The location for the Dataset.
*/
location: pulumi.Input<string>;
/**
* The resource name for the Dataset.
*/
name?: pulumi.Input<string | undefined>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* 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<string | undefined>;
}
//# sourceMappingURL=dataset.d.ts.map