Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/azurerm_healthcare_fhir - public_network_access_enabled added #18566

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -183,6 +183,11 @@ func resourceHealthcareApisFhirService() *pluginsdk.Resource {
ValidateFunc: validation.StringIsNotEmpty,
},

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

"tags": commonschema.Tags(),
},
}
Expand Down Expand Up @@ -314,6 +319,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 @@ -85,8 +85,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 @@ -114,6 +112,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