ots

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

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

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

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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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

type GetInstanceAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstanceAttachments.

func (GetInstanceAttachmentsResultOutput) Attachments

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

func (GetInstanceAttachmentsResultOutput) ElementType

func (GetInstanceAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstanceAttachmentsResultOutput) InstanceName

The instance name.

func (GetInstanceAttachmentsResultOutput) NameRegex

func (GetInstanceAttachmentsResultOutput) Names

A list of vpc names.

func (GetInstanceAttachmentsResultOutput) OutputFile

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput

func (o GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput() GetInstanceAttachmentsResultOutput

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutputWithContext

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

func (GetInstanceAttachmentsResultOutput) VpcIds

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/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// 	"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"
	// )
	//
	// 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/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// 	"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"
	// )
	//
	// 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/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// 	"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"
	// )
	//
	// 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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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

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/go/alicloud/ots"
	// 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	// 	"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"
	// )
	//
	// 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

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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func (GetInstancesResultOutput) ElementType

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids

A list of instance IDs.

func (GetInstancesResultOutput) Instances

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

func (GetInstancesResultOutput) NameRegex

func (GetInstancesResultOutput) Names

A list of instance names.

func (GetInstancesResultOutput) OutputFile

func (GetInstancesResultOutput) Tags

The tags of the instance.

func (GetInstancesResultOutput) ToGetInstancesResultOutput

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext

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

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

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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func (GetServiceResultOutput) ElementType

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable

func (GetServiceResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext

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

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

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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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

type GetTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTables.

func (GetTablesResultOutput) ElementType

func (GetTablesResultOutput) ElementType() reflect.Type

func (GetTablesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTablesResultOutput) Ids

A list of table IDs.

func (GetTablesResultOutput) InstanceName

func (o GetTablesResultOutput) InstanceName() pulumi.StringOutput

The OTS instance name.

func (GetTablesResultOutput) NameRegex

func (GetTablesResultOutput) Names

A list of table names.

func (GetTablesResultOutput) OutputFile

func (GetTablesResultOutput) Tables

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

func (GetTablesResultOutput) ToGetTablesResultOutput

func (o GetTablesResultOutput) ToGetTablesResultOutput() GetTablesResultOutput

func (GetTablesResultOutput) ToGetTablesResultOutputWithContext

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

type GetTablesTable

type GetTablesTable struct {
	DefinedColumns []GetTablesTableDefinedColumn `pulumi:"definedColumns"`
	// 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 {
	DefinedColumns GetTablesTableDefinedColumnArrayInput `pulumi:"definedColumns"`
	// 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 GetTablesTableDefinedColumn

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

type GetTablesTableDefinedColumnArgs

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

func (GetTablesTableDefinedColumnArgs) ElementType

func (GetTablesTableDefinedColumnArgs) ToGetTablesTableDefinedColumnOutput

func (i GetTablesTableDefinedColumnArgs) ToGetTablesTableDefinedColumnOutput() GetTablesTableDefinedColumnOutput

func (GetTablesTableDefinedColumnArgs) ToGetTablesTableDefinedColumnOutputWithContext

func (i GetTablesTableDefinedColumnArgs) ToGetTablesTableDefinedColumnOutputWithContext(ctx context.Context) GetTablesTableDefinedColumnOutput

type GetTablesTableDefinedColumnArray

type GetTablesTableDefinedColumnArray []GetTablesTableDefinedColumnInput

func (GetTablesTableDefinedColumnArray) ElementType

func (GetTablesTableDefinedColumnArray) ToGetTablesTableDefinedColumnArrayOutput

func (i GetTablesTableDefinedColumnArray) ToGetTablesTableDefinedColumnArrayOutput() GetTablesTableDefinedColumnArrayOutput

func (GetTablesTableDefinedColumnArray) ToGetTablesTableDefinedColumnArrayOutputWithContext

func (i GetTablesTableDefinedColumnArray) ToGetTablesTableDefinedColumnArrayOutputWithContext(ctx context.Context) GetTablesTableDefinedColumnArrayOutput

type GetTablesTableDefinedColumnArrayInput

type GetTablesTableDefinedColumnArrayInput interface {
	pulumi.Input

	ToGetTablesTableDefinedColumnArrayOutput() GetTablesTableDefinedColumnArrayOutput
	ToGetTablesTableDefinedColumnArrayOutputWithContext(context.Context) GetTablesTableDefinedColumnArrayOutput
}

GetTablesTableDefinedColumnArrayInput is an input type that accepts GetTablesTableDefinedColumnArray and GetTablesTableDefinedColumnArrayOutput values. You can construct a concrete instance of `GetTablesTableDefinedColumnArrayInput` via:

GetTablesTableDefinedColumnArray{ GetTablesTableDefinedColumnArgs{...} }

type GetTablesTableDefinedColumnArrayOutput

type GetTablesTableDefinedColumnArrayOutput struct{ *pulumi.OutputState }

func (GetTablesTableDefinedColumnArrayOutput) ElementType

func (GetTablesTableDefinedColumnArrayOutput) Index

func (GetTablesTableDefinedColumnArrayOutput) ToGetTablesTableDefinedColumnArrayOutput

func (o GetTablesTableDefinedColumnArrayOutput) ToGetTablesTableDefinedColumnArrayOutput() GetTablesTableDefinedColumnArrayOutput

func (GetTablesTableDefinedColumnArrayOutput) ToGetTablesTableDefinedColumnArrayOutputWithContext

func (o GetTablesTableDefinedColumnArrayOutput) ToGetTablesTableDefinedColumnArrayOutputWithContext(ctx context.Context) GetTablesTableDefinedColumnArrayOutput

type GetTablesTableDefinedColumnInput

type GetTablesTableDefinedColumnInput interface {
	pulumi.Input

	ToGetTablesTableDefinedColumnOutput() GetTablesTableDefinedColumnOutput
	ToGetTablesTableDefinedColumnOutputWithContext(context.Context) GetTablesTableDefinedColumnOutput
}

GetTablesTableDefinedColumnInput is an input type that accepts GetTablesTableDefinedColumnArgs and GetTablesTableDefinedColumnOutput values. You can construct a concrete instance of `GetTablesTableDefinedColumnInput` via:

GetTablesTableDefinedColumnArgs{...}

type GetTablesTableDefinedColumnOutput

type GetTablesTableDefinedColumnOutput struct{ *pulumi.OutputState }

func (GetTablesTableDefinedColumnOutput) ElementType

func (GetTablesTableDefinedColumnOutput) Name

func (GetTablesTableDefinedColumnOutput) ToGetTablesTableDefinedColumnOutput

func (o GetTablesTableDefinedColumnOutput) ToGetTablesTableDefinedColumnOutput() GetTablesTableDefinedColumnOutput

func (GetTablesTableDefinedColumnOutput) ToGetTablesTableDefinedColumnOutputWithContext

func (o GetTablesTableDefinedColumnOutput) ToGetTablesTableDefinedColumnOutputWithContext(ctx context.Context) GetTablesTableDefinedColumnOutput

func (GetTablesTableDefinedColumnOutput) Type

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) DefinedColumns

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

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

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

func (GetTunnelsOutputArgs) ElementType() reflect.Type

type GetTunnelsResult

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

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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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

type GetTunnelsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTunnels.

func (GetTunnelsResultOutput) ElementType

func (GetTunnelsResultOutput) ElementType() reflect.Type

func (GetTunnelsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTunnelsResultOutput) Ids

A list of tunnel IDs.

func (GetTunnelsResultOutput) InstanceName

func (o GetTunnelsResultOutput) InstanceName() pulumi.StringOutput

The OTS instance name.

func (GetTunnelsResultOutput) NameRegex

func (GetTunnelsResultOutput) Names

A list of tunnel names.

func (GetTunnelsResultOutput) OutputFile

func (GetTunnelsResultOutput) TableName

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

func (GetTunnelsResultOutput) ToGetTunnelsResultOutput

func (o GetTunnelsResultOutput) ToGetTunnelsResultOutput() GetTunnelsResultOutput

func (GetTunnelsResultOutput) ToGetTunnelsResultOutputWithContext

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

func (GetTunnelsResultOutput) Tunnels

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

type GetTunnelsTunnel

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

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

func (GetTunnelsTunnelArgs) ElementType() reflect.Type

func (GetTunnelsTunnelArgs) ToGetTunnelsTunnelOutput

func (i GetTunnelsTunnelArgs) ToGetTunnelsTunnelOutput() GetTunnelsTunnelOutput

func (GetTunnelsTunnelArgs) ToGetTunnelsTunnelOutputWithContext

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

type GetTunnelsTunnelArray

type GetTunnelsTunnelArray []GetTunnelsTunnelInput

func (GetTunnelsTunnelArray) ElementType

func (GetTunnelsTunnelArray) ElementType() reflect.Type

func (GetTunnelsTunnelArray) ToGetTunnelsTunnelArrayOutput

func (i GetTunnelsTunnelArray) ToGetTunnelsTunnelArrayOutput() GetTunnelsTunnelArrayOutput

func (GetTunnelsTunnelArray) ToGetTunnelsTunnelArrayOutputWithContext

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

type GetTunnelsTunnelArrayInput

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

type GetTunnelsTunnelArrayOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelArrayOutput) ElementType

func (GetTunnelsTunnelArrayOutput) Index

func (GetTunnelsTunnelArrayOutput) ToGetTunnelsTunnelArrayOutput

func (o GetTunnelsTunnelArrayOutput) ToGetTunnelsTunnelArrayOutput() GetTunnelsTunnelArrayOutput

func (GetTunnelsTunnelArrayOutput) ToGetTunnelsTunnelArrayOutputWithContext

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

type GetTunnelsTunnelChannel

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

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

func (GetTunnelsTunnelChannelArgs) ToGetTunnelsTunnelChannelOutput

func (i GetTunnelsTunnelChannelArgs) ToGetTunnelsTunnelChannelOutput() GetTunnelsTunnelChannelOutput

func (GetTunnelsTunnelChannelArgs) ToGetTunnelsTunnelChannelOutputWithContext

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

type GetTunnelsTunnelChannelArray

type GetTunnelsTunnelChannelArray []GetTunnelsTunnelChannelInput

func (GetTunnelsTunnelChannelArray) ElementType

func (GetTunnelsTunnelChannelArray) ToGetTunnelsTunnelChannelArrayOutput

func (i GetTunnelsTunnelChannelArray) ToGetTunnelsTunnelChannelArrayOutput() GetTunnelsTunnelChannelArrayOutput

func (GetTunnelsTunnelChannelArray) ToGetTunnelsTunnelChannelArrayOutputWithContext

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

type GetTunnelsTunnelChannelArrayInput

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

type GetTunnelsTunnelChannelArrayOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelChannelArrayOutput) ElementType

func (GetTunnelsTunnelChannelArrayOutput) Index

func (GetTunnelsTunnelChannelArrayOutput) ToGetTunnelsTunnelChannelArrayOutput

func (o GetTunnelsTunnelChannelArrayOutput) ToGetTunnelsTunnelChannelArrayOutput() GetTunnelsTunnelChannelArrayOutput

func (GetTunnelsTunnelChannelArrayOutput) ToGetTunnelsTunnelChannelArrayOutputWithContext

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

type GetTunnelsTunnelChannelInput

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

type GetTunnelsTunnelChannelOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelChannelOutput) ChannelId

The id of the channel.

func (GetTunnelsTunnelChannelOutput) ChannelRpo

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

func (GetTunnelsTunnelChannelOutput) ChannelStatus

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

func (GetTunnelsTunnelChannelOutput) ChannelType

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

func (GetTunnelsTunnelChannelOutput) ClientId

The client id of the channel.

func (GetTunnelsTunnelChannelOutput) ElementType

func (GetTunnelsTunnelChannelOutput) ToGetTunnelsTunnelChannelOutput

func (o GetTunnelsTunnelChannelOutput) ToGetTunnelsTunnelChannelOutput() GetTunnelsTunnelChannelOutput

func (GetTunnelsTunnelChannelOutput) ToGetTunnelsTunnelChannelOutputWithContext

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

type GetTunnelsTunnelInput

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

type GetTunnelsTunnelOutput struct{ *pulumi.OutputState }

func (GetTunnelsTunnelOutput) Channels

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

func (GetTunnelsTunnelOutput) CreateTime

func (o GetTunnelsTunnelOutput) CreateTime() pulumi.IntOutput

The creation time of the Tunnel.

func (GetTunnelsTunnelOutput) ElementType

func (GetTunnelsTunnelOutput) ElementType() reflect.Type

func (GetTunnelsTunnelOutput) Expired

Whether the tunnel has expired.

func (GetTunnelsTunnelOutput) Id

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

func (GetTunnelsTunnelOutput) InstanceName

func (o GetTunnelsTunnelOutput) InstanceName() pulumi.StringOutput

The name of OTS instance.

func (GetTunnelsTunnelOutput) TableName

The name of OTS table.

func (GetTunnelsTunnelOutput) ToGetTunnelsTunnelOutput

func (o GetTunnelsTunnelOutput) ToGetTunnelsTunnelOutput() GetTunnelsTunnelOutput

func (GetTunnelsTunnelOutput) ToGetTunnelsTunnelOutputWithContext

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

func (GetTunnelsTunnelOutput) TunnelId

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

func (GetTunnelsTunnelOutput) TunnelName

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

func (GetTunnelsTunnelOutput) TunnelRpo

func (o GetTunnelsTunnelOutput) TunnelRpo() pulumi.IntOutput

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

func (GetTunnelsTunnelOutput) TunnelStage

func (o GetTunnelsTunnelOutput) TunnelStage() pulumi.StringOutput

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

func (GetTunnelsTunnelOutput) TunnelType

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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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/go/alicloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

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) InstanceName

func (o InstanceAttachmentOutput) InstanceName() pulumi.StringOutput

The name of the OTS instance.

func (InstanceAttachmentOutput) ToInstanceAttachmentOutput

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext

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

func (InstanceAttachmentOutput) VpcId

The ID of attaching VPC to instance.

func (InstanceAttachmentOutput) VpcName

The name of attaching VPC to instance.

func (InstanceAttachmentOutput) VswitchId

The ID of attaching VSwitch to instance.

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) AccessedBy

func (o InstanceOutput) AccessedBy() pulumi.StringPtrOutput

The network limitation of accessing instance. Valid values:

func (InstanceOutput) Description

func (o InstanceOutput) Description() pulumi.StringPtrOutput

The description of the instance. Currently, it does not support modifying.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) InstanceType

func (o InstanceOutput) InstanceType() pulumi.StringPtrOutput

The type of instance. Valid values are "Capacity" and "HighPerformance". Default to "HighPerformance".

func (InstanceOutput) Name

The name of the instance.

func (InstanceOutput) Tags

func (o InstanceOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the instance.

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 property of `TableMeta` which indicates the structure information of a table. It describes the attribute value of defined column. The number of `definedColumn` should not be more than 32.
	DefinedColumns TableDefinedColumnArrayOutput `pulumi:"definedColumns"`
	// 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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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"),
				},
			},
			DefinedColumns: ots.TableDefinedColumnArray{
				&ots.TableDefinedColumnArgs{
					Name: pulumi.String("col1"),
					Type: pulumi.String("Integer"),
				},
				&ots.TableDefinedColumnArgs{
					Name: pulumi.String("col2"),
					Type: pulumi.String("String"),
				},
				&ots.TableDefinedColumnArgs{
					Name: pulumi.String("col3"),
					Type: pulumi.String("Binary"),
				},
			},
			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 property of `TableMeta` which indicates the structure information of a table. It describes the attribute value of defined column. The number of `definedColumn` should not be more than 32.
	DefinedColumns TableDefinedColumnArrayInput
	// 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 TableDefinedColumn

type TableDefinedColumn struct {
	// Name for defined column.
	Name string `pulumi:"name"`
	// Type for defined column. `Integer`, `String`, `Binary`, `Double`, `Boolean` is allowed.
	Type string `pulumi:"type"`
}

type TableDefinedColumnArgs

type TableDefinedColumnArgs struct {
	// Name for defined column.
	Name pulumi.StringInput `pulumi:"name"`
	// Type for defined column. `Integer`, `String`, `Binary`, `Double`, `Boolean` is allowed.
	Type pulumi.StringInput `pulumi:"type"`
}

func (TableDefinedColumnArgs) ElementType

func (TableDefinedColumnArgs) ElementType() reflect.Type

func (TableDefinedColumnArgs) ToTableDefinedColumnOutput

func (i TableDefinedColumnArgs) ToTableDefinedColumnOutput() TableDefinedColumnOutput

func (TableDefinedColumnArgs) ToTableDefinedColumnOutputWithContext

func (i TableDefinedColumnArgs) ToTableDefinedColumnOutputWithContext(ctx context.Context) TableDefinedColumnOutput

type TableDefinedColumnArray

type TableDefinedColumnArray []TableDefinedColumnInput

func (TableDefinedColumnArray) ElementType

func (TableDefinedColumnArray) ElementType() reflect.Type

func (TableDefinedColumnArray) ToTableDefinedColumnArrayOutput

func (i TableDefinedColumnArray) ToTableDefinedColumnArrayOutput() TableDefinedColumnArrayOutput

func (TableDefinedColumnArray) ToTableDefinedColumnArrayOutputWithContext

func (i TableDefinedColumnArray) ToTableDefinedColumnArrayOutputWithContext(ctx context.Context) TableDefinedColumnArrayOutput

type TableDefinedColumnArrayInput

type TableDefinedColumnArrayInput interface {
	pulumi.Input

	ToTableDefinedColumnArrayOutput() TableDefinedColumnArrayOutput
	ToTableDefinedColumnArrayOutputWithContext(context.Context) TableDefinedColumnArrayOutput
}

TableDefinedColumnArrayInput is an input type that accepts TableDefinedColumnArray and TableDefinedColumnArrayOutput values. You can construct a concrete instance of `TableDefinedColumnArrayInput` via:

TableDefinedColumnArray{ TableDefinedColumnArgs{...} }

type TableDefinedColumnArrayOutput

type TableDefinedColumnArrayOutput struct{ *pulumi.OutputState }

func (TableDefinedColumnArrayOutput) ElementType

func (TableDefinedColumnArrayOutput) Index

func (TableDefinedColumnArrayOutput) ToTableDefinedColumnArrayOutput

func (o TableDefinedColumnArrayOutput) ToTableDefinedColumnArrayOutput() TableDefinedColumnArrayOutput

func (TableDefinedColumnArrayOutput) ToTableDefinedColumnArrayOutputWithContext

func (o TableDefinedColumnArrayOutput) ToTableDefinedColumnArrayOutputWithContext(ctx context.Context) TableDefinedColumnArrayOutput

type TableDefinedColumnInput

type TableDefinedColumnInput interface {
	pulumi.Input

	ToTableDefinedColumnOutput() TableDefinedColumnOutput
	ToTableDefinedColumnOutputWithContext(context.Context) TableDefinedColumnOutput
}

TableDefinedColumnInput is an input type that accepts TableDefinedColumnArgs and TableDefinedColumnOutput values. You can construct a concrete instance of `TableDefinedColumnInput` via:

TableDefinedColumnArgs{...}

type TableDefinedColumnOutput

type TableDefinedColumnOutput struct{ *pulumi.OutputState }

func (TableDefinedColumnOutput) ElementType

func (TableDefinedColumnOutput) ElementType() reflect.Type

func (TableDefinedColumnOutput) Name

Name for defined column.

func (TableDefinedColumnOutput) ToTableDefinedColumnOutput

func (o TableDefinedColumnOutput) ToTableDefinedColumnOutput() TableDefinedColumnOutput

func (TableDefinedColumnOutput) ToTableDefinedColumnOutputWithContext

func (o TableDefinedColumnOutput) ToTableDefinedColumnOutputWithContext(ctx context.Context) TableDefinedColumnOutput

func (TableDefinedColumnOutput) Type

Type for defined column. `Integer`, `String`, `Binary`, `Double`, `Boolean` is allowed.

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) DefinedColumns

func (o TableOutput) DefinedColumns() TableDefinedColumnArrayOutput

The property of `TableMeta` which indicates the structure information of a table. It describes the attribute value of defined column. The number of `definedColumn` should not be more than 32.

func (TableOutput) DeviationCellVersionInSec

func (o TableOutput) DeviationCellVersionInSec() pulumi.StringPtrOutput

The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.

func (TableOutput) ElementType

func (TableOutput) ElementType() reflect.Type

func (TableOutput) EnableSse

func (o TableOutput) EnableSse() pulumi.BoolPtrOutput

Whether enable OTS server side encryption. Default value is false.

func (TableOutput) InstanceName

func (o TableOutput) InstanceName() pulumi.StringOutput

The name of the OTS instance in which table will located.

func (TableOutput) MaxVersion

func (o TableOutput) MaxVersion() pulumi.IntOutput

The maximum number of versions stored in this table. The valid value is 1-2147483647.

func (TableOutput) PrimaryKeys

func (o TableOutput) PrimaryKeys() TablePrimaryKeyArrayOutput

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.

func (TableOutput) SseKeyType

func (o TableOutput) SseKeyType() pulumi.StringPtrOutput

The key type of OTS server side encryption. Only `SSE_KMS_SERVICE` is allowed.

func (TableOutput) TableName

func (o TableOutput) TableName() pulumi.StringOutput

The table name of the OTS instance. If changed, a new table would be created.

func (TableOutput) TimeToLive

func (o TableOutput) TimeToLive() pulumi.IntOutput

The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.

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 defined column.
	Name string `pulumi:"name"`
	// Type for defined column. `Integer`, `String`, `Binary`, `Double`, `Boolean` is allowed.
	Type string `pulumi:"type"`
}

type TablePrimaryKeyArgs

type TablePrimaryKeyArgs struct {
	// Name for defined column.
	Name pulumi.StringInput `pulumi:"name"`
	// Type for defined column. `Integer`, `String`, `Binary`, `Double`, `Boolean` 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 defined column.

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutput

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext

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

func (TablePrimaryKeyOutput) Type

Type for defined column. `Integer`, `String`, `Binary`, `Double`, `Boolean` is allowed.

type TableState

type TableState struct {
	// The property of `TableMeta` which indicates the structure information of a table. It describes the attribute value of defined column. The number of `definedColumn` should not be more than 32.
	DefinedColumns TableDefinedColumnArrayInput
	// 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

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/go/alicloud/ots"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ots"

)

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

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

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

func (*Tunnel) ElementType() reflect.Type

func (*Tunnel) ToTunnelOutput

func (i *Tunnel) ToTunnelOutput() TunnelOutput

func (*Tunnel) ToTunnelOutputWithContext

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

type TunnelArgs

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

func (TunnelArgs) ElementType() reflect.Type

type TunnelArray

type TunnelArray []TunnelInput

func (TunnelArray) ElementType

func (TunnelArray) ElementType() reflect.Type

func (TunnelArray) ToTunnelArrayOutput

func (i TunnelArray) ToTunnelArrayOutput() TunnelArrayOutput

func (TunnelArray) ToTunnelArrayOutputWithContext

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

type TunnelArrayInput

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

type TunnelArrayOutput struct{ *pulumi.OutputState }

func (TunnelArrayOutput) ElementType

func (TunnelArrayOutput) ElementType() reflect.Type

func (TunnelArrayOutput) Index

func (TunnelArrayOutput) ToTunnelArrayOutput

func (o TunnelArrayOutput) ToTunnelArrayOutput() TunnelArrayOutput

func (TunnelArrayOutput) ToTunnelArrayOutputWithContext

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

type TunnelChannel

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

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

func (TunnelChannelArgs) ElementType() reflect.Type

func (TunnelChannelArgs) ToTunnelChannelOutput

func (i TunnelChannelArgs) ToTunnelChannelOutput() TunnelChannelOutput

func (TunnelChannelArgs) ToTunnelChannelOutputWithContext

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

type TunnelChannelArray

type TunnelChannelArray []TunnelChannelInput

func (TunnelChannelArray) ElementType

func (TunnelChannelArray) ElementType() reflect.Type

func (TunnelChannelArray) ToTunnelChannelArrayOutput

func (i TunnelChannelArray) ToTunnelChannelArrayOutput() TunnelChannelArrayOutput

func (TunnelChannelArray) ToTunnelChannelArrayOutputWithContext

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

type TunnelChannelArrayInput

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

type TunnelChannelArrayOutput struct{ *pulumi.OutputState }

func (TunnelChannelArrayOutput) ElementType

func (TunnelChannelArrayOutput) ElementType() reflect.Type

func (TunnelChannelArrayOutput) Index

func (TunnelChannelArrayOutput) ToTunnelChannelArrayOutput

func (o TunnelChannelArrayOutput) ToTunnelChannelArrayOutput() TunnelChannelArrayOutput

func (TunnelChannelArrayOutput) ToTunnelChannelArrayOutputWithContext

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

type TunnelChannelInput

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

type TunnelChannelOutput struct{ *pulumi.OutputState }

func (TunnelChannelOutput) ChannelId

The id of the channel.

func (TunnelChannelOutput) ChannelRpo

func (o TunnelChannelOutput) ChannelRpo() pulumi.IntPtrOutput

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

func (TunnelChannelOutput) ChannelStatus

func (o TunnelChannelOutput) ChannelStatus() pulumi.StringPtrOutput

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

func (TunnelChannelOutput) ChannelType

func (o TunnelChannelOutput) ChannelType() pulumi.StringPtrOutput

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

func (TunnelChannelOutput) ClientId

The client id of the channel.

func (TunnelChannelOutput) ElementType

func (TunnelChannelOutput) ElementType() reflect.Type

func (TunnelChannelOutput) ToTunnelChannelOutput

func (o TunnelChannelOutput) ToTunnelChannelOutput() TunnelChannelOutput

func (TunnelChannelOutput) ToTunnelChannelOutputWithContext

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

type TunnelInput

type TunnelInput interface {
	pulumi.Input

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

type TunnelMap

type TunnelMap map[string]TunnelInput

func (TunnelMap) ElementType

func (TunnelMap) ElementType() reflect.Type

func (TunnelMap) ToTunnelMapOutput

func (i TunnelMap) ToTunnelMapOutput() TunnelMapOutput

func (TunnelMap) ToTunnelMapOutputWithContext

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

type TunnelMapInput

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

type TunnelMapOutput struct{ *pulumi.OutputState }

func (TunnelMapOutput) ElementType

func (TunnelMapOutput) ElementType() reflect.Type

func (TunnelMapOutput) MapIndex

func (TunnelMapOutput) ToTunnelMapOutput

func (o TunnelMapOutput) ToTunnelMapOutput() TunnelMapOutput

func (TunnelMapOutput) ToTunnelMapOutputWithContext

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

type TunnelOutput

type TunnelOutput struct{ *pulumi.OutputState }

func (TunnelOutput) Channels

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

func (TunnelOutput) CreateTime

func (o TunnelOutput) CreateTime() pulumi.IntOutput

The creation time of the Tunnel.

func (TunnelOutput) ElementType

func (TunnelOutput) ElementType() reflect.Type

func (TunnelOutput) Expired

func (o TunnelOutput) Expired() pulumi.BoolOutput

Whether the tunnel has expired.

func (TunnelOutput) InstanceName

func (o TunnelOutput) InstanceName() pulumi.StringOutput

The name of the OTS instance in which table will located.

func (TunnelOutput) TableName

func (o TunnelOutput) TableName() pulumi.StringOutput

The name of the OTS table. If changed, a new table would be created.

func (TunnelOutput) ToTunnelOutput

func (o TunnelOutput) ToTunnelOutput() TunnelOutput

func (TunnelOutput) ToTunnelOutputWithContext

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

func (TunnelOutput) TunnelId

func (o TunnelOutput) TunnelId() pulumi.StringOutput

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

func (TunnelOutput) TunnelName

func (o TunnelOutput) TunnelName() pulumi.StringOutput

The name of the OTS tunnel. If changed, a new tunnel would be created.

func (TunnelOutput) TunnelRpo

func (o TunnelOutput) TunnelRpo() pulumi.IntOutput

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

func (TunnelOutput) TunnelStage

func (o TunnelOutput) TunnelStage() pulumi.StringOutput

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

func (TunnelOutput) TunnelType

func (o TunnelOutput) TunnelType() pulumi.StringOutput

The type of the OTS tunnel. Only `BaseAndStream`, `BaseData` or `Stream` is allowed.

type TunnelState

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

func (TunnelState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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