Table
Create a Table Resource
new Table(name: string, args: TableArgs, opts?: CustomResourceOptions);def Table(resource_name, opts=None, deviation_cell_version_in_sec=None, instance_name=None, max_version=None, primary_keys=None, table_name=None, time_to_live=None, __props__=None);public Table(string name, TableArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TableArgs
- 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 TableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Table Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Table resource accepts the following input properties:
- Instance
Name string The name of the OTS instance in which table will located.
- Max
Version int The maximum number of versions stored in this table. The valid value is 1-2147483647.
- Primary
Keys List<Pulumi.Ali Cloud. Ots. Inputs. Table Primary Key Args> The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- Table
Name string The table name of the OTS instance. If changed, a new table would be created.
- Time
To intLive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
- Deviation
Cell stringVersion In Sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
- Instance
Name string The name of the OTS instance in which table will located.
- Max
Version int The maximum number of versions stored in this table. The valid value is 1-2147483647.
- Primary
Keys []TablePrimary Key The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- Table
Name string The table name of the OTS instance. If changed, a new table would be created.
- Time
To intLive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
- Deviation
Cell stringVersion In Sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
- instance
Name string The name of the OTS instance in which table will located.
- max
Version number The maximum number of versions stored in this table. The valid value is 1-2147483647.
- primary
Keys TablePrimary Key[] The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- table
Name string The table name of the OTS instance. If changed, a new table would be created.
- time
To numberLive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
- deviation
Cell stringVersion In Sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
- instance_
name str The name of the OTS instance in which table will located.
- max_
version float The maximum number of versions stored in this table. The valid value is 1-2147483647.
- primary_
keys List[TablePrimary Key] The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- table_
name str The table name of the OTS instance. If changed, a new table would be created.
- time_
to_ floatlive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
- deviation_
cell_ strversion_ in_ sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
Outputs
All input properties are implicitly available as output properties. Additionally, the Table resource produces the following output properties:
Look up an Existing Table Resource
Get an existing Table 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?: TableState, opts?: CustomResourceOptions): Tablestatic get(resource_name, id, opts=None, deviation_cell_version_in_sec=None, instance_name=None, max_version=None, primary_keys=None, table_name=None, time_to_live=None, __props__=None);func GetTable(ctx *Context, name string, id IDInput, state *TableState, opts ...ResourceOption) (*Table, error)public static Table Get(string name, Input<string> id, TableState? 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:
- Deviation
Cell stringVersion In Sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
- Instance
Name string The name of the OTS instance in which table will located.
- Max
Version int The maximum number of versions stored in this table. The valid value is 1-2147483647.
- Primary
Keys List<Pulumi.Ali Cloud. Ots. Inputs. Table Primary Key Args> The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- Table
Name string The table name of the OTS instance. If changed, a new table would be created.
- Time
To intLive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
- Deviation
Cell stringVersion In Sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
- Instance
Name string The name of the OTS instance in which table will located.
- Max
Version int The maximum number of versions stored in this table. The valid value is 1-2147483647.
- Primary
Keys []TablePrimary Key The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- Table
Name string The table name of the OTS instance. If changed, a new table would be created.
- Time
To intLive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
- deviation
Cell stringVersion In Sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
- instance
Name string The name of the OTS instance in which table will located.
- max
Version number The maximum number of versions stored in this table. The valid value is 1-2147483647.
- primary
Keys TablePrimary Key[] The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- table
Name string The table name of the OTS instance. If changed, a new table would be created.
- time
To numberLive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
- deviation_
cell_ strversion_ in_ sec The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
- instance_
name str The name of the OTS instance in which table will located.
- max_
version float The maximum number of versions stored in this table. The valid value is 1-2147483647.
- primary_
keys List[TablePrimary Key] The property of
TableMetawhich indicates the structure information of a table. It describes the attribute value of primary key. The number ofprimary_keyshould not be less than one and not be more than four.- table_
name str The table name of the OTS instance. If changed, a new table would be created.
- time_
to_ floatlive The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
Supporting Types
TablePrimaryKey
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.