All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.healthcare.kotlin.DicomStore.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.healthcare.kotlin

import com.pulumi.core.Output
import com.pulumi.gcp.healthcare.kotlin.outputs.DicomStoreNotificationConfig
import com.pulumi.gcp.healthcare.kotlin.outputs.DicomStoreStreamConfig
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
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.gcp.healthcare.kotlin.outputs.DicomStoreNotificationConfig.Companion.toKotlin as dicomStoreNotificationConfigToKotlin
import com.pulumi.gcp.healthcare.kotlin.outputs.DicomStoreStreamConfig.Companion.toKotlin as dicomStoreStreamConfigToKotlin

/**
 * Builder for [DicomStore].
 */
@PulumiTagMarker
public class DicomStoreResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: DicomStoreArgs = DicomStoreArgs()

    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 DicomStoreArgsBuilder.() -> Unit) {
        val builder = DicomStoreArgsBuilder()
        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(): DicomStore {
        val builtJavaResource = com.pulumi.gcp.healthcare.DicomStore(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return DicomStore(builtJavaResource)
    }
}

/**
 * A DicomStore is a datastore inside a Healthcare dataset that conforms to the DICOM
 * (https://www.dicomstandard.org/about/) standard for Healthcare information exchange
 * To get more information about DicomStore, see:
 * * [API documentation](https://cloud.google.com/healthcare/docs/reference/rest/v1/projects.locations.datasets.dicomStores)
 * * How-to Guides
 *     * [Creating a DICOM store](https://cloud.google.com/healthcare/docs/how-tos/dicom)
 * ## Example Usage
 * ### Healthcare Dicom Store Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const topic = new gcp.pubsub.Topic("topic", {name: "dicom-notifications"});
 * const dataset = new gcp.healthcare.Dataset("dataset", {
 *     name: "example-dataset",
 *     location: "us-central1",
 * });
 * const _default = new gcp.healthcare.DicomStore("default", {
 *     name: "example-dicom-store",
 *     dataset: dataset.id,
 *     notificationConfig: {
 *         pubsubTopic: topic.id,
 *     },
 *     labels: {
 *         label1: "labelvalue1",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * topic = gcp.pubsub.Topic("topic", name="dicom-notifications")
 * dataset = gcp.healthcare.Dataset("dataset",
 *     name="example-dataset",
 *     location="us-central1")
 * default = gcp.healthcare.DicomStore("default",
 *     name="example-dicom-store",
 *     dataset=dataset.id,
 *     notification_config=gcp.healthcare.DicomStoreNotificationConfigArgs(
 *         pubsub_topic=topic.id,
 *     ),
 *     labels={
 *         "label1": "labelvalue1",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var topic = new Gcp.PubSub.Topic("topic", new()
 *     {
 *         Name = "dicom-notifications",
 *     });
 *     var dataset = new Gcp.Healthcare.Dataset("dataset", new()
 *     {
 *         Name = "example-dataset",
 *         Location = "us-central1",
 *     });
 *     var @default = new Gcp.Healthcare.DicomStore("default", new()
 *     {
 *         Name = "example-dicom-store",
 *         Dataset = dataset.Id,
 *         NotificationConfig = new Gcp.Healthcare.Inputs.DicomStoreNotificationConfigArgs
 *         {
 *             PubsubTopic = topic.Id,
 *         },
 *         Labels =
 *         {
 *             { "label1", "labelvalue1" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/pubsub"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		topic, err := pubsub.NewTopic(ctx, "topic", &pubsub.TopicArgs{
 * 			Name: pulumi.String("dicom-notifications"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		dataset, err := healthcare.NewDataset(ctx, "dataset", &healthcare.DatasetArgs{
 * 			Name:     pulumi.String("example-dataset"),
 * 			Location: pulumi.String("us-central1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = healthcare.NewDicomStore(ctx, "default", &healthcare.DicomStoreArgs{
 * 			Name:    pulumi.String("example-dicom-store"),
 * 			Dataset: dataset.ID(),
 * 			NotificationConfig: &healthcare.DicomStoreNotificationConfigArgs{
 * 				PubsubTopic: topic.ID(),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label1": pulumi.String("labelvalue1"),
 * 			},
 * 		})
 * 		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.pubsub.Topic;
 * import com.pulumi.gcp.pubsub.TopicArgs;
 * import com.pulumi.gcp.healthcare.Dataset;
 * import com.pulumi.gcp.healthcare.DatasetArgs;
 * import com.pulumi.gcp.healthcare.DicomStore;
 * import com.pulumi.gcp.healthcare.DicomStoreArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreNotificationConfigArgs;
 * 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 topic = new Topic("topic", TopicArgs.builder()
 *             .name("dicom-notifications")
 *             .build());
 *         var dataset = new Dataset("dataset", DatasetArgs.builder()
 *             .name("example-dataset")
 *             .location("us-central1")
 *             .build());
 *         var default_ = new DicomStore("default", DicomStoreArgs.builder()
 *             .name("example-dicom-store")
 *             .dataset(dataset.id())
 *             .notificationConfig(DicomStoreNotificationConfigArgs.builder()
 *                 .pubsubTopic(topic.id())
 *                 .build())
 *             .labels(Map.of("label1", "labelvalue1"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   default:
 *     type: gcp:healthcare:DicomStore
 *     properties:
 *       name: example-dicom-store
 *       dataset: ${dataset.id}
 *       notificationConfig:
 *         pubsubTopic: ${topic.id}
 *       labels:
 *         label1: labelvalue1
 *   topic:
 *     type: gcp:pubsub:Topic
 *     properties:
 *       name: dicom-notifications
 *   dataset:
 *     type: gcp:healthcare:Dataset
 *     properties:
 *       name: example-dataset
 *       location: us-central1
 * ```
 * 
 * ### Healthcare Dicom Store Bq Stream
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const topic = new gcp.pubsub.Topic("topic", {name: "dicom-notifications"});
 * const dataset = new gcp.healthcare.Dataset("dataset", {
 *     name: "example-dataset",
 *     location: "us-central1",
 * });
 * const bqDataset = new gcp.bigquery.Dataset("bq_dataset", {
 *     datasetId: "dicom_bq_ds",
 *     friendlyName: "test",
 *     description: "This is a test description",
 *     location: "US",
 *     deleteContentsOnDestroy: true,
 * });
 * const bqTable = new gcp.bigquery.Table("bq_table", {
 *     deletionProtection: false,
 *     datasetId: bqDataset.datasetId,
 *     tableId: "dicom_bq_tb",
 * });
 * const _default = new gcp.healthcare.DicomStore("default", {
 *     name: "example-dicom-store",
 *     dataset: dataset.id,
 *     notificationConfig: {
 *         pubsubTopic: topic.id,
 *     },
 *     labels: {
 *         label1: "labelvalue1",
 *     },
 *     streamConfigs: [{
 *         bigqueryDestination: {
 *             tableUri: pulumi.interpolate`bq://${bqDataset.project}.${bqDataset.datasetId}.${bqTable.tableId}`,
 *         },
 *     }],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * topic = gcp.pubsub.Topic("topic", name="dicom-notifications")
 * dataset = gcp.healthcare.Dataset("dataset",
 *     name="example-dataset",
 *     location="us-central1")
 * bq_dataset = gcp.bigquery.Dataset("bq_dataset",
 *     dataset_id="dicom_bq_ds",
 *     friendly_name="test",
 *     description="This is a test description",
 *     location="US",
 *     delete_contents_on_destroy=True)
 * bq_table = gcp.bigquery.Table("bq_table",
 *     deletion_protection=False,
 *     dataset_id=bq_dataset.dataset_id,
 *     table_id="dicom_bq_tb")
 * default = gcp.healthcare.DicomStore("default",
 *     name="example-dicom-store",
 *     dataset=dataset.id,
 *     notification_config=gcp.healthcare.DicomStoreNotificationConfigArgs(
 *         pubsub_topic=topic.id,
 *     ),
 *     labels={
 *         "label1": "labelvalue1",
 *     },
 *     stream_configs=[gcp.healthcare.DicomStoreStreamConfigArgs(
 *         bigquery_destination=gcp.healthcare.DicomStoreStreamConfigBigqueryDestinationArgs(
 *             table_uri=pulumi.Output.all(bq_dataset.project, bq_dataset.dataset_id, bq_table.table_id).apply(lambda project, dataset_id, table_id: f"bq://{project}.{dataset_id}.{table_id}"),
 *         ),
 *     )])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var topic = new Gcp.PubSub.Topic("topic", new()
 *     {
 *         Name = "dicom-notifications",
 *     });
 *     var dataset = new Gcp.Healthcare.Dataset("dataset", new()
 *     {
 *         Name = "example-dataset",
 *         Location = "us-central1",
 *     });
 *     var bqDataset = new Gcp.BigQuery.Dataset("bq_dataset", new()
 *     {
 *         DatasetId = "dicom_bq_ds",
 *         FriendlyName = "test",
 *         Description = "This is a test description",
 *         Location = "US",
 *         DeleteContentsOnDestroy = true,
 *     });
 *     var bqTable = new Gcp.BigQuery.Table("bq_table", new()
 *     {
 *         DeletionProtection = false,
 *         DatasetId = bqDataset.DatasetId,
 *         TableId = "dicom_bq_tb",
 *     });
 *     var @default = new Gcp.Healthcare.DicomStore("default", new()
 *     {
 *         Name = "example-dicom-store",
 *         Dataset = dataset.Id,
 *         NotificationConfig = new Gcp.Healthcare.Inputs.DicomStoreNotificationConfigArgs
 *         {
 *             PubsubTopic = topic.Id,
 *         },
 *         Labels =
 *         {
 *             { "label1", "labelvalue1" },
 *         },
 *         StreamConfigs = new[]
 *         {
 *             new Gcp.Healthcare.Inputs.DicomStoreStreamConfigArgs
 *             {
 *                 BigqueryDestination = new Gcp.Healthcare.Inputs.DicomStoreStreamConfigBigqueryDestinationArgs
 *                 {
 *                     TableUri = Output.Tuple(bqDataset.Project, bqDataset.DatasetId, bqTable.TableId).Apply(values =>
 *                     {
 *                         var project = values.Item1;
 *                         var datasetId = values.Item2;
 *                         var tableId = values.Item3;
 *                         return $"bq://{project}.{datasetId}.{tableId}";
 *                     }),
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"fmt"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/bigquery"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/pubsub"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		topic, err := pubsub.NewTopic(ctx, "topic", &pubsub.TopicArgs{
 * 			Name: pulumi.String("dicom-notifications"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		dataset, err := healthcare.NewDataset(ctx, "dataset", &healthcare.DatasetArgs{
 * 			Name:     pulumi.String("example-dataset"),
 * 			Location: pulumi.String("us-central1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		bqDataset, err := bigquery.NewDataset(ctx, "bq_dataset", &bigquery.DatasetArgs{
 * 			DatasetId:               pulumi.String("dicom_bq_ds"),
 * 			FriendlyName:            pulumi.String("test"),
 * 			Description:             pulumi.String("This is a test description"),
 * 			Location:                pulumi.String("US"),
 * 			DeleteContentsOnDestroy: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		bqTable, err := bigquery.NewTable(ctx, "bq_table", &bigquery.TableArgs{
 * 			DeletionProtection: pulumi.Bool(false),
 * 			DatasetId:          bqDataset.DatasetId,
 * 			TableId:            pulumi.String("dicom_bq_tb"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = healthcare.NewDicomStore(ctx, "default", &healthcare.DicomStoreArgs{
 * 			Name:    pulumi.String("example-dicom-store"),
 * 			Dataset: dataset.ID(),
 * 			NotificationConfig: &healthcare.DicomStoreNotificationConfigArgs{
 * 				PubsubTopic: topic.ID(),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label1": pulumi.String("labelvalue1"),
 * 			},
 * 			StreamConfigs: healthcare.DicomStoreStreamConfigArray{
 * 				&healthcare.DicomStoreStreamConfigArgs{
 * 					BigqueryDestination: &healthcare.DicomStoreStreamConfigBigqueryDestinationArgs{
 * 						TableUri: pulumi.All(bqDataset.Project, bqDataset.DatasetId, bqTable.TableId).ApplyT(func(_args []interface{}) (string, error) {
 * 							project := _args[0].(string)
 * 							datasetId := _args[1].(string)
 * 							tableId := _args[2].(string)
 * 							return fmt.Sprintf("bq://%v.%v.%v", project, datasetId, tableId), nil
 * 						}).(pulumi.StringOutput),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.pubsub.Topic;
 * import com.pulumi.gcp.pubsub.TopicArgs;
 * import com.pulumi.gcp.healthcare.Dataset;
 * import com.pulumi.gcp.healthcare.DatasetArgs;
 * import com.pulumi.gcp.bigquery.Dataset;
 * import com.pulumi.gcp.bigquery.DatasetArgs;
 * import com.pulumi.gcp.bigquery.Table;
 * import com.pulumi.gcp.bigquery.TableArgs;
 * import com.pulumi.gcp.healthcare.DicomStore;
 * import com.pulumi.gcp.healthcare.DicomStoreArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreNotificationConfigArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreStreamConfigArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreStreamConfigBigqueryDestinationArgs;
 * 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 topic = new Topic("topic", TopicArgs.builder()
 *             .name("dicom-notifications")
 *             .build());
 *         var dataset = new Dataset("dataset", DatasetArgs.builder()
 *             .name("example-dataset")
 *             .location("us-central1")
 *             .build());
 *         var bqDataset = new Dataset("bqDataset", DatasetArgs.builder()
 *             .datasetId("dicom_bq_ds")
 *             .friendlyName("test")
 *             .description("This is a test description")
 *             .location("US")
 *             .deleteContentsOnDestroy(true)
 *             .build());
 *         var bqTable = new Table("bqTable", TableArgs.builder()
 *             .deletionProtection(false)
 *             .datasetId(bqDataset.datasetId())
 *             .tableId("dicom_bq_tb")
 *             .build());
 *         var default_ = new DicomStore("default", DicomStoreArgs.builder()
 *             .name("example-dicom-store")
 *             .dataset(dataset.id())
 *             .notificationConfig(DicomStoreNotificationConfigArgs.builder()
 *                 .pubsubTopic(topic.id())
 *                 .build())
 *             .labels(Map.of("label1", "labelvalue1"))
 *             .streamConfigs(DicomStoreStreamConfigArgs.builder()
 *                 .bigqueryDestination(DicomStoreStreamConfigBigqueryDestinationArgs.builder()
 *                     .tableUri(Output.tuple(bqDataset.project(), bqDataset.datasetId(), bqTable.tableId()).applyValue(values -> {
 *                         var project = values.t1;
 *                         var datasetId = values.t2;
 *                         var tableId = values.t3;
 *                         return String.format("bq://%s.%s.%s", project,datasetId,tableId);
 *                     }))
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   default:
 *     type: gcp:healthcare:DicomStore
 *     properties:
 *       name: example-dicom-store
 *       dataset: ${dataset.id}
 *       notificationConfig:
 *         pubsubTopic: ${topic.id}
 *       labels:
 *         label1: labelvalue1
 *       streamConfigs:
 *         - bigqueryDestination:
 *             tableUri: bq://${bqDataset.project}.${bqDataset.datasetId}.${bqTable.tableId}
 *   topic:
 *     type: gcp:pubsub:Topic
 *     properties:
 *       name: dicom-notifications
 *   dataset:
 *     type: gcp:healthcare:Dataset
 *     properties:
 *       name: example-dataset
 *       location: us-central1
 *   bqDataset:
 *     type: gcp:bigquery:Dataset
 *     name: bq_dataset
 *     properties:
 *       datasetId: dicom_bq_ds
 *       friendlyName: test
 *       description: This is a test description
 *       location: US
 *       deleteContentsOnDestroy: true
 *   bqTable:
 *     type: gcp:bigquery:Table
 *     name: bq_table
 *     properties:
 *       deletionProtection: false
 *       datasetId: ${bqDataset.datasetId}
 *       tableId: dicom_bq_tb
 * ```
 * 
 * ## Import
 * DicomStore can be imported using any of these accepted formats:
 * * `{{dataset}}/dicomStores/{{name}}`
 * * `{{dataset}}/{{name}}`
 * When using the `pulumi import` command, DicomStore can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:healthcare/dicomStore:DicomStore default {{dataset}}/dicomStores/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:healthcare/dicomStore:DicomStore default {{dataset}}/{{name}}
 * ```
 */
public class DicomStore internal constructor(
    override val javaResource: com.pulumi.gcp.healthcare.DicomStore,
) : KotlinCustomResource(javaResource, DicomStoreMapper) {
    /**
     * Identifies the dataset addressed by this request. Must be in the format
     * 'projects/{project}/locations/{location}/datasets/{dataset}'
     * - - -
     */
    public val dataset: Output
        get() = javaResource.dataset().applyValue({ args0 -> args0 })

    /**
     * All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
     */
    public val effectiveLabels: Output>
        get() = javaResource.effectiveLabels().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.key.to(args0.value)
            }).toMap()
        })

    /**
     * User-supplied key-value pairs used to organize DICOM stores.
     * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
     * conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
     * Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
     * bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
     * No more than 64 labels can be associated with a given store.
     * An object containing a list of "key": value pairs.
     * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    public val labels: Output>?
        get() = javaResource.labels().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })

    /**
     * The resource name for the DicomStore.
     * ** Changing this property may recreate the Dicom store (removing all data) **
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * A nested object resource
     * Structure is documented below.
     */
    public val notificationConfig: Output?
        get() = javaResource.notificationConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> dicomStoreNotificationConfigToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The combination of labels configured directly on the resource
     * and default labels configured on the provider.
     */
    public val pulumiLabels: Output>
        get() = javaResource.pulumiLabels().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.key.to(args0.value)
            }).toMap()
        })

    /**
     * The fully qualified name of this dataset
     */
    public val selfLink: Output
        get() = javaResource.selfLink().applyValue({ args0 -> args0 })

    /**
     * To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    public val streamConfigs: Output>?
        get() = javaResource.streamConfigs().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        dicomStoreStreamConfigToKotlin(args0)
                    })
                })
            }).orElse(null)
        })
}

public object DicomStoreMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.gcp.healthcare.DicomStore::class == javaResource::class

    override fun map(javaResource: Resource): DicomStore = DicomStore(
        javaResource as
            com.pulumi.gcp.healthcare.DicomStore,
    )
}

/**
 * @see [DicomStore].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [DicomStore].
 */
public suspend fun dicomStore(name: String, block: suspend DicomStoreResourceBuilder.() -> Unit): DicomStore {
    val builder = DicomStoreResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [DicomStore].
 * @param name The _unique_ name of the resulting resource.
 */
public fun dicomStore(name: String): DicomStore {
    val builder = DicomStoreResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy