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

com.pulumi.gcp.datacatalog.kotlin.DatacatalogFunctions.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.datacatalog.kotlin

import com.pulumi.gcp.datacatalog.DatacatalogFunctions.getEntryGroupIamPolicyPlain
import com.pulumi.gcp.datacatalog.DatacatalogFunctions.getPolicyTagIamPolicyPlain
import com.pulumi.gcp.datacatalog.DatacatalogFunctions.getTagTemplateIamPolicyPlain
import com.pulumi.gcp.datacatalog.DatacatalogFunctions.getTaxonomyIamPolicyPlain
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetEntryGroupIamPolicyPlainArgs
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetEntryGroupIamPolicyPlainArgsBuilder
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetPolicyTagIamPolicyPlainArgs
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetPolicyTagIamPolicyPlainArgsBuilder
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetTagTemplateIamPolicyPlainArgs
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetTagTemplateIamPolicyPlainArgsBuilder
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetTaxonomyIamPolicyPlainArgs
import com.pulumi.gcp.datacatalog.kotlin.inputs.GetTaxonomyIamPolicyPlainArgsBuilder
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetEntryGroupIamPolicyResult
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetPolicyTagIamPolicyResult
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetTagTemplateIamPolicyResult
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetTaxonomyIamPolicyResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetEntryGroupIamPolicyResult.Companion.toKotlin as getEntryGroupIamPolicyResultToKotlin
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetPolicyTagIamPolicyResult.Companion.toKotlin as getPolicyTagIamPolicyResultToKotlin
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetTagTemplateIamPolicyResult.Companion.toKotlin as getTagTemplateIamPolicyResultToKotlin
import com.pulumi.gcp.datacatalog.kotlin.outputs.GetTaxonomyIamPolicyResult.Companion.toKotlin as getTaxonomyIamPolicyResultToKotlin

public object DatacatalogFunctions {
    /**
     * Retrieves the current IAM policy data for entrygroup
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const policy = gcp.datacatalog.getEntryGroupIamPolicy({
     *     entryGroup: basicEntryGroup.name,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * policy = gcp.datacatalog.get_entry_group_iam_policy(entry_group=basic_entry_group["name"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var policy = Gcp.DataCatalog.GetEntryGroupIamPolicy.Invoke(new()
     *     {
     *         EntryGroup = basicEntryGroup.Name,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/datacatalog"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := datacatalog.LookupEntryGroupIamPolicy(ctx, &datacatalog.LookupEntryGroupIamPolicyArgs{
     * 			EntryGroup: basicEntryGroup.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.datacatalog.DatacatalogFunctions;
     * import com.pulumi.gcp.datacatalog.inputs.GetEntryGroupIamPolicyArgs;
     * 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 = DatacatalogFunctions.getEntryGroupIamPolicy(GetEntryGroupIamPolicyArgs.builder()
     *             .entryGroup(basicEntryGroup.name())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   policy:
     *     fn::invoke:
     *       Function: gcp:datacatalog:getEntryGroupIamPolicy
     *       Arguments:
     *         entryGroup: ${basicEntryGroup.name}
     * ```
     * 
     * @param argument A collection of arguments for invoking getEntryGroupIamPolicy.
     * @return A collection of values returned by getEntryGroupIamPolicy.
     */
    public suspend fun getEntryGroupIamPolicy(argument: GetEntryGroupIamPolicyPlainArgs): GetEntryGroupIamPolicyResult =
        getEntryGroupIamPolicyResultToKotlin(getEntryGroupIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getEntryGroupIamPolicy].
     * @param entryGroup Used to find the parent resource to bind the IAM policy to
     * @param project The ID of the project in which the resource belongs.
     * If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
     * @param region
     * @return A collection of values returned by getEntryGroupIamPolicy.
     */
    public suspend fun getEntryGroupIamPolicy(
        entryGroup: String,
        project: String? = null,
        region: String? = null,
    ): GetEntryGroupIamPolicyResult {
        val argument = GetEntryGroupIamPolicyPlainArgs(
            entryGroup = entryGroup,
            project = project,
            region = region,
        )
        return getEntryGroupIamPolicyResultToKotlin(getEntryGroupIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getEntryGroupIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.datacatalog.kotlin.inputs.GetEntryGroupIamPolicyPlainArgs].
     * @return A collection of values returned by getEntryGroupIamPolicy.
     */
    public suspend fun getEntryGroupIamPolicy(argument: suspend GetEntryGroupIamPolicyPlainArgsBuilder.() -> Unit): GetEntryGroupIamPolicyResult {
        val builder = GetEntryGroupIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getEntryGroupIamPolicyResultToKotlin(getEntryGroupIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the current IAM policy data for policytag
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const policy = gcp.datacatalog.getPolicyTagIamPolicy({
     *     policyTag: basicPolicyTag.name,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * policy = gcp.datacatalog.get_policy_tag_iam_policy(policy_tag=basic_policy_tag["name"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var policy = Gcp.DataCatalog.GetPolicyTagIamPolicy.Invoke(new()
     *     {
     *         PolicyTag = basicPolicyTag.Name,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/datacatalog"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := datacatalog.LookupPolicyTagIamPolicy(ctx, &datacatalog.LookupPolicyTagIamPolicyArgs{
     * 			PolicyTag: basicPolicyTag.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.datacatalog.DatacatalogFunctions;
     * import com.pulumi.gcp.datacatalog.inputs.GetPolicyTagIamPolicyArgs;
     * 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 = DatacatalogFunctions.getPolicyTagIamPolicy(GetPolicyTagIamPolicyArgs.builder()
     *             .policyTag(basicPolicyTag.name())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   policy:
     *     fn::invoke:
     *       Function: gcp:datacatalog:getPolicyTagIamPolicy
     *       Arguments:
     *         policyTag: ${basicPolicyTag.name}
     * ```
     * 
     * @param argument A collection of arguments for invoking getPolicyTagIamPolicy.
     * @return A collection of values returned by getPolicyTagIamPolicy.
     */
    public suspend fun getPolicyTagIamPolicy(argument: GetPolicyTagIamPolicyPlainArgs): GetPolicyTagIamPolicyResult =
        getPolicyTagIamPolicyResultToKotlin(getPolicyTagIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getPolicyTagIamPolicy].
     * @param policyTag Used to find the parent resource to bind the IAM policy to
     * @return A collection of values returned by getPolicyTagIamPolicy.
     */
    public suspend fun getPolicyTagIamPolicy(policyTag: String): GetPolicyTagIamPolicyResult {
        val argument = GetPolicyTagIamPolicyPlainArgs(
            policyTag = policyTag,
        )
        return getPolicyTagIamPolicyResultToKotlin(getPolicyTagIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getPolicyTagIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.datacatalog.kotlin.inputs.GetPolicyTagIamPolicyPlainArgs].
     * @return A collection of values returned by getPolicyTagIamPolicy.
     */
    public suspend fun getPolicyTagIamPolicy(argument: suspend GetPolicyTagIamPolicyPlainArgsBuilder.() -> Unit): GetPolicyTagIamPolicyResult {
        val builder = GetPolicyTagIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getPolicyTagIamPolicyResultToKotlin(getPolicyTagIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the current IAM policy data for tagtemplate
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const policy = gcp.datacatalog.getTagTemplateIamPolicy({
     *     tagTemplate: basicTagTemplate.name,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * policy = gcp.datacatalog.get_tag_template_iam_policy(tag_template=basic_tag_template["name"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var policy = Gcp.DataCatalog.GetTagTemplateIamPolicy.Invoke(new()
     *     {
     *         TagTemplate = basicTagTemplate.Name,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/datacatalog"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := datacatalog.LookupTagTemplateIamPolicy(ctx, &datacatalog.LookupTagTemplateIamPolicyArgs{
     * 			TagTemplate: basicTagTemplate.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.datacatalog.DatacatalogFunctions;
     * import com.pulumi.gcp.datacatalog.inputs.GetTagTemplateIamPolicyArgs;
     * 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 = DatacatalogFunctions.getTagTemplateIamPolicy(GetTagTemplateIamPolicyArgs.builder()
     *             .tagTemplate(basicTagTemplate.name())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   policy:
     *     fn::invoke:
     *       Function: gcp:datacatalog:getTagTemplateIamPolicy
     *       Arguments:
     *         tagTemplate: ${basicTagTemplate.name}
     * ```
     * 
     * @param argument A collection of arguments for invoking getTagTemplateIamPolicy.
     * @return A collection of values returned by getTagTemplateIamPolicy.
     */
    public suspend fun getTagTemplateIamPolicy(argument: GetTagTemplateIamPolicyPlainArgs): GetTagTemplateIamPolicyResult =
        getTagTemplateIamPolicyResultToKotlin(getTagTemplateIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getTagTemplateIamPolicy].
     * @param project The ID of the project in which the resource belongs.
     * If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
     * @param region
     * @param tagTemplate Used to find the parent resource to bind the IAM policy to
     * @return A collection of values returned by getTagTemplateIamPolicy.
     */
    public suspend fun getTagTemplateIamPolicy(
        project: String? = null,
        region: String? = null,
        tagTemplate: String,
    ): GetTagTemplateIamPolicyResult {
        val argument = GetTagTemplateIamPolicyPlainArgs(
            project = project,
            region = region,
            tagTemplate = tagTemplate,
        )
        return getTagTemplateIamPolicyResultToKotlin(getTagTemplateIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getTagTemplateIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.datacatalog.kotlin.inputs.GetTagTemplateIamPolicyPlainArgs].
     * @return A collection of values returned by getTagTemplateIamPolicy.
     */
    public suspend fun getTagTemplateIamPolicy(argument: suspend GetTagTemplateIamPolicyPlainArgsBuilder.() -> Unit): GetTagTemplateIamPolicyResult {
        val builder = GetTagTemplateIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getTagTemplateIamPolicyResultToKotlin(getTagTemplateIamPolicyPlain(builtArgument.toJava()).await())
    }

    /**
     * Retrieves the current IAM policy data for taxonomy
     * ## example
     * 
     * ```typescript
     * import * as pulumi from "@pulumi/pulumi";
     * import * as gcp from "@pulumi/gcp";
     * const policy = gcp.datacatalog.getTaxonomyIamPolicy({
     *     taxonomy: basicTaxonomy.name,
     * });
     * ```
     * ```python
     * import pulumi
     * import pulumi_gcp as gcp
     * policy = gcp.datacatalog.get_taxonomy_iam_policy(taxonomy=basic_taxonomy["name"])
     * ```
     * ```csharp
     * using System.Collections.Generic;
     * using System.Linq;
     * using Pulumi;
     * using Gcp = Pulumi.Gcp;
     * return await Deployment.RunAsync(() =>
     * {
     *     var policy = Gcp.DataCatalog.GetTaxonomyIamPolicy.Invoke(new()
     *     {
     *         Taxonomy = basicTaxonomy.Name,
     *     });
     * });
     * ```
     * ```go
     * package main
     * import (
     * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/datacatalog"
     * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
     * )
     * func main() {
     * 	pulumi.Run(func(ctx *pulumi.Context) error {
     * 		_, err := datacatalog.LookupTaxonomyIamPolicy(ctx, &datacatalog.LookupTaxonomyIamPolicyArgs{
     * 			Taxonomy: basicTaxonomy.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.datacatalog.DatacatalogFunctions;
     * import com.pulumi.gcp.datacatalog.inputs.GetTaxonomyIamPolicyArgs;
     * 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 = DatacatalogFunctions.getTaxonomyIamPolicy(GetTaxonomyIamPolicyArgs.builder()
     *             .taxonomy(basicTaxonomy.name())
     *             .build());
     *     }
     * }
     * ```
     * ```yaml
     * variables:
     *   policy:
     *     fn::invoke:
     *       Function: gcp:datacatalog:getTaxonomyIamPolicy
     *       Arguments:
     *         taxonomy: ${basicTaxonomy.name}
     * ```
     * 
     * @param argument A collection of arguments for invoking getTaxonomyIamPolicy.
     * @return A collection of values returned by getTaxonomyIamPolicy.
     */
    public suspend fun getTaxonomyIamPolicy(argument: GetTaxonomyIamPolicyPlainArgs): GetTaxonomyIamPolicyResult =
        getTaxonomyIamPolicyResultToKotlin(getTaxonomyIamPolicyPlain(argument.toJava()).await())

    /**
     * @see [getTaxonomyIamPolicy].
     * @param project The ID of the project in which the resource belongs.
     * If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
     * @param region
     * @param taxonomy Used to find the parent resource to bind the IAM policy to
     * @return A collection of values returned by getTaxonomyIamPolicy.
     */
    public suspend fun getTaxonomyIamPolicy(
        project: String? = null,
        region: String? = null,
        taxonomy: String,
    ): GetTaxonomyIamPolicyResult {
        val argument = GetTaxonomyIamPolicyPlainArgs(
            project = project,
            region = region,
            taxonomy = taxonomy,
        )
        return getTaxonomyIamPolicyResultToKotlin(getTaxonomyIamPolicyPlain(argument.toJava()).await())
    }

    /**
     * @see [getTaxonomyIamPolicy].
     * @param argument Builder for [com.pulumi.gcp.datacatalog.kotlin.inputs.GetTaxonomyIamPolicyPlainArgs].
     * @return A collection of values returned by getTaxonomyIamPolicy.
     */
    public suspend fun getTaxonomyIamPolicy(argument: suspend GetTaxonomyIamPolicyPlainArgsBuilder.() -> Unit): GetTaxonomyIamPolicyResult {
        val builder = GetTaxonomyIamPolicyPlainArgsBuilder()
        builder.argument()
        val builtArgument = builder.build()
        return getTaxonomyIamPolicyResultToKotlin(getTaxonomyIamPolicyPlain(builtArgument.toJava()).await())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy