1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. bigtable
  5. AuthorizedView
Google Cloud v8.27.0 published on Thursday, Apr 17, 2025 by Pulumi

gcp.bigtable.AuthorizedView

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
import * as std from "@pulumi/std";

const instance = new gcp.bigtable.Instance("instance", {
    name: "tf-instance",
    clusters: [{
        clusterId: "tf-instance-cluster",
        zone: "us-central1-b",
        numNodes: 3,
        storageType: "HDD",
    }],
});
const table = new gcp.bigtable.Table("table", {
    name: "tf-table",
    instanceName: instance.name,
    splitKeys: [
        "a",
        "b",
        "c",
    ],
    columnFamilies: [
        {
            family: "family-first",
        },
        {
            family: "family-second",
        },
    ],
    changeStreamRetention: "24h0m0s",
});
const authorizedView = new gcp.bigtable.AuthorizedView("authorized_view", {
    name: "tf-authorized-view",
    instanceName: instance.name,
    tableName: table.name,
    subsetView: {
        rowPrefixes: [std.base64encode({
            input: "prefix#",
        }).then(invoke => invoke.result)],
        familySubsets: [
            {
                familyName: "family-first",
                qualifiers: [
                    std.base64encode({
                        input: "qualifier",
                    }).then(invoke => invoke.result),
                    std.base64encode({
                        input: "qualifier-second",
                    }).then(invoke => invoke.result),
                ],
            },
            {
                familyName: "family-second",
                qualifierPrefixes: [""],
            },
        ],
    },
});
Copy
import pulumi
import pulumi_gcp as gcp
import pulumi_std as std

instance = gcp.bigtable.Instance("instance",
    name="tf-instance",
    clusters=[{
        "cluster_id": "tf-instance-cluster",
        "zone": "us-central1-b",
        "num_nodes": 3,
        "storage_type": "HDD",
    }])
table = gcp.bigtable.Table("table",
    name="tf-table",
    instance_name=instance.name,
    split_keys=[
        "a",
        "b",
        "c",
    ],
    column_families=[
        {
            "family": "family-first",
        },
        {
            "family": "family-second",
        },
    ],
    change_stream_retention="24h0m0s")
authorized_view = gcp.bigtable.AuthorizedView("authorized_view",
    name="tf-authorized-view",
    instance_name=instance.name,
    table_name=table.name,
    subset_view={
        "row_prefixes": [std.base64encode(input="prefix#").result],
        "family_subsets": [
            {
                "family_name": "family-first",
                "qualifiers": [
                    std.base64encode(input="qualifier").result,
                    std.base64encode(input="qualifier-second").result,
                ],
            },
            {
                "family_name": "family-second",
                "qualifier_prefixes": [""],
            },
        ],
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/bigtable"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		instance, err := bigtable.NewInstance(ctx, "instance", &bigtable.InstanceArgs{
			Name: pulumi.String("tf-instance"),
			Clusters: bigtable.InstanceClusterArray{
				&bigtable.InstanceClusterArgs{
					ClusterId:   pulumi.String("tf-instance-cluster"),
					Zone:        pulumi.String("us-central1-b"),
					NumNodes:    pulumi.Int(3),
					StorageType: pulumi.String("HDD"),
				},
			},
		})
		if err != nil {
			return err
		}
		table, err := bigtable.NewTable(ctx, "table", &bigtable.TableArgs{
			Name:         pulumi.String("tf-table"),
			InstanceName: instance.Name,
			SplitKeys: pulumi.StringArray{
				pulumi.String("a"),
				pulumi.String("b"),
				pulumi.String("c"),
			},
			ColumnFamilies: bigtable.TableColumnFamilyArray{
				&bigtable.TableColumnFamilyArgs{
					Family: pulumi.String("family-first"),
				},
				&bigtable.TableColumnFamilyArgs{
					Family: pulumi.String("family-second"),
				},
			},
			ChangeStreamRetention: pulumi.String("24h0m0s"),
		})
		if err != nil {
			return err
		}
		invokeBase64encode, err := std.Base64encode(ctx, &std.Base64encodeArgs{
			Input: "prefix#",
		}, nil)
		if err != nil {
			return err
		}
		invokeBase64encode1, err := std.Base64encode(ctx, &std.Base64encodeArgs{
			Input: "qualifier",
		}, nil)
		if err != nil {
			return err
		}
		invokeBase64encode2, err := std.Base64encode(ctx, &std.Base64encodeArgs{
			Input: "qualifier-second",
		}, nil)
		if err != nil {
			return err
		}
		_, err = bigtable.NewAuthorizedView(ctx, "authorized_view", &bigtable.AuthorizedViewArgs{
			Name:         pulumi.String("tf-authorized-view"),
			InstanceName: instance.Name,
			TableName:    table.Name,
			SubsetView: &bigtable.AuthorizedViewSubsetViewArgs{
				RowPrefixes: pulumi.StringArray{
					pulumi.String(invokeBase64encode.Result),
				},
				FamilySubsets: bigtable.AuthorizedViewSubsetViewFamilySubsetArray{
					&bigtable.AuthorizedViewSubsetViewFamilySubsetArgs{
						FamilyName: pulumi.String("family-first"),
						Qualifiers: pulumi.StringArray{
							pulumi.String(invokeBase64encode1.Result),
							pulumi.String(invokeBase64encode2.Result),
						},
					},
					&bigtable.AuthorizedViewSubsetViewFamilySubsetArgs{
						FamilyName: pulumi.String("family-second"),
						QualifierPrefixes: pulumi.StringArray{
							pulumi.String(""),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
using Std = Pulumi.Std;

return await Deployment.RunAsync(() => 
{
    var instance = new Gcp.BigTable.Instance("instance", new()
    {
        Name = "tf-instance",
        Clusters = new[]
        {
            new Gcp.BigTable.Inputs.InstanceClusterArgs
            {
                ClusterId = "tf-instance-cluster",
                Zone = "us-central1-b",
                NumNodes = 3,
                StorageType = "HDD",
            },
        },
    });

    var table = new Gcp.BigTable.Table("table", new()
    {
        Name = "tf-table",
        InstanceName = instance.Name,
        SplitKeys = new[]
        {
            "a",
            "b",
            "c",
        },
        ColumnFamilies = new[]
        {
            new Gcp.BigTable.Inputs.TableColumnFamilyArgs
            {
                Family = "family-first",
            },
            new Gcp.BigTable.Inputs.TableColumnFamilyArgs
            {
                Family = "family-second",
            },
        },
        ChangeStreamRetention = "24h0m0s",
    });

    var authorizedView = new Gcp.BigTable.AuthorizedView("authorized_view", new()
    {
        Name = "tf-authorized-view",
        InstanceName = instance.Name,
        TableName = table.Name,
        SubsetView = new Gcp.BigTable.Inputs.AuthorizedViewSubsetViewArgs
        {
            RowPrefixes = new[]
            {
                Std.Base64encode.Invoke(new()
                {
                    Input = "prefix#",
                }).Apply(invoke => invoke.Result),
            },
            FamilySubsets = new[]
            {
                new Gcp.BigTable.Inputs.AuthorizedViewSubsetViewFamilySubsetArgs
                {
                    FamilyName = "family-first",
                    Qualifiers = new[]
                    {
                        Std.Base64encode.Invoke(new()
                        {
                            Input = "qualifier",
                        }).Apply(invoke => invoke.Result),
                        Std.Base64encode.Invoke(new()
                        {
                            Input = "qualifier-second",
                        }).Apply(invoke => invoke.Result),
                    },
                },
                new Gcp.BigTable.Inputs.AuthorizedViewSubsetViewFamilySubsetArgs
                {
                    FamilyName = "family-second",
                    QualifierPrefixes = new[]
                    {
                        "",
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.bigtable.Instance;
import com.pulumi.gcp.bigtable.InstanceArgs;
import com.pulumi.gcp.bigtable.inputs.InstanceClusterArgs;
import com.pulumi.gcp.bigtable.Table;
import com.pulumi.gcp.bigtable.TableArgs;
import com.pulumi.gcp.bigtable.inputs.TableColumnFamilyArgs;
import com.pulumi.gcp.bigtable.AuthorizedView;
import com.pulumi.gcp.bigtable.AuthorizedViewArgs;
import com.pulumi.gcp.bigtable.inputs.AuthorizedViewSubsetViewArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.Base64encodeArgs;
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 instance = new Instance("instance", InstanceArgs.builder()
            .name("tf-instance")
            .clusters(InstanceClusterArgs.builder()
                .clusterId("tf-instance-cluster")
                .zone("us-central1-b")
                .numNodes(3)
                .storageType("HDD")
                .build())
            .build());

        var table = new Table("table", TableArgs.builder()
            .name("tf-table")
            .instanceName(instance.name())
            .splitKeys(            
                "a",
                "b",
                "c")
            .columnFamilies(            
                TableColumnFamilyArgs.builder()
                    .family("family-first")
                    .build(),
                TableColumnFamilyArgs.builder()
                    .family("family-second")
                    .build())
            .changeStreamRetention("24h0m0s")
            .build());

        var authorizedView = new AuthorizedView("authorizedView", AuthorizedViewArgs.builder()
            .name("tf-authorized-view")
            .instanceName(instance.name())
            .tableName(table.name())
            .subsetView(AuthorizedViewSubsetViewArgs.builder()
                .rowPrefixes(StdFunctions.base64encode(Base64encodeArgs.builder()
                    .input("prefix#")
                    .build()).result())
                .familySubsets(                
                    AuthorizedViewSubsetViewFamilySubsetArgs.builder()
                        .familyName("family-first")
                        .qualifiers(                        
                            StdFunctions.base64encode(Base64encodeArgs.builder()
                                .input("qualifier")
                                .build()).result(),
                            StdFunctions.base64encode(Base64encodeArgs.builder()
                                .input("qualifier-second")
                                .build()).result())
                        .build(),
                    AuthorizedViewSubsetViewFamilySubsetArgs.builder()
                        .familyName("family-second")
                        .qualifierPrefixes("")
                        .build())
                .build())
            .build());

    }
}
Copy
resources:
  instance:
    type: gcp:bigtable:Instance
    properties:
      name: tf-instance
      clusters:
        - clusterId: tf-instance-cluster
          zone: us-central1-b
          numNodes: 3
          storageType: HDD
  table:
    type: gcp:bigtable:Table
    properties:
      name: tf-table
      instanceName: ${instance.name}
      splitKeys:
        - a
        - b
        - c
      columnFamilies:
        - family: family-first
        - family: family-second
      changeStreamRetention: 24h0m0s
  authorizedView:
    type: gcp:bigtable:AuthorizedView
    name: authorized_view
    properties:
      name: tf-authorized-view
      instanceName: ${instance.name}
      tableName: ${table.name}
      subsetView:
        rowPrefixes:
          - fn::invoke:
              function: std:base64encode
              arguments:
                input: prefix#
              return: result
        familySubsets:
          - familyName: family-first
            qualifiers:
              - fn::invoke:
                  function: std:base64encode
                  arguments:
                    input: qualifier
                  return: result
              - fn::invoke:
                  function: std:base64encode
                  arguments:
                    input: qualifier-second
                  return: result
          - familyName: family-second
            qualifierPrefixes:
              - ""
Copy

Create AuthorizedView Resource

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

Constructor syntax

new AuthorizedView(name: string, args: AuthorizedViewArgs, opts?: CustomResourceOptions);
@overload
def AuthorizedView(resource_name: str,
                   args: AuthorizedViewArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def AuthorizedView(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   instance_name: Optional[str] = None,
                   table_name: Optional[str] = None,
                   deletion_protection: Optional[str] = None,
                   name: Optional[str] = None,
                   project: Optional[str] = None,
                   subset_view: Optional[AuthorizedViewSubsetViewArgs] = None)
func NewAuthorizedView(ctx *Context, name string, args AuthorizedViewArgs, opts ...ResourceOption) (*AuthorizedView, error)
public AuthorizedView(string name, AuthorizedViewArgs args, CustomResourceOptions? opts = null)
public AuthorizedView(String name, AuthorizedViewArgs args)
public AuthorizedView(String name, AuthorizedViewArgs args, CustomResourceOptions options)
type: gcp:bigtable:AuthorizedView
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AuthorizedViewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AuthorizedViewArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AuthorizedViewArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AuthorizedViewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AuthorizedViewArgs
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 authorizedViewResource = new Gcp.BigTable.AuthorizedView("authorizedViewResource", new()
{
    InstanceName = "string",
    TableName = "string",
    DeletionProtection = "string",
    Name = "string",
    Project = "string",
    SubsetView = new Gcp.BigTable.Inputs.AuthorizedViewSubsetViewArgs
    {
        FamilySubsets = new[]
        {
            new Gcp.BigTable.Inputs.AuthorizedViewSubsetViewFamilySubsetArgs
            {
                FamilyName = "string",
                QualifierPrefixes = new[]
                {
                    "string",
                },
                Qualifiers = new[]
                {
                    "string",
                },
            },
        },
        RowPrefixes = new[]
        {
            "string",
        },
    },
});
Copy
example, err := bigtable.NewAuthorizedView(ctx, "authorizedViewResource", &bigtable.AuthorizedViewArgs{
	InstanceName:       pulumi.String("string"),
	TableName:          pulumi.String("string"),
	DeletionProtection: pulumi.String("string"),
	Name:               pulumi.String("string"),
	Project:            pulumi.String("string"),
	SubsetView: &bigtable.AuthorizedViewSubsetViewArgs{
		FamilySubsets: bigtable.AuthorizedViewSubsetViewFamilySubsetArray{
			&bigtable.AuthorizedViewSubsetViewFamilySubsetArgs{
				FamilyName: pulumi.String("string"),
				QualifierPrefixes: pulumi.StringArray{
					pulumi.String("string"),
				},
				Qualifiers: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		RowPrefixes: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
})
Copy
var authorizedViewResource = new AuthorizedView("authorizedViewResource", AuthorizedViewArgs.builder()
    .instanceName("string")
    .tableName("string")
    .deletionProtection("string")
    .name("string")
    .project("string")
    .subsetView(AuthorizedViewSubsetViewArgs.builder()
        .familySubsets(AuthorizedViewSubsetViewFamilySubsetArgs.builder()
            .familyName("string")
            .qualifierPrefixes("string")
            .qualifiers("string")
            .build())
        .rowPrefixes("string")
        .build())
    .build());
Copy
authorized_view_resource = gcp.bigtable.AuthorizedView("authorizedViewResource",
    instance_name="string",
    table_name="string",
    deletion_protection="string",
    name="string",
    project="string",
    subset_view={
        "family_subsets": [{
            "family_name": "string",
            "qualifier_prefixes": ["string"],
            "qualifiers": ["string"],
        }],
        "row_prefixes": ["string"],
    })
Copy
const authorizedViewResource = new gcp.bigtable.AuthorizedView("authorizedViewResource", {
    instanceName: "string",
    tableName: "string",
    deletionProtection: "string",
    name: "string",
    project: "string",
    subsetView: {
        familySubsets: [{
            familyName: "string",
            qualifierPrefixes: ["string"],
            qualifiers: ["string"],
        }],
        rowPrefixes: ["string"],
    },
});
Copy
type: gcp:bigtable:AuthorizedView
properties:
    deletionProtection: string
    instanceName: string
    name: string
    project: string
    subsetView:
        familySubsets:
            - familyName: string
              qualifierPrefixes:
                - string
              qualifiers:
                - string
        rowPrefixes:
            - string
    tableName: string
Copy

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

InstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Bigtable instance in which the authorized view belongs.
TableName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Bigtable table in which the authorized view belongs.
DeletionProtection string
Name Changes to this property will trigger replacement. string
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
SubsetView AuthorizedViewSubsetView
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


InstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Bigtable instance in which the authorized view belongs.
TableName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Bigtable table in which the authorized view belongs.
DeletionProtection string
Name Changes to this property will trigger replacement. string
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
SubsetView AuthorizedViewSubsetViewArgs
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


instanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Bigtable instance in which the authorized view belongs.
tableName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Bigtable table in which the authorized view belongs.
deletionProtection String
name Changes to this property will trigger replacement. String
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subsetView AuthorizedViewSubsetView
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


instanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Bigtable instance in which the authorized view belongs.
tableName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Bigtable table in which the authorized view belongs.
deletionProtection string
name Changes to this property will trigger replacement. string
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subsetView AuthorizedViewSubsetView
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


instance_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Bigtable instance in which the authorized view belongs.
table_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Bigtable table in which the authorized view belongs.
deletion_protection str
name Changes to this property will trigger replacement. str
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subset_view AuthorizedViewSubsetViewArgs
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


instanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Bigtable instance in which the authorized view belongs.
tableName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Bigtable table in which the authorized view belongs.
deletionProtection String
name Changes to this property will trigger replacement. String
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subsetView Property Map
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AuthorizedView Resource

Get an existing AuthorizedView 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?: AuthorizedViewState, opts?: CustomResourceOptions): AuthorizedView
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        deletion_protection: Optional[str] = None,
        instance_name: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        subset_view: Optional[AuthorizedViewSubsetViewArgs] = None,
        table_name: Optional[str] = None) -> AuthorizedView
func GetAuthorizedView(ctx *Context, name string, id IDInput, state *AuthorizedViewState, opts ...ResourceOption) (*AuthorizedView, error)
public static AuthorizedView Get(string name, Input<string> id, AuthorizedViewState? state, CustomResourceOptions? opts = null)
public static AuthorizedView get(String name, Output<String> id, AuthorizedViewState state, CustomResourceOptions options)
resources:  _:    type: gcp:bigtable:AuthorizedView    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DeletionProtection string
InstanceName Changes to this property will trigger replacement. string
The name of the Bigtable instance in which the authorized view belongs.
Name Changes to this property will trigger replacement. string
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
SubsetView AuthorizedViewSubsetView
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


TableName Changes to this property will trigger replacement. string
The name of the Bigtable table in which the authorized view belongs.
DeletionProtection string
InstanceName Changes to this property will trigger replacement. string
The name of the Bigtable instance in which the authorized view belongs.
Name Changes to this property will trigger replacement. string
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
SubsetView AuthorizedViewSubsetViewArgs
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


TableName Changes to this property will trigger replacement. string
The name of the Bigtable table in which the authorized view belongs.
deletionProtection String
instanceName Changes to this property will trigger replacement. String
The name of the Bigtable instance in which the authorized view belongs.
name Changes to this property will trigger replacement. String
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subsetView AuthorizedViewSubsetView
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


tableName Changes to this property will trigger replacement. String
The name of the Bigtable table in which the authorized view belongs.
deletionProtection string
instanceName Changes to this property will trigger replacement. string
The name of the Bigtable instance in which the authorized view belongs.
name Changes to this property will trigger replacement. string
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subsetView AuthorizedViewSubsetView
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


tableName Changes to this property will trigger replacement. string
The name of the Bigtable table in which the authorized view belongs.
deletion_protection str
instance_name Changes to this property will trigger replacement. str
The name of the Bigtable instance in which the authorized view belongs.
name Changes to this property will trigger replacement. str
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subset_view AuthorizedViewSubsetViewArgs
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


table_name Changes to this property will trigger replacement. str
The name of the Bigtable table in which the authorized view belongs.
deletionProtection String
instanceName Changes to this property will trigger replacement. String
The name of the Bigtable instance in which the authorized view belongs.
name Changes to this property will trigger replacement. String
The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
subsetView Property Map
An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.


tableName Changes to this property will trigger replacement. String
The name of the Bigtable table in which the authorized view belongs.

Supporting Types

AuthorizedViewSubsetView
, AuthorizedViewSubsetViewArgs

FamilySubsets List<AuthorizedViewSubsetViewFamilySubset>
A group of column family subsets to be included in the authorized view. This can be specified multiple times. Structure is documented below.


RowPrefixes List<string>
A list of Base64-encoded row prefixes to be included in the authorized view. To provide access to all rows, include the empty string as a prefix ("").
FamilySubsets []AuthorizedViewSubsetViewFamilySubset
A group of column family subsets to be included in the authorized view. This can be specified multiple times. Structure is documented below.


RowPrefixes []string
A list of Base64-encoded row prefixes to be included in the authorized view. To provide access to all rows, include the empty string as a prefix ("").
familySubsets List<AuthorizedViewSubsetViewFamilySubset>
A group of column family subsets to be included in the authorized view. This can be specified multiple times. Structure is documented below.


rowPrefixes List<String>
A list of Base64-encoded row prefixes to be included in the authorized view. To provide access to all rows, include the empty string as a prefix ("").
familySubsets AuthorizedViewSubsetViewFamilySubset[]
A group of column family subsets to be included in the authorized view. This can be specified multiple times. Structure is documented below.


rowPrefixes string[]
A list of Base64-encoded row prefixes to be included in the authorized view. To provide access to all rows, include the empty string as a prefix ("").
family_subsets Sequence[AuthorizedViewSubsetViewFamilySubset]
A group of column family subsets to be included in the authorized view. This can be specified multiple times. Structure is documented below.


row_prefixes Sequence[str]
A list of Base64-encoded row prefixes to be included in the authorized view. To provide access to all rows, include the empty string as a prefix ("").
familySubsets List<Property Map>
A group of column family subsets to be included in the authorized view. This can be specified multiple times. Structure is documented below.


rowPrefixes List<String>
A list of Base64-encoded row prefixes to be included in the authorized view. To provide access to all rows, include the empty string as a prefix ("").

AuthorizedViewSubsetViewFamilySubset
, AuthorizedViewSubsetViewFamilySubsetArgs

FamilyName This property is required. string
Name of the column family to be included in the authorized view. The specified column family must exist in the parent table of this authorized view.
QualifierPrefixes List<string>
A list of Base64-encoded prefixes for qualifiers of the column family to be included in the authorized view. Every qualifier starting with one of these prefixes is included in the authorized view. To provide access to all qualifiers, include the empty string as a prefix ("").
Qualifiers List<string>
A list of Base64-encoded individual exact column qualifiers of the column family to be included in the authorized view.
FamilyName This property is required. string
Name of the column family to be included in the authorized view. The specified column family must exist in the parent table of this authorized view.
QualifierPrefixes []string
A list of Base64-encoded prefixes for qualifiers of the column family to be included in the authorized view. Every qualifier starting with one of these prefixes is included in the authorized view. To provide access to all qualifiers, include the empty string as a prefix ("").
Qualifiers []string
A list of Base64-encoded individual exact column qualifiers of the column family to be included in the authorized view.
familyName This property is required. String
Name of the column family to be included in the authorized view. The specified column family must exist in the parent table of this authorized view.
qualifierPrefixes List<String>
A list of Base64-encoded prefixes for qualifiers of the column family to be included in the authorized view. Every qualifier starting with one of these prefixes is included in the authorized view. To provide access to all qualifiers, include the empty string as a prefix ("").
qualifiers List<String>
A list of Base64-encoded individual exact column qualifiers of the column family to be included in the authorized view.
familyName This property is required. string
Name of the column family to be included in the authorized view. The specified column family must exist in the parent table of this authorized view.
qualifierPrefixes string[]
A list of Base64-encoded prefixes for qualifiers of the column family to be included in the authorized view. Every qualifier starting with one of these prefixes is included in the authorized view. To provide access to all qualifiers, include the empty string as a prefix ("").
qualifiers string[]
A list of Base64-encoded individual exact column qualifiers of the column family to be included in the authorized view.
family_name This property is required. str
Name of the column family to be included in the authorized view. The specified column family must exist in the parent table of this authorized view.
qualifier_prefixes Sequence[str]
A list of Base64-encoded prefixes for qualifiers of the column family to be included in the authorized view. Every qualifier starting with one of these prefixes is included in the authorized view. To provide access to all qualifiers, include the empty string as a prefix ("").
qualifiers Sequence[str]
A list of Base64-encoded individual exact column qualifiers of the column family to be included in the authorized view.
familyName This property is required. String
Name of the column family to be included in the authorized view. The specified column family must exist in the parent table of this authorized view.
qualifierPrefixes List<String>
A list of Base64-encoded prefixes for qualifiers of the column family to be included in the authorized view. Every qualifier starting with one of these prefixes is included in the authorized view. To provide access to all qualifiers, include the empty string as a prefix ("").
qualifiers List<String>
A list of Base64-encoded individual exact column qualifiers of the column family to be included in the authorized view.

Import

Bigtable Authorized Views can be imported using any of these accepted formats:

  • projects/{{project}}/instances/{{instance_name}}/tables/{{table_name}}/authorizedViews/{{name}}

  • {{project}}/{{instance_name}}/{{table_name}}/{{name}}

  • {{instance_name}}/{{table_name}}/{{name}}

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

$ pulumi import gcp:bigtable/authorizedView:AuthorizedView default projects/{{project}}/instances/{{instance_name}}/tables/{{table_name}}/authorizedViews/{{name}}
Copy
$ pulumi import gcp:bigtable/authorizedView:AuthorizedView default {{project}}/{{instance_name}}/{{table_name}}/{{name}}
Copy
$ pulumi import gcp:bigtable/authorizedView:AuthorizedView default {{instance_name}}/{{table_name}}/{{name}}
Copy

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.