1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. ots
  5. Table
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.ots.Table

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides an OTS table resource.

    NOTE: From Provider version 1.10.0, the provider field ‘ots_instance_name’ has been deprecated and you should use resource alicloud_ots_table’s new field ‘instance_name’ and ’table_name’ to re-import this resource.

    NOTE: Available since v1.9.2.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const defaultRandomInteger = new random.RandomInteger("defaultRandomInteger", {
        min: 10000,
        max: 99999,
    });
    const defaultInstance = new alicloud.ots.Instance("defaultInstance", {
        description: name,
        accessedBy: "Any",
        tags: {
            Created: "TF",
            For: "example",
        },
    });
    const defaultTable = new alicloud.ots.Table("defaultTable", {
        instanceName: defaultInstance.name,
        tableName: "tf_example",
        timeToLive: -1,
        maxVersion: 1,
        enableSse: true,
        sseKeyType: "SSE_KMS_SERVICE",
        primaryKeys: [
            {
                name: "pk1",
                type: "Integer",
            },
            {
                name: "pk2",
                type: "String",
            },
            {
                name: "pk3",
                type: "Binary",
            },
        ],
        definedColumns: [
            {
                name: "col1",
                type: "Integer",
            },
            {
                name: "col2",
                type: "String",
            },
            {
                name: "col3",
                type: "Binary",
            },
        ],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_random_integer = random.RandomInteger("defaultRandomInteger",
        min=10000,
        max=99999)
    default_instance = alicloud.ots.Instance("defaultInstance",
        description=name,
        accessed_by="Any",
        tags={
            "Created": "TF",
            "For": "example",
        })
    default_table = alicloud.ots.Table("defaultTable",
        instance_name=default_instance.name,
        table_name="tf_example",
        time_to_live=-1,
        max_version=1,
        enable_sse=True,
        sse_key_type="SSE_KMS_SERVICE",
        primary_keys=[
            alicloud.ots.TablePrimaryKeyArgs(
                name="pk1",
                type="Integer",
            ),
            alicloud.ots.TablePrimaryKeyArgs(
                name="pk2",
                type="String",
            ),
            alicloud.ots.TablePrimaryKeyArgs(
                name="pk3",
                type="Binary",
            ),
        ],
        defined_columns=[
            alicloud.ots.TableDefinedColumnArgs(
                name="col1",
                type="Integer",
            ),
            alicloud.ots.TableDefinedColumnArgs(
                name="col2",
                type="String",
            ),
            alicloud.ots.TableDefinedColumnArgs(
                name="col3",
                type="Binary",
            ),
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := random.NewRandomInteger(ctx, "defaultRandomInteger", &random.RandomIntegerArgs{
    			Min: pulumi.Int(10000),
    			Max: pulumi.Int(99999),
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := ots.NewInstance(ctx, "defaultInstance", &ots.InstanceArgs{
    			Description: pulumi.String(name),
    			AccessedBy:  pulumi.String("Any"),
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ots.NewTable(ctx, "defaultTable", &ots.TableArgs{
    			InstanceName: defaultInstance.Name,
    			TableName:    pulumi.String("tf_example"),
    			TimeToLive:   -1,
    			MaxVersion:   pulumi.Int(1),
    			EnableSse:    pulumi.Bool(true),
    			SseKeyType:   pulumi.String("SSE_KMS_SERVICE"),
    			PrimaryKeys: ots.TablePrimaryKeyArray{
    				&ots.TablePrimaryKeyArgs{
    					Name: pulumi.String("pk1"),
    					Type: pulumi.String("Integer"),
    				},
    				&ots.TablePrimaryKeyArgs{
    					Name: pulumi.String("pk2"),
    					Type: pulumi.String("String"),
    				},
    				&ots.TablePrimaryKeyArgs{
    					Name: pulumi.String("pk3"),
    					Type: pulumi.String("Binary"),
    				},
    			},
    			DefinedColumns: ots.TableDefinedColumnArray{
    				&ots.TableDefinedColumnArgs{
    					Name: pulumi.String("col1"),
    					Type: pulumi.String("Integer"),
    				},
    				&ots.TableDefinedColumnArgs{
    					Name: pulumi.String("col2"),
    					Type: pulumi.String("String"),
    				},
    				&ots.TableDefinedColumnArgs{
    					Name: pulumi.String("col3"),
    					Type: pulumi.String("Binary"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var defaultRandomInteger = new Random.RandomInteger("defaultRandomInteger", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultInstance = new AliCloud.Ots.Instance("defaultInstance", new()
        {
            Description = name,
            AccessedBy = "Any",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
        });
    
        var defaultTable = new AliCloud.Ots.Table("defaultTable", new()
        {
            InstanceName = defaultInstance.Name,
            TableName = "tf_example",
            TimeToLive = -1,
            MaxVersion = 1,
            EnableSse = true,
            SseKeyType = "SSE_KMS_SERVICE",
            PrimaryKeys = new[]
            {
                new AliCloud.Ots.Inputs.TablePrimaryKeyArgs
                {
                    Name = "pk1",
                    Type = "Integer",
                },
                new AliCloud.Ots.Inputs.TablePrimaryKeyArgs
                {
                    Name = "pk2",
                    Type = "String",
                },
                new AliCloud.Ots.Inputs.TablePrimaryKeyArgs
                {
                    Name = "pk3",
                    Type = "Binary",
                },
            },
            DefinedColumns = new[]
            {
                new AliCloud.Ots.Inputs.TableDefinedColumnArgs
                {
                    Name = "col1",
                    Type = "Integer",
                },
                new AliCloud.Ots.Inputs.TableDefinedColumnArgs
                {
                    Name = "col2",
                    Type = "String",
                },
                new AliCloud.Ots.Inputs.TableDefinedColumnArgs
                {
                    Name = "col3",
                    Type = "Binary",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.RandomInteger;
    import com.pulumi.random.RandomIntegerArgs;
    import com.pulumi.alicloud.ots.Instance;
    import com.pulumi.alicloud.ots.InstanceArgs;
    import com.pulumi.alicloud.ots.Table;
    import com.pulumi.alicloud.ots.TableArgs;
    import com.pulumi.alicloud.ots.inputs.TablePrimaryKeyArgs;
    import com.pulumi.alicloud.ots.inputs.TableDefinedColumnArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            var defaultRandomInteger = new RandomInteger("defaultRandomInteger", RandomIntegerArgs.builder()        
                .min(10000)
                .max(99999)
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
                .description(name)
                .accessedBy("Any")
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "example")
                ))
                .build());
    
            var defaultTable = new Table("defaultTable", TableArgs.builder()        
                .instanceName(defaultInstance.name())
                .tableName("tf_example")
                .timeToLive("TODO: GenUnaryOpExpression")
                .maxVersion(1)
                .enableSse(true)
                .sseKeyType("SSE_KMS_SERVICE")
                .primaryKeys(            
                    TablePrimaryKeyArgs.builder()
                        .name("pk1")
                        .type("Integer")
                        .build(),
                    TablePrimaryKeyArgs.builder()
                        .name("pk2")
                        .type("String")
                        .build(),
                    TablePrimaryKeyArgs.builder()
                        .name("pk3")
                        .type("Binary")
                        .build())
                .definedColumns(            
                    TableDefinedColumnArgs.builder()
                        .name("col1")
                        .type("Integer")
                        .build(),
                    TableDefinedColumnArgs.builder()
                        .name("col2")
                        .type("String")
                        .build(),
                    TableDefinedColumnArgs.builder()
                        .name("col3")
                        .type("Binary")
                        .build())
                .build());
    
        }
    }
    
    Coming soon!
    

    Create Table Resource

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

    Constructor syntax

    new Table(name: string, args: TableArgs, opts?: CustomResourceOptions);
    @overload
    def Table(resource_name: str,
              args: TableArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Table(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              instance_name: Optional[str] = None,
              max_version: Optional[int] = None,
              primary_keys: Optional[Sequence[TablePrimaryKeyArgs]] = None,
              table_name: Optional[str] = None,
              time_to_live: Optional[int] = None,
              defined_columns: Optional[Sequence[TableDefinedColumnArgs]] = None,
              deviation_cell_version_in_sec: Optional[str] = None,
              enable_sse: Optional[bool] = None,
              sse_key_type: Optional[str] = None)
    func NewTable(ctx *Context, name string, args TableArgs, opts ...ResourceOption) (*Table, error)
    public Table(string name, TableArgs args, CustomResourceOptions? opts = null)
    public Table(String name, TableArgs args)
    public Table(String name, TableArgs args, CustomResourceOptions options)
    
    type: alicloud:ots:Table
    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 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.
    args TableArgs
    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 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.
    name String
    The unique name of the resource.
    args TableArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var tableResource = new AliCloud.Ots.Table("tableResource", new()
    {
        InstanceName = "string",
        MaxVersion = 0,
        PrimaryKeys = new[]
        {
            new AliCloud.Ots.Inputs.TablePrimaryKeyArgs
            {
                Name = "string",
                Type = "string",
            },
        },
        TableName = "string",
        TimeToLive = 0,
        DefinedColumns = new[]
        {
            new AliCloud.Ots.Inputs.TableDefinedColumnArgs
            {
                Name = "string",
                Type = "string",
            },
        },
        DeviationCellVersionInSec = "string",
        EnableSse = false,
        SseKeyType = "string",
    });
    
    example, err := ots.NewTable(ctx, "tableResource", &ots.TableArgs{
    	InstanceName: pulumi.String("string"),
    	MaxVersion:   pulumi.Int(0),
    	PrimaryKeys: ots.TablePrimaryKeyArray{
    		&ots.TablePrimaryKeyArgs{
    			Name: pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    	},
    	TableName:  pulumi.String("string"),
    	TimeToLive: pulumi.Int(0),
    	DefinedColumns: ots.TableDefinedColumnArray{
    		&ots.TableDefinedColumnArgs{
    			Name: pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    	},
    	DeviationCellVersionInSec: pulumi.String("string"),
    	EnableSse:                 pulumi.Bool(false),
    	SseKeyType:                pulumi.String("string"),
    })
    
    var tableResource = new Table("tableResource", TableArgs.builder()        
        .instanceName("string")
        .maxVersion(0)
        .primaryKeys(TablePrimaryKeyArgs.builder()
            .name("string")
            .type("string")
            .build())
        .tableName("string")
        .timeToLive(0)
        .definedColumns(TableDefinedColumnArgs.builder()
            .name("string")
            .type("string")
            .build())
        .deviationCellVersionInSec("string")
        .enableSse(false)
        .sseKeyType("string")
        .build());
    
    table_resource = alicloud.ots.Table("tableResource",
        instance_name="string",
        max_version=0,
        primary_keys=[alicloud.ots.TablePrimaryKeyArgs(
            name="string",
            type="string",
        )],
        table_name="string",
        time_to_live=0,
        defined_columns=[alicloud.ots.TableDefinedColumnArgs(
            name="string",
            type="string",
        )],
        deviation_cell_version_in_sec="string",
        enable_sse=False,
        sse_key_type="string")
    
    const tableResource = new alicloud.ots.Table("tableResource", {
        instanceName: "string",
        maxVersion: 0,
        primaryKeys: [{
            name: "string",
            type: "string",
        }],
        tableName: "string",
        timeToLive: 0,
        definedColumns: [{
            name: "string",
            type: "string",
        }],
        deviationCellVersionInSec: "string",
        enableSse: false,
        sseKeyType: "string",
    });
    
    type: alicloud:ots:Table
    properties:
        definedColumns:
            - name: string
              type: string
        deviationCellVersionInSec: string
        enableSse: false
        instanceName: string
        maxVersion: 0
        primaryKeys:
            - name: string
              type: string
        sseKeyType: string
        tableName: string
        timeToLive: 0
    

    Table Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Table resource accepts the following input properties:

    InstanceName string
    The name of the OTS instance in which table will located.
    MaxVersion int
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    PrimaryKeys List<Pulumi.AliCloud.Ots.Inputs.TablePrimaryKey>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    TableName string
    The table name of the OTS instance. If changed, a new table would be created.
    TimeToLive int
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    DefinedColumns List<Pulumi.AliCloud.Ots.Inputs.TableDefinedColumn>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    DeviationCellVersionInSec string
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    EnableSse bool
    Whether enable OTS server side encryption. Default value is false.
    SseKeyType string
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    InstanceName string
    The name of the OTS instance in which table will located.
    MaxVersion int
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    PrimaryKeys []TablePrimaryKeyArgs
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    TableName string
    The table name of the OTS instance. If changed, a new table would be created.
    TimeToLive int
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    DefinedColumns []TableDefinedColumnArgs
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    DeviationCellVersionInSec string
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    EnableSse bool
    Whether enable OTS server side encryption. Default value is false.
    SseKeyType string
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    instanceName String
    The name of the OTS instance in which table will located.
    maxVersion Integer
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    primaryKeys List<TablePrimaryKey>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    tableName String
    The table name of the OTS instance. If changed, a new table would be created.
    timeToLive Integer
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    definedColumns List<TableDefinedColumn>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviationCellVersionInSec String
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enableSse Boolean
    Whether enable OTS server side encryption. Default value is false.
    sseKeyType String
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    instanceName string
    The name of the OTS instance in which table will located.
    maxVersion number
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    primaryKeys TablePrimaryKey[]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    tableName string
    The table name of the OTS instance. If changed, a new table would be created.
    timeToLive number
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    definedColumns TableDefinedColumn[]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviationCellVersionInSec string
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enableSse boolean
    Whether enable OTS server side encryption. Default value is false.
    sseKeyType string
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    instance_name str
    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 Sequence[TablePrimaryKeyArgs]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    table_name str
    The table name of the OTS instance. If changed, a new table would be created.
    time_to_live int
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    defined_columns Sequence[TableDefinedColumnArgs]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviation_cell_version_in_sec str
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enable_sse bool
    Whether enable OTS server side encryption. Default value is false.
    sse_key_type str
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    instanceName String
    The name of the OTS instance in which table will located.
    maxVersion Number
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    primaryKeys List<Property Map>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    tableName String
    The table name of the OTS instance. If changed, a new table would be created.
    timeToLive Number
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    definedColumns List<Property Map>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviationCellVersionInSec String
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enableSse Boolean
    Whether enable OTS server side encryption. Default value is false.
    sseKeyType String
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Table 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 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): Table
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            defined_columns: Optional[Sequence[TableDefinedColumnArgs]] = None,
            deviation_cell_version_in_sec: Optional[str] = None,
            enable_sse: Optional[bool] = None,
            instance_name: Optional[str] = None,
            max_version: Optional[int] = None,
            primary_keys: Optional[Sequence[TablePrimaryKeyArgs]] = None,
            sse_key_type: Optional[str] = None,
            table_name: Optional[str] = None,
            time_to_live: Optional[int] = None) -> Table
    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)
    public static Table get(String name, Output<String> id, TableState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DefinedColumns List<Pulumi.AliCloud.Ots.Inputs.TableDefinedColumn>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    DeviationCellVersionInSec string
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    EnableSse bool
    Whether enable OTS server side encryption. Default value is false.
    InstanceName string
    The name of the OTS instance in which table will located.
    MaxVersion int
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    PrimaryKeys List<Pulumi.AliCloud.Ots.Inputs.TablePrimaryKey>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    SseKeyType string
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    TableName string
    The table name of the OTS instance. If changed, a new table would be created.
    TimeToLive int
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    DefinedColumns []TableDefinedColumnArgs
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    DeviationCellVersionInSec string
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    EnableSse bool
    Whether enable OTS server side encryption. Default value is false.
    InstanceName string
    The name of the OTS instance in which table will located.
    MaxVersion int
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    PrimaryKeys []TablePrimaryKeyArgs
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    SseKeyType string
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    TableName string
    The table name of the OTS instance. If changed, a new table would be created.
    TimeToLive int
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    definedColumns List<TableDefinedColumn>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviationCellVersionInSec String
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enableSse Boolean
    Whether enable OTS server side encryption. Default value is false.
    instanceName String
    The name of the OTS instance in which table will located.
    maxVersion Integer
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    primaryKeys List<TablePrimaryKey>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    sseKeyType String
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    tableName String
    The table name of the OTS instance. If changed, a new table would be created.
    timeToLive Integer
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    definedColumns TableDefinedColumn[]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviationCellVersionInSec string
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enableSse boolean
    Whether enable OTS server side encryption. Default value is false.
    instanceName string
    The name of the OTS instance in which table will located.
    maxVersion number
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    primaryKeys TablePrimaryKey[]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    sseKeyType string
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    tableName string
    The table name of the OTS instance. If changed, a new table would be created.
    timeToLive number
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    defined_columns Sequence[TableDefinedColumnArgs]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviation_cell_version_in_sec str
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enable_sse bool
    Whether enable OTS server side encryption. Default value is false.
    instance_name str
    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 Sequence[TablePrimaryKeyArgs]
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    sse_key_type str
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    table_name str
    The table name of the OTS instance. If changed, a new table would be created.
    time_to_live int
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
    definedColumns List<Property Map>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of defined column. The number of defined_column should not be more than 32. See defined_column below.
    deviationCellVersionInSec String
    The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
    enableSse Boolean
    Whether enable OTS server side encryption. Default value is false.
    instanceName String
    The name of the OTS instance in which table will located.
    maxVersion Number
    The maximum number of versions stored in this table. The valid value is 1-2147483647.
    primaryKeys List<Property Map>
    The property of TableMeta which indicates the structure information of a table. It describes the attribute value of primary key. The number of primary_key should not be less than one and not be more than four. See primary_key below.
    sseKeyType String
    The key type of OTS server side encryption. Only SSE_KMS_SERVICE is allowed.
    tableName String
    The table name of the OTS instance. If changed, a new table would be created.
    timeToLive Number
    The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.

    Supporting Types

    TableDefinedColumn, TableDefinedColumnArgs

    Name string
    Name for defined column.
    Type string
    Type for defined column. Integer, String, Binary, Double, Boolean is allowed.
    Name string
    Name for defined column.
    Type string
    Type for defined column. Integer, String, Binary, Double, Boolean is allowed.
    name String
    Name for defined column.
    type String
    Type for defined column. Integer, String, Binary, Double, Boolean is allowed.
    name string
    Name for defined column.
    type string
    Type for defined column. Integer, String, Binary, Double, Boolean is allowed.
    name str
    Name for defined column.
    type str
    Type for defined column. Integer, String, Binary, Double, Boolean is allowed.
    name String
    Name for defined column.
    type String
    Type for defined column. Integer, String, Binary, Double, Boolean is allowed.

    TablePrimaryKey, TablePrimaryKeyArgs

    Name string
    Name for primary key.
    Type string
    Type for primary key. Only Integer, String or Binary is allowed.
    Name string
    Name for primary key.
    Type string
    Type for primary key. Only Integer, String or Binary is allowed.
    name String
    Name for primary key.
    type String
    Type for primary key. Only Integer, String or Binary is allowed.
    name string
    Name for primary key.
    type string
    Type for primary key. Only Integer, String or Binary is allowed.
    name str
    Name for primary key.
    type str
    Type for primary key. Only Integer, String or Binary is allowed.
    name String
    Name for primary key.
    type String
    Type for primary key. Only Integer, String or Binary is allowed.

    Import

    OTS table can be imported using id, e.g.

    $ pulumi import alicloud:ots/table:Table table my-ots:ots_table
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi