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

com.pulumi.gcp.healthcare.kotlin.HealthcareFunctions.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.healthcare.kotlin

import com.pulumi.gcp.healthcare.HealthcareFunctions.getConsentStoreIamPolicyPlain
import com.pulumi.gcp.healthcare.HealthcareFunctions.getDatasetIamPolicyPlain
import com.pulumi.gcp.healthcare.HealthcareFunctions.getDicomStoreIamPolicyPlain
import com.pulumi.gcp.healthcare.HealthcareFunctions.getFhirStoreIamPolicyPlain
import com.pulumi.gcp.healthcare.HealthcareFunctions.getHl7V2StoreIamPolicyPlain
import com.pulumi.gcp.healthcare.kotlin.inputs.GetConsentStoreIamPolicyPlainArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.GetConsentStoreIamPolicyPlainArgsBuilder
import com.pulumi.gcp.healthcare.kotlin.inputs.GetDatasetIamPolicyPlainArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.GetDatasetIamPolicyPlainArgsBuilder
import com.pulumi.gcp.healthcare.kotlin.inputs.GetDicomStoreIamPolicyPlainArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.GetDicomStoreIamPolicyPlainArgsBuilder
import com.pulumi.gcp.healthcare.kotlin.inputs.GetFhirStoreIamPolicyPlainArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.GetFhirStoreIamPolicyPlainArgsBuilder
import com.pulumi.gcp.healthcare.kotlin.inputs.GetHl7V2StoreIamPolicyPlainArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.GetHl7V2StoreIamPolicyPlainArgsBuilder
import com.pulumi.gcp.healthcare.kotlin.outputs.GetConsentStoreIamPolicyResult
import com.pulumi.gcp.healthcare.kotlin.outputs.GetDatasetIamPolicyResult
import com.pulumi.gcp.healthcare.kotlin.outputs.GetDicomStoreIamPolicyResult
import com.pulumi.gcp.healthcare.kotlin.outputs.GetFhirStoreIamPolicyResult
import com.pulumi.gcp.healthcare.kotlin.outputs.GetHl7V2StoreIamPolicyResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.gcp.healthcare.kotlin.outputs.GetConsentStoreIamPolicyResult.Companion.toKotlin as getConsentStoreIamPolicyResultToKotlin
import com.pulumi.gcp.healthcare.kotlin.outputs.GetDatasetIamPolicyResult.Companion.toKotlin as getDatasetIamPolicyResultToKotlin
import com.pulumi.gcp.healthcare.kotlin.outputs.GetDicomStoreIamPolicyResult.Companion.toKotlin as getDicomStoreIamPolicyResultToKotlin
import com.pulumi.gcp.healthcare.kotlin.outputs.GetFhirStoreIamPolicyResult.Companion.toKotlin as getFhirStoreIamPolicyResultToKotlin
import com.pulumi.gcp.healthcare.kotlin.outputs.GetHl7V2StoreIamPolicyResult.Companion.toKotlin as getHl7V2StoreIamPolicyResultToKotlin

public object HealthcareFunctions {
    /**
     * Retrieves the current IAM policy data for consentstore
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const policy = gcp.healthcare.getConsentStoreIamPolicy({
     *     dataset: my_consent.dataset,
     *     consentStoreId: my_consent.name,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * policy = gcp.healthcare.get_consent_store_iam_policy(dataset=my_consent["dataset"],
     *     consent_store_id=my_consent["name"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var policy = Gcp.Healthcare.GetConsentStoreIamPolicy.Invoke(new()
     *     {
     *         Dataset = my_consent.Dataset,
     *         ConsentStoreId = my_consent.Name,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := healthcare.LookupConsentStoreIamPolicy(ctx, &healthcare.LookupConsentStoreIamPolicyArgs{
     * 			Dataset:        my_consent.Dataset,
     * 			ConsentStoreId: my_consent.Name,
     * 		}, nil)
     * 		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.gcp.healthcare.HealthcareFunctions;
     * import com.pulumi.gcp.healthcare.inputs.GetConsentStoreIamPolicyArgs;
     * 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 policy = HealthcareFunctions.getConsentStoreIamPolicy(GetConsentStoreIamPolicyArgs.builder()
     *             .dataset(my_consent.dataset())
     *             .consentStoreId(my_consent.name())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   policy:
     *     fn::invoke:
     *       Function: gcp:healthcare:getConsentStoreIamPolicy
     *       Arguments:
     *         dataset: ${["my-consent"].dataset}
     *         consentStoreId: ${["my-consent"].name}
     * ```
     * 
     * @param argument A collection of arguments for invoking getConsentStoreIamPolicy.
     * @return A collection of values returned by getConsentStoreIamPolicy.
     */
    public suspend fun getConsentStoreIamPolicy(argument: GetConsentStoreIamPolicyPlainArgs): GetConsentStoreIamPolicyResult =
        getConsentStoreIamPolicyResultToKotlin(getConsentStoreIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getConsentStoreIamPolicy].
     * @param consentStoreId Used to find the parent resource to bind the IAM policy to
     * @param dataset Identifies the dataset addressed by this request. Must be in the format
     * 'projects/{project}/locations/{location}/datasets/{dataset}'
     * Used to find the parent resource to bind the IAM policy to
     * @return A collection of values returned by getConsentStoreIamPolicy.
     */
    public suspend fun getConsentStoreIamPolicy(consentStoreId: String, dataset: String): GetConsentStoreIamPolicyResult {
        val argument = GetConsentStoreIamPolicyPlainArgs(
            consentStoreId = consentStoreId,
            dataset = dataset,
        )
        return getConsentStoreIamPolicyResultToKotlin(getConsentStoreIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getConsentStoreIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.healthcare.kotlin.inputs.GetConsentStoreIamPolicyPlainArgs].
     * @return A collection of values returned by getConsentStoreIamPolicy.
     */
    public suspend fun getConsentStoreIamPolicy(argument: suspend GetConsentStoreIamPolicyPlainArgsBuilder.() -> Unit): GetConsentStoreIamPolicyResult {
        val builder = GetConsentStoreIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getConsentStoreIamPolicyResultToKotlin(getConsentStoreIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the current IAM policy data for a Google Cloud Healthcare dataset.
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const foo = gcp.healthcare.getDatasetIamPolicy({
     *     datasetId: dataset.id,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * foo = gcp.healthcare.get_dataset_iam_policy(dataset_id=dataset["id"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var foo = Gcp.Healthcare.GetDatasetIamPolicy.Invoke(new()
     *     {
     *         DatasetId = dataset.Id,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := healthcare.LookupDatasetIamPolicy(ctx, &healthcare.LookupDatasetIamPolicyArgs{
     * 			DatasetId: dataset.Id,
     * 		}, nil)
     * 		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.gcp.healthcare.HealthcareFunctions;
     * import com.pulumi.gcp.healthcare.inputs.GetDatasetIamPolicyArgs;
     * 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 foo = HealthcareFunctions.getDatasetIamPolicy(GetDatasetIamPolicyArgs.builder()
     *             .datasetId(dataset.id())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   foo:
     *     fn::invoke:
     *       Function: gcp:healthcare:getDatasetIamPolicy
     *       Arguments:
     *         datasetId: ${dataset.id}
     * ```
     * 
     * @param argument A collection of arguments for invoking getDatasetIamPolicy.
     * @return A collection of values returned by getDatasetIamPolicy.
     */
    public suspend fun getDatasetIamPolicy(argument: GetDatasetIamPolicyPlainArgs): GetDatasetIamPolicyResult =
        getDatasetIamPolicyResultToKotlin(getDatasetIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getDatasetIamPolicy].
     * @param datasetId The dataset ID, in the form
     * `{project_id}/{location_name}/{dataset_name}` or
     * `{location_name}/{dataset_name}`. In the second form, the provider's
     * project setting will be used as a fallback.
     * @return A collection of values returned by getDatasetIamPolicy.
     */
    public suspend fun getDatasetIamPolicy(datasetId: String): GetDatasetIamPolicyResult {
        val argument = GetDatasetIamPolicyPlainArgs(
            datasetId = datasetId,
        )
        return getDatasetIamPolicyResultToKotlin(getDatasetIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getDatasetIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.healthcare.kotlin.inputs.GetDatasetIamPolicyPlainArgs].
     * @return A collection of values returned by getDatasetIamPolicy.
     */
    public suspend fun getDatasetIamPolicy(argument: suspend GetDatasetIamPolicyPlainArgsBuilder.() -> Unit): GetDatasetIamPolicyResult {
        val builder = GetDatasetIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDatasetIamPolicyResultToKotlin(getDatasetIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the current IAM policy data for a Google Cloud Healthcare DICOM store.
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const foo = gcp.healthcare.getDicomStoreIamPolicy({
     *     dicomStoreId: dicomStore.id,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * foo = gcp.healthcare.get_dicom_store_iam_policy(dicom_store_id=dicom_store["id"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var foo = Gcp.Healthcare.GetDicomStoreIamPolicy.Invoke(new()
     *     {
     *         DicomStoreId = dicomStore.Id,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := healthcare.LookupDicomStoreIamPolicy(ctx, &healthcare.LookupDicomStoreIamPolicyArgs{
     * 			DicomStoreId: dicomStore.Id,
     * 		}, nil)
     * 		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.gcp.healthcare.HealthcareFunctions;
     * import com.pulumi.gcp.healthcare.inputs.GetDicomStoreIamPolicyArgs;
     * 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 foo = HealthcareFunctions.getDicomStoreIamPolicy(GetDicomStoreIamPolicyArgs.builder()
     *             .dicomStoreId(dicomStore.id())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   foo:
     *     fn::invoke:
     *       Function: gcp:healthcare:getDicomStoreIamPolicy
     *       Arguments:
     *         dicomStoreId: ${dicomStore.id}
     * ```
     * 
     * @param argument A collection of arguments for invoking getDicomStoreIamPolicy.
     * @return A collection of values returned by getDicomStoreIamPolicy.
     */
    public suspend fun getDicomStoreIamPolicy(argument: GetDicomStoreIamPolicyPlainArgs): GetDicomStoreIamPolicyResult =
        getDicomStoreIamPolicyResultToKotlin(getDicomStoreIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getDicomStoreIamPolicy].
     * @param dicomStoreId The DICOM store ID, in the form
     * `{project_id}/{location_name}/{dataset_name}/{dicom_store_name}` or
     * `{location_name}/{dataset_name}/{dicom_store_name}`. In the second form, the provider's
     * project setting will be used as a fallback.
     * @return A collection of values returned by getDicomStoreIamPolicy.
     */
    public suspend fun getDicomStoreIamPolicy(dicomStoreId: String): GetDicomStoreIamPolicyResult {
        val argument = GetDicomStoreIamPolicyPlainArgs(
            dicomStoreId = dicomStoreId,
        )
        return getDicomStoreIamPolicyResultToKotlin(getDicomStoreIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getDicomStoreIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.healthcare.kotlin.inputs.GetDicomStoreIamPolicyPlainArgs].
     * @return A collection of values returned by getDicomStoreIamPolicy.
     */
    public suspend fun getDicomStoreIamPolicy(argument: suspend GetDicomStoreIamPolicyPlainArgsBuilder.() -> Unit): GetDicomStoreIamPolicyResult {
        val builder = GetDicomStoreIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getDicomStoreIamPolicyResultToKotlin(getDicomStoreIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the current IAM policy data for a Google Cloud Healthcare FHIR store.
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const foo = gcp.healthcare.getFhirStoreIamPolicy({
     *     fhirStoreId: fhirStore.id,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * foo = gcp.healthcare.get_fhir_store_iam_policy(fhir_store_id=fhir_store["id"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var foo = Gcp.Healthcare.GetFhirStoreIamPolicy.Invoke(new()
     *     {
     *         FhirStoreId = fhirStore.Id,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := healthcare.LookupFhirStoreIamPolicy(ctx, &healthcare.LookupFhirStoreIamPolicyArgs{
     * 			FhirStoreId: fhirStore.Id,
     * 		}, nil)
     * 		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.gcp.healthcare.HealthcareFunctions;
     * import com.pulumi.gcp.healthcare.inputs.GetFhirStoreIamPolicyArgs;
     * 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 foo = HealthcareFunctions.getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs.builder()
     *             .fhirStoreId(fhirStore.id())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   foo:
     *     fn::invoke:
     *       Function: gcp:healthcare:getFhirStoreIamPolicy
     *       Arguments:
     *         fhirStoreId: ${fhirStore.id}
     * ```
     * 
     * @param argument A collection of arguments for invoking getFhirStoreIamPolicy.
     * @return A collection of values returned by getFhirStoreIamPolicy.
     */
    public suspend fun getFhirStoreIamPolicy(argument: GetFhirStoreIamPolicyPlainArgs): GetFhirStoreIamPolicyResult =
        getFhirStoreIamPolicyResultToKotlin(getFhirStoreIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getFhirStoreIamPolicy].
     * @param fhirStoreId The FHIR store ID, in the form
     * `{project_id}/{location_name}/{dataset_name}/{fhir_store_name}` or
     * `{location_name}/{dataset_name}/{fhir_store_name}`. In the second form, the provider's
     * project setting will be used as a fallback.
     * @return A collection of values returned by getFhirStoreIamPolicy.
     */
    public suspend fun getFhirStoreIamPolicy(fhirStoreId: String): GetFhirStoreIamPolicyResult {
        val argument = GetFhirStoreIamPolicyPlainArgs(
            fhirStoreId = fhirStoreId,
        )
        return getFhirStoreIamPolicyResultToKotlin(getFhirStoreIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getFhirStoreIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.healthcare.kotlin.inputs.GetFhirStoreIamPolicyPlainArgs].
     * @return A collection of values returned by getFhirStoreIamPolicy.
     */
    public suspend fun getFhirStoreIamPolicy(argument: suspend GetFhirStoreIamPolicyPlainArgsBuilder.() -> Unit): GetFhirStoreIamPolicyResult {
        val builder = GetFhirStoreIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getFhirStoreIamPolicyResultToKotlin(getFhirStoreIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the current IAM policy data for a Google Cloud Healthcare HL7v2 store.
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const foo = gcp.healthcare.getHl7V2StoreIamPolicy({
     *     hl7V2StoreId: hl7V2Store.id,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * foo = gcp.healthcare.get_hl7_v2_store_iam_policy(hl7_v2_store_id=hl7_v2_store["id"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var foo = Gcp.Healthcare.GetHl7V2StoreIamPolicy.Invoke(new()
     *     {
     *         Hl7V2StoreId = hl7V2Store.Id,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := healthcare.GetHl7V2StoreIamPolicy(ctx, &healthcare.GetHl7V2StoreIamPolicyArgs{
     * 			Hl7V2StoreId: hl7V2Store.Id,
     * 		}, nil)
     * 		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.gcp.healthcare.HealthcareFunctions;
     * import com.pulumi.gcp.healthcare.inputs.GetHl7V2StoreIamPolicyArgs;
     * 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 foo = HealthcareFunctions.getHl7V2StoreIamPolicy(GetHl7V2StoreIamPolicyArgs.builder()
     *             .hl7V2StoreId(hl7V2Store.id())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   foo:
     *     fn::invoke:
     *       Function: gcp:healthcare:getHl7V2StoreIamPolicy
     *       Arguments:
     *         hl7V2StoreId: ${hl7V2Store.id}
     * ```
     * 
     * @param argument A collection of arguments for invoking getHl7V2StoreIamPolicy.
     * @return A collection of values returned by getHl7V2StoreIamPolicy.
     */
    public suspend fun getHl7V2StoreIamPolicy(argument: GetHl7V2StoreIamPolicyPlainArgs): GetHl7V2StoreIamPolicyResult =
        getHl7V2StoreIamPolicyResultToKotlin(getHl7V2StoreIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getHl7V2StoreIamPolicy].
     * @param hl7V2StoreId The HL7v2 store ID, in the form
     * `{project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name}` or
     * `{location_name}/{dataset_name}/{hl7_v2_store_name}`. In the second form, the provider's
     * project setting will be used as a fallback.
     * @return A collection of values returned by getHl7V2StoreIamPolicy.
     */
    public suspend fun getHl7V2StoreIamPolicy(hl7V2StoreId: String): GetHl7V2StoreIamPolicyResult {
        val argument = GetHl7V2StoreIamPolicyPlainArgs(
            hl7V2StoreId = hl7V2StoreId,
        )
        return getHl7V2StoreIamPolicyResultToKotlin(getHl7V2StoreIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getHl7V2StoreIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.healthcare.kotlin.inputs.GetHl7V2StoreIamPolicyPlainArgs].
     * @return A collection of values returned by getHl7V2StoreIamPolicy.
     */
    public suspend fun getHl7V2StoreIamPolicy(argument: suspend GetHl7V2StoreIamPolicyPlainArgsBuilder.() -> Unit): GetHl7V2StoreIamPolicyResult {
        val builder = GetHl7V2StoreIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getHl7V2StoreIamPolicyResultToKotlin(getHl7V2StoreIamPolicyPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy