com.pulumi.gcp.healthcare.kotlin.FhirStoreArgs.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.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.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,
* notificationConfig: {
* 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_config=gcp.healthcare.FhirStoreNotificationConfigArgs(
* 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,
* NotificationConfig = 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),
* NotificationConfig: &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)
* .notificationConfig(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
* notificationConfig:
* 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=[gcp.healthcare.FhirStoreStreamConfigArgs(
* resource_types=["Observation"],
* bigquery_destination=gcp.healthcare.FhirStoreStreamConfigBigqueryDestinationArgs(
* dataset_uri=pulumi.Output.all(bq_dataset.project, bq_dataset.dataset_id).apply(lambda project, dataset_id: f"bq://{project}.{dataset_id}"),
* schema_config=gcp.healthcare.FhirStoreStreamConfigBigqueryDestinationSchemaConfigArgs(
* recursive_structure_depth=3,
* last_updated_partition_config=gcp.healthcare.FhirStoreStreamConfigBigqueryDestinationSchemaConfigLastUpdatedPartitionConfigArgs(
* 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 Config
*
* ```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",
* },
* notificationConfig: {
* pubsubTopic: topic.id,
* },
* });
* ```
* ```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_config=gcp.healthcare.FhirStoreNotificationConfigArgs(
* pubsub_topic=topic.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 = "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" },
* },
* NotificationConfig = new Gcp.Healthcare.Inputs.FhirStoreNotificationConfigArgs
* {
* PubsubTopic = topic.Id,
* },
* });
* });
* ```
* ```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"),
* },
* NotificationConfig: &healthcare.FhirStoreNotificationConfigArgs{
* PubsubTopic: topic.ID(),
* },
* })
* 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"))
* .notificationConfig(FhirStoreNotificationConfigArgs.builder()
* .pubsubTopic(topic.id())
* .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
* notificationConfig:
* pubsubTopic: ${topic.id}
* topic:
* type: gcp:pubsub:Topic
* properties:
* name: fhir-notifications
* dataset:
* type: gcp:healthcare:Dataset
* properties:
* name: example-dataset
* location: us-central1
* ```
*
* ### 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,
* enableHistoryModifications: 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,
* enable_history_modifications=False,
* labels={
* "label1": "labelvalue1",
* },
* notification_configs=[gcp.healthcare.FhirStoreNotificationConfigArgs(
* 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,
* EnableHistoryModifications = 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),
* EnableHistoryModifications: 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)
* .enableHistoryModifications(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
* enableHistoryModifications: 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 A nested object resource
* Structure is documented below.
* @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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy