com.pulumi.gcp.healthcare.kotlin.Dataset.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.healthcare.kotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
/**
* Builder for [Dataset].
*/
@PulumiTagMarker
public class DatasetResourceBuilder internal constructor() {
public var name: String? = null
public var args: DatasetArgs = DatasetArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend DatasetArgsBuilder.() -> Unit) {
val builder = DatasetArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Dataset {
val builtJavaResource = com.pulumi.gcp.healthcare.Dataset(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Dataset(builtJavaResource)
}
}
/**
* 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",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.healthcare.Dataset("default",
* name="example-dataset",
* location="us-central1",
* time_zone="UTC")
* ```
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:healthcare:Dataset
* properties:
* name: example-dataset
* location: us-central1
* timeZone: UTC
* ```
*
* ## 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}}
* ```
* ```sh
* $ pulumi import gcp:healthcare/dataset:Dataset default {{project}}/{{location}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:healthcare/dataset:Dataset default {{location}}/{{name}}
* ```
*/
public class Dataset internal constructor(
override val javaResource: com.pulumi.gcp.healthcare.Dataset,
) : KotlinCustomResource(javaResource, DatasetMapper) {
/**
* The location for the Dataset.
* - - -
*/
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* The resource name for the Dataset.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
public val project: Output
get() = javaResource.project().applyValue({ args0 -> args0 })
/**
* The fully qualified name of this dataset
*/
public val selfLink: Output
get() = javaResource.selfLink().applyValue({ args0 -> args0 })
/**
* 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.
*/
public val timeZone: Output
get() = javaResource.timeZone().applyValue({ args0 -> args0 })
}
public object DatasetMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.gcp.healthcare.Dataset::class == javaResource::class
override fun map(javaResource: Resource): Dataset = Dataset(
javaResource as
com.pulumi.gcp.healthcare.Dataset,
)
}
/**
* @see [Dataset].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Dataset].
*/
public suspend fun dataset(name: String, block: suspend DatasetResourceBuilder.() -> Unit): Dataset {
val builder = DatasetResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Dataset].
* @param name The _unique_ name of the resulting resource.
*/
public fun dataset(name: String): Dataset {
val builder = DatasetResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy