com.pulumi.gcp.healthcare.kotlin.FhirStore.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.gcp.healthcare.kotlin.outputs.FhirStoreNotificationConfig
import com.pulumi.gcp.healthcare.kotlin.outputs.FhirStoreStreamConfig
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.gcp.healthcare.kotlin.outputs.FhirStoreNotificationConfig.Companion.toKotlin as fhirStoreNotificationConfigToKotlin
import com.pulumi.gcp.healthcare.kotlin.outputs.FhirStoreStreamConfig.Companion.toKotlin as fhirStoreStreamConfigToKotlin
/**
* Builder for [FhirStore].
*/
@PulumiTagMarker
public class FhirStoreResourceBuilder internal constructor() {
public var name: String? = null
public var args: FhirStoreArgs = FhirStoreArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend FhirStoreArgsBuilder.() -> Unit) {
val builder = FhirStoreArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): FhirStore {
val builtJavaResource = com.pulumi.gcp.healthcare.FhirStore(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return FhirStore(builtJavaResource)
}
}
/**
* 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}}
* ```
*/
public class FhirStore internal constructor(
override val javaResource: com.pulumi.gcp.healthcare.FhirStore,
) : KotlinCustomResource(javaResource, FhirStoreMapper) {
/**
* 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`.
*/
public val complexDataTypeReferenceParsing: Output
get() = javaResource.complexDataTypeReferenceParsing().applyValue({ args0 -> args0 })
/**
* Identifies the dataset addressed by this request. Must be in the format
* 'projects/{project}/locations/{location}/datasets/{dataset}'
* - - -
*/
public val dataset: Output
get() = javaResource.dataset().applyValue({ args0 -> args0 })
/**
* 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.
*/
public val defaultSearchHandlingStrict: Output?
get() = javaResource.defaultSearchHandlingStrict().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* 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) **
*/
public val disableReferentialIntegrity: Output?
get() = javaResource.disableReferentialIntegrity().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* 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) **
*/
public val disableResourceVersioning: Output?
get() = javaResource.disableResourceVersioning().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
public val effectiveLabels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy