1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ots
  5. Tunnel
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.ots.Tunnel

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides an OTS tunnel resource.

    For information about OTS tunnel and how to use it, see Tunnel overview.

    NOTE: Available since v1.172.0.

    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 _default = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const defaultInstance = new alicloud.ots.Instance("default", {
        name: `${name}-${_default.result}`,
        description: name,
        accessedBy: "Any",
        tags: {
            Created: "TF",
            For: "example",
        },
    });
    const defaultTable = new alicloud.ots.Table("default", {
        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",
            },
        ],
    });
    const defaultTunnel = new alicloud.ots.Tunnel("default", {
        instanceName: defaultInstance.name,
        tableName: defaultTable.tableName,
        tunnelName: "tf_example",
        tunnelType: "BaseAndStream",
    });
    
    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.index.Integer("default",
        min=10000,
        max=99999)
    default_instance = alicloud.ots.Instance("default",
        name=f"{name}-{default['result']}",
        description=name,
        accessed_by="Any",
        tags={
            "Created": "TF",
            "For": "example",
        })
    default_table = alicloud.ots.Table("default",
        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=[
            {
                "name": "pk1",
                "type": "Integer",
            },
            {
                "name": "pk2",
                "type": "String",
            },
            {
                "name": "pk3",
                "type": "Binary",
            },
        ])
    default_tunnel = alicloud.ots.Tunnel("default",
        instance_name=default_instance.name,
        table_name=default_table.table_name,
        tunnel_name="tf_example",
        tunnel_type="BaseAndStream")
    
    package main
    
    import (
    	"fmt"
    
    	"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.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := ots.NewInstance(ctx, "default", &ots.InstanceArgs{
    			Name:        pulumi.Sprintf("%v-%v", name, _default.Result),
    			Description: pulumi.String(name),
    			AccessedBy:  pulumi.String("Any"),
    			Tags: pulumi.StringMap{
    				"Created": pulumi.String("TF"),
    				"For":     pulumi.String("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultTable, err := ots.NewTable(ctx, "default", &ots.TableArgs{
    			InstanceName: defaultInstance.Name,
    			TableName:    pulumi.String("tf_example"),
    			TimeToLive:   pulumi.Int(-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"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ots.NewTunnel(ctx, "default", &ots.TunnelArgs{
    			InstanceName: defaultInstance.Name,
    			TableName:    defaultTable.TableName,
    			TunnelName:   pulumi.String("tf_example"),
    			TunnelType:   pulumi.String("BaseAndStream"),
    		})
    		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 @default = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultInstance = new AliCloud.Ots.Instance("default", new()
        {
            Name = $"{name}-{@default.Result}",
            Description = name,
            AccessedBy = "Any",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
        });
    
        var defaultTable = new AliCloud.Ots.Table("default", 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",
                },
            },
        });
    
        var defaultTunnel = new AliCloud.Ots.Tunnel("default", new()
        {
            InstanceName = defaultInstance.Name,
            TableName = defaultTable.TableName,
            TunnelName = "tf_example",
            TunnelType = "BaseAndStream",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.integer;
    import com.pulumi.random.IntegerArgs;
    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.Tunnel;
    import com.pulumi.alicloud.ots.TunnelArgs;
    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 default_ = new Integer("default", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
                .name(String.format("%s-%s", name,default_.result()))
                .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(-1)
                .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())
                .build());
    
            var defaultTunnel = new Tunnel("defaultTunnel", TunnelArgs.builder()
                .instanceName(defaultInstance.name())
                .tableName(defaultTable.tableName())
                .tunnelName("tf_example")
                .tunnelType("BaseAndStream")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      default:
        type: random:integer
        properties:
          min: 10000
          max: 99999
      defaultInstance:
        type: alicloud:ots:Instance
        name: default
        properties:
          name: ${name}-${default.result}
          description: ${name}
          accessedBy: Any
          tags:
            Created: TF
            For: example
      defaultTable:
        type: alicloud:ots:Table
        name: default
        properties:
          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
      defaultTunnel:
        type: alicloud:ots:Tunnel
        name: default
        properties:
          instanceName: ${defaultInstance.name}
          tableName: ${defaultTable.tableName}
          tunnelName: tf_example
          tunnelType: BaseAndStream
    

    Create Tunnel Resource

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

    Constructor syntax

    new Tunnel(name: string, args: TunnelArgs, opts?: CustomResourceOptions);
    @overload
    def Tunnel(resource_name: str,
               args: TunnelArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Tunnel(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               instance_name: Optional[str] = None,
               table_name: Optional[str] = None,
               tunnel_name: Optional[str] = None,
               tunnel_type: Optional[str] = None)
    func NewTunnel(ctx *Context, name string, args TunnelArgs, opts ...ResourceOption) (*Tunnel, error)
    public Tunnel(string name, TunnelArgs args, CustomResourceOptions? opts = null)
    public Tunnel(String name, TunnelArgs args)
    public Tunnel(String name, TunnelArgs args, CustomResourceOptions options)
    
    type: alicloud:ots:Tunnel
    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 TunnelArgs
    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 TunnelArgs
    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 TunnelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TunnelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TunnelArgs
    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 tunnelResource = new AliCloud.Ots.Tunnel("tunnelResource", new()
    {
        InstanceName = "string",
        TableName = "string",
        TunnelName = "string",
        TunnelType = "string",
    });
    
    example, err := ots.NewTunnel(ctx, "tunnelResource", &ots.TunnelArgs{
    	InstanceName: pulumi.String("string"),
    	TableName:    pulumi.String("string"),
    	TunnelName:   pulumi.String("string"),
    	TunnelType:   pulumi.String("string"),
    })
    
    var tunnelResource = new Tunnel("tunnelResource", TunnelArgs.builder()
        .instanceName("string")
        .tableName("string")
        .tunnelName("string")
        .tunnelType("string")
        .build());
    
    tunnel_resource = alicloud.ots.Tunnel("tunnelResource",
        instance_name="string",
        table_name="string",
        tunnel_name="string",
        tunnel_type="string")
    
    const tunnelResource = new alicloud.ots.Tunnel("tunnelResource", {
        instanceName: "string",
        tableName: "string",
        tunnelName: "string",
        tunnelType: "string",
    });
    
    type: alicloud:ots:Tunnel
    properties:
        instanceName: string
        tableName: string
        tunnelName: string
        tunnelType: string
    

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

    InstanceName string
    The name of the OTS instance in which table will located.
    TableName string
    The name of the OTS table. If changed, a new table would be created.
    TunnelName string
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    TunnelType string
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    InstanceName string
    The name of the OTS instance in which table will located.
    TableName string
    The name of the OTS table. If changed, a new table would be created.
    TunnelName string
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    TunnelType string
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    instanceName String
    The name of the OTS instance in which table will located.
    tableName String
    The name of the OTS table. If changed, a new table would be created.
    tunnelName String
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnelType String
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    instanceName string
    The name of the OTS instance in which table will located.
    tableName string
    The name of the OTS table. If changed, a new table would be created.
    tunnelName string
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnelType string
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    instance_name str
    The name of the OTS instance in which table will located.
    table_name str
    The name of the OTS table. If changed, a new table would be created.
    tunnel_name str
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnel_type str
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    instanceName String
    The name of the OTS instance in which table will located.
    tableName String
    The name of the OTS table. If changed, a new table would be created.
    tunnelName String
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnelType String
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.

    Outputs

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

    Channels List<Pulumi.AliCloud.Ots.Outputs.TunnelChannel>
    The channels of OTS tunnel. Each element contains the following attributes:
    CreateTime int
    The creation time of the Tunnel.
    Expired bool
    Whether the tunnel has expired.
    Id string
    The provider-assigned unique ID for this managed resource.
    TunnelId string
    The tunnel id of the OTS which could not be changed.
    TunnelRpo int
    The latest consumption time of the tunnel, unix time in nanosecond.
    TunnelStage string
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    Channels []TunnelChannel
    The channels of OTS tunnel. Each element contains the following attributes:
    CreateTime int
    The creation time of the Tunnel.
    Expired bool
    Whether the tunnel has expired.
    Id string
    The provider-assigned unique ID for this managed resource.
    TunnelId string
    The tunnel id of the OTS which could not be changed.
    TunnelRpo int
    The latest consumption time of the tunnel, unix time in nanosecond.
    TunnelStage string
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    channels List<TunnelChannel>
    The channels of OTS tunnel. Each element contains the following attributes:
    createTime Integer
    The creation time of the Tunnel.
    expired Boolean
    Whether the tunnel has expired.
    id String
    The provider-assigned unique ID for this managed resource.
    tunnelId String
    The tunnel id of the OTS which could not be changed.
    tunnelRpo Integer
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnelStage String
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    channels TunnelChannel[]
    The channels of OTS tunnel. Each element contains the following attributes:
    createTime number
    The creation time of the Tunnel.
    expired boolean
    Whether the tunnel has expired.
    id string
    The provider-assigned unique ID for this managed resource.
    tunnelId string
    The tunnel id of the OTS which could not be changed.
    tunnelRpo number
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnelStage string
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    channels Sequence[TunnelChannel]
    The channels of OTS tunnel. Each element contains the following attributes:
    create_time int
    The creation time of the Tunnel.
    expired bool
    Whether the tunnel has expired.
    id str
    The provider-assigned unique ID for this managed resource.
    tunnel_id str
    The tunnel id of the OTS which could not be changed.
    tunnel_rpo int
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnel_stage str
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    channels List<Property Map>
    The channels of OTS tunnel. Each element contains the following attributes:
    createTime Number
    The creation time of the Tunnel.
    expired Boolean
    Whether the tunnel has expired.
    id String
    The provider-assigned unique ID for this managed resource.
    tunnelId String
    The tunnel id of the OTS which could not be changed.
    tunnelRpo Number
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnelStage String
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.

    Look up Existing Tunnel Resource

    Get an existing Tunnel 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?: TunnelState, opts?: CustomResourceOptions): Tunnel
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channels: Optional[Sequence[TunnelChannelArgs]] = None,
            create_time: Optional[int] = None,
            expired: Optional[bool] = None,
            instance_name: Optional[str] = None,
            table_name: Optional[str] = None,
            tunnel_id: Optional[str] = None,
            tunnel_name: Optional[str] = None,
            tunnel_rpo: Optional[int] = None,
            tunnel_stage: Optional[str] = None,
            tunnel_type: Optional[str] = None) -> Tunnel
    func GetTunnel(ctx *Context, name string, id IDInput, state *TunnelState, opts ...ResourceOption) (*Tunnel, error)
    public static Tunnel Get(string name, Input<string> id, TunnelState? state, CustomResourceOptions? opts = null)
    public static Tunnel get(String name, Output<String> id, TunnelState 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:
    Channels List<Pulumi.AliCloud.Ots.Inputs.TunnelChannel>
    The channels of OTS tunnel. Each element contains the following attributes:
    CreateTime int
    The creation time of the Tunnel.
    Expired bool
    Whether the tunnel has expired.
    InstanceName string
    The name of the OTS instance in which table will located.
    TableName string
    The name of the OTS table. If changed, a new table would be created.
    TunnelId string
    The tunnel id of the OTS which could not be changed.
    TunnelName string
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    TunnelRpo int
    The latest consumption time of the tunnel, unix time in nanosecond.
    TunnelStage string
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    TunnelType string
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    Channels []TunnelChannelArgs
    The channels of OTS tunnel. Each element contains the following attributes:
    CreateTime int
    The creation time of the Tunnel.
    Expired bool
    Whether the tunnel has expired.
    InstanceName string
    The name of the OTS instance in which table will located.
    TableName string
    The name of the OTS table. If changed, a new table would be created.
    TunnelId string
    The tunnel id of the OTS which could not be changed.
    TunnelName string
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    TunnelRpo int
    The latest consumption time of the tunnel, unix time in nanosecond.
    TunnelStage string
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    TunnelType string
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    channels List<TunnelChannel>
    The channels of OTS tunnel. Each element contains the following attributes:
    createTime Integer
    The creation time of the Tunnel.
    expired Boolean
    Whether the tunnel has expired.
    instanceName String
    The name of the OTS instance in which table will located.
    tableName String
    The name of the OTS table. If changed, a new table would be created.
    tunnelId String
    The tunnel id of the OTS which could not be changed.
    tunnelName String
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnelRpo Integer
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnelStage String
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    tunnelType String
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    channels TunnelChannel[]
    The channels of OTS tunnel. Each element contains the following attributes:
    createTime number
    The creation time of the Tunnel.
    expired boolean
    Whether the tunnel has expired.
    instanceName string
    The name of the OTS instance in which table will located.
    tableName string
    The name of the OTS table. If changed, a new table would be created.
    tunnelId string
    The tunnel id of the OTS which could not be changed.
    tunnelName string
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnelRpo number
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnelStage string
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    tunnelType string
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    channels Sequence[TunnelChannelArgs]
    The channels of OTS tunnel. Each element contains the following attributes:
    create_time int
    The creation time of the Tunnel.
    expired bool
    Whether the tunnel has expired.
    instance_name str
    The name of the OTS instance in which table will located.
    table_name str
    The name of the OTS table. If changed, a new table would be created.
    tunnel_id str
    The tunnel id of the OTS which could not be changed.
    tunnel_name str
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnel_rpo int
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnel_stage str
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    tunnel_type str
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.
    channels List<Property Map>
    The channels of OTS tunnel. Each element contains the following attributes:
    createTime Number
    The creation time of the Tunnel.
    expired Boolean
    Whether the tunnel has expired.
    instanceName String
    The name of the OTS instance in which table will located.
    tableName String
    The name of the OTS table. If changed, a new table would be created.
    tunnelId String
    The tunnel id of the OTS which could not be changed.
    tunnelName String
    The name of the OTS tunnel. If changed, a new tunnel would be created.
    tunnelRpo Number
    The latest consumption time of the tunnel, unix time in nanosecond.
    tunnelStage String
    The stage of OTS tunnel, valid values: InitBaseDataAndStreamShard, ProcessBaseData, ProcessStream.
    tunnelType String
    The type of the OTS tunnel. Only BaseAndStream, BaseData or Stream is allowed.

    Supporting Types

    TunnelChannel, TunnelChannelArgs

    ChannelId string
    The id of the channel.
    ChannelRpo int
    The latest consumption time of the channel, unix time in nanosecond.
    ChannelStatus string
    The status of the channel, valid values: WAIT, OPEN, CLOSING, CLOSE, TERMINATED.
    ChannelType string
    The type of the channel, valid values: BaseData, Stream.
    ClientId string
    The client id of the channel.
    ChannelId string
    The id of the channel.
    ChannelRpo int
    The latest consumption time of the channel, unix time in nanosecond.
    ChannelStatus string
    The status of the channel, valid values: WAIT, OPEN, CLOSING, CLOSE, TERMINATED.
    ChannelType string
    The type of the channel, valid values: BaseData, Stream.
    ClientId string
    The client id of the channel.
    channelId String
    The id of the channel.
    channelRpo Integer
    The latest consumption time of the channel, unix time in nanosecond.
    channelStatus String
    The status of the channel, valid values: WAIT, OPEN, CLOSING, CLOSE, TERMINATED.
    channelType String
    The type of the channel, valid values: BaseData, Stream.
    clientId String
    The client id of the channel.
    channelId string
    The id of the channel.
    channelRpo number
    The latest consumption time of the channel, unix time in nanosecond.
    channelStatus string
    The status of the channel, valid values: WAIT, OPEN, CLOSING, CLOSE, TERMINATED.
    channelType string
    The type of the channel, valid values: BaseData, Stream.
    clientId string
    The client id of the channel.
    channel_id str
    The id of the channel.
    channel_rpo int
    The latest consumption time of the channel, unix time in nanosecond.
    channel_status str
    The status of the channel, valid values: WAIT, OPEN, CLOSING, CLOSE, TERMINATED.
    channel_type str
    The type of the channel, valid values: BaseData, Stream.
    client_id str
    The client id of the channel.
    channelId String
    The id of the channel.
    channelRpo Number
    The latest consumption time of the channel, unix time in nanosecond.
    channelStatus String
    The status of the channel, valid values: WAIT, OPEN, CLOSING, CLOSE, TERMINATED.
    channelType String
    The type of the channel, valid values: BaseData, Stream.
    clientId String
    The client id of the channel.

    Import

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

    $ pulumi import alicloud:ots/tunnel:Tunnel foo <instance_name>:<table_name>:<tunnel_name>
    

    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.66.0 published on Friday, Nov 15, 2024 by Pulumi