Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.healthcare.kotlin.HealthcareFunctions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.healthcare.kotlin
import com.pulumi.azure.healthcare.HealthcareFunctions.getDicomServicePlain
import com.pulumi.azure.healthcare.HealthcareFunctions.getFhirServicePlain
import com.pulumi.azure.healthcare.HealthcareFunctions.getMedtechServicePlain
import com.pulumi.azure.healthcare.HealthcareFunctions.getServicePlain
import com.pulumi.azure.healthcare.HealthcareFunctions.getWorkspacePlain
import com.pulumi.azure.healthcare.kotlin.inputs.GetDicomServicePlainArgs
import com.pulumi.azure.healthcare.kotlin.inputs.GetDicomServicePlainArgsBuilder
import com.pulumi.azure.healthcare.kotlin.inputs.GetFhirServicePlainArgs
import com.pulumi.azure.healthcare.kotlin.inputs.GetFhirServicePlainArgsBuilder
import com.pulumi.azure.healthcare.kotlin.inputs.GetMedtechServicePlainArgs
import com.pulumi.azure.healthcare.kotlin.inputs.GetMedtechServicePlainArgsBuilder
import com.pulumi.azure.healthcare.kotlin.inputs.GetServicePlainArgs
import com.pulumi.azure.healthcare.kotlin.inputs.GetServicePlainArgsBuilder
import com.pulumi.azure.healthcare.kotlin.inputs.GetWorkspacePlainArgs
import com.pulumi.azure.healthcare.kotlin.inputs.GetWorkspacePlainArgsBuilder
import com.pulumi.azure.healthcare.kotlin.outputs.GetDicomServiceResult
import com.pulumi.azure.healthcare.kotlin.outputs.GetFhirServiceResult
import com.pulumi.azure.healthcare.kotlin.outputs.GetMedtechServiceResult
import com.pulumi.azure.healthcare.kotlin.outputs.GetServiceResult
import com.pulumi.azure.healthcare.kotlin.outputs.GetWorkspaceResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.azure.healthcare.kotlin.outputs.GetDicomServiceResult.Companion.toKotlin as getDicomServiceResultToKotlin
import com.pulumi.azure.healthcare.kotlin.outputs.GetFhirServiceResult.Companion.toKotlin as getFhirServiceResultToKotlin
import com.pulumi.azure.healthcare.kotlin.outputs.GetMedtechServiceResult.Companion.toKotlin as getMedtechServiceResultToKotlin
import com.pulumi.azure.healthcare.kotlin.outputs.GetServiceResult.Companion.toKotlin as getServiceResultToKotlin
import com.pulumi.azure.healthcare.kotlin.outputs.GetWorkspaceResult.Companion.toKotlin as getWorkspaceResultToKotlin
public object HealthcareFunctions {
/**
* Use this data source to access information about an existing Healthcare DICOM Service
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.healthcare.getDicomService({
* name: "example-healthcare_dicom_service",
* workspaceId: exampleAzurermHealthcareWorkspace.id,
* });
* export const azurermHealthcareDicomService = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.healthcare.get_dicom_service(name="example-healthcare_dicom_service",
* workspace_id=example_azurerm_healthcare_workspace["id"])
* pulumi.export("azurermHealthcareDicomService", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.Healthcare.GetDicomService.Invoke(new()
* {
* Name = "example-healthcare_dicom_service",
* WorkspaceId = exampleAzurermHealthcareWorkspace.Id,
* });
* return new Dictionary
* {
* ["azurermHealthcareDicomService"] = example.Apply(getDicomServiceResult => getDicomServiceResult.Id),
* };
* });
* ```
* ```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 {
* example, err := healthcare.LookupDicomService(ctx, &healthcare.LookupDicomServiceArgs{
* Name: "example-healthcare_dicom_service",
* WorkspaceId: exampleAzurermHealthcareWorkspace.Id,
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("azurermHealthcareDicomService", example.Id)
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.healthcare.HealthcareFunctions;
* import com.pulumi.azure.healthcare.inputs.GetDicomServiceArgs;
* 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 example = HealthcareFunctions.getDicomService(GetDicomServiceArgs.builder()
* .name("example-healthcare_dicom_service")
* .workspaceId(exampleAzurermHealthcareWorkspace.id())
* .build());
* ctx.export("azurermHealthcareDicomService", example.applyValue(getDicomServiceResult -> getDicomServiceResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:healthcare:getDicomService
* Arguments:
* name: example-healthcare_dicom_service
* workspaceId: ${exampleAzurermHealthcareWorkspace.id}
* outputs:
* azurermHealthcareDicomService: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getDicomService.
* @return A collection of values returned by getDicomService.
*/
public suspend fun getDicomService(argument: GetDicomServicePlainArgs): GetDicomServiceResult =
getDicomServiceResultToKotlin(getDicomServicePlain(argument.toJava()).await())
/**
* @see [getDicomService].
* @param name The name of the Healthcare DICOM Service
* @param workspaceId The id of the Healthcare Workspace in which the Healthcare DICOM Service exists.
* @return A collection of values returned by getDicomService.
*/
public suspend fun getDicomService(name: String, workspaceId: String): GetDicomServiceResult {
val argument = GetDicomServicePlainArgs(
name = name,
workspaceId = workspaceId,
)
return getDicomServiceResultToKotlin(getDicomServicePlain(argument.toJava()).await())
}
/**
* @see [getDicomService].
* @param argument Builder for [com.pulumi.azure.healthcare.kotlin.inputs.GetDicomServicePlainArgs].
* @return A collection of values returned by getDicomService.
*/
public suspend fun getDicomService(argument: suspend GetDicomServicePlainArgsBuilder.() -> Unit): GetDicomServiceResult {
val builder = GetDicomServicePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getDicomServiceResultToKotlin(getDicomServicePlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Healthcare FHIR Service(Fast Healthcare Interoperability Resources).
* @param argument A collection of arguments for invoking getFhirService.
* @return A collection of values returned by getFhirService.
*/
public suspend fun getFhirService(argument: GetFhirServicePlainArgs): GetFhirServiceResult =
getFhirServiceResultToKotlin(getFhirServicePlain(argument.toJava()).await())
/**
* @see [getFhirService].
* @param name The name of the Healthcare FHIR Service.
* @param tags The map of tags assigned to the Healthcare FHIR Service.
* @param workspaceId The id of the Healthcare Workspace in which the Healthcare FHIR Service exists.
* @return A collection of values returned by getFhirService.
*/
public suspend fun getFhirService(
name: String,
tags: Map? = null,
workspaceId: String,
): GetFhirServiceResult {
val argument = GetFhirServicePlainArgs(
name = name,
tags = tags,
workspaceId = workspaceId,
)
return getFhirServiceResultToKotlin(getFhirServicePlain(argument.toJava()).await())
}
/**
* @see [getFhirService].
* @param argument Builder for [com.pulumi.azure.healthcare.kotlin.inputs.GetFhirServicePlainArgs].
* @return A collection of values returned by getFhirService.
*/
public suspend fun getFhirService(argument: suspend GetFhirServicePlainArgsBuilder.() -> Unit): GetFhirServiceResult {
val builder = GetFhirServicePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getFhirServiceResultToKotlin(getFhirServicePlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Healthcare Med Tech Service
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.healthcare.getMedtechService({
* name: "tfexmedtech",
* workspaceId: "tfexwks",
* });
* export const azurermHealthcareMedtechServiceId = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.healthcare.get_medtech_service(name="tfexmedtech",
* workspace_id="tfexwks")
* pulumi.export("azurermHealthcareMedtechServiceId", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.Healthcare.GetMedtechService.Invoke(new()
* {
* Name = "tfexmedtech",
* WorkspaceId = "tfexwks",
* });
* return new Dictionary
* {
* ["azurermHealthcareMedtechServiceId"] = example.Apply(getMedtechServiceResult => getMedtechServiceResult.Id),
* };
* });
* ```
* ```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 {
* example, err := healthcare.LookupMedtechService(ctx, &healthcare.LookupMedtechServiceArgs{
* Name: "tfexmedtech",
* WorkspaceId: "tfexwks",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("azurermHealthcareMedtechServiceId", example.Id)
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.healthcare.HealthcareFunctions;
* import com.pulumi.azure.healthcare.inputs.GetMedtechServiceArgs;
* 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 example = HealthcareFunctions.getMedtechService(GetMedtechServiceArgs.builder()
* .name("tfexmedtech")
* .workspaceId("tfexwks")
* .build());
* ctx.export("azurermHealthcareMedtechServiceId", example.applyValue(getMedtechServiceResult -> getMedtechServiceResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:healthcare:getMedtechService
* Arguments:
* name: tfexmedtech
* workspaceId: tfexwks
* outputs:
* azurermHealthcareMedtechServiceId: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getMedtechService.
* @return A collection of values returned by getMedtechService.
*/
public suspend fun getMedtechService(argument: GetMedtechServicePlainArgs): GetMedtechServiceResult =
getMedtechServiceResultToKotlin(getMedtechServicePlain(argument.toJava()).await())
/**
* @see [getMedtechService].
* @param name The name of the Healthcare Med Tech Service.
* @param workspaceId The id of the Healthcare Workspace in which the Healthcare Med Tech Service exists.
* @return A collection of values returned by getMedtechService.
*/
public suspend fun getMedtechService(name: String, workspaceId: String): GetMedtechServiceResult {
val argument = GetMedtechServicePlainArgs(
name = name,
workspaceId = workspaceId,
)
return getMedtechServiceResultToKotlin(getMedtechServicePlain(argument.toJava()).await())
}
/**
* @see [getMedtechService].
* @param argument Builder for [com.pulumi.azure.healthcare.kotlin.inputs.GetMedtechServicePlainArgs].
* @return A collection of values returned by getMedtechService.
*/
public suspend fun getMedtechService(argument: suspend GetMedtechServicePlainArgsBuilder.() -> Unit): GetMedtechServiceResult {
val builder = GetMedtechServicePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getMedtechServiceResultToKotlin(getMedtechServicePlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Healthcare Service
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.healthcare.getService({
* name: "example-healthcare_service",
* resourceGroupName: "example-resources",
* location: "westus2",
* });
* export const healthcareServiceId = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.healthcare.get_service(name="example-healthcare_service",
* resource_group_name="example-resources",
* location="westus2")
* pulumi.export("healthcareServiceId", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.Healthcare.GetService.Invoke(new()
* {
* Name = "example-healthcare_service",
* ResourceGroupName = "example-resources",
* Location = "westus2",
* });
* return new Dictionary
* {
* ["healthcareServiceId"] = example.Apply(getServiceResult => getServiceResult.Id),
* };
* });
* ```
* ```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 {
* example, err := healthcare.LookupService(ctx, &healthcare.LookupServiceArgs{
* Name: "example-healthcare_service",
* ResourceGroupName: "example-resources",
* Location: "westus2",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("healthcareServiceId", example.Id)
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.healthcare.HealthcareFunctions;
* import com.pulumi.azure.healthcare.inputs.GetServiceArgs;
* 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 example = HealthcareFunctions.getService(GetServiceArgs.builder()
* .name("example-healthcare_service")
* .resourceGroupName("example-resources")
* .location("westus2")
* .build());
* ctx.export("healthcareServiceId", example.applyValue(getServiceResult -> getServiceResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:healthcare:getService
* Arguments:
* name: example-healthcare_service
* resourceGroupName: example-resources
* location: westus2
* outputs:
* healthcareServiceId: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getService.
* @return A collection of values returned by getService.
*/
public suspend fun getService(argument: GetServicePlainArgs): GetServiceResult =
getServiceResultToKotlin(getServicePlain(argument.toJava()).await())
/**
* @see [getService].
* @param location The Azure Region where the Service is located.
* @param name Specifies the name of the Healthcare Service.
* @param resourceGroupName The name of the Resource Group in which the Healthcare Service exists.
* @return A collection of values returned by getService.
*/
public suspend fun getService(
location: String,
name: String,
resourceGroupName: String,
): GetServiceResult {
val argument = GetServicePlainArgs(
location = location,
name = name,
resourceGroupName = resourceGroupName,
)
return getServiceResultToKotlin(getServicePlain(argument.toJava()).await())
}
/**
* @see [getService].
* @param argument Builder for [com.pulumi.azure.healthcare.kotlin.inputs.GetServicePlainArgs].
* @return A collection of values returned by getService.
*/
public suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult {
val builder = GetServicePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getServiceResultToKotlin(getServicePlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Healthcare Workspace
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.healthcare.getWorkspace({
* name: "example-healthcare_service",
* resourceGroupName: "example-resources",
* });
* export const healthcareWorkspaceId = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.healthcare.get_workspace(name="example-healthcare_service",
* resource_group_name="example-resources")
* pulumi.export("healthcareWorkspaceId", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.Healthcare.GetWorkspace.Invoke(new()
* {
* Name = "example-healthcare_service",
* ResourceGroupName = "example-resources",
* });
* return new Dictionary
* {
* ["healthcareWorkspaceId"] = example.Apply(getWorkspaceResult => getWorkspaceResult.Id),
* };
* });
* ```
* ```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 {
* example, err := healthcare.LookupWorkspace(ctx, &healthcare.LookupWorkspaceArgs{
* Name: "example-healthcare_service",
* ResourceGroupName: "example-resources",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("healthcareWorkspaceId", example.Id)
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.healthcare.HealthcareFunctions;
* import com.pulumi.azure.healthcare.inputs.GetWorkspaceArgs;
* 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 example = HealthcareFunctions.getWorkspace(GetWorkspaceArgs.builder()
* .name("example-healthcare_service")
* .resourceGroupName("example-resources")
* .build());
* ctx.export("healthcareWorkspaceId", example.applyValue(getWorkspaceResult -> getWorkspaceResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:healthcare:getWorkspace
* Arguments:
* name: example-healthcare_service
* resourceGroupName: example-resources
* outputs:
* healthcareWorkspaceId: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getWorkspace.
* @return A collection of values returned by getWorkspace.
*/
public suspend fun getWorkspace(argument: GetWorkspacePlainArgs): GetWorkspaceResult =
getWorkspaceResultToKotlin(getWorkspacePlain(argument.toJava()).await())
/**
* @see [getWorkspace].
* @param name The name of the Healthcare Workspace.
* @param resourceGroupName The name of the Resource Group in which the Healthcare Workspace exists.
* @return A collection of values returned by getWorkspace.
*/
public suspend fun getWorkspace(name: String, resourceGroupName: String): GetWorkspaceResult {
val argument = GetWorkspacePlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getWorkspaceResultToKotlin(getWorkspacePlain(argument.toJava()).await())
}
/**
* @see [getWorkspace].
* @param argument Builder for [com.pulumi.azure.healthcare.kotlin.inputs.GetWorkspacePlainArgs].
* @return A collection of values returned by getWorkspace.
*/
public suspend fun getWorkspace(argument: suspend GetWorkspacePlainArgsBuilder.() -> Unit): GetWorkspaceResult {
val builder = GetWorkspacePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getWorkspaceResultToKotlin(getWorkspacePlain(builtArgument.toJava()).await())
}
}