1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. biglake
  6. getHiveDatabaseIamPolicy
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.32.1
published on Wednesday, Jul 29, 2026 by Pulumi

    Retrieves the current IAM policy data for hivedatabase

    Warning: This datasource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const policy = gcp.biglake.getHiveDatabaseIamPolicy({
        project: myHiveDatabase.project,
        catalog: myHiveDatabase.catalog,
        name: myHiveDatabase.name,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    policy = gcp.biglake.get_hive_database_iam_policy(project=my_hive_database["project"],
        catalog=my_hive_database["catalog"],
        name=my_hive_database["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/biglake"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := biglake.LookupHiveDatabaseIamPolicy(ctx, &biglake.LookupHiveDatabaseIamPolicyArgs{
    			Project: pulumi.StringRef(myHiveDatabase.Project),
    			Catalog: myHiveDatabase.Catalog,
    			Name:    myHiveDatabase.Name,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var policy = Gcp.BigLake.GetHiveDatabaseIamPolicy.Invoke(new()
        {
            Project = myHiveDatabase.Project,
            Catalog = myHiveDatabase.Catalog,
            Name = myHiveDatabase.Name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.biglake.BiglakeFunctions;
    import com.pulumi.gcp.biglake.inputs.GetHiveDatabaseIamPolicyArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 = BiglakeFunctions.getHiveDatabaseIamPolicy(GetHiveDatabaseIamPolicyArgs.builder()
                .project(myHiveDatabase.project())
                .catalog(myHiveDatabase.catalog())
                .name(myHiveDatabase.name())
                .build());
    
        }
    }
    
    variables:
      policy:
        fn::invoke:
          function: gcp:biglake:getHiveDatabaseIamPolicy
          arguments:
            project: ${myHiveDatabase.project}
            catalog: ${myHiveDatabase.catalog}
            name: ${myHiveDatabase.name}
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    data "gcp_biglake_gethivedatabaseiampolicy" "policy" {
      project = myHiveDatabase.project
      catalog = myHiveDatabase.catalog
      name    = myHiveDatabase.name
    }
    

    Using getHiveDatabaseIamPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getHiveDatabaseIamPolicy(args: GetHiveDatabaseIamPolicyArgs, opts?: InvokeOptions): Promise<GetHiveDatabaseIamPolicyResult>
    function getHiveDatabaseIamPolicyOutput(args: GetHiveDatabaseIamPolicyOutputArgs, opts?: InvokeOptions): Output<GetHiveDatabaseIamPolicyResult>
    def get_hive_database_iam_policy(catalog: Optional[str] = None,
                                     name: Optional[str] = None,
                                     project: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetHiveDatabaseIamPolicyResult
    def get_hive_database_iam_policy_output(catalog: pulumi.Input[Optional[str]] = None,
                                     name: pulumi.Input[Optional[str]] = None,
                                     project: pulumi.Input[Optional[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetHiveDatabaseIamPolicyResult]
    func LookupHiveDatabaseIamPolicy(ctx *Context, args *LookupHiveDatabaseIamPolicyArgs, opts ...InvokeOption) (*LookupHiveDatabaseIamPolicyResult, error)
    func LookupHiveDatabaseIamPolicyOutput(ctx *Context, args *LookupHiveDatabaseIamPolicyOutputArgs, opts ...InvokeOption) LookupHiveDatabaseIamPolicyResultOutput

    > Note: This function is named LookupHiveDatabaseIamPolicy in the Go SDK.

    public static class GetHiveDatabaseIamPolicy 
    {
        public static Task<GetHiveDatabaseIamPolicyResult> InvokeAsync(GetHiveDatabaseIamPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetHiveDatabaseIamPolicyResult> Invoke(GetHiveDatabaseIamPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetHiveDatabaseIamPolicyResult> getHiveDatabaseIamPolicy(GetHiveDatabaseIamPolicyArgs args, InvokeOptions options)
    public static Output<GetHiveDatabaseIamPolicyResult> getHiveDatabaseIamPolicy(GetHiveDatabaseIamPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcp:biglake/getHiveDatabaseIamPolicy:getHiveDatabaseIamPolicy
      arguments:
        # arguments dictionary
    data "gcp_biglake_get_hive_database_iam_policy" "name" {
        # arguments
    }

    The following arguments are supported:

    Catalog string
    Hive catalog where the database to create is located. Used to find the parent resource to bind the IAM policy to
    Name string
    Used to find the parent resource to bind the IAM policy to
    Project string
    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.
    Catalog string
    Hive catalog where the database to create is located. Used to find the parent resource to bind the IAM policy to
    Name string
    Used to find the parent resource to bind the IAM policy to
    Project string
    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.
    catalog string
    Hive catalog where the database to create is located. Used to find the parent resource to bind the IAM policy to
    name string
    Used to find the parent resource to bind the IAM policy to
    project string
    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.
    catalog String
    Hive catalog where the database to create is located. Used to find the parent resource to bind the IAM policy to
    name String
    Used to find the parent resource to bind the IAM policy to
    project String
    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.
    catalog string
    Hive catalog where the database to create is located. Used to find the parent resource to bind the IAM policy to
    name string
    Used to find the parent resource to bind the IAM policy to
    project string
    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.
    catalog str
    Hive catalog where the database to create is located. Used to find the parent resource to bind the IAM policy to
    name str
    Used to find the parent resource to bind the IAM policy to
    project str
    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.
    catalog String
    Hive catalog where the database to create is located. Used to find the parent resource to bind the IAM policy to
    name String
    Used to find the parent resource to bind the IAM policy to
    project String
    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.

    getHiveDatabaseIamPolicy Result

    The following output properties are available:

    Catalog string
    Etag string
    (Computed) The etag of the IAM policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    PolicyData string
    (Required only by gcp.biglake.HiveDatabaseIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    Project string
    Catalog string
    Etag string
    (Computed) The etag of the IAM policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    PolicyData string
    (Required only by gcp.biglake.HiveDatabaseIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    Project string
    catalog string
    etag string
    (Computed) The etag of the IAM policy.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    policy_data string
    (Required only by gcp.biglake.HiveDatabaseIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project string
    catalog String
    etag String
    (Computed) The etag of the IAM policy.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    policyData String
    (Required only by gcp.biglake.HiveDatabaseIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project String
    catalog string
    etag string
    (Computed) The etag of the IAM policy.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    policyData string
    (Required only by gcp.biglake.HiveDatabaseIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project string
    catalog str
    etag str
    (Computed) The etag of the IAM policy.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    policy_data str
    (Required only by gcp.biglake.HiveDatabaseIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project str
    catalog String
    etag String
    (Computed) The etag of the IAM policy.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    policyData String
    (Required only by gcp.biglake.HiveDatabaseIamPolicy) The policy data generated by a gcp.organizations.getIAMPolicy data source.
    project String

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.32.1
    published on Wednesday, Jul 29, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial