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: [""],
            },
        ],
    },
});
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": [""],
            },
        ],
    })
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
	})
}
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[]
                    {
                        "",
                    },
                },
            },
        },
    });
});
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 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());
    }
}
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:
              - ""
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 string
- The unique name of the resource.
- args AuthorizedViewArgs
- 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 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 string
- The unique name of the resource.
- args AuthorizedViewArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthorizedViewArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
        },
    },
});
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"),
		},
	},
})
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());
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"],
    })
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"],
    },
});
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
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 string
- The name of the Bigtable instance in which the authorized view belongs.
- TableName string
- The name of the Bigtable table in which the authorized view belongs.
- DeletionProtection string
- Name string
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- SubsetView AuthorizedView Subset View 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- InstanceName string
- The name of the Bigtable instance in which the authorized view belongs.
- TableName string
- The name of the Bigtable table in which the authorized view belongs.
- DeletionProtection string
- Name string
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- SubsetView AuthorizedView Subset View Args 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- instanceName String
- The name of the Bigtable instance in which the authorized view belongs.
- tableName String
- The name of the Bigtable table in which the authorized view belongs.
- deletionProtection String
- name String
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- subsetView AuthorizedView Subset View 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- instanceName string
- The name of the Bigtable instance in which the authorized view belongs.
- tableName string
- The name of the Bigtable table in which the authorized view belongs.
- deletionProtection string
- name string
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- subsetView AuthorizedView Subset View 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- instance_name str
- The name of the Bigtable instance in which the authorized view belongs.
- table_name str
- The name of the Bigtable table in which the authorized view belongs.
- deletion_protection str
- name str
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- subset_view AuthorizedView Subset View Args 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- instanceName String
- The name of the Bigtable instance in which the authorized view belongs.
- tableName String
- The name of the Bigtable table in which the authorized view belongs.
- deletionProtection String
- name String
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project 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) -> AuthorizedViewfunc 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
- 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.
- DeletionProtection string
- InstanceName string
- The name of the Bigtable instance in which the authorized view belongs.
- Name string
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- SubsetView AuthorizedView Subset View 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- TableName string
- The name of the Bigtable table in which the authorized view belongs.
- DeletionProtection string
- InstanceName string
- The name of the Bigtable instance in which the authorized view belongs.
- Name string
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- SubsetView AuthorizedView Subset View Args 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- TableName string
- The name of the Bigtable table in which the authorized view belongs.
- deletionProtection String
- instanceName String
- The name of the Bigtable instance in which the authorized view belongs.
- name String
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- subsetView AuthorizedView Subset View 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- tableName String
- The name of the Bigtable table in which the authorized view belongs.
- deletionProtection string
- instanceName string
- The name of the Bigtable instance in which the authorized view belongs.
- name string
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- subsetView AuthorizedView Subset View 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- tableName string
- The name of the Bigtable table in which the authorized view belongs.
- deletion_protection str
- instance_name str
- The name of the Bigtable instance in which the authorized view belongs.
- name str
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- subset_view AuthorizedView Subset View Args 
- An AuthorizedView permitting access to an explicit subset of a Table. Structure is documented below.
- table_name str
- The name of the Bigtable table in which the authorized view belongs.
- deletionProtection String
- instanceName String
- The name of the Bigtable instance in which the authorized view belongs.
- name String
- The name of the authorized view. Must be 1-50 characters and must only contain hyphens, underscores, periods, letters and numbers.
- project 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 String
- The name of the Bigtable table in which the authorized view belongs.
Supporting Types
AuthorizedViewSubsetView, AuthorizedViewSubsetViewArgs        
- FamilySubsets List<AuthorizedView Subset View Family Subset> 
- 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 []AuthorizedView Subset View Family Subset 
- 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<AuthorizedView Subset View Family Subset> 
- 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 AuthorizedView Subset View Family Subset[] 
- 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[AuthorizedView Subset View Family Subset] 
- 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 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 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 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 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 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 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}}
$ pulumi import gcp:bigtable/authorizedView:AuthorizedView default {{project}}/{{instance_name}}/{{table_name}}/{{name}}
$ pulumi import gcp:bigtable/authorizedView:AuthorizedView default {{instance_name}}/{{table_name}}/{{name}}
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-betaTerraform Provider.