Skip to content

Commit

Permalink
r/azurerm_healthcare_fhir - public_network_access_enabled added (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aristosvo authored Sep 29, 2022
1 parent 492d097 commit de3db67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions internal/services/healthcare/healthcare_fhir_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ func resourceHealthcareApisFhirService() *pluginsdk.Resource {
ValidateFunc: validation.StringIsNotEmpty,
},

"public_network_access_enabled": {
Type: pluginsdk.TypeBool,
Computed: true,
},

"tags": commonschema.Tags(),
},
}
Expand Down Expand Up @@ -353,6 +358,9 @@ func resourceHealthcareApisFhirServiceRead(d *pluginsdk.ResourceData, meta inter
if props.ExportConfiguration != nil && props.ExportConfiguration.StorageAccountName != nil {
d.Set("configuration_export_storage_account_name", props.ExportConfiguration.StorageAccountName)
}
if props.PublicNetworkAccess != "" {
d.Set("public_network_access_enabled", props.PublicNetworkAccess == healthcareapis.PublicNetworkAccessEnabled)
}

if err := tags.FlattenAndSet(d, resp.Tags); err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/healthcare_fhir_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ The following arguments are supported:

* `configuration_export_storage_account_name` - (Optional) Specifies the name of the storage account which the operation configuration information is exported to.

* `public_network_access_enabled` - (Optional) Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled.

---
An `identity` block supports the following:

Expand Down Expand Up @@ -127,6 +125,8 @@ The following attributes are exported:

* `id` - The ID of the Healthcare FHIR Service.

* `public_network_access_enabled` - Whether public networks access is enabled.

## Timeouts
The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions:

Expand Down

0 comments on commit de3db67

Please sign in to comment.