ots

package
v3.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInstanceAttachmentsArgs

type GetInstanceAttachmentsArgs struct {
	// The name of OTS instance.
	InstanceName string `pulumi:"instanceName"`
	// A regex string to filter results by vpc name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getInstanceAttachments.

type GetInstanceAttachmentsAttachment

type GetInstanceAttachmentsAttachment struct {
	// The domain of the instance attachment.
	Domain string `pulumi:"domain"`
	// The access endpoint of the instance attachment.
	Endpoint string `pulumi:"endpoint"`
	// The resource ID, the value is same as "instanceName".
	Id string `pulumi:"id"`
	// The name of OTS instance.
	InstanceName string `pulumi:"instanceName"`
	// The region of the instance attachment.
	Region string `pulumi:"region"`
	// The ID of attaching VPC to instance.
	VpcId string `pulumi:"vpcId"`
	// The name of attaching VPC to instance.
	VpcName string `pulumi:"vpcName"`
}

type GetInstanceAttachmentsAttachmentArgs

type GetInstanceAttachmentsAttachmentArgs struct {
	// The domain of the instance attachment.
	Domain pulumi.StringInput `pulumi:"domain"`
	// The access endpoint of the instance attachment.
	Endpoint pulumi.StringInput `pulumi:"endpoint"`
	// The resource ID, the value is same as "instanceName".
	Id pulumi.StringInput `pulumi:"id"`
	// The name of OTS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The region of the instance attachment.
	Region pulumi.StringInput `pulumi:"region"`
	// The ID of attaching VPC to instance.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The name of attaching VPC to instance.
	VpcName pulumi.StringInput `pulumi:"vpcName"`
}

func (GetInstanceAttachmentsAttachmentArgs) ElementType

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput

func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext

func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput

type GetInstanceAttachmentsAttachmentArray

type GetInstanceAttachmentsAttachmentArray []GetInstanceAttachmentsAttachmentInput

func (GetInstanceAttachmentsAttachmentArray) ElementType

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput

func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext

func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput

type GetInstanceAttachmentsAttachmentArrayInput

type GetInstanceAttachmentsAttachmentArrayInput interface {
	pulumi.Input

	ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput
	ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(context.Context) GetInstanceAttachmentsAttachmentArrayOutput
}

GetInstanceAttachmentsAttachmentArrayInput is an input type that accepts GetInstanceAttachmentsAttachmentArray and GetInstanceAttachmentsAttachmentArrayOutput values. You can construct a concrete instance of `GetInstanceAttachmentsAttachmentArrayInput` via:

GetInstanceAttachmentsAttachmentArray{ GetInstanceAttachmentsAttachmentArgs{...} }

type GetInstanceAttachmentsAttachmentArrayOutput

type GetInstanceAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentArrayOutput) ElementType

func (GetInstanceAttachmentsAttachmentArrayOutput) Index

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput

func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext

func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput

type GetInstanceAttachmentsAttachmentInput

type GetInstanceAttachmentsAttachmentInput interface {
	pulumi.Input

	ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput
	ToGetInstanceAttachmentsAttachmentOutputWithContext(context.Context) GetInstanceAttachmentsAttachmentOutput
}

GetInstanceAttachmentsAttachmentInput is an input type that accepts GetInstanceAttachmentsAttachmentArgs and GetInstanceAttachmentsAttachmentOutput values. You can construct a concrete instance of `GetInstanceAttachmentsAttachmentInput` via:

GetInstanceAttachmentsAttachmentArgs{...}

type GetInstanceAttachmentsAttachmentOutput

type GetInstanceAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentOutput) Domain

The domain of the instance attachment.

func (GetInstanceAttachmentsAttachmentOutput) ElementType

func (GetInstanceAttachmentsAttachmentOutput) Endpoint

The access endpoint of the instance attachment.

func (GetInstanceAttachmentsAttachmentOutput) Id

The resource ID, the value is same as "instanceName".

func (GetInstanceAttachmentsAttachmentOutput) InstanceName

The name of OTS instance.

func (GetInstanceAttachmentsAttachmentOutput) Region

The region of the instance attachment.

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput

func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext

func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentOutput) VpcId

The ID of attaching VPC to instance.

func (GetInstanceAttachmentsAttachmentOutput) VpcName

The name of attaching VPC to instance.

type GetInstanceAttachmentsOutputArgs added in v3.9.0

type GetInstanceAttachmentsOutputArgs struct {
	// The name of OTS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// A regex string to filter results by vpc name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getInstanceAttachments.

func (GetInstanceAttachmentsOutputArgs) ElementType added in v3.9.0

type GetInstanceAttachmentsResult

type GetInstanceAttachmentsResult struct {
	// A list of instance attachments. Each element contains the following attributes:
	Attachments []GetInstanceAttachmentsAttachment `pulumi:"attachments"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The instance name.
	InstanceName string  `pulumi:"instanceName"`
	NameRegex    *string `pulumi:"nameRegex"`
	// A list of vpc names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of vpc ids.
	VpcIds []string `pulumi:"vpcIds"`
}

A collection of values returned by getInstanceAttachments.

func GetInstanceAttachments

func GetInstanceAttachments(ctx *pulumi.Context, args *GetInstanceAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetInstanceAttachmentsResult, error)

This data source provides the ots instance attachments of the current Alibaba Cloud user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		attachmentsDs, err := ots.GetInstanceAttachments(ctx, &ots.GetInstanceAttachmentsArgs{
			InstanceName: "sample-instance",
			NameRegex:    pulumi.StringRef("testvpc"),
			OutputFile:   pulumi.StringRef("attachments.txt"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstOtsAttachmentId", attachmentsDs.Attachments[0].Id)
		return nil
	})
}

```

type GetInstanceAttachmentsResultOutput added in v3.9.0

type GetInstanceAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstanceAttachments.

func GetInstanceAttachmentsOutput added in v3.9.0

func (GetInstanceAttachmentsResultOutput) Attachments added in v3.9.0

A list of instance attachments. Each element contains the following attributes:

func (GetInstanceAttachmentsResultOutput) ElementType added in v3.9.0

func (GetInstanceAttachmentsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstanceAttachmentsResultOutput) InstanceName added in v3.9.0

The instance name.

func (GetInstanceAttachmentsResultOutput) NameRegex added in v3.9.0

func (GetInstanceAttachmentsResultOutput) Names added in v3.9.0

A list of vpc names.

func (GetInstanceAttachmentsResultOutput) OutputFile added in v3.9.0

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput added in v3.9.0

func (o GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput() GetInstanceAttachmentsResultOutput

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutputWithContext added in v3.9.0

func (o GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutputWithContext(ctx context.Context) GetInstanceAttachmentsResultOutput

func (GetInstanceAttachmentsResultOutput) VpcIds added in v3.9.0

A list of vpc ids.

type GetInstancesArgs

type GetInstancesArgs struct {
	// A list of instance IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by instance name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// A map of tags assigned to the instance. It must be in the format:
	// “`go
	// package main
	//
	// import (
	// 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// )
	//
	// func main() {
	// 	pulumi.Run(func(ctx *pulumi.Context) error {
	// 		_, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{
	// 			Tags: map[string]interface{}{
	// 				"tagKey1": "tagValue1",
	// 				"tagKey2": "tagValue2",
	// 			},
	// 		}, nil)
	// 		if err != nil {
	// 			return err
	// 		}
	// 		return nil
	// 	})
	// }
	// “`
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstance

type GetInstancesInstance struct {
	// The cluster type of the instance. Possible values: `SSD`, `HYBRID`.
	ClusterType string `pulumi:"clusterType"`
	// The create time of the instance.
	CreateTime string `pulumi:"createTime"`
	// The description of the instance.
	Description string `pulumi:"description"`
	// The instance quota which indicating the maximum number of tables.
	EntityQuota int `pulumi:"entityQuota"`
	// ID of the instance.
	Id string `pulumi:"id"`
	// Instance name.
	Name string `pulumi:"name"`
	// The network type of the instance. Possible values: `NORMAL`, `VPC`, `VPC_CONSOLE`.
	Network string `pulumi:"network"`
	// The maximum adjustable read capacity unit of the instance.
	ReadCapacity int `pulumi:"readCapacity"`
	// Instance status. Possible values: `Running`, `Disabled`, `Deleting`.
	Status string `pulumi:"status"`
	// A map of tags assigned to the instance. It must be in the format:
	// “`go
	// package main
	//
	// import (
	// 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// )
	//
	// func main() {
	// 	pulumi.Run(func(ctx *pulumi.Context) error {
	// 		_, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{
	// 			Tags: map[string]interface{}{
	// 				"tagKey1": "tagValue1",
	// 				"tagKey2": "tagValue2",
	// 			},
	// 		}, nil)
	// 		if err != nil {
	// 			return err
	// 		}
	// 		return nil
	// 	})
	// }
	// “`
	Tags map[string]interface{} `pulumi:"tags"`
	// The user id of the instance.
	UserId string `pulumi:"userId"`
	// The maximum adjustable write capacity unit of the instance.
	WriteCapacity int `pulumi:"writeCapacity"`
}

type GetInstancesInstanceArgs

type GetInstancesInstanceArgs struct {
	// The cluster type of the instance. Possible values: `SSD`, `HYBRID`.
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// The create time of the instance.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The description of the instance.
	Description pulumi.StringInput `pulumi:"description"`
	// The instance quota which indicating the maximum number of tables.
	EntityQuota pulumi.IntInput `pulumi:"entityQuota"`
	// ID of the instance.
	Id pulumi.StringInput `pulumi:"id"`
	// Instance name.
	Name pulumi.StringInput `pulumi:"name"`
	// The network type of the instance. Possible values: `NORMAL`, `VPC`, `VPC_CONSOLE`.
	Network pulumi.StringInput `pulumi:"network"`
	// The maximum adjustable read capacity unit of the instance.
	ReadCapacity pulumi.IntInput `pulumi:"readCapacity"`
	// Instance status. Possible values: `Running`, `Disabled`, `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
	// A map of tags assigned to the instance. It must be in the format:
	// “`go
	// package main
	//
	// import (
	// 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// )
	//
	// func main() {
	// 	pulumi.Run(func(ctx *pulumi.Context) error {
	// 		_, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{
	// 			Tags: map[string]interface{}{
	// 				"tagKey1": "tagValue1",
	// 				"tagKey2": "tagValue2",
	// 			},
	// 		}, nil)
	// 		if err != nil {
	// 			return err
	// 		}
	// 		return nil
	// 	})
	// }
	// “`
	Tags pulumi.MapInput `pulumi:"tags"`
	// The user id of the instance.
	UserId pulumi.StringInput `pulumi:"userId"`
	// The maximum adjustable write capacity unit of the instance.
	WriteCapacity pulumi.IntInput `pulumi:"writeCapacity"`
}

func (GetInstancesInstanceArgs) ElementType

func (GetInstancesInstanceArgs) ElementType() reflect.Type

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesInstanceArray

type GetInstancesInstanceArray []GetInstancesInstanceInput

func (GetInstancesInstanceArray) ElementType

func (GetInstancesInstanceArray) ElementType() reflect.Type

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayInput

type GetInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
	ToGetInstancesInstanceArrayOutputWithContext(context.Context) GetInstancesInstanceArrayOutput
}

GetInstancesInstanceArrayInput is an input type that accepts GetInstancesInstanceArray and GetInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceArrayInput` via:

GetInstancesInstanceArray{ GetInstancesInstanceArgs{...} }

type GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceArrayOutput) ElementType

func (GetInstancesInstanceArrayOutput) Index

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceInput

type GetInstancesInstanceInput interface {
	pulumi.Input

	ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
	ToGetInstancesInstanceOutputWithContext(context.Context) GetInstancesInstanceOutput
}

GetInstancesInstanceInput is an input type that accepts GetInstancesInstanceArgs and GetInstancesInstanceOutput values. You can construct a concrete instance of `GetInstancesInstanceInput` via:

GetInstancesInstanceArgs{...}

type GetInstancesInstanceOutput

type GetInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceOutput) ClusterType

The cluster type of the instance. Possible values: `SSD`, `HYBRID`.

func (GetInstancesInstanceOutput) CreateTime

The create time of the instance.

func (GetInstancesInstanceOutput) Description

The description of the instance.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) EntityQuota

The instance quota which indicating the maximum number of tables.

func (GetInstancesInstanceOutput) Id

ID of the instance.

func (GetInstancesInstanceOutput) Name

Instance name.

func (GetInstancesInstanceOutput) Network

The network type of the instance. Possible values: `NORMAL`, `VPC`, `VPC_CONSOLE`.

func (GetInstancesInstanceOutput) ReadCapacity

func (o GetInstancesInstanceOutput) ReadCapacity() pulumi.IntOutput

The maximum adjustable read capacity unit of the instance.

func (GetInstancesInstanceOutput) Status

Instance status. Possible values: `Running`, `Disabled`, `Deleting`.

func (GetInstancesInstanceOutput) Tags

A map of tags assigned to the instance. It must be in the format: ```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{
			Tags: map[string]interface{}{
				"tagKey1": "tagValue1",
				"tagKey2": "tagValue2",
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) UserId

The user id of the instance.

func (GetInstancesInstanceOutput) WriteCapacity

func (o GetInstancesInstanceOutput) WriteCapacity() pulumi.IntOutput

The maximum adjustable write capacity unit of the instance.

type GetInstancesOutputArgs added in v3.9.0

type GetInstancesOutputArgs struct {
	// A list of instance IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by instance name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// A map of tags assigned to the instance. It must be in the format:
	// “`go
	// package main
	//
	// import (
	// 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// )
	//
	// func main() {
	// 	pulumi.Run(func(ctx *pulumi.Context) error {
	// 		_, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{
	// 			Tags: map[string]interface{}{
	// 				"tagKey1": "tagValue1",
	// 				"tagKey2": "tagValue2",
	// 			},
	// 		}, nil)
	// 		if err != nil {
	// 			return err
	// 		}
	// 		return nil
	// 	})
	// }
	// “`
	Tags pulumi.MapInput `pulumi:"tags"`
}

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType added in v3.9.0

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

type GetInstancesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of instance IDs.
	Ids []string `pulumi:"ids"`
	// A list of instances. Each element contains the following attributes:
	Instances []GetInstancesInstance `pulumi:"instances"`
	NameRegex *string                `pulumi:"nameRegex"`
	// A list of instance names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The tags of the instance.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getInstances.

func GetInstances

func GetInstances(ctx *pulumi.Context, args *GetInstancesArgs, opts ...pulumi.InvokeOption) (*GetInstancesResult, error)

This data source provides the ots instances of the current Alibaba Cloud user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		instancesDs, err := ots.GetInstances(ctx, &ots.GetInstancesArgs{
			NameRegex:  pulumi.StringRef("sample-instance"),
			OutputFile: pulumi.StringRef("instances.txt"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstInstanceId", instancesDs.Instances[0].Id)
		return nil
	})
}

```

type GetInstancesResultOutput added in v3.9.0

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func GetInstancesOutput added in v3.9.0

func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput

func (GetInstancesResultOutput) ElementType added in v3.9.0

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids added in v3.9.0

A list of instance IDs.

func (GetInstancesResultOutput) Instances added in v3.9.0

A list of instances. Each element contains the following attributes:

func (GetInstancesResultOutput) NameRegex added in v3.9.0

func (GetInstancesResultOutput) Names added in v3.9.0

A list of instance names.

func (GetInstancesResultOutput) OutputFile added in v3.9.0

func (GetInstancesResultOutput) Tags added in v3.9.0

The tags of the instance.

func (GetInstancesResultOutput) ToGetInstancesResultOutput added in v3.9.0

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext added in v3.9.0

func (o GetInstancesResultOutput) ToGetInstancesResultOutputWithContext(ctx context.Context) GetInstancesResultOutput

type GetServiceArgs

type GetServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	Enable *string `pulumi:"enable"`
}

A collection of arguments for invoking getService.

type GetServiceOutputArgs added in v3.9.0

type GetServiceOutputArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Default to "Off".
	Enable pulumi.StringPtrInput `pulumi:"enable"`
}

A collection of arguments for invoking getService.

func (GetServiceOutputArgs) ElementType added in v3.9.0

func (GetServiceOutputArgs) ElementType() reflect.Type

type GetServiceResult

type GetServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getService.

func GetService

func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)

Using this data source can enable Table Staore service automatically. If the service has been enabled, it will return `Opened`.

For information about Table Staore and how to use it, see [What is Table Staore](https://www.alibabacloud.com/help/product/27278.htm).

> **NOTE:** Available in v1.97.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ots.GetService(ctx, &ots.GetServiceArgs{
			Enable: pulumi.StringRef("On"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetServiceResultOutput added in v3.9.0

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func GetServiceOutput added in v3.9.0

func GetServiceOutput(ctx *pulumi.Context, args GetServiceOutputArgs, opts ...pulumi.InvokeOption) GetServiceResultOutput

func (GetServiceResultOutput) ElementType added in v3.9.0

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable added in v3.9.0

func (GetServiceResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status added in v3.9.0

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutputWithContext(ctx context.Context) GetServiceResultOutput

type GetTablesArgs

type GetTablesArgs struct {
	// A list of table IDs.
	Ids []string `pulumi:"ids"`
	// The name of OTS instance.
	InstanceName string `pulumi:"instanceName"`
	// A regex string to filter results by table name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getTables.

type GetTablesOutputArgs added in v3.9.0

type GetTablesOutputArgs struct {
	// A list of table IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The name of OTS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// A regex string to filter results by table name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getTables.

func (GetTablesOutputArgs) ElementType added in v3.9.0

func (GetTablesOutputArgs) ElementType() reflect.Type

type GetTablesResult

type GetTablesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of table IDs.
	Ids []string `pulumi:"ids"`
	// The OTS instance name.
	InstanceName string  `pulumi:"instanceName"`
	NameRegex    *string `pulumi:"nameRegex"`
	// A list of table names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of tables. Each element contains the following attributes:
	Tables []GetTablesTable `pulumi:"tables"`
}

A collection of values returned by getTables.

func GetTables

func GetTables(ctx *pulumi.Context, args *GetTablesArgs, opts ...pulumi.InvokeOption) (*GetTablesResult, error)

This data source provides the ots tables of the current Alibaba Cloud user.

> **NOTE:** Available in v1.40.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tablesDs, err := ots.GetTables(ctx, &ots.GetTablesArgs{
			InstanceName: "sample-instance",
			NameRegex:    pulumi.StringRef("sample-table"),
			OutputFile:   pulumi.StringRef("tables.txt"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTableId", tablesDs.Tables[0].Id)
		return nil
	})
}

```

type GetTablesResultOutput added in v3.9.0

type GetTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTables.

func GetTablesOutput added in v3.9.0

func GetTablesOutput(ctx *pulumi.Context, args GetTablesOutputArgs, opts ...pulumi.InvokeOption) GetTablesResultOutput

func (GetTablesResultOutput) ElementType added in v3.9.0

func (GetTablesResultOutput) ElementType() reflect.Type

func (GetTablesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetTablesResultOutput) Ids added in v3.9.0

A list of table IDs.

func (GetTablesResultOutput) InstanceName added in v3.9.0

func (o GetTablesResultOutput) InstanceName() pulumi.StringOutput

The OTS instance name.

func (GetTablesResultOutput) NameRegex added in v3.9.0

func (GetTablesResultOutput) Names added in v3.9.0

A list of table names.

func (GetTablesResultOutput) OutputFile added in v3.9.0

func (GetTablesResultOutput) Tables added in v3.9.0

A list of tables. Each element contains the following attributes:

func (GetTablesResultOutput) ToGetTablesResultOutput added in v3.9.0

func (o GetTablesResultOutput) ToGetTablesResultOutput() GetTablesResultOutput

func (GetTablesResultOutput) ToGetTablesResultOutputWithContext added in v3.9.0

func (o GetTablesResultOutput) ToGetTablesResultOutputWithContext(ctx context.Context) GetTablesResultOutput

type GetTablesTable

type GetTablesTable struct {
	// ID of the table. The value is `<instance_name>:<table_name>`.
	Id string `pulumi:"id"`
	// The name of OTS instance.
	InstanceName string `pulumi:"instanceName"`
	// The maximum number of versions stored in this table.
	MaxVersion int `pulumi:"maxVersion"`
	// The property of `TableMeta` which indicates the structure information of a table.
	PrimaryKeys []GetTablesTablePrimaryKey `pulumi:"primaryKeys"`
	// The table name of the OTS which could not be changed.
	TableName string `pulumi:"tableName"`
	// The retention time of data stored in this table.
	TimeToLive int `pulumi:"timeToLive"`
}

type GetTablesTableArgs

type GetTablesTableArgs struct {
	// ID of the table. The value is `<instance_name>:<table_name>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of OTS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The maximum number of versions stored in this table.
	MaxVersion pulumi.IntInput `pulumi:"maxVersion"`
	// The property of `TableMeta` which indicates the structure information of a table.
	PrimaryKeys GetTablesTablePrimaryKeyArrayInput `pulumi:"primaryKeys"`
	// The table name of the OTS which could not be changed.
	TableName pulumi.StringInput `pulumi:"tableName"`
	// The retention time of data stored in this table.
	TimeToLive pulumi.IntInput `pulumi:"timeToLive"`
}

func (GetTablesTableArgs) ElementType

func (GetTablesTableArgs) ElementType() reflect.Type

func (GetTablesTableArgs) ToGetTablesTableOutput

func (i GetTablesTableArgs) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableArgs) ToGetTablesTableOutputWithContext

func (i GetTablesTableArgs) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput

type GetTablesTableArray

type GetTablesTableArray []GetTablesTableInput

func (GetTablesTableArray) ElementType

func (GetTablesTableArray) ElementType() reflect.Type

func (GetTablesTableArray) ToGetTablesTableArrayOutput

func (i GetTablesTableArray) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArray) ToGetTablesTableArrayOutputWithContext

func (i GetTablesTableArray) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput

type GetTablesTableArrayInput

type GetTablesTableArrayInput interface {
	pulumi.Input

	ToGetTablesTableArrayOutput() GetTablesTableArrayOutput
	ToGetTablesTableArrayOutputWithContext(context.Context) GetTablesTableArrayOutput
}

GetTablesTableArrayInput is an input type that accepts GetTablesTableArray and GetTablesTableArrayOutput values. You can construct a concrete instance of `GetTablesTableArrayInput` via:

GetTablesTableArray{ GetTablesTableArgs{...} }

type GetTablesTableArrayOutput

type GetTablesTableArrayOutput struct{ *pulumi.OutputState }

func (GetTablesTableArrayOutput) ElementType

func (GetTablesTableArrayOutput) ElementType() reflect.Type

func (GetTablesTableArrayOutput) Index

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutput

func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext

func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput

type GetTablesTableInput

type GetTablesTableInput interface {
	pulumi.Input

	ToGetTablesTableOutput() GetTablesTableOutput
	ToGetTablesTableOutputWithContext(context.Context) GetTablesTableOutput
}

GetTablesTableInput is an input type that accepts GetTablesTableArgs and GetTablesTableOutput values. You can construct a concrete instance of `GetTablesTableInput` via:

GetTablesTableArgs{...}

type GetTablesTableOutput

type GetTablesTableOutput struct{ *pulumi.OutputState }

func (GetTablesTableOutput) ElementType

func (GetTablesTableOutput) ElementType() reflect.Type

func (GetTablesTableOutput) Id

ID of the table. The value is `<instance_name>:<table_name>`.

func (GetTablesTableOutput) InstanceName

func (o GetTablesTableOutput) InstanceName() pulumi.StringOutput

The name of OTS instance.

func (GetTablesTableOutput) MaxVersion

func (o GetTablesTableOutput) MaxVersion() pulumi.IntOutput

The maximum number of versions stored in this table.

func (GetTablesTableOutput) PrimaryKeys

The property of `TableMeta` which indicates the structure information of a table.

func (GetTablesTableOutput) TableName

The table name of the OTS which could not be changed.

func (GetTablesTableOutput) TimeToLive

func (o GetTablesTableOutput) TimeToLive() pulumi.IntOutput

The retention time of data stored in this table.

func (GetTablesTableOutput) ToGetTablesTableOutput

func (o GetTablesTableOutput) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableOutput) ToGetTablesTableOutputWithContext

func (o GetTablesTableOutput) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput

type GetTablesTablePrimaryKey

type GetTablesTablePrimaryKey struct {
	Name string `pulumi:"name"`
	Type string `pulumi:"type"`
}

type GetTablesTablePrimaryKeyArgs

type GetTablesTablePrimaryKeyArgs struct {
	Name pulumi.StringInput `pulumi:"name"`
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetTablesTablePrimaryKeyArgs) ElementType

func (GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutput

func (i GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput

func (GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutputWithContext

func (i GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyOutput

type GetTablesTablePrimaryKeyArray

type GetTablesTablePrimaryKeyArray []GetTablesTablePrimaryKeyInput

func (GetTablesTablePrimaryKeyArray) ElementType

func (GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutput

func (i GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput

func (GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutputWithContext

func (i GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyArrayOutput

type GetTablesTablePrimaryKeyArrayInput

type GetTablesTablePrimaryKeyArrayInput interface {
	pulumi.Input

	ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput
	ToGetTablesTablePrimaryKeyArrayOutputWithContext(context.Context) GetTablesTablePrimaryKeyArrayOutput
}

GetTablesTablePrimaryKeyArrayInput is an input type that accepts GetTablesTablePrimaryKeyArray and GetTablesTablePrimaryKeyArrayOutput values. You can construct a concrete instance of `GetTablesTablePrimaryKeyArrayInput` via:

GetTablesTablePrimaryKeyArray{ GetTablesTablePrimaryKeyArgs{...} }

type GetTablesTablePrimaryKeyArrayOutput

type GetTablesTablePrimaryKeyArrayOutput struct{ *pulumi.OutputState }

func (GetTablesTablePrimaryKeyArrayOutput) ElementType

func (GetTablesTablePrimaryKeyArrayOutput) Index

func (GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutput

func (o GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput

func (GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutputWithContext

func (o GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyArrayOutput

type GetTablesTablePrimaryKeyInput

type GetTablesTablePrimaryKeyInput interface {
	pulumi.Input

	ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput
	ToGetTablesTablePrimaryKeyOutputWithContext(context.Context) GetTablesTablePrimaryKeyOutput
}

GetTablesTablePrimaryKeyInput is an input type that accepts GetTablesTablePrimaryKeyArgs and GetTablesTablePrimaryKeyOutput values. You can construct a concrete instance of `GetTablesTablePrimaryKeyInput` via:

GetTablesTablePrimaryKeyArgs{...}

type GetTablesTablePrimaryKeyOutput

type GetTablesTablePrimaryKeyOutput struct{ *pulumi.OutputState }

func (GetTablesTablePrimaryKeyOutput) ElementType

func (GetTablesTablePrimaryKeyOutput) Name

func (GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutput

func (o GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput

func (GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutputWithContext

func (o GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyOutput

func (GetTablesTablePrimaryKeyOutput) Type

type GetTunnelsArgs added in v3.22.0

type GetTunnelsArgs struct {
	// A list of tunnel IDs.
	Ids []string `pulumi:"ids"`
	// The name of OTS instance.
	InstanceName string `pulumi:"instanceName"`
	// A regex string to filter results by tunnel name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The name of OTS table.
	TableName string `pulumi:"tableName"`
}

A collection of arguments for invoking getTunnels.

type GetTunnelsOutputArgs added in v3.22.0

type GetTunnelsOutputArgs struct {
	// A list of tunnel IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The name of OTS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// A regex string to filter results by tunnel name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The name of OTS table.
	TableName pulumi.StringInput `pulumi:"tableName"`
}

A collection of arguments for invoking getTunnels.

func (GetTunnelsOutputArgs) ElementType added in v3.22.0

func (GetTunnelsOutputArgs) ElementType() reflect.Type

type GetTunnelsResult added in v3.22.0

type GetTunnelsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of tunnel IDs.
	Ids []string `pulumi:"ids"`
	// The OTS instance name.
	InstanceName string  `pulumi:"instanceName"`
	NameRegex    *string `pulumi:"nameRegex"`
	// A list of tunnel names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The table name of the OTS which could not be changed.
	TableName string `pulumi:"tableName"`
	// A list of tunnels. Each element contains the following attributes:
	Tunnels []GetTunnelsTunnel `pulumi:"tunnels"`
}

A collection of values returned by getTunnels.

func GetTunnels added in v3.22.0

func GetTunnels(ctx *pulumi.Context, args *GetTunnelsArgs, opts ...pulumi.InvokeOption) (*GetTunnelsResult, error)

This data source provides the ots tunnels of the current Alibaba Cloud user.

For information about OTS tunnel and how to use it, see [Tunnel overview](https://www.alibabacloud.com/help/en/tablestore/latest/tunnel-service-overview).

> **NOTE:** Available in v1.172.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tunnelsDs, err := ots.GetTunnels(ctx, &ots.GetTunnelsArgs{
			InstanceName: "sample-instance",
			NameRegex:    pulumi.StringRef("sample-tunnel"),
			OutputFile:   pulumi.StringRef("tunnels.txt"),
			TableName:    "sample-table",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTunnelId", tunnelsDs.Tunnels[0].Id)
		return nil
	})
}

```

type GetTunnelsResultOutput added in v3.22.0

type GetTunnelsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTunnels.

func GetTunnelsOutput added in v3.22.0

func GetTunnelsOutput(ctx *pulumi.Context, args GetTunnelsOutputArgs, opts ...pulumi.InvokeOption) GetTunnelsResultOutput

func (GetTunnelsResultOutput) ElementType added in v3.22.0

func (GetTunnelsResultOutput) ElementType() reflect.Type

func (GetTunnelsResultOutput) Id added in v3.22.0

The provider-assigned unique ID for this managed resource.

func (GetTunnelsResultOutput) Ids added in v3.22.0

A list of tunnel IDs.

func (GetTunnelsResultOutput) InstanceName added in v3.22.0

func (o GetTunnelsResultOutput) InstanceName() pulumi.StringOutput

The OTS instance name.

func (GetTunnelsResultOutput) NameRegex added in v3.22.0

func (GetTunnelsResultOutput) Names added in v3.22.0

A list of tunnel names.

func (GetTunnelsResultOutput) OutputFile added in v3.22.0

func (GetTunnelsResultOutput) TableName added in v3.22.0

The table name of the OTS which could not be changed.

func (GetTunnelsResultOutput) ToGetTunnelsResultOutput added in v3.22.0

func (o GetTunnelsResultOutput) ToGetTunnelsResultOutput() GetTunnelsResultOutput

func (GetTunnelsResultOutput) ToGetTunnelsResultOutputWithContext added in v3.22.0

func (o GetTunnelsResultOutput) ToGetTunnelsResultOutputWithContext(ctx context.Context) GetTunnelsResultOutput

func (GetTunnelsResultOutput) Tunnels added in v3.22.0

A list of tunnels. Each element contains the following attributes:

type GetTunnelsTunnel added in v3.22.0

type GetTunnelsTunnel struct {
	// The channels of OTS tunnel. Each element contains the following attributes:
	Channels []GetTunnelsTunnelChannel `pulumi:"channels"`
	// The creation time of the Tunnel.
	CreateTime int `pulumi:"createTime"`
	// Whether the tunnel has expired.
	Expired bool `pulumi:"expired"`
	// The resource ID. The value is `<instance_name>:<table_name>:<tunnel_name>`.
	Id string `pulumi:"id"`
	// The name of OTS instance.
	InstanceName string `pulumi:"instanceName"`
	// The name of OTS table.
	TableName string `pulumi:"tableName"`
	// The tunnel id of the OTS which could not be changed.
	TunnelId string `pulumi:"tunnelId"`
	// The tunnel name of the OTS which could not be changed.
	TunnelName string `pulumi:"tunnelName"`
	// The latest consumption time of the tunnel, unix time in nanosecond.
	TunnelRpo int `pulumi:"tunnelRpo"`
	// The stage of OTS tunnel, valid values: `InitBaseDataAndStreamShard`, `ProcessBaseData`, `ProcessStream`.
	TunnelStage string `pulumi:"tunnelStage"`
	// The type of the OTS tunnel, valid values: `BaseAndStream`, `BaseData`, `Stream`.
	TunnelType string `pulumi:"tunnelType"`
}

type GetTunnelsTunnelArgs added in v3.22.0

type GetTunnelsTunnelArgs struct {
	// The channels of OTS tunnel. Each element contains the following attributes:
	Channels GetTunnelsTunnelChannelArrayInput `pulumi:"channels"`
	// The creation time of the Tunnel.
	CreateTime pulumi.IntInput `pulumi:"createTime"`
	// Whether the tunnel has expired.
	Expired pulumi.BoolInput `pulumi:"expired"`
	// The resource ID. The value is `<instance_name>:<table_name>:<tunnel_name>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of OTS instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The name of OTS table.
	TableName pulumi.StringInput `pulumi:"tableName"`
	// The tunnel id of the OTS which could not be changed.
	TunnelId pulumi.StringInput `pulumi:"tunnelId"`
	// The tunnel name of the OTS which could not be changed.
	TunnelName pulumi.StringInput `pulumi:"tunnelName"`
	// The latest consumption time of the tunnel, unix time in nanosecond.
	TunnelRpo pulumi.IntInput `pulumi:"tunnelRpo"`
	// The stage of OTS tunnel, valid values: `InitBaseDataAndStreamShard`, `ProcessBaseData`, `ProcessStream`.
	TunnelStage pulumi.StringInput `pulumi:"tunnelStage"`
	// The type of the OTS tunnel, valid values: `BaseAndStream`, `BaseData`, `Stream`.
	TunnelType pulumi.StringInput `pulumi:"tunnelType"`
}

func (GetTunnelsTunnelArgs) ElementType added in v3.22.0

func (GetTunnelsTunnelArgs) ElementType() reflect.Type

func (GetTunnelsTunnelArgs) ToGetTunnelsTunnelOutput added in v3.22.0

func (i GetTunnelsTunnelArgs) ToGetTunnelsTunnelOutput() GetTunnelsTunnelOutput

func (GetTunnelsTunnelArgs) ToGetTunnelsTunnelOutputWithContext added in v3.22.0

func (i GetTunnelsTunnelArgs) ToGetTunnelsTunnelOutputWithContext(ctx context.Context) GetTunnelsTunnelOutput

type GetTunnelsTunnelArray added in v3.22.0

type GetTunnelsTunnelArray []GetTunnelsTunnelInput

func (GetTunnelsTunnelArray) ElementType added in v3.22.0

func (GetTunnelsTunnelArray) ElementType() reflect.Type

func (GetTunnelsTunnelArray) ToGetTunnelsTunnelArrayOutput added in v3.22.0

func (i GetTunnelsTunnelArray) ToGetTunnelsTunnelArrayOutput() GetTunnelsTunnelArrayOutput

func (GetTunnelsTunnelArray) ToGetTunnelsTunnelArrayOutputWithContext added in v3.22.0

func (i GetTunnelsTunnelArray) ToGetTunnelsTunnelArrayOutputWithContext(ctx context.Context) GetTunnelsTunnelArrayOutput

type GetTunnelsTunnelArrayInput added in v3.22.0

type GetTunnelsTunnelArrayInput interface {
	pulumi.Input

	ToGetTunnelsTunnelArrayOutput() GetTunnelsTunnelArrayOutput
	ToGetTunnelsTunnelArrayOutputWithContext(context.Context) GetTunnelsTunnelArrayOutput
}

GetTunnelsTunnelArrayInput is an input type that accepts GetTunnelsTunnelArray and GetTunnelsTunnelArrayOutput values. You can construct a concrete instance of `GetTunnelsTunnelArrayInput` via:

GetTunnelsTunnelArray{ GetTunnelsTunnelArgs{...} }

type GetTunnelsTunnelArrayOutput added in v3.22.0

type GetTunnelsTunnelArrayOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelArrayOutput) ElementType added in v3.22.0

func (GetTunnelsTunnelArrayOutput) Index added in v3.22.0

func (GetTunnelsTunnelArrayOutput) ToGetTunnelsTunnelArrayOutput added in v3.22.0

func (o GetTunnelsTunnelArrayOutput) ToGetTunnelsTunnelArrayOutput() GetTunnelsTunnelArrayOutput

func (GetTunnelsTunnelArrayOutput) ToGetTunnelsTunnelArrayOutputWithContext added in v3.22.0

func (o GetTunnelsTunnelArrayOutput) ToGetTunnelsTunnelArrayOutputWithContext(ctx context.Context) GetTunnelsTunnelArrayOutput

type GetTunnelsTunnelChannel added in v3.22.0

type GetTunnelsTunnelChannel struct {
	// The id of the channel.
	ChannelId string `pulumi:"channelId"`
	// The latest consumption time of the channel, unix time in nanosecond
	ChannelRpo int `pulumi:"channelRpo"`
	// The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.
	ChannelStatus string `pulumi:"channelStatus"`
	// The type of the channel, valid values: `BaseData`, `Stream`.
	ChannelType string `pulumi:"channelType"`
	// The client id of the channel.
	ClientId string `pulumi:"clientId"`
}

type GetTunnelsTunnelChannelArgs added in v3.22.0

type GetTunnelsTunnelChannelArgs struct {
	// The id of the channel.
	ChannelId pulumi.StringInput `pulumi:"channelId"`
	// The latest consumption time of the channel, unix time in nanosecond
	ChannelRpo pulumi.IntInput `pulumi:"channelRpo"`
	// The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.
	ChannelStatus pulumi.StringInput `pulumi:"channelStatus"`
	// The type of the channel, valid values: `BaseData`, `Stream`.
	ChannelType pulumi.StringInput `pulumi:"channelType"`
	// The client id of the channel.
	ClientId pulumi.StringInput `pulumi:"clientId"`
}

func (GetTunnelsTunnelChannelArgs) ElementType added in v3.22.0

func (GetTunnelsTunnelChannelArgs) ToGetTunnelsTunnelChannelOutput added in v3.22.0

func (i GetTunnelsTunnelChannelArgs) ToGetTunnelsTunnelChannelOutput() GetTunnelsTunnelChannelOutput

func (GetTunnelsTunnelChannelArgs) ToGetTunnelsTunnelChannelOutputWithContext added in v3.22.0

func (i GetTunnelsTunnelChannelArgs) ToGetTunnelsTunnelChannelOutputWithContext(ctx context.Context) GetTunnelsTunnelChannelOutput

type GetTunnelsTunnelChannelArray added in v3.22.0

type GetTunnelsTunnelChannelArray []GetTunnelsTunnelChannelInput

func (GetTunnelsTunnelChannelArray) ElementType added in v3.22.0

func (GetTunnelsTunnelChannelArray) ToGetTunnelsTunnelChannelArrayOutput added in v3.22.0

func (i GetTunnelsTunnelChannelArray) ToGetTunnelsTunnelChannelArrayOutput() GetTunnelsTunnelChannelArrayOutput

func (GetTunnelsTunnelChannelArray) ToGetTunnelsTunnelChannelArrayOutputWithContext added in v3.22.0

func (i GetTunnelsTunnelChannelArray) ToGetTunnelsTunnelChannelArrayOutputWithContext(ctx context.Context) GetTunnelsTunnelChannelArrayOutput

type GetTunnelsTunnelChannelArrayInput added in v3.22.0

type GetTunnelsTunnelChannelArrayInput interface {
	pulumi.Input

	ToGetTunnelsTunnelChannelArrayOutput() GetTunnelsTunnelChannelArrayOutput
	ToGetTunnelsTunnelChannelArrayOutputWithContext(context.Context) GetTunnelsTunnelChannelArrayOutput
}

GetTunnelsTunnelChannelArrayInput is an input type that accepts GetTunnelsTunnelChannelArray and GetTunnelsTunnelChannelArrayOutput values. You can construct a concrete instance of `GetTunnelsTunnelChannelArrayInput` via:

GetTunnelsTunnelChannelArray{ GetTunnelsTunnelChannelArgs{...} }

type GetTunnelsTunnelChannelArrayOutput added in v3.22.0

type GetTunnelsTunnelChannelArrayOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelChannelArrayOutput) ElementType added in v3.22.0

func (GetTunnelsTunnelChannelArrayOutput) Index added in v3.22.0

func (GetTunnelsTunnelChannelArrayOutput) ToGetTunnelsTunnelChannelArrayOutput added in v3.22.0

func (o GetTunnelsTunnelChannelArrayOutput) ToGetTunnelsTunnelChannelArrayOutput() GetTunnelsTunnelChannelArrayOutput

func (GetTunnelsTunnelChannelArrayOutput) ToGetTunnelsTunnelChannelArrayOutputWithContext added in v3.22.0

func (o GetTunnelsTunnelChannelArrayOutput) ToGetTunnelsTunnelChannelArrayOutputWithContext(ctx context.Context) GetTunnelsTunnelChannelArrayOutput

type GetTunnelsTunnelChannelInput added in v3.22.0

type GetTunnelsTunnelChannelInput interface {
	pulumi.Input

	ToGetTunnelsTunnelChannelOutput() GetTunnelsTunnelChannelOutput
	ToGetTunnelsTunnelChannelOutputWithContext(context.Context) GetTunnelsTunnelChannelOutput
}

GetTunnelsTunnelChannelInput is an input type that accepts GetTunnelsTunnelChannelArgs and GetTunnelsTunnelChannelOutput values. You can construct a concrete instance of `GetTunnelsTunnelChannelInput` via:

GetTunnelsTunnelChannelArgs{...}

type GetTunnelsTunnelChannelOutput added in v3.22.0

type GetTunnelsTunnelChannelOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelChannelOutput) ChannelId added in v3.22.0

The id of the channel.

func (GetTunnelsTunnelChannelOutput) ChannelRpo added in v3.22.0

The latest consumption time of the channel, unix time in nanosecond

func (GetTunnelsTunnelChannelOutput) ChannelStatus added in v3.22.0

The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.

func (GetTunnelsTunnelChannelOutput) ChannelType added in v3.22.0

The type of the channel, valid values: `BaseData`, `Stream`.

func (GetTunnelsTunnelChannelOutput) ClientId added in v3.22.0

The client id of the channel.

func (GetTunnelsTunnelChannelOutput) ElementType added in v3.22.0

func (GetTunnelsTunnelChannelOutput) ToGetTunnelsTunnelChannelOutput added in v3.22.0

func (o GetTunnelsTunnelChannelOutput) ToGetTunnelsTunnelChannelOutput() GetTunnelsTunnelChannelOutput

func (GetTunnelsTunnelChannelOutput) ToGetTunnelsTunnelChannelOutputWithContext added in v3.22.0

func (o GetTunnelsTunnelChannelOutput) ToGetTunnelsTunnelChannelOutputWithContext(ctx context.Context) GetTunnelsTunnelChannelOutput

type GetTunnelsTunnelInput added in v3.22.0

type GetTunnelsTunnelInput interface {
	pulumi.Input

	ToGetTunnelsTunnelOutput() GetTunnelsTunnelOutput
	ToGetTunnelsTunnelOutputWithContext(context.Context) GetTunnelsTunnelOutput
}

GetTunnelsTunnelInput is an input type that accepts GetTunnelsTunnelArgs and GetTunnelsTunnelOutput values. You can construct a concrete instance of `GetTunnelsTunnelInput` via:

GetTunnelsTunnelArgs{...}

type GetTunnelsTunnelOutput added in v3.22.0

type GetTunnelsTunnelOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelOutput) Channels added in v3.22.0

The channels of OTS tunnel. Each element contains the following attributes:

func (GetTunnelsTunnelOutput) CreateTime added in v3.22.0

func (o GetTunnelsTunnelOutput) CreateTime() pulumi.IntOutput

The creation time of the Tunnel.

func (GetTunnelsTunnelOutput) ElementType added in v3.22.0

func (GetTunnelsTunnelOutput) ElementType() reflect.Type

func (GetTunnelsTunnelOutput) Expired added in v3.22.0

Whether the tunnel has expired.

func (GetTunnelsTunnelOutput) Id added in v3.22.0

The resource ID. The value is `<instance_name>:<table_name>:<tunnel_name>`.

func (GetTunnelsTunnelOutput) InstanceName added in v3.22.0

func (o GetTunnelsTunnelOutput) InstanceName() pulumi.StringOutput

The name of OTS instance.

func (GetTunnelsTunnelOutput) TableName added in v3.22.0

The name of OTS table.

func (GetTunnelsTunnelOutput) ToGetTunnelsTunnelOutput added in v3.22.0

func (o GetTunnelsTunnelOutput) ToGetTunnelsTunnelOutput() GetTunnelsTunnelOutput

func (GetTunnelsTunnelOutput) ToGetTunnelsTunnelOutputWithContext added in v3.22.0

func (o GetTunnelsTunnelOutput) ToGetTunnelsTunnelOutputWithContext(ctx context.Context) GetTunnelsTunnelOutput

func (GetTunnelsTunnelOutput) TunnelId added in v3.22.0

The tunnel id of the OTS which could not be changed.

func (GetTunnelsTunnelOutput) TunnelName added in v3.22.0

The tunnel name of the OTS which could not be changed.

func (GetTunnelsTunnelOutput) TunnelRpo added in v3.22.0

func (o GetTunnelsTunnelOutput) TunnelRpo() pulumi.IntOutput

The latest consumption time of the tunnel, unix time in nanosecond.

func (GetTunnelsTunnelOutput) TunnelStage added in v3.22.0

func (o GetTunnelsTunnelOutput) TunnelStage() pulumi.StringOutput

The stage of OTS tunnel, valid values: `InitBaseDataAndStreamShard`, `ProcessBaseData`, `ProcessStream`.

func (GetTunnelsTunnelOutput) TunnelType added in v3.22.0

The type of the OTS tunnel, valid values: `BaseAndStream`, `BaseData`, `Stream`.

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// The network limitation of accessing instance. Valid values:
	AccessedBy pulumi.StringPtrOutput `pulumi:"accessedBy"`
	// The description of the instance. Currently, it does not support modifying.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The type of instance. Valid values are "Capacity" and "HighPerformance". Default to "HighPerformance".
	InstanceType pulumi.StringPtrOutput `pulumi:"instanceType"`
	// The name of the instance.
	Name pulumi.StringOutput `pulumi:"name"`
	// A mapping of tags to assign to the instance.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

This resource will help you to manager a [Table Store](https://www.alibabacloud.com/help/doc-detail/27280.htm) Instance. It is foundation of creating data table.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ots.NewInstance(ctx, "foo", &ots.InstanceArgs{
			AccessedBy:  pulumi.String("Vpc"),
			Description: pulumi.String("for table"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("Building table"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

OTS instance can be imported using instance id or name, e.g.

```sh

$ pulumi import alicloud:ots/instance:Instance foo "my-ots-instance"

```

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

NewInstance registers a new resource with the given unique name, arguments, and options.

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceArgs

type InstanceArgs struct {
	// The network limitation of accessing instance. Valid values:
	AccessedBy pulumi.StringPtrInput
	// The description of the instance. Currently, it does not support modifying.
	Description pulumi.StringPtrInput
	// The type of instance. Valid values are "Capacity" and "HighPerformance". Default to "HighPerformance".
	InstanceType pulumi.StringPtrInput
	// The name of the instance.
	Name pulumi.StringPtrInput
	// A mapping of tags to assign to the instance.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceAttachment

type InstanceAttachment struct {
	pulumi.CustomResourceState

	// The name of the OTS instance.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The ID of attaching VPC to instance.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
	// The name of attaching VPC to instance.
	VpcName pulumi.StringOutput `pulumi:"vpcName"`
	// The ID of attaching VSwitch to instance.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
}

This resource will help you to bind a VPC to an OTS instance.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooInstance, err := ots.NewInstance(ctx, "fooInstance", &ots.InstanceArgs{
			Description: pulumi.String("for table"),
			AccessedBy:  pulumi.String("Vpc"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("Building table"),
			},
		})
		if err != nil {
			return err
		}
		fooZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		fooNetwork, err := vpc.NewNetwork(ctx, "fooNetwork", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSwitch, err := vpc.NewSwitch(ctx, "fooSwitch", &vpc.SwitchArgs{
			VpcId:       fooNetwork.ID(),
			VswitchName: pulumi.String("for-ots-instance"),
			CidrBlock:   pulumi.String("172.16.1.0/24"),
			ZoneId:      pulumi.String(fooZones.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		_, err = ots.NewInstanceAttachment(ctx, "fooInstanceAttachment", &ots.InstanceAttachmentArgs{
			InstanceName: fooInstance.Name,
			VpcName:      pulumi.String("attachment1"),
			VswitchId:    fooSwitch.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetInstanceAttachment

func GetInstanceAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceAttachmentState, opts ...pulumi.ResourceOption) (*InstanceAttachment, error)

GetInstanceAttachment gets an existing InstanceAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstanceAttachment

func NewInstanceAttachment(ctx *pulumi.Context,
	name string, args *InstanceAttachmentArgs, opts ...pulumi.ResourceOption) (*InstanceAttachment, error)

NewInstanceAttachment registers a new resource with the given unique name, arguments, and options.

func (*InstanceAttachment) ElementType

func (*InstanceAttachment) ElementType() reflect.Type

func (*InstanceAttachment) ToInstanceAttachmentOutput

func (i *InstanceAttachment) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (*InstanceAttachment) ToInstanceAttachmentOutputWithContext

func (i *InstanceAttachment) ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput

type InstanceAttachmentArgs

type InstanceAttachmentArgs struct {
	// The name of the OTS instance.
	InstanceName pulumi.StringInput
	// The name of attaching VPC to instance.
	VpcName pulumi.StringInput
	// The ID of attaching VSwitch to instance.
	VswitchId pulumi.StringInput
}

The set of arguments for constructing a InstanceAttachment resource.

func (InstanceAttachmentArgs) ElementType

func (InstanceAttachmentArgs) ElementType() reflect.Type

type InstanceAttachmentArray

type InstanceAttachmentArray []InstanceAttachmentInput

func (InstanceAttachmentArray) ElementType

func (InstanceAttachmentArray) ElementType() reflect.Type

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutput

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext(ctx context.Context) InstanceAttachmentArrayOutput

type InstanceAttachmentArrayInput

type InstanceAttachmentArrayInput interface {
	pulumi.Input

	ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput
	ToInstanceAttachmentArrayOutputWithContext(context.Context) InstanceAttachmentArrayOutput
}

InstanceAttachmentArrayInput is an input type that accepts InstanceAttachmentArray and InstanceAttachmentArrayOutput values. You can construct a concrete instance of `InstanceAttachmentArrayInput` via:

InstanceAttachmentArray{ InstanceAttachmentArgs{...} }

type InstanceAttachmentArrayOutput

type InstanceAttachmentArrayOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentArrayOutput) ElementType

func (InstanceAttachmentArrayOutput) Index

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext(ctx context.Context) InstanceAttachmentArrayOutput

type InstanceAttachmentInput

type InstanceAttachmentInput interface {
	pulumi.Input

	ToInstanceAttachmentOutput() InstanceAttachmentOutput
	ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput
}

type InstanceAttachmentMap

type InstanceAttachmentMap map[string]InstanceAttachmentInput

func (InstanceAttachmentMap) ElementType

func (InstanceAttachmentMap) ElementType() reflect.Type

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutput

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext(ctx context.Context) InstanceAttachmentMapOutput

type InstanceAttachmentMapInput

type InstanceAttachmentMapInput interface {
	pulumi.Input

	ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput
	ToInstanceAttachmentMapOutputWithContext(context.Context) InstanceAttachmentMapOutput
}

InstanceAttachmentMapInput is an input type that accepts InstanceAttachmentMap and InstanceAttachmentMapOutput values. You can construct a concrete instance of `InstanceAttachmentMapInput` via:

InstanceAttachmentMap{ "key": InstanceAttachmentArgs{...} }

type InstanceAttachmentMapOutput

type InstanceAttachmentMapOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentMapOutput) ElementType

func (InstanceAttachmentMapOutput) MapIndex

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext(ctx context.Context) InstanceAttachmentMapOutput

type InstanceAttachmentOutput

type InstanceAttachmentOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentOutput) ElementType

func (InstanceAttachmentOutput) ElementType() reflect.Type

func (InstanceAttachmentOutput) ToInstanceAttachmentOutput

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput

type InstanceAttachmentState

type InstanceAttachmentState struct {
	// The name of the OTS instance.
	InstanceName pulumi.StringPtrInput
	// The ID of attaching VPC to instance.
	VpcId pulumi.StringPtrInput
	// The name of attaching VPC to instance.
	VpcName pulumi.StringPtrInput
	// The ID of attaching VSwitch to instance.
	VswitchId pulumi.StringPtrInput
}

func (InstanceAttachmentState) ElementType

func (InstanceAttachmentState) ElementType() reflect.Type

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceState

type InstanceState struct {
	// The network limitation of accessing instance. Valid values:
	AccessedBy pulumi.StringPtrInput
	// The description of the instance. Currently, it does not support modifying.
	Description pulumi.StringPtrInput
	// The type of instance. Valid values are "Capacity" and "HighPerformance". Default to "HighPerformance".
	InstanceType pulumi.StringPtrInput
	// The name of the instance.
	Name pulumi.StringPtrInput
	// A mapping of tags to assign to the instance.
	Tags pulumi.MapInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type Table

type Table struct {
	pulumi.CustomResourceState

	// The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
	DeviationCellVersionInSec pulumi.StringPtrOutput `pulumi:"deviationCellVersionInSec"`
	// Whether enable OTS server side encryption. Default value is false.
	EnableSse pulumi.BoolPtrOutput `pulumi:"enableSse"`
	// The name of the OTS instance in which table will located.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The maximum number of versions stored in this table. The valid value is 1-2147483647.
	MaxVersion pulumi.IntOutput `pulumi:"maxVersion"`
	// The property of `TableMeta` which indicates the structure information of a table. It describes the attribute value of primary key. The number of `primaryKey` should not be less than one and not be more than four.
	PrimaryKeys TablePrimaryKeyArrayOutput `pulumi:"primaryKeys"`
	// The key type of OTS server side encryption. Only `SSE_KMS_SERVICE` is allowed.
	SseKeyType pulumi.StringPtrOutput `pulumi:"sseKeyType"`
	// The table name of the OTS instance. If changed, a new table would be created.
	TableName pulumi.StringOutput `pulumi:"tableName"`
	// The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
	TimeToLive pulumi.IntOutput `pulumi:"timeToLive"`
}

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.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"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 := "terraformtest"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		foo, err := ots.NewInstance(ctx, "foo", &ots.InstanceArgs{
			Description: pulumi.String(name),
			AccessedBy:  pulumi.String("Any"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("acceptance test"),
			},
		})
		if err != nil {
			return err
		}
		_, err = ots.NewTable(ctx, "basic", &ots.TableArgs{
			InstanceName: foo.Name,
			TableName:    pulumi.String(name),
			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"),
				},
			},
			TimeToLive:                -1,
			MaxVersion:                pulumi.Int(1),
			DeviationCellVersionInSec: pulumi.String("1"),
			EnableSse:                 pulumi.Bool(true),
			SseKeyType:                pulumi.String("SSE_KMS_SERVICE"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

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

```

func GetTable

func GetTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TableState, opts ...pulumi.ResourceOption) (*Table, error)

GetTable gets an existing Table resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTable

func NewTable(ctx *pulumi.Context,
	name string, args *TableArgs, opts ...pulumi.ResourceOption) (*Table, error)

NewTable registers a new resource with the given unique name, arguments, and options.

func (*Table) ElementType

func (*Table) ElementType() reflect.Type

func (*Table) ToTableOutput

func (i *Table) ToTableOutput() TableOutput

func (*Table) ToTableOutputWithContext

func (i *Table) ToTableOutputWithContext(ctx context.Context) TableOutput

type TableArgs

type TableArgs struct {
	// The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
	DeviationCellVersionInSec pulumi.StringPtrInput
	// Whether enable OTS server side encryption. Default value is false.
	EnableSse pulumi.BoolPtrInput
	// The name of the OTS instance in which table will located.
	InstanceName pulumi.StringInput
	// The maximum number of versions stored in this table. The valid value is 1-2147483647.
	MaxVersion pulumi.IntInput
	// The property of `TableMeta` which indicates the structure information of a table. It describes the attribute value of primary key. The number of `primaryKey` should not be less than one and not be more than four.
	PrimaryKeys TablePrimaryKeyArrayInput
	// The key type of OTS server side encryption. Only `SSE_KMS_SERVICE` is allowed.
	SseKeyType pulumi.StringPtrInput
	// The table name of the OTS instance. If changed, a new table would be created.
	TableName pulumi.StringInput
	// The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
	TimeToLive pulumi.IntInput
}

The set of arguments for constructing a Table resource.

func (TableArgs) ElementType

func (TableArgs) ElementType() reflect.Type

type TableArray

type TableArray []TableInput

func (TableArray) ElementType

func (TableArray) ElementType() reflect.Type

func (TableArray) ToTableArrayOutput

func (i TableArray) ToTableArrayOutput() TableArrayOutput

func (TableArray) ToTableArrayOutputWithContext

func (i TableArray) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableArrayInput

type TableArrayInput interface {
	pulumi.Input

	ToTableArrayOutput() TableArrayOutput
	ToTableArrayOutputWithContext(context.Context) TableArrayOutput
}

TableArrayInput is an input type that accepts TableArray and TableArrayOutput values. You can construct a concrete instance of `TableArrayInput` via:

TableArray{ TableArgs{...} }

type TableArrayOutput

type TableArrayOutput struct{ *pulumi.OutputState }

func (TableArrayOutput) ElementType

func (TableArrayOutput) ElementType() reflect.Type

func (TableArrayOutput) Index

func (TableArrayOutput) ToTableArrayOutput

func (o TableArrayOutput) ToTableArrayOutput() TableArrayOutput

func (TableArrayOutput) ToTableArrayOutputWithContext

func (o TableArrayOutput) ToTableArrayOutputWithContext(ctx context.Context) TableArrayOutput

type TableInput

type TableInput interface {
	pulumi.Input

	ToTableOutput() TableOutput
	ToTableOutputWithContext(ctx context.Context) TableOutput
}

type TableMap

type TableMap map[string]TableInput

func (TableMap) ElementType

func (TableMap) ElementType() reflect.Type

func (TableMap) ToTableMapOutput

func (i TableMap) ToTableMapOutput() TableMapOutput

func (TableMap) ToTableMapOutputWithContext

func (i TableMap) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableMapInput

type TableMapInput interface {
	pulumi.Input

	ToTableMapOutput() TableMapOutput
	ToTableMapOutputWithContext(context.Context) TableMapOutput
}

TableMapInput is an input type that accepts TableMap and TableMapOutput values. You can construct a concrete instance of `TableMapInput` via:

TableMap{ "key": TableArgs{...} }

type TableMapOutput

type TableMapOutput struct{ *pulumi.OutputState }

func (TableMapOutput) ElementType

func (TableMapOutput) ElementType() reflect.Type

func (TableMapOutput) MapIndex

func (TableMapOutput) ToTableMapOutput

func (o TableMapOutput) ToTableMapOutput() TableMapOutput

func (TableMapOutput) ToTableMapOutputWithContext

func (o TableMapOutput) ToTableMapOutputWithContext(ctx context.Context) TableMapOutput

type TableOutput

type TableOutput struct{ *pulumi.OutputState }

func (TableOutput) ElementType

func (TableOutput) ElementType() reflect.Type

func (TableOutput) ToTableOutput

func (o TableOutput) ToTableOutput() TableOutput

func (TableOutput) ToTableOutputWithContext

func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput

type TablePrimaryKey

type TablePrimaryKey struct {
	// Name for primary key.
	Name string `pulumi:"name"`
	// Type for primary key. Only `Integer`, `String` or `Binary` is allowed.
	Type string `pulumi:"type"`
}

type TablePrimaryKeyArgs

type TablePrimaryKeyArgs struct {
	// Name for primary key.
	Name pulumi.StringInput `pulumi:"name"`
	// Type for primary key. Only `Integer`, `String` or `Binary` is allowed.
	Type pulumi.StringInput `pulumi:"type"`
}

func (TablePrimaryKeyArgs) ElementType

func (TablePrimaryKeyArgs) ElementType() reflect.Type

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutput

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutputWithContext

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyOutputWithContext(ctx context.Context) TablePrimaryKeyOutput

type TablePrimaryKeyArray

type TablePrimaryKeyArray []TablePrimaryKeyInput

func (TablePrimaryKeyArray) ElementType

func (TablePrimaryKeyArray) ElementType() reflect.Type

func (TablePrimaryKeyArray) ToTablePrimaryKeyArrayOutput

func (i TablePrimaryKeyArray) ToTablePrimaryKeyArrayOutput() TablePrimaryKeyArrayOutput

func (TablePrimaryKeyArray) ToTablePrimaryKeyArrayOutputWithContext

func (i TablePrimaryKeyArray) ToTablePrimaryKeyArrayOutputWithContext(ctx context.Context) TablePrimaryKeyArrayOutput

type TablePrimaryKeyArrayInput

type TablePrimaryKeyArrayInput interface {
	pulumi.Input

	ToTablePrimaryKeyArrayOutput() TablePrimaryKeyArrayOutput
	ToTablePrimaryKeyArrayOutputWithContext(context.Context) TablePrimaryKeyArrayOutput
}

TablePrimaryKeyArrayInput is an input type that accepts TablePrimaryKeyArray and TablePrimaryKeyArrayOutput values. You can construct a concrete instance of `TablePrimaryKeyArrayInput` via:

TablePrimaryKeyArray{ TablePrimaryKeyArgs{...} }

type TablePrimaryKeyArrayOutput

type TablePrimaryKeyArrayOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyArrayOutput) ElementType

func (TablePrimaryKeyArrayOutput) ElementType() reflect.Type

func (TablePrimaryKeyArrayOutput) Index

func (TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutput

func (o TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutput() TablePrimaryKeyArrayOutput

func (TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutputWithContext

func (o TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutputWithContext(ctx context.Context) TablePrimaryKeyArrayOutput

type TablePrimaryKeyInput

type TablePrimaryKeyInput interface {
	pulumi.Input

	ToTablePrimaryKeyOutput() TablePrimaryKeyOutput
	ToTablePrimaryKeyOutputWithContext(context.Context) TablePrimaryKeyOutput
}

TablePrimaryKeyInput is an input type that accepts TablePrimaryKeyArgs and TablePrimaryKeyOutput values. You can construct a concrete instance of `TablePrimaryKeyInput` via:

TablePrimaryKeyArgs{...}

type TablePrimaryKeyOutput

type TablePrimaryKeyOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyOutput) ElementType

func (TablePrimaryKeyOutput) ElementType() reflect.Type

func (TablePrimaryKeyOutput) Name

Name for primary key.

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutput

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext(ctx context.Context) TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) Type

Type for primary key. Only `Integer`, `String` or `Binary` is allowed.

type TableState

type TableState struct {
	// The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
	DeviationCellVersionInSec pulumi.StringPtrInput
	// Whether enable OTS server side encryption. Default value is false.
	EnableSse pulumi.BoolPtrInput
	// The name of the OTS instance in which table will located.
	InstanceName pulumi.StringPtrInput
	// The maximum number of versions stored in this table. The valid value is 1-2147483647.
	MaxVersion pulumi.IntPtrInput
	// The property of `TableMeta` which indicates the structure information of a table. It describes the attribute value of primary key. The number of `primaryKey` should not be less than one and not be more than four.
	PrimaryKeys TablePrimaryKeyArrayInput
	// The key type of OTS server side encryption. Only `SSE_KMS_SERVICE` is allowed.
	SseKeyType pulumi.StringPtrInput
	// The table name of the OTS instance. If changed, a new table would be created.
	TableName pulumi.StringPtrInput
	// The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
	TimeToLive pulumi.IntPtrInput
}

func (TableState) ElementType

func (TableState) ElementType() reflect.Type

type Tunnel added in v3.22.0

type Tunnel struct {
	pulumi.CustomResourceState

	// The channels of OTS tunnel. Each element contains the following attributes:
	Channels TunnelChannelArrayOutput `pulumi:"channels"`
	// The creation time of the Tunnel.
	CreateTime pulumi.IntOutput `pulumi:"createTime"`
	// Whether the tunnel has expired.
	Expired pulumi.BoolOutput `pulumi:"expired"`
	// The name of the OTS instance in which table will located.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// The name of the OTS table. If changed, a new table would be created.
	TableName pulumi.StringOutput `pulumi:"tableName"`
	// The tunnel id of the OTS which could not be changed.
	TunnelId pulumi.StringOutput `pulumi:"tunnelId"`
	// The name of the OTS tunnel. If changed, a new tunnel would be created.
	TunnelName pulumi.StringOutput `pulumi:"tunnelName"`
	// The latest consumption time of the tunnel, unix time in nanosecond.
	TunnelRpo pulumi.IntOutput `pulumi:"tunnelRpo"`
	// The stage of OTS tunnel, valid values: `InitBaseDataAndStreamShard`, `ProcessBaseData`, `ProcessStream`.
	TunnelStage pulumi.StringOutput `pulumi:"tunnelStage"`
	// The type of the OTS tunnel. Only `BaseAndStream`, `BaseData` or `Stream` is allowed.
	TunnelType pulumi.StringOutput `pulumi:"tunnelType"`
}

Provides an OTS tunnel resource.

For information about OTS tunnel and how to use it, see [Tunnel overview](https://www.alibabacloud.com/help/en/tablestore/latest/tunnel-service-overview).

> **NOTE:** Available in v1.172.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ots"
"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 := "terraformtest"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		fooInstance, err := ots.NewInstance(ctx, "fooInstance", &ots.InstanceArgs{
			Description: pulumi.String(name),
			AccessedBy:  pulumi.String("Any"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("acceptance test"),
			},
		})
		if err != nil {
			return err
		}
		fooTable, err := ots.NewTable(ctx, "fooTable", &ots.TableArgs{
			InstanceName: fooInstance.Name,
			TableName:    pulumi.String(name),
			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"),
				},
			},
			TimeToLive:                -1,
			MaxVersion:                pulumi.Int(1),
			DeviationCellVersionInSec: pulumi.String("1"),
		})
		if err != nil {
			return err
		}
		_, err = ots.NewTunnel(ctx, "fooTunnel", &ots.TunnelArgs{
			InstanceName: fooInstance.Name,
			TableName:    fooTable.TableName,
			TunnelName:   pulumi.String(name),
			TunnelType:   pulumi.String("BaseAndStream"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

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

```

func GetTunnel added in v3.22.0

func GetTunnel(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TunnelState, opts ...pulumi.ResourceOption) (*Tunnel, error)

GetTunnel gets an existing Tunnel resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTunnel added in v3.22.0

func NewTunnel(ctx *pulumi.Context,
	name string, args *TunnelArgs, opts ...pulumi.ResourceOption) (*Tunnel, error)

NewTunnel registers a new resource with the given unique name, arguments, and options.

func (*Tunnel) ElementType added in v3.22.0

func (*Tunnel) ElementType() reflect.Type

func (*Tunnel) ToTunnelOutput added in v3.22.0

func (i *Tunnel) ToTunnelOutput() TunnelOutput

func (*Tunnel) ToTunnelOutputWithContext added in v3.22.0

func (i *Tunnel) ToTunnelOutputWithContext(ctx context.Context) TunnelOutput

type TunnelArgs added in v3.22.0

type TunnelArgs struct {
	// The name of the OTS instance in which table will located.
	InstanceName pulumi.StringInput
	// The name of the OTS table. If changed, a new table would be created.
	TableName pulumi.StringInput
	// The name of the OTS tunnel. If changed, a new tunnel would be created.
	TunnelName pulumi.StringInput
	// The type of the OTS tunnel. Only `BaseAndStream`, `BaseData` or `Stream` is allowed.
	TunnelType pulumi.StringInput
}

The set of arguments for constructing a Tunnel resource.

func (TunnelArgs) ElementType added in v3.22.0

func (TunnelArgs) ElementType() reflect.Type

type TunnelArray added in v3.22.0

type TunnelArray []TunnelInput

func (TunnelArray) ElementType added in v3.22.0

func (TunnelArray) ElementType() reflect.Type

func (TunnelArray) ToTunnelArrayOutput added in v3.22.0

func (i TunnelArray) ToTunnelArrayOutput() TunnelArrayOutput

func (TunnelArray) ToTunnelArrayOutputWithContext added in v3.22.0

func (i TunnelArray) ToTunnelArrayOutputWithContext(ctx context.Context) TunnelArrayOutput

type TunnelArrayInput added in v3.22.0

type TunnelArrayInput interface {
	pulumi.Input

	ToTunnelArrayOutput() TunnelArrayOutput
	ToTunnelArrayOutputWithContext(context.Context) TunnelArrayOutput
}

TunnelArrayInput is an input type that accepts TunnelArray and TunnelArrayOutput values. You can construct a concrete instance of `TunnelArrayInput` via:

TunnelArray{ TunnelArgs{...} }

type TunnelArrayOutput added in v3.22.0

type TunnelArrayOutput struct{ *pulumi.OutputState }

func (TunnelArrayOutput) ElementType added in v3.22.0

func (TunnelArrayOutput) ElementType() reflect.Type

func (TunnelArrayOutput) Index added in v3.22.0

func (TunnelArrayOutput) ToTunnelArrayOutput added in v3.22.0

func (o TunnelArrayOutput) ToTunnelArrayOutput() TunnelArrayOutput

func (TunnelArrayOutput) ToTunnelArrayOutputWithContext added in v3.22.0

func (o TunnelArrayOutput) ToTunnelArrayOutputWithContext(ctx context.Context) TunnelArrayOutput

type TunnelChannel added in v3.22.0

type TunnelChannel struct {
	// The id of the channel.
	ChannelId *string `pulumi:"channelId"`
	// The latest consumption time of the channel, unix time in nanosecond.
	ChannelRpo *int `pulumi:"channelRpo"`
	// The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.
	ChannelStatus *string `pulumi:"channelStatus"`
	// The type of the channel, valid values: `BaseData`, `Stream`.
	ChannelType *string `pulumi:"channelType"`
	// The client id of the channel.
	ClientId *string `pulumi:"clientId"`
}

type TunnelChannelArgs added in v3.22.0

type TunnelChannelArgs struct {
	// The id of the channel.
	ChannelId pulumi.StringPtrInput `pulumi:"channelId"`
	// The latest consumption time of the channel, unix time in nanosecond.
	ChannelRpo pulumi.IntPtrInput `pulumi:"channelRpo"`
	// The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.
	ChannelStatus pulumi.StringPtrInput `pulumi:"channelStatus"`
	// The type of the channel, valid values: `BaseData`, `Stream`.
	ChannelType pulumi.StringPtrInput `pulumi:"channelType"`
	// The client id of the channel.
	ClientId pulumi.StringPtrInput `pulumi:"clientId"`
}

func (TunnelChannelArgs) ElementType added in v3.22.0

func (TunnelChannelArgs) ElementType() reflect.Type

func (TunnelChannelArgs) ToTunnelChannelOutput added in v3.22.0

func (i TunnelChannelArgs) ToTunnelChannelOutput() TunnelChannelOutput

func (TunnelChannelArgs) ToTunnelChannelOutputWithContext added in v3.22.0

func (i TunnelChannelArgs) ToTunnelChannelOutputWithContext(ctx context.Context) TunnelChannelOutput

type TunnelChannelArray added in v3.22.0

type TunnelChannelArray []TunnelChannelInput

func (TunnelChannelArray) ElementType added in v3.22.0

func (TunnelChannelArray) ElementType() reflect.Type

func (TunnelChannelArray) ToTunnelChannelArrayOutput added in v3.22.0

func (i TunnelChannelArray) ToTunnelChannelArrayOutput() TunnelChannelArrayOutput

func (TunnelChannelArray) ToTunnelChannelArrayOutputWithContext added in v3.22.0

func (i TunnelChannelArray) ToTunnelChannelArrayOutputWithContext(ctx context.Context) TunnelChannelArrayOutput

type TunnelChannelArrayInput added in v3.22.0

type TunnelChannelArrayInput interface {
	pulumi.Input

	ToTunnelChannelArrayOutput() TunnelChannelArrayOutput
	ToTunnelChannelArrayOutputWithContext(context.Context) TunnelChannelArrayOutput
}

TunnelChannelArrayInput is an input type that accepts TunnelChannelArray and TunnelChannelArrayOutput values. You can construct a concrete instance of `TunnelChannelArrayInput` via:

TunnelChannelArray{ TunnelChannelArgs{...} }

type TunnelChannelArrayOutput added in v3.22.0

type TunnelChannelArrayOutput struct{ *pulumi.OutputState }

func (TunnelChannelArrayOutput) ElementType added in v3.22.0

func (TunnelChannelArrayOutput) ElementType() reflect.Type

func (TunnelChannelArrayOutput) Index added in v3.22.0

func (TunnelChannelArrayOutput) ToTunnelChannelArrayOutput added in v3.22.0

func (o TunnelChannelArrayOutput) ToTunnelChannelArrayOutput() TunnelChannelArrayOutput

func (TunnelChannelArrayOutput) ToTunnelChannelArrayOutputWithContext added in v3.22.0

func (o TunnelChannelArrayOutput) ToTunnelChannelArrayOutputWithContext(ctx context.Context) TunnelChannelArrayOutput

type TunnelChannelInput added in v3.22.0

type TunnelChannelInput interface {
	pulumi.Input

	ToTunnelChannelOutput() TunnelChannelOutput
	ToTunnelChannelOutputWithContext(context.Context) TunnelChannelOutput
}

TunnelChannelInput is an input type that accepts TunnelChannelArgs and TunnelChannelOutput values. You can construct a concrete instance of `TunnelChannelInput` via:

TunnelChannelArgs{...}

type TunnelChannelOutput added in v3.22.0

type TunnelChannelOutput struct{ *pulumi.OutputState }

func (TunnelChannelOutput) ChannelId added in v3.22.0

The id of the channel.

func (TunnelChannelOutput) ChannelRpo added in v3.22.0

func (o TunnelChannelOutput) ChannelRpo() pulumi.IntPtrOutput

The latest consumption time of the channel, unix time in nanosecond.

func (TunnelChannelOutput) ChannelStatus added in v3.22.0

func (o TunnelChannelOutput) ChannelStatus() pulumi.StringPtrOutput

The status of the channel, valid values: `WAIT`, `OPEN`, `CLOSING`, `CLOSE`, `TERMINATED`.

func (TunnelChannelOutput) ChannelType added in v3.22.0

func (o TunnelChannelOutput) ChannelType() pulumi.StringPtrOutput

The type of the channel, valid values: `BaseData`, `Stream`.

func (TunnelChannelOutput) ClientId added in v3.22.0

The client id of the channel.

func (TunnelChannelOutput) ElementType added in v3.22.0

func (TunnelChannelOutput) ElementType() reflect.Type

func (TunnelChannelOutput) ToTunnelChannelOutput added in v3.22.0

func (o TunnelChannelOutput) ToTunnelChannelOutput() TunnelChannelOutput

func (TunnelChannelOutput) ToTunnelChannelOutputWithContext added in v3.22.0

func (o TunnelChannelOutput) ToTunnelChannelOutputWithContext(ctx context.Context) TunnelChannelOutput

type TunnelInput added in v3.22.0

type TunnelInput interface {
	pulumi.Input

	ToTunnelOutput() TunnelOutput
	ToTunnelOutputWithContext(ctx context.Context) TunnelOutput
}

type TunnelMap added in v3.22.0

type TunnelMap map[string]TunnelInput

func (TunnelMap) ElementType added in v3.22.0

func (TunnelMap) ElementType() reflect.Type

func (TunnelMap) ToTunnelMapOutput added in v3.22.0

func (i TunnelMap) ToTunnelMapOutput() TunnelMapOutput

func (TunnelMap) ToTunnelMapOutputWithContext added in v3.22.0

func (i TunnelMap) ToTunnelMapOutputWithContext(ctx context.Context) TunnelMapOutput

type TunnelMapInput added in v3.22.0

type TunnelMapInput interface {
	pulumi.Input

	ToTunnelMapOutput() TunnelMapOutput
	ToTunnelMapOutputWithContext(context.Context) TunnelMapOutput
}

TunnelMapInput is an input type that accepts TunnelMap and TunnelMapOutput values. You can construct a concrete instance of `TunnelMapInput` via:

TunnelMap{ "key": TunnelArgs{...} }

type TunnelMapOutput added in v3.22.0

type TunnelMapOutput struct{ *pulumi.OutputState }

func (TunnelMapOutput) ElementType added in v3.22.0

func (TunnelMapOutput) ElementType() reflect.Type

func (TunnelMapOutput) MapIndex added in v3.22.0

func (TunnelMapOutput) ToTunnelMapOutput added in v3.22.0

func (o TunnelMapOutput) ToTunnelMapOutput() TunnelMapOutput

func (TunnelMapOutput) ToTunnelMapOutputWithContext added in v3.22.0

func (o TunnelMapOutput) ToTunnelMapOutputWithContext(ctx context.Context) TunnelMapOutput

type TunnelOutput added in v3.22.0

type TunnelOutput struct{ *pulumi.OutputState }

func (TunnelOutput) ElementType added in v3.22.0

func (TunnelOutput) ElementType() reflect.Type

func (TunnelOutput) ToTunnelOutput added in v3.22.0

func (o TunnelOutput) ToTunnelOutput() TunnelOutput

func (TunnelOutput) ToTunnelOutputWithContext added in v3.22.0

func (o TunnelOutput) ToTunnelOutputWithContext(ctx context.Context) TunnelOutput

type TunnelState added in v3.22.0

type TunnelState struct {
	// The channels of OTS tunnel. Each element contains the following attributes:
	Channels TunnelChannelArrayInput
	// The creation time of the Tunnel.
	CreateTime pulumi.IntPtrInput
	// Whether the tunnel has expired.
	Expired pulumi.BoolPtrInput
	// The name of the OTS instance in which table will located.
	InstanceName pulumi.StringPtrInput
	// The name of the OTS table. If changed, a new table would be created.
	TableName pulumi.StringPtrInput
	// The tunnel id of the OTS which could not be changed.
	TunnelId pulumi.StringPtrInput
	// The name of the OTS tunnel. If changed, a new tunnel would be created.
	TunnelName pulumi.StringPtrInput
	// The latest consumption time of the tunnel, unix time in nanosecond.
	TunnelRpo pulumi.IntPtrInput
	// The stage of OTS tunnel, valid values: `InitBaseDataAndStreamShard`, `ProcessBaseData`, `ProcessStream`.
	TunnelStage pulumi.StringPtrInput
	// The type of the OTS tunnel. Only `BaseAndStream`, `BaseData` or `Stream` is allowed.
	TunnelType pulumi.StringPtrInput
}

func (TunnelState) ElementType added in v3.22.0

func (TunnelState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL