All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.healthcare.kotlin.FhirServiceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.healthcare.kotlin

import com.pulumi.azure.healthcare.FhirServiceArgs.builder
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceAuthenticationArgs
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceAuthenticationArgsBuilder
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceCorsArgs
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceCorsArgsBuilder
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceIdentityArgs
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceIdentityArgsBuilder
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceOciArtifactArgs
import com.pulumi.azure.healthcare.kotlin.inputs.FhirServiceOciArtifactArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Healthcare FHIR (Fast Healthcare Interoperability Resources) Service
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example",
 *     location: "West Europe",
 * });
 * const current = azure.core.getClientConfig({});
 * const exampleWorkspace = new azure.healthcare.Workspace("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 * });
 * const exampleFhirService = new azure.healthcare.FhirService("example", {
 *     name: "tfexfhir",
 *     location: "east us",
 *     resourceGroupName: "tfex-resource_group",
 *     workspaceId: exampleWorkspace.id,
 *     kind: "fhir-R4",
 *     authentication: {
 *         authority: "https://login.microsoftonline.com/tenantId",
 *         audience: "https://tfexfhir.fhir.azurehealthcareapis.com",
 *     },
 *     accessPolicyObjectIds: [current.then(current => current.objectId)],
 *     identity: {
 *         type: "SystemAssigned",
 *     },
 *     containerRegistryLoginServerUrls: ["tfex-container_registry_login_server"],
 *     cors: {
 *         allowedOrigins: [
 *             "https://tfex.com:123",
 *             "https://tfex1.com:3389",
 *         ],
 *         allowedHeaders: ["*"],
 *         allowedMethods: [
 *             "GET",
 *             "DELETE",
 *             "PUT",
 *         ],
 *         maxAgeInSeconds: 3600,
 *         credentialsAllowed: true,
 *     },
 *     configurationExportStorageAccountName: "storage_account_name",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example",
 *     location="West Europe")
 * current = azure.core.get_client_config()
 * example_workspace = azure.healthcare.Workspace("example",
 *     name="example",
 *     location=example.location,
 *     resource_group_name=example.name)
 * example_fhir_service = azure.healthcare.FhirService("example",
 *     name="tfexfhir",
 *     location="east us",
 *     resource_group_name="tfex-resource_group",
 *     workspace_id=example_workspace.id,
 *     kind="fhir-R4",
 *     authentication={
 *         "authority": "https://login.microsoftonline.com/tenantId",
 *         "audience": "https://tfexfhir.fhir.azurehealthcareapis.com",
 *     },
 *     access_policy_object_ids=[current.object_id],
 *     identity={
 *         "type": "SystemAssigned",
 *     },
 *     container_registry_login_server_urls=["tfex-container_registry_login_server"],
 *     cors={
 *         "allowed_origins": [
 *             "https://tfex.com:123",
 *             "https://tfex1.com:3389",
 *         ],
 *         "allowed_headers": ["*"],
 *         "allowed_methods": [
 *             "GET",
 *             "DELETE",
 *             "PUT",
 *         ],
 *         "max_age_in_seconds": 3600,
 *         "credentials_allowed": True,
 *     },
 *     configuration_export_storage_account_name="storage_account_name")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example",
 *         Location = "West Europe",
 *     });
 *     var current = Azure.Core.GetClientConfig.Invoke();
 *     var exampleWorkspace = new Azure.Healthcare.Workspace("example", new()
 *     {
 *         Name = "example",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *     });
 *     var exampleFhirService = new Azure.Healthcare.FhirService("example", new()
 *     {
 *         Name = "tfexfhir",
 *         Location = "east us",
 *         ResourceGroupName = "tfex-resource_group",
 *         WorkspaceId = exampleWorkspace.Id,
 *         Kind = "fhir-R4",
 *         Authentication = new Azure.Healthcare.Inputs.FhirServiceAuthenticationArgs
 *         {
 *             Authority = "https://login.microsoftonline.com/tenantId",
 *             Audience = "https://tfexfhir.fhir.azurehealthcareapis.com",
 *         },
 *         AccessPolicyObjectIds = new[]
 *         {
 *             current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
 *         },
 *         Identity = new Azure.Healthcare.Inputs.FhirServiceIdentityArgs
 *         {
 *             Type = "SystemAssigned",
 *         },
 *         ContainerRegistryLoginServerUrls = new[]
 *         {
 *             "tfex-container_registry_login_server",
 *         },
 *         Cors = new Azure.Healthcare.Inputs.FhirServiceCorsArgs
 *         {
 *             AllowedOrigins = new[]
 *             {
 *                 "https://tfex.com:123",
 *                 "https://tfex1.com:3389",
 *             },
 *             AllowedHeaders = new[]
 *             {
 *                 "*",
 *             },
 *             AllowedMethods = new[]
 *             {
 *                 "GET",
 *                 "DELETE",
 *                 "PUT",
 *             },
 *             MaxAgeInSeconds = 3600,
 *             CredentialsAllowed = true,
 *         },
 *         ConfigurationExportStorageAccountName = "storage_account_name",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/healthcare"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		current, err := core.GetClientConfig(ctx, nil, nil)
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleWorkspace, err := healthcare.NewWorkspace(ctx, "example", &healthcare.WorkspaceArgs{
 * 			Name:              pulumi.String("example"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = healthcare.NewFhirService(ctx, "example", &healthcare.FhirServiceArgs{
 * 			Name:              pulumi.String("tfexfhir"),
 * 			Location:          pulumi.String("east us"),
 * 			ResourceGroupName: pulumi.String("tfex-resource_group"),
 * 			WorkspaceId:       exampleWorkspace.ID(),
 * 			Kind:              pulumi.String("fhir-R4"),
 * 			Authentication: &healthcare.FhirServiceAuthenticationArgs{
 * 				Authority: pulumi.String("https://login.microsoftonline.com/tenantId"),
 * 				Audience:  pulumi.String("https://tfexfhir.fhir.azurehealthcareapis.com"),
 * 			},
 * 			AccessPolicyObjectIds: pulumi.StringArray{
 * 				pulumi.String(current.ObjectId),
 * 			},
 * 			Identity: &healthcare.FhirServiceIdentityArgs{
 * 				Type: pulumi.String("SystemAssigned"),
 * 			},
 * 			ContainerRegistryLoginServerUrls: pulumi.StringArray{
 * 				pulumi.String("tfex-container_registry_login_server"),
 * 			},
 * 			Cors: &healthcare.FhirServiceCorsArgs{
 * 				AllowedOrigins: pulumi.StringArray{
 * 					pulumi.String("https://tfex.com:123"),
 * 					pulumi.String("https://tfex1.com:3389"),
 * 				},
 * 				AllowedHeaders: pulumi.StringArray{
 * 					pulumi.String("*"),
 * 				},
 * 				AllowedMethods: pulumi.StringArray{
 * 					pulumi.String("GET"),
 * 					pulumi.String("DELETE"),
 * 					pulumi.String("PUT"),
 * 				},
 * 				MaxAgeInSeconds:    pulumi.Int(3600),
 * 				CredentialsAllowed: pulumi.Bool(true),
 * 			},
 * 			ConfigurationExportStorageAccountName: pulumi.String("storage_account_name"),
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.healthcare.Workspace;
 * import com.pulumi.azure.healthcare.WorkspaceArgs;
 * import com.pulumi.azure.healthcare.FhirService;
 * import com.pulumi.azure.healthcare.FhirServiceArgs;
 * import com.pulumi.azure.healthcare.inputs.FhirServiceAuthenticationArgs;
 * import com.pulumi.azure.healthcare.inputs.FhirServiceIdentityArgs;
 * import com.pulumi.azure.healthcare.inputs.FhirServiceCorsArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example")
 *             .location("West Europe")
 *             .build());
 *         final var current = CoreFunctions.getClientConfig();
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .build());
 *         var exampleFhirService = new FhirService("exampleFhirService", FhirServiceArgs.builder()
 *             .name("tfexfhir")
 *             .location("east us")
 *             .resourceGroupName("tfex-resource_group")
 *             .workspaceId(exampleWorkspace.id())
 *             .kind("fhir-R4")
 *             .authentication(FhirServiceAuthenticationArgs.builder()
 *                 .authority("https://login.microsoftonline.com/tenantId")
 *                 .audience("https://tfexfhir.fhir.azurehealthcareapis.com")
 *                 .build())
 *             .accessPolicyObjectIds(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
 *             .identity(FhirServiceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .containerRegistryLoginServerUrls("tfex-container_registry_login_server")
 *             .cors(FhirServiceCorsArgs.builder()
 *                 .allowedOrigins(
 *                     "https://tfex.com:123",
 *                     "https://tfex1.com:3389")
 *                 .allowedHeaders("*")
 *                 .allowedMethods(
 *                     "GET",
 *                     "DELETE",
 *                     "PUT")
 *                 .maxAgeInSeconds(3600)
 *                 .credentialsAllowed(true)
 *                 .build())
 *             .configurationExportStorageAccountName("storage_account_name")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example
 *       location: West Europe
 *   exampleWorkspace:
 *     type: azure:healthcare:Workspace
 *     name: example
 *     properties:
 *       name: example
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *   exampleFhirService:
 *     type: azure:healthcare:FhirService
 *     name: example
 *     properties:
 *       name: tfexfhir
 *       location: east us
 *       resourceGroupName: tfex-resource_group
 *       workspaceId: ${exampleWorkspace.id}
 *       kind: fhir-R4
 *       authentication:
 *         authority: https://login.microsoftonline.com/tenantId
 *         audience: https://tfexfhir.fhir.azurehealthcareapis.com
 *       accessPolicyObjectIds:
 *         - ${current.objectId}
 *       identity:
 *         type: SystemAssigned
 *       containerRegistryLoginServerUrls:
 *         - tfex-container_registry_login_server
 *       cors:
 *         allowedOrigins:
 *           - https://tfex.com:123
 *           - https://tfex1.com:3389
 *         allowedHeaders:
 *           - '*'
 *         allowedMethods:
 *           - GET
 *           - DELETE
 *           - PUT
 *         maxAgeInSeconds: 3600
 *         credentialsAllowed: true
 *       configurationExportStorageAccountName: storage_account_name
 * variables:
 *   current:
 *     fn::invoke:
 *       Function: azure:core:getClientConfig
 *       Arguments: {}
 * ```
 * 
 * ## Import
 * Healthcare FHIR Service can be imported using the resource`id`, e.g.
 * ```sh
 * $ pulumi import azure:healthcare/fhirService:FhirService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/fhirServices/service1
 * ```
 * @property accessPolicyObjectIds A list of the access policies of the service instance.
 * @property authentication An `authentication` block as defined below.
 * @property configurationExportStorageAccountName Specifies the name of the storage account which the operation configuration information is exported to.
 * @property containerRegistryLoginServerUrls A list of azure container registry settings used for convert data operation of the service instance.
 * @property cors A `cors` block as defined below.
 * @property identity An `identity` block as defined below.
 * @property kind Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created.
 * @property location Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created.
 * @property name Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created.
 * @property ociArtifacts [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
 * @property resourceGroupName Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created.
 * @property tags A mapping of tags to assign to the Healthcare FHIR Service.
 * @property workspaceId Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created.
 */
public data class FhirServiceArgs(
    public val accessPolicyObjectIds: Output>? = null,
    public val authentication: Output? = null,
    public val configurationExportStorageAccountName: Output? = null,
    public val containerRegistryLoginServerUrls: Output>? = null,
    public val cors: Output? = null,
    public val identity: Output? = null,
    public val kind: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val ociArtifacts: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val workspaceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.healthcare.FhirServiceArgs =
        com.pulumi.azure.healthcare.FhirServiceArgs.builder()
            .accessPolicyObjectIds(accessPolicyObjectIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .authentication(authentication?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .configurationExportStorageAccountName(
                configurationExportStorageAccountName?.applyValue({ args0 ->
                    args0
                }),
            )
            .containerRegistryLoginServerUrls(
                containerRegistryLoginServerUrls?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .cors(cors?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .ociArtifacts(
                ociArtifacts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FhirServiceArgs].
 */
@PulumiTagMarker
public class FhirServiceArgsBuilder internal constructor() {
    private var accessPolicyObjectIds: Output>? = null

    private var authentication: Output? = null

    private var configurationExportStorageAccountName: Output? = null

    private var containerRegistryLoginServerUrls: Output>? = null

    private var cors: Output? = null

    private var identity: Output? = null

    private var kind: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var ociArtifacts: Output>? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var workspaceId: Output? = null

    /**
     * @param value A list of the access policies of the service instance.
     */
    @JvmName("isxsyemgnnptfadj")
    public suspend fun accessPolicyObjectIds(`value`: Output>) {
        this.accessPolicyObjectIds = value
    }

    @JvmName("ycaedcjkauuvpssu")
    public suspend fun accessPolicyObjectIds(vararg values: Output) {
        this.accessPolicyObjectIds = Output.all(values.asList())
    }

    /**
     * @param values A list of the access policies of the service instance.
     */
    @JvmName("ynummnnqurvtxbht")
    public suspend fun accessPolicyObjectIds(values: List>) {
        this.accessPolicyObjectIds = Output.all(values)
    }

    /**
     * @param value An `authentication` block as defined below.
     */
    @JvmName("igggisnwpbydahlp")
    public suspend fun authentication(`value`: Output) {
        this.authentication = value
    }

    /**
     * @param value Specifies the name of the storage account which the operation configuration information is exported to.
     */
    @JvmName("dmdskeonqnwkjlkg")
    public suspend fun configurationExportStorageAccountName(`value`: Output) {
        this.configurationExportStorageAccountName = value
    }

    /**
     * @param value A list of azure container registry settings used for convert data operation of the service instance.
     */
    @JvmName("pbqrckbiksntaeon")
    public suspend fun containerRegistryLoginServerUrls(`value`: Output>) {
        this.containerRegistryLoginServerUrls = value
    }

    @JvmName("fnvebjtcaguawpel")
    public suspend fun containerRegistryLoginServerUrls(vararg values: Output) {
        this.containerRegistryLoginServerUrls = Output.all(values.asList())
    }

    /**
     * @param values A list of azure container registry settings used for convert data operation of the service instance.
     */
    @JvmName("tmibadkutbxdtypy")
    public suspend fun containerRegistryLoginServerUrls(values: List>) {
        this.containerRegistryLoginServerUrls = Output.all(values)
    }

    /**
     * @param value A `cors` block as defined below.
     */
    @JvmName("sgpyswtsattwhdlk")
    public suspend fun cors(`value`: Output) {
        this.cors = value
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("tfmxsxkpyjuynotq")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("tlknkvqbmflamkjx")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("vdlnnnwwmbcnbugr")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("fqlkuhxolctsiurl")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
     */
    @JvmName("odmqhptltuvcchbn")
    public suspend fun ociArtifacts(`value`: Output>) {
        this.ociArtifacts = value
    }

    @JvmName("ragjolytcfcgqmpy")
    public suspend fun ociArtifacts(vararg values: Output) {
        this.ociArtifacts = Output.all(values.asList())
    }

    /**
     * @param values [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
     */
    @JvmName("bdhhnowtxwkmystf")
    public suspend fun ociArtifacts(values: List>) {
        this.ociArtifacts = Output.all(values)
    }

    /**
     * @param value Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created.
     */
    @JvmName("rqagghxatkqppcwx")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags to assign to the Healthcare FHIR Service.
     */
    @JvmName("hrfifsayamspkwad")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("bkpxhkdaxumwanpn")
    public suspend fun workspaceId(`value`: Output) {
        this.workspaceId = value
    }

    /**
     * @param value A list of the access policies of the service instance.
     */
    @JvmName("rornmbxijpuwxpua")
    public suspend fun accessPolicyObjectIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessPolicyObjectIds = mapped
    }

    /**
     * @param values A list of the access policies of the service instance.
     */
    @JvmName("yiaobxtkjmmowmwb")
    public suspend fun accessPolicyObjectIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessPolicyObjectIds = mapped
    }

    /**
     * @param value An `authentication` block as defined below.
     */
    @JvmName("mwhcxijufvmfpggx")
    public suspend fun authentication(`value`: FhirServiceAuthenticationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authentication = mapped
    }

    /**
     * @param argument An `authentication` block as defined below.
     */
    @JvmName("sbisjbrtdgjtpjqg")
    public suspend fun authentication(argument: suspend FhirServiceAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = FhirServiceAuthenticationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.authentication = mapped
    }

    /**
     * @param value Specifies the name of the storage account which the operation configuration information is exported to.
     */
    @JvmName("gffgugsbahbuoxgg")
    public suspend fun configurationExportStorageAccountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurationExportStorageAccountName = mapped
    }

    /**
     * @param value A list of azure container registry settings used for convert data operation of the service instance.
     */
    @JvmName("ctkgdfjtcupetdpq")
    public suspend fun containerRegistryLoginServerUrls(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerRegistryLoginServerUrls = mapped
    }

    /**
     * @param values A list of azure container registry settings used for convert data operation of the service instance.
     */
    @JvmName("xpcoawlhydrbrgng")
    public suspend fun containerRegistryLoginServerUrls(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerRegistryLoginServerUrls = mapped
    }

    /**
     * @param value A `cors` block as defined below.
     */
    @JvmName("cjgbskuwpsvsohbj")
    public suspend fun cors(`value`: FhirServiceCorsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cors = mapped
    }

    /**
     * @param argument A `cors` block as defined below.
     */
    @JvmName("jgwynnvdsxxidvon")
    public suspend fun cors(argument: suspend FhirServiceCorsArgsBuilder.() -> Unit) {
        val toBeMapped = FhirServiceCorsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cors = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("ipqcmtravpaagspj")
    public suspend fun identity(`value`: FhirServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("prsqbgylafyqjghm")
    public suspend fun identity(argument: suspend FhirServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = FhirServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value Specifies the kind of the Healthcare FHIR Service. Possible values are: `fhir-Stu3` and `fhir-R4`. Defaults to `fhir-R4`. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("fwyppnimaylxfsqj")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value Specifies the Azure Region where the Healthcare FHIR Service should be created. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("mgsneravqhcvtvua")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Specifies the name of the Healthcare FHIR Service. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("vbruxyqjbtkbgsfw")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
     */
    @JvmName("tueaatthxehtowge")
    public suspend fun ociArtifacts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ociArtifacts = mapped
    }

    /**
     * @param argument [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
     */
    @JvmName("laikwpmnfgevybmp")
    public suspend fun ociArtifacts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FhirServiceOciArtifactArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ociArtifacts = mapped
    }

    /**
     * @param argument [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
     */
    @JvmName("dtepbfwnhcoqtgch")
    public suspend fun ociArtifacts(vararg argument: suspend FhirServiceOciArtifactArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FhirServiceOciArtifactArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.ociArtifacts = mapped
    }

    /**
     * @param argument [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
     */
    @JvmName("dcosvqegvoocyojx")
    public suspend fun ociArtifacts(argument: suspend FhirServiceOciArtifactArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FhirServiceOciArtifactArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.ociArtifacts = mapped
    }

    /**
     * @param values [A list](https://www.terraform.io/docs/configuration/attr-as-blocks.html) of `oci_artifact` objects as defined below to describe [OCI artifacts for export](https://learn.microsoft.com/en-gb/azure/healthcare-apis/fhir/de-identified-export).
     */
    @JvmName("shcjwelxpckjearo")
    public suspend fun ociArtifacts(vararg values: FhirServiceOciArtifactArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ociArtifacts = mapped
    }

    /**
     * @param value Specifies the name of the Resource Group in which to create the Healthcare FHIR Service. Changing this forces a new resource to be created.
     */
    @JvmName("vfmhldsucvammruw")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags to assign to the Healthcare FHIR Service.
     */
    @JvmName("npmrbpjkcgmvmqec")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the Healthcare FHIR Service.
     */
    @JvmName("yxpnmwfqnsqcnhnl")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Specifies the id of the Healthcare Workspace where the Healthcare FHIR Service should exist. Changing this forces a new Healthcare FHIR Service to be created.
     */
    @JvmName("vmqecmiftuvwjoad")
    public suspend fun workspaceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workspaceId = mapped
    }

    internal fun build(): FhirServiceArgs = FhirServiceArgs(
        accessPolicyObjectIds = accessPolicyObjectIds,
        authentication = authentication,
        configurationExportStorageAccountName = configurationExportStorageAccountName,
        containerRegistryLoginServerUrls = containerRegistryLoginServerUrls,
        cors = cors,
        identity = identity,
        kind = kind,
        location = location,
        name = name,
        ociArtifacts = ociArtifacts,
        resourceGroupName = resourceGroupName,
        tags = tags,
        workspaceId = workspaceId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy