1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. biglake
  5. IcebergTableIamPolicy
Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi

    Three different resources help you manage your IAM policy for Biglake IcebergTable. Each of these resources serves a different use case:

    • gcp.biglake.IcebergTableIamPolicy: Authoritative. Sets the IAM policy for the icebergtable and replaces any existing policy already attached.
    • gcp.biglake.IcebergTableIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the icebergtable are preserved.
    • gcp.biglake.IcebergTableIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the icebergtable are preserved.

    A data source can be used to retrieve policy data in advent you do not need creation

    • gcp.biglake.IcebergTableIamPolicy: Retrieves the IAM policy for the icebergtable

    Note: gcp.biglake.IcebergTableIamPolicy cannot be used in conjunction with gcp.biglake.IcebergTableIamBinding and gcp.biglake.IcebergTableIamMember or they will fight over what your policy should be.

    Note: gcp.biglake.IcebergTableIamBinding resources can be used in conjunction with gcp.biglake.IcebergTableIamMember resources only if they do not grant privilege to the same role.

    ## gcp.biglake.IcebergTableIamPolicy

    Import

    For all import syntaxes, the “resource in question” can take any of the following forms:

    • projects/{{project}}/catalogs/{{catalog}}/namespaces/{{namespace}}/tables/{{name}}
    • {{project}}/{{catalog}}/{{namespace}}/{{name}}
    • {{catalog}}/{{namespace}}/{{name}}
    • {{name}}

    Any variables not passed in the import command will be taken from the provider configuration.

    Biglake icebergtable IAM resources can be imported using the resource identifiers, role, and member.

    IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.

    $ terraform import google_biglake_iceberg_table_iam_member.editor "projects/{{project}}/catalogs/{{catalog}}/namespaces/{{namespace}}/tables/{{iceberg_table}} roles/biglake.editor user:jane@example.com"
    

    IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.

    $ terraform import google_biglake_iceberg_table_iam_binding.editor "projects/{{project}}/catalogs/{{catalog}}/namespaces/{{namespace}}/tables/{{iceberg_table}} roles/biglake.editor"
    

    IAM policy imports use the identifier of the resource in question, e.g.

    $ pulumi import gcp:biglake/icebergTableIamPolicy:IcebergTableIamPolicy editor projects/{{project}}/catalogs/{{catalog}}/namespaces/{{namespace}}/tables/{{iceberg_table}}
    

    Custom Roles If you’re importing a IAM resource with a custom role, make sure to use the full name of the custom role, e.g. [projects/my-project|organizations/my-org]/roles/my-custom-role.

    Create IcebergTableIamPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IcebergTableIamPolicy(name: string, args: IcebergTableIamPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def IcebergTableIamPolicy(resource_name: str,
                              args: IcebergTableIamPolicyArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def IcebergTableIamPolicy(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              catalog: Optional[str] = None,
                              namespace: Optional[str] = None,
                              policy_data: Optional[str] = None,
                              name: Optional[str] = None,
                              project: Optional[str] = None)
    func NewIcebergTableIamPolicy(ctx *Context, name string, args IcebergTableIamPolicyArgs, opts ...ResourceOption) (*IcebergTableIamPolicy, error)
    public IcebergTableIamPolicy(string name, IcebergTableIamPolicyArgs args, CustomResourceOptions? opts = null)
    public IcebergTableIamPolicy(String name, IcebergTableIamPolicyArgs args)
    public IcebergTableIamPolicy(String name, IcebergTableIamPolicyArgs args, CustomResourceOptions options)
    
    type: gcp:biglake:IcebergTableIamPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IcebergTableIamPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IcebergTableIamPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IcebergTableIamPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IcebergTableIamPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IcebergTableIamPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var icebergTableIamPolicyResource = new Gcp.BigLake.IcebergTableIamPolicy("icebergTableIamPolicyResource", new()
    {
        Catalog = "string",
        Namespace = "string",
        PolicyData = "string",
        Name = "string",
        Project = "string",
    });
    
    example, err := biglake.NewIcebergTableIamPolicy(ctx, "icebergTableIamPolicyResource", &biglake.IcebergTableIamPolicyArgs{
    	Catalog:    pulumi.String("string"),
    	Namespace:  pulumi.String("string"),
    	PolicyData: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	Project:    pulumi.String("string"),
    })
    
    var icebergTableIamPolicyResource = new IcebergTableIamPolicy("icebergTableIamPolicyResource", IcebergTableIamPolicyArgs.builder()
        .catalog("string")
        .namespace("string")
        .policyData("string")
        .name("string")
        .project("string")
        .build());
    
    iceberg_table_iam_policy_resource = gcp.biglake.IcebergTableIamPolicy("icebergTableIamPolicyResource",
        catalog="string",
        namespace="string",
        policy_data="string",
        name="string",
        project="string")
    
    const icebergTableIamPolicyResource = new gcp.biglake.IcebergTableIamPolicy("icebergTableIamPolicyResource", {
        catalog: "string",
        namespace: "string",
        policyData: "string",
        name: "string",
        project: "string",
    });
    
    type: gcp:biglake:IcebergTableIamPolicy
    properties:
        catalog: string
        name: string
        namespace: string
        policyData: string
        project: string
    

    IcebergTableIamPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IcebergTableIamPolicy resource accepts the following input properties:

    Catalog string
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    Namespace string
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    PolicyData string
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    Namespace string
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    PolicyData string
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    namespace String
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policyData String
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    namespace string
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policyData string
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    namespace str
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policy_data str
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    namespace String
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policyData String
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IcebergTableIamPolicy resource produces the following output properties:

    Etag string
    (Computed) The etag of the IAM policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Etag string
    (Computed) The etag of the IAM policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    etag String
    (Computed) The etag of the IAM policy.
    id String
    The provider-assigned unique ID for this managed resource.
    etag string
    (Computed) The etag of the IAM policy.
    id string
    The provider-assigned unique ID for this managed resource.
    etag str
    (Computed) The etag of the IAM policy.
    id str
    The provider-assigned unique ID for this managed resource.
    etag String
    (Computed) The etag of the IAM policy.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IcebergTableIamPolicy Resource

    Get an existing IcebergTableIamPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IcebergTableIamPolicyState, opts?: CustomResourceOptions): IcebergTableIamPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            catalog: Optional[str] = None,
            etag: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            policy_data: Optional[str] = None,
            project: Optional[str] = None) -> IcebergTableIamPolicy
    func GetIcebergTableIamPolicy(ctx *Context, name string, id IDInput, state *IcebergTableIamPolicyState, opts ...ResourceOption) (*IcebergTableIamPolicy, error)
    public static IcebergTableIamPolicy Get(string name, Input<string> id, IcebergTableIamPolicyState? state, CustomResourceOptions? opts = null)
    public static IcebergTableIamPolicy get(String name, Output<String> id, IcebergTableIamPolicyState state, CustomResourceOptions options)
    resources:  _:    type: gcp:biglake:IcebergTableIamPolicy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Catalog string
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    Etag string
    (Computed) The etag of the IAM policy.
    Name string
    Used to find the parent resource to bind the IAM policy to
    Namespace string
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    PolicyData string
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    Etag string
    (Computed) The etag of the IAM policy.
    Name string
    Used to find the parent resource to bind the IAM policy to
    Namespace string
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    PolicyData string
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    etag String
    (Computed) The etag of the IAM policy.
    name String
    Used to find the parent resource to bind the IAM policy to
    namespace String
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policyData String
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    etag string
    (Computed) The etag of the IAM policy.
    name string
    Used to find the parent resource to bind the IAM policy to
    namespace string
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policyData string
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    etag str
    (Computed) The etag of the IAM policy.
    name str
    Used to find the parent resource to bind the IAM policy to
    namespace str
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policy_data str
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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
    The name of the IcebergCatalog. Used to find the parent resource to bind the IAM policy to
    etag String
    (Computed) The etag of the IAM policy.
    name String
    Used to find the parent resource to bind the IAM policy to
    namespace String
    The parent namespace of the table. Used to find the parent resource to bind the IAM policy to
    policyData String
    The policy data generated by a gcp.organizations.getIAMPolicy data source.
    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.

    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.16.0
    published on Thursday, Mar 19, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.