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

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

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

package com.pulumi.azure.healthcare.kotlin

import com.pulumi.azure.healthcare.DicomServiceArgs.builder
import com.pulumi.azure.healthcare.kotlin.inputs.DicomServiceIdentityArgs
import com.pulumi.azure.healthcare.kotlin.inputs.DicomServiceIdentityArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Healthcare DICOM Service
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const test = new azure.healthcare.Workspace("test", {
 *     name: "tfexworkspace",
 *     resourceGroupName: "tfex-resource_group",
 *     location: "east us",
 * });
 * const testDicomService = new azure.healthcare.DicomService("test", {
 *     name: "tfexDicom",
 *     workspaceId: test.id,
 *     location: "east us",
 *     identity: {
 *         type: "SystemAssigned",
 *     },
 *     tags: {
 *         environment: "None",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * test = azure.healthcare.Workspace("test",
 *     name="tfexworkspace",
 *     resource_group_name="tfex-resource_group",
 *     location="east us")
 * test_dicom_service = azure.healthcare.DicomService("test",
 *     name="tfexDicom",
 *     workspace_id=test.id,
 *     location="east us",
 *     identity={
 *         "type": "SystemAssigned",
 *     },
 *     tags={
 *         "environment": "None",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var test = new Azure.Healthcare.Workspace("test", new()
 *     {
 *         Name = "tfexworkspace",
 *         ResourceGroupName = "tfex-resource_group",
 *         Location = "east us",
 *     });
 *     var testDicomService = new Azure.Healthcare.DicomService("test", new()
 *     {
 *         Name = "tfexDicom",
 *         WorkspaceId = test.Id,
 *         Location = "east us",
 *         Identity = new Azure.Healthcare.Inputs.DicomServiceIdentityArgs
 *         {
 *             Type = "SystemAssigned",
 *         },
 *         Tags =
 *         {
 *             { "environment", "None" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"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 {
 * 		test, err := healthcare.NewWorkspace(ctx, "test", &healthcare.WorkspaceArgs{
 * 			Name:              pulumi.String("tfexworkspace"),
 * 			ResourceGroupName: pulumi.String("tfex-resource_group"),
 * 			Location:          pulumi.String("east us"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = healthcare.NewDicomService(ctx, "test", &healthcare.DicomServiceArgs{
 * 			Name:        pulumi.String("tfexDicom"),
 * 			WorkspaceId: test.ID(),
 * 			Location:    pulumi.String("east us"),
 * 			Identity: &healthcare.DicomServiceIdentityArgs{
 * 				Type: pulumi.String("SystemAssigned"),
 * 			},
 * 			Tags: pulumi.StringMap{
 * 				"environment": pulumi.String("None"),
 * 			},
 * 		})
 * 		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.healthcare.Workspace;
 * import com.pulumi.azure.healthcare.WorkspaceArgs;
 * import com.pulumi.azure.healthcare.DicomService;
 * import com.pulumi.azure.healthcare.DicomServiceArgs;
 * import com.pulumi.azure.healthcare.inputs.DicomServiceIdentityArgs;
 * 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 test = new Workspace("test", WorkspaceArgs.builder()
 *             .name("tfexworkspace")
 *             .resourceGroupName("tfex-resource_group")
 *             .location("east us")
 *             .build());
 *         var testDicomService = new DicomService("testDicomService", DicomServiceArgs.builder()
 *             .name("tfexDicom")
 *             .workspaceId(test.id())
 *             .location("east us")
 *             .identity(DicomServiceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .tags(Map.of("environment", "None"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   test:
 *     type: azure:healthcare:Workspace
 *     properties:
 *       name: tfexworkspace
 *       resourceGroupName: tfex-resource_group
 *       location: east us
 *   testDicomService:
 *     type: azure:healthcare:DicomService
 *     name: test
 *     properties:
 *       name: tfexDicom
 *       workspaceId: ${test.id}
 *       location: east us
 *       identity:
 *         type: SystemAssigned
 *       tags:
 *         environment: None
 * ```
 * 
 * ## Import
 * Healthcare DICOM Service can be imported using the resource`id`, e.g.
 * ```sh
 * $ pulumi import azure:healthcare/dicomService:DicomService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.HealthcareApis/workspaces/workspace1/dicomServices/service1
 * ```
 * @property identity An `identity` block as defined below.
 * @property location Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created.
 * @property name Specifies the name of the Healthcare DICOM Service. Changing this forces a new Healthcare DICOM Service to be created.
 * @property publicNetworkAccessEnabled Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`.
 * @property tags A mapping of tags to assign to the Healthcare DICOM Service.
 * @property workspaceId Specifies the id of the Healthcare Workspace where the Healthcare DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created.
 */
public data class DicomServiceArgs(
    public val identity: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val tags: Output>? = null,
    public val workspaceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.healthcare.DicomServiceArgs =
        com.pulumi.azure.healthcare.DicomServiceArgs.builder()
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DicomServiceArgs].
 */
@PulumiTagMarker
public class DicomServiceArgsBuilder internal constructor() {
    private var identity: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var tags: Output>? = null

    private var workspaceId: Output? = null

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

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

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

    /**
     * @param value Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`.
     */
    @JvmName("rlqxrbuwgrkqmghf")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

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

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

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

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

    /**
     * @param value Specifies the Azure Region where the Healthcare DICOM Service should be created. Changing this forces a new Healthcare DICOM Service to be created.
     */
    @JvmName("yxuuirpelymmxobm")
    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 DICOM Service. Changing this forces a new Healthcare DICOM Service to be created.
     */
    @JvmName("gejdgcsinnglgweu")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. Defaults to `true`.
     */
    @JvmName("lfiebyypkrnturlj")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value A mapping of tags to assign to the Healthcare DICOM Service.
     */
    @JvmName("ceqdiagqoixyvqxb")
    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 DICOM Service.
     */
    @JvmName("yqfobksqamvolvjg")
    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 DICOM Service should exist. Changing this forces a new Healthcare DICOM Service to be created.
     */
    @JvmName("ukrtlatoyjluitie")
    public suspend fun workspaceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workspaceId = mapped
    }

    internal fun build(): DicomServiceArgs = DicomServiceArgs(
        identity = identity,
        location = location,
        name = name,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        tags = tags,
        workspaceId = workspaceId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy