ServiceArgs

data class ServiceArgs(val accessPolicyObjectIds: Output<List<String>>? = null, val authenticationConfiguration: Output<ServiceAuthenticationConfigurationArgs>? = null, val corsConfiguration: Output<ServiceCorsConfigurationArgs>? = null, val cosmosdbKeyVaultKeyVersionlessId: Output<String>? = null, val cosmosdbThroughput: Output<Int>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceArgs>

Manages a Healthcare Service.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.healthcare.Service;
import com.pulumi.azure.healthcare.ServiceArgs;
import com.pulumi.azure.healthcare.inputs.ServiceAuthenticationConfigurationArgs;
import com.pulumi.azure.healthcare.inputs.ServiceCorsConfigurationArgs;
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) {
final var current = CoreFunctions.getClientConfig();
var example = new Service("example", ServiceArgs.builder()
.resourceGroupName("sample-resource-group")
.location("westus2")
.kind("fhir-R4")
.cosmosdbThroughput("2000")
.accessPolicyObjectIds(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
.tags(Map.ofEntries(
Map.entry("environment", "testenv"),
Map.entry("purpose", "AcceptanceTests")
))
.authenticationConfiguration(ServiceAuthenticationConfigurationArgs.builder()
.authority("https://login.microsoftonline.com/$%7Bdata.azurerm_client_config.current.tenant_id%7D")
.audience("https://azurehealthcareapis.com/")
.smartProxyEnabled("true")
.build())
.corsConfiguration(ServiceCorsConfigurationArgs.builder()
.allowedOrigins(
"http://www.example.com",
"http://www.example2.com")
.allowedHeaders(
"x-tempo-*",
"x-tempo2-*")
.allowedMethods(
"GET",
"PUT")
.maxAgeInSeconds("500")
.allowCredentials("true")
.build())
.build());
}
}

Import

Healthcare Service can be imported using the resourceid, e.g.

$ pulumi import azure:healthcare/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource_group/providers/Microsoft.HealthcareApis/services/service_name

Constructors

Link copied to clipboard
fun ServiceArgs(accessPolicyObjectIds: Output<List<String>>? = null, authenticationConfiguration: Output<ServiceAuthenticationConfigurationArgs>? = null, corsConfiguration: Output<ServiceCorsConfigurationArgs>? = null, cosmosdbKeyVaultKeyVersionlessId: Output<String>? = null, cosmosdbThroughput: Output<Int>? = null, kind: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServiceArgs

Properties

Link copied to clipboard
val accessPolicyObjectIds: Output<List<String>>? = null
Link copied to clipboard

An authentication_configuration block as defined below.

Link copied to clipboard

A cors_configuration block as defined below.

Link copied to clipboard

A versionless Key Vault Key ID for CMK encryption of the backing database. Changing this forces a new resource to be created.

Link copied to clipboard
val cosmosdbThroughput: Output<Int>? = null

The provisioned throughput for the backing database. Range of 400-100000. Defaults to 1000.

Link copied to clipboard
val kind: Output<String>? = null

The type of the service. Values at time of publication are: fhir, fhir-Stu3 and fhir-R4. Default value is fhir.

Link copied to clipboard
val location: Output<String>? = null

Specifies the supported Azure Region where the Service should be created. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

The name of the service instance. Used for service endpoint, must be unique within the audience. Changing this forces a new resource to be created.

Link copied to clipboard
val publicNetworkAccessEnabled: Output<Boolean>? = null

Whether public network access is enabled or disabled for this service instance. Defaults to true.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group in which to create the Service. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.