Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.healthcare.kotlin.FhirStoreArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.healthcare.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.healthcare.FhirStoreArgs.builder
import com.pulumi.gcp.healthcare.kotlin.inputs.FhirStoreNotificationConfigArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.FhirStoreNotificationConfigArgsBuilder
import com.pulumi.gcp.healthcare.kotlin.inputs.FhirStoreStreamConfigArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.FhirStoreStreamConfigArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A FhirStore is a datastore inside a Healthcare dataset that conforms to the FHIR (https://www.hl7.org/fhir/STU3/)
* standard for Healthcare information exchange
* To get more information about FhirStore, see:
* * [API documentation](https://cloud.google.com/healthcare/docs/reference/rest/v1/projects.locations.datasets.fhirStores)
* * How-to Guides
* * [Creating a FHIR store](https://cloud.google.com/healthcare/docs/how-tos/fhir)
* ## Example Usage
* ### Healthcare Fhir Store Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const topic = new gcp.pubsub.Topic("topic", {name: "fhir-notifications"});
* const dataset = new gcp.healthcare.Dataset("dataset", {
* name: "example-dataset",
* location: "us-central1",
* });
* const _default = new gcp.healthcare.FhirStore("default", {
* name: "example-fhir-store",
* dataset: dataset.id,
* version: "R4",
* complexDataTypeReferenceParsing: "DISABLED",
* enableUpdateCreate: false,
* disableReferentialIntegrity: false,
* disableResourceVersioning: false,
* enableHistoryImport: false,
* defaultSearchHandlingStrict: false,
* notificationConfigs: [{
* pubsubTopic: topic.id,
* }],
* labels: {
* label1: "labelvalue1",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* topic = gcp.pubsub.Topic("topic", name="fhir-notifications")
* dataset = gcp.healthcare.Dataset("dataset",
* name="example-dataset",
* location="us-central1")
* default = gcp.healthcare.FhirStore("default",
* name="example-fhir-store",
* dataset=dataset.id,
* version="R4",
* complex_data_type_reference_parsing="DISABLED",
* enable_update_create=False,
* disable_referential_integrity=False,
* disable_resource_versioning=False,
* enable_history_import=False,
* default_search_handling_strict=False,
* notification_configs=[{
* "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 = "fhir-notifications",
* });
* var dataset = new Gcp.Healthcare.Dataset("dataset", new()
* {
* Name = "example-dataset",
* Location = "us-central1",
* });
* var @default = new Gcp.Healthcare.FhirStore("default", new()
* {
* Name = "example-fhir-store",
* Dataset = dataset.Id,
* Version = "R4",
* ComplexDataTypeReferenceParsing = "DISABLED",
* EnableUpdateCreate = false,
* DisableReferentialIntegrity = false,
* DisableResourceVersioning = false,
* EnableHistoryImport = false,
* DefaultSearchHandlingStrict = false,
* NotificationConfigs = new[]
* {
* new Gcp.Healthcare.Inputs.FhirStoreNotificationConfigArgs
* {
* 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("fhir-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.NewFhirStore(ctx, "default", &healthcare.FhirStoreArgs{
* Name: pulumi.String("example-fhir-store"),
* Dataset: dataset.ID(),
* Version: pulumi.String("R4"),
* ComplexDataTypeReferenceParsing: pulumi.String("DISABLED"),
* EnableUpdateCreate: pulumi.Bool(false),
* DisableReferentialIntegrity: pulumi.Bool(false),
* DisableResourceVersioning: pulumi.Bool(false),
* EnableHistoryImport: pulumi.Bool(false),
* DefaultSearchHandlingStrict: pulumi.Bool(false),
* NotificationConfigs: healthcare.FhirStoreNotificationConfigArray{
* &healthcare.FhirStoreNotificationConfigArgs{
* 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.FhirStore;
* import com.pulumi.gcp.healthcare.FhirStoreArgs;
* import com.pulumi.gcp.healthcare.inputs.FhirStoreNotificationConfigArgs;
* 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("fhir-notifications")
* .build());
* var dataset = new Dataset("dataset", DatasetArgs.builder()
* .name("example-dataset")
* .location("us-central1")
* .build());
* var default_ = new FhirStore("default", FhirStoreArgs.builder()
* .name("example-fhir-store")
* .dataset(dataset.id())
* .version("R4")
* .complexDataTypeReferenceParsing("DISABLED")
* .enableUpdateCreate(false)
* .disableReferentialIntegrity(false)
* .disableResourceVersioning(false)
* .enableHistoryImport(false)
* .defaultSearchHandlingStrict(false)
* .notificationConfigs(FhirStoreNotificationConfigArgs.builder()
* .pubsubTopic(topic.id())
* .build())
* .labels(Map.of("label1", "labelvalue1"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:healthcare:FhirStore
* properties:
* name: example-fhir-store
* dataset: ${dataset.id}
* version: R4
* complexDataTypeReferenceParsing: DISABLED
* enableUpdateCreate: false
* disableReferentialIntegrity: false
* disableResourceVersioning: false
* enableHistoryImport: false
* defaultSearchHandlingStrict: false
* notificationConfigs:
* - pubsubTopic: ${topic.id}
* labels:
* label1: labelvalue1
* topic:
* type: gcp:pubsub:Topic
* properties:
* name: fhir-notifications
* dataset:
* type: gcp:healthcare:Dataset
* properties:
* name: example-dataset
* location: us-central1
* ```
*
* ### Healthcare Fhir Store Streaming Config
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const dataset = new gcp.healthcare.Dataset("dataset", {
* name: "example-dataset",
* location: "us-central1",
* });
* const bqDataset = new gcp.bigquery.Dataset("bq_dataset", {
* datasetId: "bq_example_dataset",
* friendlyName: "test",
* description: "This is a test description",
* location: "US",
* deleteContentsOnDestroy: true,
* });
* const _default = new gcp.healthcare.FhirStore("default", {
* name: "example-fhir-store",
* dataset: dataset.id,
* version: "R4",
* enableUpdateCreate: false,
* disableReferentialIntegrity: false,
* disableResourceVersioning: false,
* enableHistoryImport: false,
* labels: {
* label1: "labelvalue1",
* },
* streamConfigs: [{
* resourceTypes: ["Observation"],
* bigqueryDestination: {
* datasetUri: pulumi.interpolate`bq://${bqDataset.project}.${bqDataset.datasetId}`,
* schemaConfig: {
* recursiveStructureDepth: 3,
* lastUpdatedPartitionConfig: {
* type: "HOUR",
* expirationMs: "1000000",
* },
* },
* },
* }],
* });
* const topic = new gcp.pubsub.Topic("topic", {name: "fhir-notifications"});
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* dataset = gcp.healthcare.Dataset("dataset",
* name="example-dataset",
* location="us-central1")
* bq_dataset = gcp.bigquery.Dataset("bq_dataset",
* dataset_id="bq_example_dataset",
* friendly_name="test",
* description="This is a test description",
* location="US",
* delete_contents_on_destroy=True)
* default = gcp.healthcare.FhirStore("default",
* name="example-fhir-store",
* dataset=dataset.id,
* version="R4",
* enable_update_create=False,
* disable_referential_integrity=False,
* disable_resource_versioning=False,
* enable_history_import=False,
* labels={
* "label1": "labelvalue1",
* },
* stream_configs=[{
* "resource_types": ["Observation"],
* "bigquery_destination": {
* "dataset_uri": pulumi.Output.all(
* project=bq_dataset.project,
* dataset_id=bq_dataset.dataset_id
* ).apply(lambda resolved_outputs: f"bq://{resolved_outputs['project']}.{resolved_outputs['dataset_id']}")
* ,
* "schema_config": {
* "recursive_structure_depth": 3,
* "last_updated_partition_config": {
* "type": "HOUR",
* "expiration_ms": "1000000",
* },
* },
* },
* }])
* topic = gcp.pubsub.Topic("topic", name="fhir-notifications")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var dataset = new Gcp.Healthcare.Dataset("dataset", new()
* {
* Name = "example-dataset",
* Location = "us-central1",
* });
* var bqDataset = new Gcp.BigQuery.Dataset("bq_dataset", new()
* {
* DatasetId = "bq_example_dataset",
* FriendlyName = "test",
* Description = "This is a test description",
* Location = "US",
* DeleteContentsOnDestroy = true,
* });
* var @default = new Gcp.Healthcare.FhirStore("default", new()
* {
* Name = "example-fhir-store",
* Dataset = dataset.Id,
* Version = "R4",
* EnableUpdateCreate = false,
* DisableReferentialIntegrity = false,
* DisableResourceVersioning = false,
* EnableHistoryImport = false,
* Labels =
* {
* { "label1", "labelvalue1" },
* },
* StreamConfigs = new[]
* {
* new Gcp.Healthcare.Inputs.FhirStoreStreamConfigArgs
* {
* ResourceTypes = new[]
* {
* "Observation",
* },
* BigqueryDestination = new Gcp.Healthcare.Inputs.FhirStoreStreamConfigBigqueryDestinationArgs
* {
* DatasetUri = Output.Tuple(bqDataset.Project, bqDataset.DatasetId).Apply(values =>
* {
* var project = values.Item1;
* var datasetId = values.Item2;
* return $"bq://{project}.{datasetId}";
* }),
* SchemaConfig = new Gcp.Healthcare.Inputs.FhirStoreStreamConfigBigqueryDestinationSchemaConfigArgs
* {
* RecursiveStructureDepth = 3,
* LastUpdatedPartitionConfig = new Gcp.Healthcare.Inputs.FhirStoreStreamConfigBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigArgs
* {
* Type = "HOUR",
* ExpirationMs = "1000000",
* },
* },
* },
* },
* },
* });
* var topic = new Gcp.PubSub.Topic("topic", new()
* {
* Name = "fhir-notifications",
* });
* });
* ```
* ```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 {
* 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("bq_example_dataset"),
* 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
* }
* _, err = healthcare.NewFhirStore(ctx, "default", &healthcare.FhirStoreArgs{
* Name: pulumi.String("example-fhir-store"),
* Dataset: dataset.ID(),
* Version: pulumi.String("R4"),
* EnableUpdateCreate: pulumi.Bool(false),
* DisableReferentialIntegrity: pulumi.Bool(false),
* DisableResourceVersioning: pulumi.Bool(false),
* EnableHistoryImport: pulumi.Bool(false),
* Labels: pulumi.StringMap{
* "label1": pulumi.String("labelvalue1"),
* },
* StreamConfigs: healthcare.FhirStoreStreamConfigArray{
* &healthcare.FhirStoreStreamConfigArgs{
* ResourceTypes: pulumi.StringArray{
* pulumi.String("Observation"),
* },
* BigqueryDestination: &healthcare.FhirStoreStreamConfigBigqueryDestinationArgs{
* DatasetUri: pulumi.All(bqDataset.Project, bqDataset.DatasetId).ApplyT(func(_args []interface{}) (string, error) {
* project := _args[0].(string)
* datasetId := _args[1].(string)
* return fmt.Sprintf("bq://%v.%v", project, datasetId), nil
* }).(pulumi.StringOutput),
* SchemaConfig: &healthcare.FhirStoreStreamConfigBigqueryDestinationSchemaConfigArgs{
* RecursiveStructureDepth: pulumi.Int(3),
* LastUpdatedPartitionConfig: &healthcare.FhirStoreStreamConfigBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigArgs{
* Type: pulumi.String("HOUR"),
* ExpirationMs: pulumi.String("1000000"),
* },
* },
* },
* },
* },
* })
* if err != nil {
* return err
* }
* _, err = pubsub.NewTopic(ctx, "topic", &pubsub.TopicArgs{
* Name: pulumi.String("fhir-notifications"),
* })
* 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 com.pulumi.gcp.bigquery.Dataset;
* import com.pulumi.gcp.bigquery.DatasetArgs;
* import com.pulumi.gcp.healthcare.FhirStore;
* import com.pulumi.gcp.healthcare.FhirStoreArgs;
* import com.pulumi.gcp.healthcare.inputs.FhirStoreStreamConfigArgs;
* import com.pulumi.gcp.healthcare.inputs.FhirStoreStreamConfigBigqueryDestinationArgs;
* import com.pulumi.gcp.healthcare.inputs.FhirStoreStreamConfigBigqueryDestinationSchemaConfigArgs;
* import com.pulumi.gcp.healthcare.inputs.FhirStoreStreamConfigBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigArgs;
* import com.pulumi.gcp.pubsub.Topic;
* import com.pulumi.gcp.pubsub.TopicArgs;
* 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 dataset = new Dataset("dataset", DatasetArgs.builder()
* .name("example-dataset")
* .location("us-central1")
* .build());
* var bqDataset = new Dataset("bqDataset", DatasetArgs.builder()
* .datasetId("bq_example_dataset")
* .friendlyName("test")
* .description("This is a test description")
* .location("US")
* .deleteContentsOnDestroy(true)
* .build());
* var default_ = new FhirStore("default", FhirStoreArgs.builder()
* .name("example-fhir-store")
* .dataset(dataset.id())
* .version("R4")
* .enableUpdateCreate(false)
* .disableReferentialIntegrity(false)
* .disableResourceVersioning(false)
* .enableHistoryImport(false)
* .labels(Map.of("label1", "labelvalue1"))
* .streamConfigs(FhirStoreStreamConfigArgs.builder()
* .resourceTypes("Observation")
* .bigqueryDestination(FhirStoreStreamConfigBigqueryDestinationArgs.builder()
* .datasetUri(Output.tuple(bqDataset.project(), bqDataset.datasetId()).applyValue(values -> {
* var project = values.t1;
* var datasetId = values.t2;
* return String.format("bq://%s.%s", project,datasetId);
* }))
* .schemaConfig(FhirStoreStreamConfigBigqueryDestinationSchemaConfigArgs.builder()
* .recursiveStructureDepth(3)
* .lastUpdatedPartitionConfig(FhirStoreStreamConfigBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigArgs.builder()
* .type("HOUR")
* .expirationMs(1000000)
* .build())
* .build())
* .build())
* .build())
* .build());
* var topic = new Topic("topic", TopicArgs.builder()
* .name("fhir-notifications")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:healthcare:FhirStore
* properties:
* name: example-fhir-store
* dataset: ${dataset.id}
* version: R4
* enableUpdateCreate: false
* disableReferentialIntegrity: false
* disableResourceVersioning: false
* enableHistoryImport: false
* labels:
* label1: labelvalue1
* streamConfigs:
* - resourceTypes:
* - Observation
* bigqueryDestination:
* datasetUri: bq://${bqDataset.project}.${bqDataset.datasetId}
* schemaConfig:
* recursiveStructureDepth: 3
* lastUpdatedPartitionConfig:
* type: HOUR
* expirationMs: 1e+06
* topic:
* type: gcp:pubsub:Topic
* properties:
* name: fhir-notifications
* dataset:
* type: gcp:healthcare:Dataset
* properties:
* name: example-dataset
* location: us-central1
* bqDataset:
* type: gcp:bigquery:Dataset
* name: bq_dataset
* properties:
* datasetId: bq_example_dataset
* friendlyName: test
* description: This is a test description
* location: US
* deleteContentsOnDestroy: true
* ```
*
* ### Healthcare Fhir Store Notification Configs
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const topic = new gcp.pubsub.Topic("topic", {name: "fhir-notifications"});
* const dataset = new gcp.healthcare.Dataset("dataset", {
* name: "example-dataset",
* location: "us-central1",
* });
* const _default = new gcp.healthcare.FhirStore("default", {
* name: "example-fhir-store",
* dataset: dataset.id,
* version: "R4",
* enableUpdateCreate: false,
* disableReferentialIntegrity: false,
* disableResourceVersioning: false,
* enableHistoryImport: false,
* labels: {
* label1: "labelvalue1",
* },
* notificationConfigs: [{
* pubsubTopic: topic.id,
* sendFullResource: true,
* sendPreviousResourceOnDelete: true,
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* topic = gcp.pubsub.Topic("topic", name="fhir-notifications")
* dataset = gcp.healthcare.Dataset("dataset",
* name="example-dataset",
* location="us-central1")
* default = gcp.healthcare.FhirStore("default",
* name="example-fhir-store",
* dataset=dataset.id,
* version="R4",
* enable_update_create=False,
* disable_referential_integrity=False,
* disable_resource_versioning=False,
* enable_history_import=False,
* labels={
* "label1": "labelvalue1",
* },
* notification_configs=[{
* "pubsub_topic": topic.id,
* "send_full_resource": True,
* "send_previous_resource_on_delete": True,
* }])
* ```
* ```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 = "fhir-notifications",
* });
* var dataset = new Gcp.Healthcare.Dataset("dataset", new()
* {
* Name = "example-dataset",
* Location = "us-central1",
* });
* var @default = new Gcp.Healthcare.FhirStore("default", new()
* {
* Name = "example-fhir-store",
* Dataset = dataset.Id,
* Version = "R4",
* EnableUpdateCreate = false,
* DisableReferentialIntegrity = false,
* DisableResourceVersioning = false,
* EnableHistoryImport = false,
* Labels =
* {
* { "label1", "labelvalue1" },
* },
* NotificationConfigs = new[]
* {
* new Gcp.Healthcare.Inputs.FhirStoreNotificationConfigArgs
* {
* PubsubTopic = topic.Id,
* SendFullResource = true,
* SendPreviousResourceOnDelete = true,
* },
* },
* });
* });
* ```
* ```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("fhir-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.NewFhirStore(ctx, "default", &healthcare.FhirStoreArgs{
* Name: pulumi.String("example-fhir-store"),
* Dataset: dataset.ID(),
* Version: pulumi.String("R4"),
* EnableUpdateCreate: pulumi.Bool(false),
* DisableReferentialIntegrity: pulumi.Bool(false),
* DisableResourceVersioning: pulumi.Bool(false),
* EnableHistoryImport: pulumi.Bool(false),
* Labels: pulumi.StringMap{
* "label1": pulumi.String("labelvalue1"),
* },
* NotificationConfigs: healthcare.FhirStoreNotificationConfigArray{
* &healthcare.FhirStoreNotificationConfigArgs{
* PubsubTopic: topic.ID(),
* SendFullResource: pulumi.Bool(true),
* SendPreviousResourceOnDelete: pulumi.Bool(true),
* },
* },
* })
* 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.FhirStore;
* import com.pulumi.gcp.healthcare.FhirStoreArgs;
* import com.pulumi.gcp.healthcare.inputs.FhirStoreNotificationConfigArgs;
* 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("fhir-notifications")
* .build());
* var dataset = new Dataset("dataset", DatasetArgs.builder()
* .name("example-dataset")
* .location("us-central1")
* .build());
* var default_ = new FhirStore("default", FhirStoreArgs.builder()
* .name("example-fhir-store")
* .dataset(dataset.id())
* .version("R4")
* .enableUpdateCreate(false)
* .disableReferentialIntegrity(false)
* .disableResourceVersioning(false)
* .enableHistoryImport(false)
* .labels(Map.of("label1", "labelvalue1"))
* .notificationConfigs(FhirStoreNotificationConfigArgs.builder()
* .pubsubTopic(topic.id())
* .sendFullResource(true)
* .sendPreviousResourceOnDelete(true)
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: gcp:healthcare:FhirStore
* properties:
* name: example-fhir-store
* dataset: ${dataset.id}
* version: R4
* enableUpdateCreate: false
* disableReferentialIntegrity: false
* disableResourceVersioning: false
* enableHistoryImport: false
* labels:
* label1: labelvalue1
* notificationConfigs:
* - pubsubTopic: ${topic.id}
* sendFullResource: true
* sendPreviousResourceOnDelete: true
* topic:
* type: gcp:pubsub:Topic
* properties:
* name: fhir-notifications
* dataset:
* type: gcp:healthcare:Dataset
* properties:
* name: example-dataset
* location: us-central1
* ```
*
* ## Import
* FhirStore can be imported using any of these accepted formats:
* * `{{dataset}}/fhirStores/{{name}}`
* * `{{dataset}}/{{name}}`
* When using the `pulumi import` command, FhirStore can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:healthcare/fhirStore:FhirStore default {{dataset}}/fhirStores/{{name}}
* ```
* ```sh
* $ pulumi import gcp:healthcare/fhirStore:FhirStore default {{dataset}}/{{name}}
* ```
* @property complexDataTypeReferenceParsing Enable parsing of references within complex FHIR data types such as Extensions. If this value is set to ENABLED, then features like referential integrity and Bundle reference rewriting apply to all references. If this flag has not been specified the behavior of the FHIR store will not change, references in complex data types will not be parsed. New stores will have this value set to ENABLED by default after a notification period. Warning: turning on this flag causes processing existing resources to fail if they contain references to non-existent resources.
* Possible values are: `COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED`, `DISABLED`, `ENABLED`.
* @property dataset Identifies the dataset addressed by this request. Must be in the format
* 'projects/{project}/locations/{location}/datasets/{dataset}'
* - - -
* @property defaultSearchHandlingStrict If true, overrides the default search behavior for this FHIR store to handling=strict which returns an error for unrecognized search parameters.
* If false, uses the FHIR specification default handling=lenient which ignores unrecognized search parameters.
* The handling can always be changed from the default on an individual API call by setting the HTTP header Prefer: handling=strict or Prefer: handling=lenient.
* @property disableReferentialIntegrity Whether to disable referential integrity in this FHIR store. This field is immutable after FHIR store
* creation. The default value is false, meaning that the API will enforce referential integrity and fail the
* requests that will result in inconsistent state in the FHIR store. When this field is set to true, the API
* will skip referential integrity check. Consequently, operations that rely on references, such as
* Patient.get$everything, will not return all the results if broken references exist.
* ** Changing this property may recreate the FHIR store (removing all data) **
* @property disableResourceVersioning Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation
* of FHIR store. If set to false, which is the default behavior, all write operations will cause historical
* versions to be recorded automatically. The historical versions can be fetched through the history APIs, but
* cannot be updated. If set to true, no historical versions will be kept. The server will send back errors for
* attempts to read the historical versions.
* ** Changing this property may recreate the FHIR store (removing all data) **
* @property enableHistoryImport Whether to allow the bulk import API to accept history bundles and directly insert historical resource
* versions into the FHIR store. Importing resource histories creates resource interactions that appear to have
* occurred in the past, which clients may not want to allow. If set to false, history bundles within an import
* will fail with an error.
* ** Changing this property may recreate the FHIR store (removing all data) **
* ** This property can be changed manually in the Google Cloud Healthcare admin console without recreating the FHIR store **
* @property enableHistoryModifications Whether to allow the ExecuteBundle API to accept history bundles, and directly insert and overwrite historical
* resource versions into the FHIR store. If set to false, using history bundles fails with an error.
* @property enableUpdateCreate Whether this FHIR store has the updateCreate capability. This determines if the client can use an Update
* operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through
* the Create operation and attempts to Update a non-existent resource will return errors. Please treat the audit
* logs with appropriate levels of care if client-specified resource IDs contain sensitive data such as patient
* identifiers, those IDs will be part of the FHIR resource path recorded in Cloud audit logs and Cloud Pub/Sub
* notifications.
* @property labels User-supplied key-value pairs used to organize FHIR 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.
* @property name The resource name for the FhirStore.
* ** Changing this property may recreate the FHIR store (removing all data) **
* @property notificationConfig (Optional, Deprecated)
* A nested object resource
* Structure is documented below.
* > **Warning:** `notification_config` is deprecated and will be removed in a future major release. Use `notification_configs` instead.
* @property notificationConfigs A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
* @property streamConfigs A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
* @property version The FHIR specification version.
* Default value is `STU3`.
* Possible values are: `DSTU2`, `STU3`, `R4`.
*/
public data class FhirStoreArgs(
public val complexDataTypeReferenceParsing: Output? = null,
public val dataset: Output? = null,
public val defaultSearchHandlingStrict: Output? = null,
public val disableReferentialIntegrity: Output? = null,
public val disableResourceVersioning: Output? = null,
public val enableHistoryImport: Output? = null,
public val enableHistoryModifications: Output? = null,
public val enableUpdateCreate: Output? = null,
public val labels: Output>? = null,
public val name: Output? = null,
@Deprecated(
message = """
`notification_config` is deprecated and will be removed in a future major release. Use
`notification_configs` instead.
""",
)
public val notificationConfig: Output? = null,
public val notificationConfigs: Output>? = null,
public val streamConfigs: Output>? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.healthcare.FhirStoreArgs =
com.pulumi.gcp.healthcare.FhirStoreArgs.builder()
.complexDataTypeReferenceParsing(complexDataTypeReferenceParsing?.applyValue({ args0 -> args0 }))
.dataset(dataset?.applyValue({ args0 -> args0 }))
.defaultSearchHandlingStrict(defaultSearchHandlingStrict?.applyValue({ args0 -> args0 }))
.disableReferentialIntegrity(disableReferentialIntegrity?.applyValue({ args0 -> args0 }))
.disableResourceVersioning(disableResourceVersioning?.applyValue({ args0 -> args0 }))
.enableHistoryImport(enableHistoryImport?.applyValue({ args0 -> args0 }))
.enableHistoryModifications(enableHistoryModifications?.applyValue({ args0 -> args0 }))
.enableUpdateCreate(enableUpdateCreate?.applyValue({ args0 -> args0 }))
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.name(name?.applyValue({ args0 -> args0 }))
.notificationConfig(
notificationConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.notificationConfigs(
notificationConfigs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.streamConfigs(
streamConfigs?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FhirStoreArgs].
*/
@PulumiTagMarker
public class FhirStoreArgsBuilder internal constructor() {
private var complexDataTypeReferenceParsing: Output? = null
private var dataset: Output? = null
private var defaultSearchHandlingStrict: Output? = null
private var disableReferentialIntegrity: Output? = null
private var disableResourceVersioning: Output? = null
private var enableHistoryImport: Output? = null
private var enableHistoryModifications: Output? = null
private var enableUpdateCreate: Output? = null
private var labels: Output>? = null
private var name: Output? = null
private var notificationConfig: Output? = null
private var notificationConfigs: Output>? = null
private var streamConfigs: Output>? = null
private var version: Output? = null
/**
* @param value Enable parsing of references within complex FHIR data types such as Extensions. If this value is set to ENABLED, then features like referential integrity and Bundle reference rewriting apply to all references. If this flag has not been specified the behavior of the FHIR store will not change, references in complex data types will not be parsed. New stores will have this value set to ENABLED by default after a notification period. Warning: turning on this flag causes processing existing resources to fail if they contain references to non-existent resources.
* Possible values are: `COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED`, `DISABLED`, `ENABLED`.
*/
@JvmName("lcfhfegrmicdygjh")
public suspend fun complexDataTypeReferenceParsing(`value`: Output) {
this.complexDataTypeReferenceParsing = value
}
/**
* @param value Identifies the dataset addressed by this request. Must be in the format
* 'projects/{project}/locations/{location}/datasets/{dataset}'
* - - -
*/
@JvmName("elbbguytfgrhwksd")
public suspend fun dataset(`value`: Output) {
this.dataset = value
}
/**
* @param value If true, overrides the default search behavior for this FHIR store to handling=strict which returns an error for unrecognized search parameters.
* If false, uses the FHIR specification default handling=lenient which ignores unrecognized search parameters.
* The handling can always be changed from the default on an individual API call by setting the HTTP header Prefer: handling=strict or Prefer: handling=lenient.
*/
@JvmName("wrxtpmpvrchcsswo")
public suspend fun defaultSearchHandlingStrict(`value`: Output) {
this.defaultSearchHandlingStrict = value
}
/**
* @param value Whether to disable referential integrity in this FHIR store. This field is immutable after FHIR store
* creation. The default value is false, meaning that the API will enforce referential integrity and fail the
* requests that will result in inconsistent state in the FHIR store. When this field is set to true, the API
* will skip referential integrity check. Consequently, operations that rely on references, such as
* Patient.get$everything, will not return all the results if broken references exist.
* ** Changing this property may recreate the FHIR store (removing all data) **
*/
@JvmName("ajniyktijcdxswoa")
public suspend fun disableReferentialIntegrity(`value`: Output) {
this.disableReferentialIntegrity = value
}
/**
* @param value Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation
* of FHIR store. If set to false, which is the default behavior, all write operations will cause historical
* versions to be recorded automatically. The historical versions can be fetched through the history APIs, but
* cannot be updated. If set to true, no historical versions will be kept. The server will send back errors for
* attempts to read the historical versions.
* ** Changing this property may recreate the FHIR store (removing all data) **
*/
@JvmName("pxhbumyqdqwwvcqi")
public suspend fun disableResourceVersioning(`value`: Output) {
this.disableResourceVersioning = value
}
/**
* @param value Whether to allow the bulk import API to accept history bundles and directly insert historical resource
* versions into the FHIR store. Importing resource histories creates resource interactions that appear to have
* occurred in the past, which clients may not want to allow. If set to false, history bundles within an import
* will fail with an error.
* ** Changing this property may recreate the FHIR store (removing all data) **
* ** This property can be changed manually in the Google Cloud Healthcare admin console without recreating the FHIR store **
*/
@JvmName("pcsjlpxwudnmsejm")
public suspend fun enableHistoryImport(`value`: Output) {
this.enableHistoryImport = value
}
/**
* @param value Whether to allow the ExecuteBundle API to accept history bundles, and directly insert and overwrite historical
* resource versions into the FHIR store. If set to false, using history bundles fails with an error.
*/
@JvmName("vdmbmbavgxymarjg")
public suspend fun enableHistoryModifications(`value`: Output) {
this.enableHistoryModifications = value
}
/**
* @param value Whether this FHIR store has the updateCreate capability. This determines if the client can use an Update
* operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through
* the Create operation and attempts to Update a non-existent resource will return errors. Please treat the audit
* logs with appropriate levels of care if client-specified resource IDs contain sensitive data such as patient
* identifiers, those IDs will be part of the FHIR resource path recorded in Cloud audit logs and Cloud Pub/Sub
* notifications.
*/
@JvmName("txhaqctwcbtsurvg")
public suspend fun enableUpdateCreate(`value`: Output) {
this.enableUpdateCreate = value
}
/**
* @param value User-supplied key-value pairs used to organize FHIR 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.
*/
@JvmName("kthribdoqxxkoojb")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
/**
* @param value The resource name for the FhirStore.
* ** Changing this property may recreate the FHIR store (removing all data) **
*/
@JvmName("jmwgllobqrmhgkoq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value (Optional, Deprecated)
* A nested object resource
* Structure is documented below.
* > **Warning:** `notification_config` is deprecated and will be removed in a future major release. Use `notification_configs` instead.
*/
@Deprecated(
message = """
`notification_config` is deprecated and will be removed in a future major release. Use
`notification_configs` instead.
""",
)
@JvmName("uyestigqunvmaugo")
public suspend fun notificationConfig(`value`: Output) {
this.notificationConfig = value
}
/**
* @param value A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
*/
@JvmName("jhelqdrkcrocmhgo")
public suspend fun notificationConfigs(`value`: Output>) {
this.notificationConfigs = value
}
@JvmName("owrifoalenoyfnjn")
public suspend fun notificationConfigs(vararg values: Output) {
this.notificationConfigs = Output.all(values.asList())
}
/**
* @param values A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
*/
@JvmName("pphxkpxcjnamneua")
public suspend fun notificationConfigs(values: List>) {
this.notificationConfigs = Output.all(values)
}
/**
* @param value A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
*/
@JvmName("kqxoqdcvcqbiudwn")
public suspend fun streamConfigs(`value`: Output>) {
this.streamConfigs = value
}
@JvmName("dpppvpsfkbwguetg")
public suspend fun streamConfigs(vararg values: Output) {
this.streamConfigs = Output.all(values.asList())
}
/**
* @param values A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
*/
@JvmName("aotdvxtfmkahghfh")
public suspend fun streamConfigs(values: List>) {
this.streamConfigs = Output.all(values)
}
/**
* @param value The FHIR specification version.
* Default value is `STU3`.
* Possible values are: `DSTU2`, `STU3`, `R4`.
*/
@JvmName("xgovdgyinbmtwgfd")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value Enable parsing of references within complex FHIR data types such as Extensions. If this value is set to ENABLED, then features like referential integrity and Bundle reference rewriting apply to all references. If this flag has not been specified the behavior of the FHIR store will not change, references in complex data types will not be parsed. New stores will have this value set to ENABLED by default after a notification period. Warning: turning on this flag causes processing existing resources to fail if they contain references to non-existent resources.
* Possible values are: `COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED`, `DISABLED`, `ENABLED`.
*/
@JvmName("gdqfaibrajsiragm")
public suspend fun complexDataTypeReferenceParsing(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.complexDataTypeReferenceParsing = mapped
}
/**
* @param value Identifies the dataset addressed by this request. Must be in the format
* 'projects/{project}/locations/{location}/datasets/{dataset}'
* - - -
*/
@JvmName("lghxupdtveunnond")
public suspend fun dataset(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataset = mapped
}
/**
* @param value If true, overrides the default search behavior for this FHIR store to handling=strict which returns an error for unrecognized search parameters.
* If false, uses the FHIR specification default handling=lenient which ignores unrecognized search parameters.
* The handling can always be changed from the default on an individual API call by setting the HTTP header Prefer: handling=strict or Prefer: handling=lenient.
*/
@JvmName("orfimwnorivbcqsa")
public suspend fun defaultSearchHandlingStrict(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultSearchHandlingStrict = mapped
}
/**
* @param value Whether to disable referential integrity in this FHIR store. This field is immutable after FHIR store
* creation. The default value is false, meaning that the API will enforce referential integrity and fail the
* requests that will result in inconsistent state in the FHIR store. When this field is set to true, the API
* will skip referential integrity check. Consequently, operations that rely on references, such as
* Patient.get$everything, will not return all the results if broken references exist.
* ** Changing this property may recreate the FHIR store (removing all data) **
*/
@JvmName("vgxvodaurrfocafi")
public suspend fun disableReferentialIntegrity(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableReferentialIntegrity = mapped
}
/**
* @param value Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation
* of FHIR store. If set to false, which is the default behavior, all write operations will cause historical
* versions to be recorded automatically. The historical versions can be fetched through the history APIs, but
* cannot be updated. If set to true, no historical versions will be kept. The server will send back errors for
* attempts to read the historical versions.
* ** Changing this property may recreate the FHIR store (removing all data) **
*/
@JvmName("umyeqfgngabmvtog")
public suspend fun disableResourceVersioning(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableResourceVersioning = mapped
}
/**
* @param value Whether to allow the bulk import API to accept history bundles and directly insert historical resource
* versions into the FHIR store. Importing resource histories creates resource interactions that appear to have
* occurred in the past, which clients may not want to allow. If set to false, history bundles within an import
* will fail with an error.
* ** Changing this property may recreate the FHIR store (removing all data) **
* ** This property can be changed manually in the Google Cloud Healthcare admin console without recreating the FHIR store **
*/
@JvmName("ckbgsddipsfxjfml")
public suspend fun enableHistoryImport(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableHistoryImport = mapped
}
/**
* @param value Whether to allow the ExecuteBundle API to accept history bundles, and directly insert and overwrite historical
* resource versions into the FHIR store. If set to false, using history bundles fails with an error.
*/
@JvmName("xdruyksvvnyqokev")
public suspend fun enableHistoryModifications(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableHistoryModifications = mapped
}
/**
* @param value Whether this FHIR store has the updateCreate capability. This determines if the client can use an Update
* operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through
* the Create operation and attempts to Update a non-existent resource will return errors. Please treat the audit
* logs with appropriate levels of care if client-specified resource IDs contain sensitive data such as patient
* identifiers, those IDs will be part of the FHIR resource path recorded in Cloud audit logs and Cloud Pub/Sub
* notifications.
*/
@JvmName("omshwhdnmakfyddj")
public suspend fun enableUpdateCreate(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enableUpdateCreate = mapped
}
/**
* @param value User-supplied key-value pairs used to organize FHIR 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.
*/
@JvmName("tforvnmgwqgbhcex")
public suspend fun labels(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param values User-supplied key-value pairs used to organize FHIR 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.
*/
@JvmName("mmwelpmsdnuwbpfl")
public fun labels(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param value The resource name for the FhirStore.
* ** Changing this property may recreate the FHIR store (removing all data) **
*/
@JvmName("huuijycowtrvtblb")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value (Optional, Deprecated)
* A nested object resource
* Structure is documented below.
* > **Warning:** `notification_config` is deprecated and will be removed in a future major release. Use `notification_configs` instead.
*/
@Deprecated(
message = """
`notification_config` is deprecated and will be removed in a future major release. Use
`notification_configs` instead.
""",
)
@JvmName("iyvqmbxftslsrkjg")
public suspend fun notificationConfig(`value`: FhirStoreNotificationConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notificationConfig = mapped
}
/**
* @param argument (Optional, Deprecated)
* A nested object resource
* Structure is documented below.
* > **Warning:** `notification_config` is deprecated and will be removed in a future major release. Use `notification_configs` instead.
*/
@Deprecated(
message = """
`notification_config` is deprecated and will be removed in a future major release. Use
`notification_configs` instead.
""",
)
@JvmName("kaqawedwvylupaua")
public suspend fun notificationConfig(argument: suspend FhirStoreNotificationConfigArgsBuilder.() -> Unit) {
val toBeMapped = FhirStoreNotificationConfigArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.notificationConfig = mapped
}
/**
* @param value A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
*/
@JvmName("pvkxevxpjchohwqt")
public suspend fun notificationConfigs(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.notificationConfigs = mapped
}
/**
* @param argument A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
*/
@JvmName("fmrgnxkwllvaxtsg")
public suspend fun notificationConfigs(argument: List Unit>) {
val toBeMapped = argument.toList().map {
FhirStoreNotificationConfigArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.notificationConfigs = mapped
}
/**
* @param argument A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
*/
@JvmName("lfoyrropcwlewywx")
public suspend fun notificationConfigs(vararg argument: suspend FhirStoreNotificationConfigArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
FhirStoreNotificationConfigArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.notificationConfigs = mapped
}
/**
* @param argument A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
*/
@JvmName("rutotksecbgahkod")
public suspend fun notificationConfigs(argument: suspend FhirStoreNotificationConfigArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
FhirStoreNotificationConfigArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.notificationConfigs = mapped
}
/**
* @param values A list of notifcation configs that configure the notification for every resource mutation in this FHIR store.
* Structure is documented below.
*/
@JvmName("pbpmeghoaieykoub")
public suspend fun notificationConfigs(vararg values: FhirStoreNotificationConfigArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.notificationConfigs = mapped
}
/**
* @param value A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
*/
@JvmName("nokqywsjcohyqfqo")
public suspend fun streamConfigs(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.streamConfigs = mapped
}
/**
* @param argument A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
*/
@JvmName("odfxyubaliynlvum")
public suspend fun streamConfigs(argument: List Unit>) {
val toBeMapped = argument.toList().map {
FhirStoreStreamConfigArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.streamConfigs = mapped
}
/**
* @param argument A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
*/
@JvmName("fmpapbjuyltetxic")
public suspend fun streamConfigs(vararg argument: suspend FhirStoreStreamConfigArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
FhirStoreStreamConfigArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.streamConfigs = mapped
}
/**
* @param argument A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
*/
@JvmName("hpfkspgxyhrubntb")
public suspend fun streamConfigs(argument: suspend FhirStoreStreamConfigArgsBuilder.() -> Unit) {
val toBeMapped = listOf(FhirStoreStreamConfigArgsBuilder().applySuspend { argument() }.build())
val mapped = of(toBeMapped)
this.streamConfigs = mapped
}
/**
* @param values A list of streaming configs that configure the destinations of streaming export for every resource mutation in
* this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next
* resource mutation is streamed to the new location in addition to the existing ones. When a location is removed
* from the list, the server stops streaming to that location. Before adding a new config, you must add the required
* bigquery.dataEditor role to your project's Cloud Healthcare Service Agent service account. Some lag (typically on
* the order of dozens of seconds) is expected before the results show up in the streaming destination.
* Structure is documented below.
*/
@JvmName("xlrvaciwtnulvupj")
public suspend fun streamConfigs(vararg values: FhirStoreStreamConfigArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.streamConfigs = mapped
}
/**
* @param value The FHIR specification version.
* Default value is `STU3`.
* Possible values are: `DSTU2`, `STU3`, `R4`.
*/
@JvmName("fpbxipsqxmticwjp")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): FhirStoreArgs = FhirStoreArgs(
complexDataTypeReferenceParsing = complexDataTypeReferenceParsing,
dataset = dataset,
defaultSearchHandlingStrict = defaultSearchHandlingStrict,
disableReferentialIntegrity = disableReferentialIntegrity,
disableResourceVersioning = disableResourceVersioning,
enableHistoryImport = enableHistoryImport,
enableHistoryModifications = enableHistoryModifications,
enableUpdateCreate = enableUpdateCreate,
labels = labels,
name = name,
notificationConfig = notificationConfig,
notificationConfigs = notificationConfigs,
streamConfigs = streamConfigs,
version = version,
)
}