Skip to content

Commit

Permalink
feat: add sendPreviousResourceOnDelete to fhir-notification-configs (#83
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JosieLi-Google authored Oct 18, 2023
1 parent 48eae87 commit a0696bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ provision a project with the necessary APIs enabled.

## Outputs

No output.
No outputs.

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

Expand Down
2 changes: 1 addition & 1 deletion examples/simple_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This example illustrates how to use the `healthcare` module.

## Outputs

No output.
No outputs.

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

Expand Down
5 changes: 3 additions & 2 deletions examples/simple_example/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ module "healthcare" {
disable_resource_versioning = false
enable_history_import = false
notification_configs = [{
pubsub_topic = local.pubsub_topic
send_full_resource = true
pubsub_topic = local.pubsub_topic
send_full_resource = true
send_previous_resource_on_delete = true
}]
stream_configs = [{
bigquery_destination = {
Expand Down
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ resource "google_healthcare_fhir_store" "fhir_stores" {
dynamic "notification_configs" {
for_each = lookup(each.value, "notification_configs", [])
content {
pubsub_topic = lookup(notification_configs.value, "pubsub_topic", null)
send_full_resource = lookup(notification_configs.value, "send_full_resource", null)
pubsub_topic = lookup(notification_configs.value, "pubsub_topic", null)
send_full_resource = lookup(notification_configs.value, "send_full_resource", null)
send_previous_resource_on_delete = lookup(notification_configs.value, "send_previous_resource_on_delete", null)
}
}

Expand Down

0 comments on commit a0696bb

Please sign in to comment.