alicloud.ots.Tunnel
Explore with Pulumi AI
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:
- Instance
Name string - The name of the OTS instance in which table will located.
- Table
Name string - The name of the OTS table. If changed, a new table would be created.
- Tunnel
Name string - The name of the OTS tunnel. If changed, a new tunnel would be created.
- Tunnel
Type string - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
- Instance
Name string - The name of the OTS instance in which table will located.
- Table
Name string - The name of the OTS table. If changed, a new table would be created.
- Tunnel
Name string - The name of the OTS tunnel. If changed, a new tunnel would be created.
- Tunnel
Type string - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
- instance
Name String - The name of the OTS instance in which table will located.
- table
Name String - The name of the OTS table. If changed, a new table would be created.
- tunnel
Name String - The name of the OTS tunnel. If changed, a new tunnel would be created.
- tunnel
Type String - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
- instance
Name string - The name of the OTS instance in which table will located.
- table
Name string - The name of the OTS table. If changed, a new table would be created.
- tunnel
Name string - The name of the OTS tunnel. If changed, a new tunnel would be created.
- tunnel
Type string - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
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
orStream
is allowed.
- instance
Name String - The name of the OTS instance in which table will located.
- table
Name String - The name of the OTS table. If changed, a new table would be created.
- tunnel
Name String - The name of the OTS tunnel. If changed, a new tunnel would be created.
- tunnel
Type String - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
Outputs
All input properties are implicitly available as output properties. Additionally, the Tunnel resource produces the following output properties:
- Channels
List<Pulumi.
Ali Cloud. Ots. Outputs. Tunnel Channel> - 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 string
- The provider-assigned unique ID for this managed resource.
- Tunnel
Id string - 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 string - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
.
- Channels
[]Tunnel
Channel - 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 string
- The provider-assigned unique ID for this managed resource.
- Tunnel
Id string - 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 string - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
.
- channels
List<Tunnel
Channel> - The channels of OTS tunnel. Each element contains the following attributes:
- create
Time 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.
- tunnel
Id String - The tunnel id of the OTS which could not be changed.
- tunnel
Rpo Integer - The latest consumption time of the tunnel, unix time in nanosecond.
- tunnel
Stage String - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
.
- channels
Tunnel
Channel[] - The channels of OTS tunnel. Each element contains the following attributes:
- create
Time 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.
- tunnel
Id string - The tunnel id of the OTS which could not be changed.
- tunnel
Rpo number - The latest consumption time of the tunnel, unix time in nanosecond.
- tunnel
Stage string - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
.
- channels
Sequence[Tunnel
Channel] - 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:
- create
Time 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.
- tunnel
Id String - The tunnel id of the OTS which could not be changed.
- tunnel
Rpo Number - The latest consumption time of the tunnel, unix time in nanosecond.
- tunnel
Stage 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.
- Channels
List<Pulumi.
Ali Cloud. Ots. Inputs. Tunnel Channel> - 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 string - The name of the OTS instance in which table will located.
- Table
Name string - The name of the OTS table. If changed, a new table would be created.
- Tunnel
Id string - The tunnel id of the OTS which could not be changed.
- Tunnel
Name string - 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 string - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
. - Tunnel
Type string - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
- Channels
[]Tunnel
Channel Args - 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 string - The name of the OTS instance in which table will located.
- Table
Name string - The name of the OTS table. If changed, a new table would be created.
- Tunnel
Id string - The tunnel id of the OTS which could not be changed.
- Tunnel
Name string - 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 string - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
. - Tunnel
Type string - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
- channels
List<Tunnel
Channel> - The channels of OTS tunnel. Each element contains the following attributes:
- create
Time Integer - The creation time of the Tunnel.
- expired Boolean
- Whether the tunnel has expired.
- instance
Name String - The name of the OTS instance in which table will located.
- table
Name String - The name of the OTS table. If changed, a new table would be created.
- tunnel
Id String - The tunnel id of the OTS which could not be changed.
- tunnel
Name String - The name of the OTS tunnel. If changed, a new tunnel would be created.
- tunnel
Rpo Integer - The latest consumption time of the tunnel, unix time in nanosecond.
- tunnel
Stage String - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
. - tunnel
Type String - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
- channels
Tunnel
Channel[] - The channels of OTS tunnel. Each element contains the following attributes:
- create
Time number - The creation time of the Tunnel.
- expired boolean
- Whether the tunnel has expired.
- instance
Name string - The name of the OTS instance in which table will located.
- table
Name string - The name of the OTS table. If changed, a new table would be created.
- tunnel
Id string - The tunnel id of the OTS which could not be changed.
- tunnel
Name string - The name of the OTS tunnel. If changed, a new tunnel would be created.
- tunnel
Rpo number - The latest consumption time of the tunnel, unix time in nanosecond.
- tunnel
Stage string - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
. - tunnel
Type string - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
- channels
Sequence[Tunnel
Channel Args] - 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
orStream
is allowed.
- channels List<Property Map>
- The channels of OTS tunnel. Each element contains the following attributes:
- create
Time Number - The creation time of the Tunnel.
- expired Boolean
- Whether the tunnel has expired.
- instance
Name String - The name of the OTS instance in which table will located.
- table
Name String - The name of the OTS table. If changed, a new table would be created.
- tunnel
Id String - The tunnel id of the OTS which could not be changed.
- tunnel
Name String - The name of the OTS tunnel. If changed, a new tunnel would be created.
- tunnel
Rpo Number - The latest consumption time of the tunnel, unix time in nanosecond.
- tunnel
Stage String - The stage of OTS tunnel, valid values:
InitBaseDataAndStreamShard
,ProcessBaseData
,ProcessStream
. - tunnel
Type String - The type of the OTS tunnel. Only
BaseAndStream
,BaseData
orStream
is allowed.
Supporting Types
TunnelChannel, TunnelChannelArgs
- Channel
Id string - The id of the channel.
- Channel
Rpo int - The latest consumption time of the channel, unix time in nanosecond.
- Channel
Status string - The status of the channel, valid values:
WAIT
,OPEN
,CLOSING
,CLOSE
,TERMINATED
. - Channel
Type string - The type of the channel, valid values:
BaseData
,Stream
. - Client
Id string - The client id of the channel.
- Channel
Id string - The id of the channel.
- Channel
Rpo int - The latest consumption time of the channel, unix time in nanosecond.
- Channel
Status string - The status of the channel, valid values:
WAIT
,OPEN
,CLOSING
,CLOSE
,TERMINATED
. - Channel
Type string - The type of the channel, valid values:
BaseData
,Stream
. - Client
Id string - The client id of the channel.
- channel
Id String - The id of the channel.
- channel
Rpo Integer - The latest consumption time of the channel, unix time in nanosecond.
- channel
Status String - The status of the channel, valid values:
WAIT
,OPEN
,CLOSING
,CLOSE
,TERMINATED
. - channel
Type String - The type of the channel, valid values:
BaseData
,Stream
. - client
Id String - The client id of the channel.
- channel
Id string - The id of the channel.
- channel
Rpo number - The latest consumption time of the channel, unix time in nanosecond.
- channel
Status string - The status of the channel, valid values:
WAIT
,OPEN
,CLOSING
,CLOSE
,TERMINATED
. - channel
Type string - The type of the channel, valid values:
BaseData
,Stream
. - client
Id 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.
- channel
Id String - The id of the channel.
- channel
Rpo Number - The latest consumption time of the channel, unix time in nanosecond.
- channel
Status String - The status of the channel, valid values:
WAIT
,OPEN
,CLOSING
,CLOSE
,TERMINATED
. - channel
Type String - The type of the channel, valid values:
BaseData
,Stream
. - client
Id 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.