1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. bigquery
  5. RowAccessPolicy
Google Cloud v8.32.1 published on Thursday, May 22, 2025 by Pulumi

gcp.bigquery.RowAccessPolicy

Explore with Pulumi AI

gcp logo
Google Cloud v8.32.1 published on Thursday, May 22, 2025 by Pulumi

    Represents access on a subset of rows on the specified table, defined by its filter predicate. Access to the subset of rows is controlled by its IAM policy.

    Example Usage

    Bigquery Row Access Policy Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const example = new gcp.bigquery.Dataset("example", {
        datasetId: "dataset_id",
        location: "US",
    });
    const exampleTable = new gcp.bigquery.Table("example", {
        deletionProtection: false,
        datasetId: example.datasetId,
        tableId: "table_id",
    });
    const exampleRowAccessPolicy = new gcp.bigquery.RowAccessPolicy("example", {
        datasetId: example.datasetId,
        tableId: exampleTable.tableId,
        policyId: "policy_id",
        filterPredicate: "nullable_field is not NULL",
        grantees: ["domain:google.com"],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    example = gcp.bigquery.Dataset("example",
        dataset_id="dataset_id",
        location="US")
    example_table = gcp.bigquery.Table("example",
        deletion_protection=False,
        dataset_id=example.dataset_id,
        table_id="table_id")
    example_row_access_policy = gcp.bigquery.RowAccessPolicy("example",
        dataset_id=example.dataset_id,
        table_id=example_table.table_id,
        policy_id="policy_id",
        filter_predicate="nullable_field is not NULL",
        grantees=["domain:google.com"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigquery"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := bigquery.NewDataset(ctx, "example", &bigquery.DatasetArgs{
    			DatasetId: pulumi.String("dataset_id"),
    			Location:  pulumi.String("US"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTable, err := bigquery.NewTable(ctx, "example", &bigquery.TableArgs{
    			DeletionProtection: pulumi.Bool(false),
    			DatasetId:          example.DatasetId,
    			TableId:            pulumi.String("table_id"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = bigquery.NewRowAccessPolicy(ctx, "example", &bigquery.RowAccessPolicyArgs{
    			DatasetId:       example.DatasetId,
    			TableId:         exampleTable.TableId,
    			PolicyId:        pulumi.String("policy_id"),
    			FilterPredicate: pulumi.String("nullable_field is not NULL"),
    			Grantees: pulumi.StringArray{
    				pulumi.String("domain:google.com"),
    			},
    		})
    		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 example = new Gcp.BigQuery.Dataset("example", new()
        {
            DatasetId = "dataset_id",
            Location = "US",
        });
    
        var exampleTable = new Gcp.BigQuery.Table("example", new()
        {
            DeletionProtection = false,
            DatasetId = example.DatasetId,
            TableId = "table_id",
        });
    
        var exampleRowAccessPolicy = new Gcp.BigQuery.RowAccessPolicy("example", new()
        {
            DatasetId = example.DatasetId,
            TableId = exampleTable.TableId,
            PolicyId = "policy_id",
            FilterPredicate = "nullable_field is not NULL",
            Grantees = new[]
            {
                "domain:google.com",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.bigquery.Dataset;
    import com.pulumi.gcp.bigquery.DatasetArgs;
    import com.pulumi.gcp.bigquery.Table;
    import com.pulumi.gcp.bigquery.TableArgs;
    import com.pulumi.gcp.bigquery.RowAccessPolicy;
    import com.pulumi.gcp.bigquery.RowAccessPolicyArgs;
    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) {
            var example = new Dataset("example", DatasetArgs.builder()
                .datasetId("dataset_id")
                .location("US")
                .build());
    
            var exampleTable = new Table("exampleTable", TableArgs.builder()
                .deletionProtection(false)
                .datasetId(example.datasetId())
                .tableId("table_id")
                .build());
    
            var exampleRowAccessPolicy = new RowAccessPolicy("exampleRowAccessPolicy", RowAccessPolicyArgs.builder()
                .datasetId(example.datasetId())
                .tableId(exampleTable.tableId())
                .policyId("policy_id")
                .filterPredicate("nullable_field is not NULL")
                .grantees("domain:google.com")
                .build());
    
        }
    }
    
    resources:
      example:
        type: gcp:bigquery:Dataset
        properties:
          datasetId: dataset_id
          location: US
      exampleTable:
        type: gcp:bigquery:Table
        name: example
        properties:
          deletionProtection: false
          datasetId: ${example.datasetId}
          tableId: table_id
      exampleRowAccessPolicy:
        type: gcp:bigquery:RowAccessPolicy
        name: example
        properties:
          datasetId: ${example.datasetId}
          tableId: ${exampleTable.tableId}
          policyId: policy_id
          filterPredicate: nullable_field is not NULL
          grantees:
            - domain:google.com
    

    Create RowAccessPolicy Resource

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

    Constructor syntax

    new RowAccessPolicy(name: string, args: RowAccessPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def RowAccessPolicy(resource_name: str,
                        args: RowAccessPolicyArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def RowAccessPolicy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        dataset_id: Optional[str] = None,
                        filter_predicate: Optional[str] = None,
                        policy_id: Optional[str] = None,
                        table_id: Optional[str] = None,
                        grantees: Optional[Sequence[str]] = None,
                        project: Optional[str] = None)
    func NewRowAccessPolicy(ctx *Context, name string, args RowAccessPolicyArgs, opts ...ResourceOption) (*RowAccessPolicy, error)
    public RowAccessPolicy(string name, RowAccessPolicyArgs args, CustomResourceOptions? opts = null)
    public RowAccessPolicy(String name, RowAccessPolicyArgs args)
    public RowAccessPolicy(String name, RowAccessPolicyArgs args, CustomResourceOptions options)
    
    type: gcp:bigquery:RowAccessPolicy
    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 RowAccessPolicyArgs
    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 RowAccessPolicyArgs
    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 RowAccessPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RowAccessPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RowAccessPolicyArgs
    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 rowAccessPolicyResource = new Gcp.BigQuery.RowAccessPolicy("rowAccessPolicyResource", new()
    {
        DatasetId = "string",
        FilterPredicate = "string",
        PolicyId = "string",
        TableId = "string",
        Grantees = new[]
        {
            "string",
        },
        Project = "string",
    });
    
    example, err := bigquery.NewRowAccessPolicy(ctx, "rowAccessPolicyResource", &bigquery.RowAccessPolicyArgs{
    	DatasetId:       pulumi.String("string"),
    	FilterPredicate: pulumi.String("string"),
    	PolicyId:        pulumi.String("string"),
    	TableId:         pulumi.String("string"),
    	Grantees: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    var rowAccessPolicyResource = new RowAccessPolicy("rowAccessPolicyResource", RowAccessPolicyArgs.builder()
        .datasetId("string")
        .filterPredicate("string")
        .policyId("string")
        .tableId("string")
        .grantees("string")
        .project("string")
        .build());
    
    row_access_policy_resource = gcp.bigquery.RowAccessPolicy("rowAccessPolicyResource",
        dataset_id="string",
        filter_predicate="string",
        policy_id="string",
        table_id="string",
        grantees=["string"],
        project="string")
    
    const rowAccessPolicyResource = new gcp.bigquery.RowAccessPolicy("rowAccessPolicyResource", {
        datasetId: "string",
        filterPredicate: "string",
        policyId: "string",
        tableId: "string",
        grantees: ["string"],
        project: "string",
    });
    
    type: gcp:bigquery:RowAccessPolicy
    properties:
        datasetId: string
        filterPredicate: string
        grantees:
            - string
        policyId: string
        project: string
        tableId: string
    

    RowAccessPolicy 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 RowAccessPolicy resource accepts the following input properties:

    DatasetId string
    The ID of the dataset containing this row access policy.
    FilterPredicate string
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    PolicyId string
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    TableId string
    The ID of the table containing this row access policy.
    Grantees List<string>
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    DatasetId string
    The ID of the dataset containing this row access policy.
    FilterPredicate string
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    PolicyId string
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    TableId string
    The ID of the table containing this row access policy.
    Grantees []string
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    datasetId String
    The ID of the dataset containing this row access policy.
    filterPredicate String
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    policyId String
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    tableId String
    The ID of the table containing this row access policy.
    grantees List<String>
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    datasetId string
    The ID of the dataset containing this row access policy.
    filterPredicate string
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    policyId string
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    tableId string
    The ID of the table containing this row access policy.
    grantees string[]
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    dataset_id str
    The ID of the dataset containing this row access policy.
    filter_predicate str
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    policy_id str
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    table_id str
    The ID of the table containing this row access policy.
    grantees Sequence[str]
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    datasetId String
    The ID of the dataset containing this row access policy.
    filterPredicate String
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    policyId String
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    tableId String
    The ID of the table containing this row access policy.
    grantees List<String>
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    CreationTime string
    The time when this row access policy was created, in milliseconds since the epoch.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    The time when this row access policy was last modified, in milliseconds since the epoch.
    CreationTime string
    The time when this row access policy was created, in milliseconds since the epoch.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    The time when this row access policy was last modified, in milliseconds since the epoch.
    creationTime String
    The time when this row access policy was created, in milliseconds since the epoch.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    The time when this row access policy was last modified, in milliseconds since the epoch.
    creationTime string
    The time when this row access policy was created, in milliseconds since the epoch.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime string
    The time when this row access policy was last modified, in milliseconds since the epoch.
    creation_time str
    The time when this row access policy was created, in milliseconds since the epoch.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time str
    The time when this row access policy was last modified, in milliseconds since the epoch.
    creationTime String
    The time when this row access policy was created, in milliseconds since the epoch.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    The time when this row access policy was last modified, in milliseconds since the epoch.

    Look up Existing RowAccessPolicy Resource

    Get an existing RowAccessPolicy 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?: RowAccessPolicyState, opts?: CustomResourceOptions): RowAccessPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_time: Optional[str] = None,
            dataset_id: Optional[str] = None,
            filter_predicate: Optional[str] = None,
            grantees: Optional[Sequence[str]] = None,
            last_modified_time: Optional[str] = None,
            policy_id: Optional[str] = None,
            project: Optional[str] = None,
            table_id: Optional[str] = None) -> RowAccessPolicy
    func GetRowAccessPolicy(ctx *Context, name string, id IDInput, state *RowAccessPolicyState, opts ...ResourceOption) (*RowAccessPolicy, error)
    public static RowAccessPolicy Get(string name, Input<string> id, RowAccessPolicyState? state, CustomResourceOptions? opts = null)
    public static RowAccessPolicy get(String name, Output<String> id, RowAccessPolicyState state, CustomResourceOptions options)
    resources:  _:    type: gcp:bigquery:RowAccessPolicy    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:
    CreationTime string
    The time when this row access policy was created, in milliseconds since the epoch.
    DatasetId string
    The ID of the dataset containing this row access policy.
    FilterPredicate string
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    Grantees List<string>
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    LastModifiedTime string
    The time when this row access policy was last modified, in milliseconds since the epoch.
    PolicyId string
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TableId string
    The ID of the table containing this row access policy.
    CreationTime string
    The time when this row access policy was created, in milliseconds since the epoch.
    DatasetId string
    The ID of the dataset containing this row access policy.
    FilterPredicate string
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    Grantees []string
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    LastModifiedTime string
    The time when this row access policy was last modified, in milliseconds since the epoch.
    PolicyId string
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TableId string
    The ID of the table containing this row access policy.
    creationTime String
    The time when this row access policy was created, in milliseconds since the epoch.
    datasetId String
    The ID of the dataset containing this row access policy.
    filterPredicate String
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    grantees List<String>
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    lastModifiedTime String
    The time when this row access policy was last modified, in milliseconds since the epoch.
    policyId String
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tableId String
    The ID of the table containing this row access policy.
    creationTime string
    The time when this row access policy was created, in milliseconds since the epoch.
    datasetId string
    The ID of the dataset containing this row access policy.
    filterPredicate string
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    grantees string[]
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    lastModifiedTime string
    The time when this row access policy was last modified, in milliseconds since the epoch.
    policyId string
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tableId string
    The ID of the table containing this row access policy.
    creation_time str
    The time when this row access policy was created, in milliseconds since the epoch.
    dataset_id str
    The ID of the dataset containing this row access policy.
    filter_predicate str
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    grantees Sequence[str]
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    last_modified_time str
    The time when this row access policy was last modified, in milliseconds since the epoch.
    policy_id str
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    table_id str
    The ID of the table containing this row access policy.
    creationTime String
    The time when this row access policy was created, in milliseconds since the epoch.
    datasetId String
    The ID of the dataset containing this row access policy.
    filterPredicate String
    A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0


    grantees List<String>
    Input only. The optional list of iam_member users or groups that specifies the initial members that the row-level access policy should be created with. grantees types:

    • "user:[email protected]": An email address that represents a specific Google account.
    • "serviceAccount:[email protected]": An email address that represents a service account.
    • "group:[email protected]": An email address that represents a Google group.
    • "domain:example.com":The Google Workspace domain (primary) that represents all the users of that domain.
    • "allAuthenticatedUsers": A special identifier that represents all service accounts and all users on the internet who have authenticated with a Google Account. This identifier includes accounts that aren't connected to a Google Workspace or Cloud Identity domain, such as personal Gmail accounts. Users who aren't authenticated, such as anonymous visitors, aren't included.
    • "allUsers":A special identifier that represents anyone who is on the internet, including authenticated and unauthenticated users. Because BigQuery requires authentication before a user can access the service, allUsers includes only authenticated users.
    lastModifiedTime String
    The time when this row access policy was last modified, in milliseconds since the epoch.
    policyId String
    The ID of the row access policy. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tableId String
    The ID of the table containing this row access policy.

    Import

    RowAccessPolicy can be imported using any of these accepted formats:

    • projects/{{project}}/datasets/{{dataset_id}}/tables/{{table_id}}/rowAccessPolicies/{{policy_id}}

    • {{project}}/{{dataset_id}}/{{table_id}}/{{policy_id}}

    • {{dataset_id}}/{{table_id}}/{{policy_id}}

    When using the pulumi import command, RowAccessPolicy can be imported using one of the formats above. For example:

    $ pulumi import gcp:bigquery/rowAccessPolicy:RowAccessPolicy default projects/{{project}}/datasets/{{dataset_id}}/tables/{{table_id}}/rowAccessPolicies/{{policy_id}}
    
    $ pulumi import gcp:bigquery/rowAccessPolicy:RowAccessPolicy default {{project}}/{{dataset_id}}/{{table_id}}/{{policy_id}}
    
    $ pulumi import gcp:bigquery/rowAccessPolicy:RowAccessPolicy default {{dataset_id}}/{{table_id}}/{{policy_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    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
    Google Cloud v8.32.1 published on Thursday, May 22, 2025 by Pulumi
      OSZAR »