1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. healthcare
  5. Dataset
Google Cloud Classic v7.18.0 published on Wednesday, Apr 10, 2024 by Pulumi

gcp.healthcare.Dataset

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.18.0 published on Wednesday, Apr 10, 2024 by Pulumi

    A Healthcare Dataset is a toplevel logical grouping of dicomStores, fhirStores and hl7V2Stores.

    To get more information about Dataset, see:

    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/v7/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
    

    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,
                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.

    Example

    The following reference example uses placeholder values for all input properties.

    var gcpDatasetResource = new Gcp.Healthcare.Dataset("gcpDatasetResource", new()
    {
        Location = "string",
        Name = "string",
        Project = "string",
        TimeZone = "string",
    });
    
    example, err := healthcare.NewDataset(ctx, "gcpDatasetResource", &healthcare.DatasetArgs{
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Project:  pulumi.String("string"),
    	TimeZone: pulumi.String("string"),
    })
    
    var gcpDatasetResource = new Dataset("gcpDatasetResource", DatasetArgs.builder()        
        .location("string")
        .name("string")
        .project("string")
        .timeZone("string")
        .build());
    
    gcp_dataset_resource = gcp.healthcare.Dataset("gcpDatasetResource",
        location="string",
        name="string",
        project="string",
        time_zone="string")
    
    const gcpDatasetResource = new gcp.healthcare.Dataset("gcpDatasetResource", {
        location: "string",
        name: "string",
        project: "string",
        timeZone: "string",
    });
    
    type: gcp:healthcare:Dataset
    properties:
        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

    The Dataset resource accepts the following input properties:

    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.
    TimeZone 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.


    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.
    TimeZone 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.


    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.
    timeZone 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.


    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.
    timeZone 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.


    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.


    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.
    timeZone 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    The fully qualified name of this dataset
    Id string
    The provider-assigned unique ID for this managed resource.
    SelfLink string
    The fully qualified name of this dataset
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    The fully qualified name of this dataset
    id string
    The provider-assigned unique ID for this managed resource.
    selfLink string
    The fully qualified name of this dataset
    id str
    The provider-assigned unique ID for this managed resource.
    self_link str
    The fully qualified name of this dataset
    id String
    The provider-assigned unique ID for this managed resource.
    selfLink String
    The fully qualified name of this dataset

    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,
            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.
    The following state arguments are supported:
    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.
    SelfLink string
    The fully qualified name of this dataset
    TimeZone 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.


    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.
    SelfLink string
    The fully qualified name of this dataset
    TimeZone 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.


    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.
    selfLink String
    The fully qualified name of this dataset
    timeZone 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.


    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.
    selfLink string
    The fully qualified name of this dataset
    timeZone 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.


    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.
    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.
    selfLink String
    The fully qualified name of this dataset
    timeZone 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.

    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.
    gcp logo
    Google Cloud Classic v7.18.0 published on Wednesday, Apr 10, 2024 by Pulumi