GCPolicy
Creates a Google Cloud Bigtable GC Policy inside a family. For more information see the official documentation and API.
Create a GCPolicy Resource
new GCPolicy(name: string, args: GCPolicyArgs, opts?: CustomResourceOptions);def GCPolicy(resource_name, opts=None, column_family=None, instance_name=None, max_ages=None, max_versions=None, mode=None, project=None, table=None, __props__=None);func NewGCPolicy(ctx *Context, name string, args GCPolicyArgs, opts ...ResourceOption) (*GCPolicy, error)public GCPolicy(string name, GCPolicyArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args GCPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GCPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GCPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
GCPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The GCPolicy resource accepts the following input properties:
- Column
Family string The name of the column family.
- Instance
Name string The name of the Bigtable instance.
- Table string
The name of the table.
- Max
Ages List<GCPolicyMax Age Args> GC policy that applies to all cells older than the given age.
- Max
Versions List<GCPolicyMax Version Args> GC policy that applies to all versions of a cell except for the most recent.
- Mode string
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Column
Family string The name of the column family.
- Instance
Name string The name of the Bigtable instance.
- Table string
The name of the table.
- Max
Ages []GCPolicyMax Age GC policy that applies to all cells older than the given age.
- Max
Versions []GCPolicyMax Version GC policy that applies to all versions of a cell except for the most recent.
- Mode string
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- column
Family string The name of the column family.
- instance
Name string The name of the Bigtable instance.
- table string
The name of the table.
- max
Ages GCPolicyMax Age[] GC policy that applies to all cells older than the given age.
- max
Versions GCPolicyMax Version[] GC policy that applies to all versions of a cell except for the most recent.
- mode string
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- column_
family str The name of the column family.
- instance_
name str The name of the Bigtable instance.
- table str
The name of the table.
- max_
ages List[GCPolicyMax Age] GC policy that applies to all cells older than the given age.
- max_
versions List[GCPolicyMax Version] GC policy that applies to all versions of a cell except for the most recent.
- mode str
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- project str
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 GCPolicy resource produces the following output properties:
Look up an Existing GCPolicy Resource
Get an existing GCPolicy 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?: GCPolicyState, opts?: CustomResourceOptions): GCPolicystatic get(resource_name, id, opts=None, column_family=None, instance_name=None, max_ages=None, max_versions=None, mode=None, project=None, table=None, __props__=None);func GetGCPolicy(ctx *Context, name string, id IDInput, state *GCPolicyState, opts ...ResourceOption) (*GCPolicy, error)public static GCPolicy Get(string name, Input<string> id, GCPolicyState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Column
Family string The name of the column family.
- Instance
Name string The name of the Bigtable instance.
- Max
Ages List<GCPolicyMax Age Args> GC policy that applies to all cells older than the given age.
- Max
Versions List<GCPolicyMax Version Args> GC policy that applies to all versions of a cell except for the most recent.
- Mode string
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Table string
The name of the table.
- Column
Family string The name of the column family.
- Instance
Name string The name of the Bigtable instance.
- Max
Ages []GCPolicyMax Age GC policy that applies to all cells older than the given age.
- Max
Versions []GCPolicyMax Version GC policy that applies to all versions of a cell except for the most recent.
- Mode string
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Table string
The name of the table.
- column
Family string The name of the column family.
- instance
Name string The name of the Bigtable instance.
- max
Ages GCPolicyMax Age[] GC policy that applies to all cells older than the given age.
- max
Versions GCPolicyMax Version[] GC policy that applies to all versions of a cell except for the most recent.
- mode string
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- table string
The name of the table.
- column_
family str The name of the column family.
- instance_
name str The name of the Bigtable instance.
- max_
ages List[GCPolicyMax Age] GC policy that applies to all cells older than the given age.
- max_
versions List[GCPolicyMax Version] GC policy that applies to all versions of a cell except for the most recent.
- mode str
If multiple policies are set, you should choose between
UNIONORINTERSECTION.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- table str
The name of the table.
Supporting Types
GCPolicyMaxAge
GCPolicyMaxVersion
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.