ots

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInstanceAttachmentsArgs

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

A collection of arguments for invoking getInstanceAttachments.

type GetInstanceAttachmentsAttachment

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

type GetInstanceAttachmentsAttachmentArgs

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

func (GetInstanceAttachmentsAttachmentArgs) ElementType

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput

func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext

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

type GetInstanceAttachmentsAttachmentArray

type GetInstanceAttachmentsAttachmentArray []GetInstanceAttachmentsAttachmentInput

func (GetInstanceAttachmentsAttachmentArray) ElementType

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput

func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext

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

type GetInstanceAttachmentsAttachmentArrayInput

type GetInstanceAttachmentsAttachmentArrayInput interface {
	pulumi.Input

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

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

GetInstanceAttachmentsAttachmentArray{ GetInstanceAttachmentsAttachmentArgs{...} }

type GetInstanceAttachmentsAttachmentArrayOutput

type GetInstanceAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentArrayOutput) ElementType

func (GetInstanceAttachmentsAttachmentArrayOutput) Index

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput

func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext

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

type GetInstanceAttachmentsAttachmentInput

type GetInstanceAttachmentsAttachmentInput interface {
	pulumi.Input

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

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

GetInstanceAttachmentsAttachmentArgs{...}

type GetInstanceAttachmentsAttachmentOutput

type GetInstanceAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentOutput) Domain

The domain of the instance attachment.

func (GetInstanceAttachmentsAttachmentOutput) ElementType

func (GetInstanceAttachmentsAttachmentOutput) Endpoint

The access endpoint of the instance attachment.

func (GetInstanceAttachmentsAttachmentOutput) Id

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

func (GetInstanceAttachmentsAttachmentOutput) InstanceName

The name of OTS instance.

func (GetInstanceAttachmentsAttachmentOutput) Region

The region of the instance attachment.

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput

func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext

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

func (GetInstanceAttachmentsAttachmentOutput) VpcId

The ID of attaching VPC to instance.

func (GetInstanceAttachmentsAttachmentOutput) VpcName

The name of attaching VPC to instance.

type GetInstanceAttachmentsOutputArgs added in v3.9.0

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

A collection of arguments for invoking getInstanceAttachments.

func (GetInstanceAttachmentsOutputArgs) ElementType added in v3.9.0

type GetInstanceAttachmentsResult

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

A collection of values returned by getInstanceAttachments.

func GetInstanceAttachments

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

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

## Example Usage

```go package main

import (

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

)

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

```

type GetInstanceAttachmentsResultOutput added in v3.9.0

type GetInstanceAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstanceAttachments.

func GetInstanceAttachmentsOutput added in v3.9.0

func (GetInstanceAttachmentsResultOutput) Attachments added in v3.9.0

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

func (GetInstanceAttachmentsResultOutput) ElementType added in v3.9.0

func (GetInstanceAttachmentsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstanceAttachmentsResultOutput) InstanceName added in v3.9.0

The instance name.

func (GetInstanceAttachmentsResultOutput) NameRegex added in v3.9.0

func (GetInstanceAttachmentsResultOutput) Names added in v3.9.0

A list of vpc names.

func (GetInstanceAttachmentsResultOutput) OutputFile added in v3.9.0

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput added in v3.9.0

func (o GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput() GetInstanceAttachmentsResultOutput

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutputWithContext added in v3.9.0

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

func (GetInstanceAttachmentsResultOutput) VpcIds added in v3.9.0

A list of vpc ids.

type GetInstancesArgs

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

A collection of arguments for invoking getInstances.

type GetInstancesInstance

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

type GetInstancesInstanceArgs

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

func (GetInstancesInstanceArgs) ElementType

func (GetInstancesInstanceArgs) ElementType() reflect.Type

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext

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

type GetInstancesInstanceArray

type GetInstancesInstanceArray []GetInstancesInstanceInput

func (GetInstancesInstanceArray) ElementType

func (GetInstancesInstanceArray) ElementType() reflect.Type

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext

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

type GetInstancesInstanceArrayInput

type GetInstancesInstanceArrayInput interface {
	pulumi.Input

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

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

GetInstancesInstanceArray{ GetInstancesInstanceArgs{...} }

type GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceArrayOutput) ElementType

func (GetInstancesInstanceArrayOutput) Index

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext

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

type GetInstancesInstanceInput

type GetInstancesInstanceInput interface {
	pulumi.Input

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

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

GetInstancesInstanceArgs{...}

type GetInstancesInstanceOutput

type GetInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceOutput) ClusterType

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

func (GetInstancesInstanceOutput) CreateTime

The create time of the instance.

func (GetInstancesInstanceOutput) Description

The description of the instance.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) EntityQuota

The instance quota which indicating the maximum number of tables.

func (GetInstancesInstanceOutput) Id

ID of the instance.

func (GetInstancesInstanceOutput) Name

Instance name.

func (GetInstancesInstanceOutput) Network

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

func (GetInstancesInstanceOutput) ReadCapacity

func (o GetInstancesInstanceOutput) ReadCapacity() pulumi.IntOutput

The maximum adjustable read capacity unit of the instance.

func (GetInstancesInstanceOutput) Status

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

func (GetInstancesInstanceOutput) Tags

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

import (

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

)

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

```

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

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

func (GetInstancesInstanceOutput) UserId

The user id of the instance.

func (GetInstancesInstanceOutput) WriteCapacity

func (o GetInstancesInstanceOutput) WriteCapacity() pulumi.IntOutput

The maximum adjustable write capacity unit of the instance.

type GetInstancesOutputArgs added in v3.9.0

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

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType added in v3.9.0

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

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

A collection of values returned by getInstances.

func GetInstances

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

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

## Example Usage

```go package main

import (

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

)

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

```

type GetInstancesResultOutput added in v3.9.0

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func GetInstancesOutput added in v3.9.0

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

func (GetInstancesResultOutput) ElementType added in v3.9.0

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids added in v3.9.0

A list of instance IDs.

func (GetInstancesResultOutput) Instances added in v3.9.0

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

func (GetInstancesResultOutput) NameRegex added in v3.9.0

func (GetInstancesResultOutput) Names added in v3.9.0

A list of instance names.

func (GetInstancesResultOutput) OutputFile added in v3.9.0

func (GetInstancesResultOutput) Tags added in v3.9.0

The tags of the instance.

func (GetInstancesResultOutput) ToGetInstancesResultOutput added in v3.9.0

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext added in v3.9.0

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

type GetServiceArgs

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

A collection of arguments for invoking getService.

type GetServiceOutputArgs added in v3.9.0

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

A collection of arguments for invoking getService.

func (GetServiceOutputArgs) ElementType added in v3.9.0

func (GetServiceOutputArgs) ElementType() reflect.Type

type GetServiceResult

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

A collection of values returned by getService.

func GetService

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

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

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

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

## Example Usage

```go package main

import (

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

)

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

```

type GetServiceResultOutput added in v3.9.0

type GetServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getService.

func GetServiceOutput added in v3.9.0

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

func (GetServiceResultOutput) ElementType added in v3.9.0

func (GetServiceResultOutput) ElementType() reflect.Type

func (GetServiceResultOutput) Enable added in v3.9.0

func (GetServiceResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetServiceResultOutput) Status added in v3.9.0

The current service enable status.

func (GetServiceResultOutput) ToGetServiceResultOutput added in v3.9.0

func (o GetServiceResultOutput) ToGetServiceResultOutput() GetServiceResultOutput

func (GetServiceResultOutput) ToGetServiceResultOutputWithContext added in v3.9.0

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

type GetTablesArgs

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

A collection of arguments for invoking getTables.

type GetTablesOutputArgs added in v3.9.0

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

A collection of arguments for invoking getTables.

func (GetTablesOutputArgs) ElementType added in v3.9.0

func (GetTablesOutputArgs) ElementType() reflect.Type

type GetTablesResult

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

A collection of values returned by getTables.

func GetTables

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

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

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

## Example Usage

```go package main

import (

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

)

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

```

type GetTablesResultOutput added in v3.9.0

type GetTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTables.

func GetTablesOutput added in v3.9.0

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

func (GetTablesResultOutput) ElementType added in v3.9.0

func (GetTablesResultOutput) ElementType() reflect.Type

func (GetTablesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetTablesResultOutput) Ids added in v3.9.0

A list of table IDs.

func (GetTablesResultOutput) InstanceName added in v3.9.0

func (o GetTablesResultOutput) InstanceName() pulumi.StringOutput

The OTS instance name.

func (GetTablesResultOutput) NameRegex added in v3.9.0

func (GetTablesResultOutput) Names added in v3.9.0

A list of table names.

func (GetTablesResultOutput) OutputFile added in v3.9.0

func (GetTablesResultOutput) Tables added in v3.9.0

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

func (GetTablesResultOutput) ToGetTablesResultOutput added in v3.9.0

func (o GetTablesResultOutput) ToGetTablesResultOutput() GetTablesResultOutput

func (GetTablesResultOutput) ToGetTablesResultOutputWithContext added in v3.9.0

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

type GetTablesTable

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

type GetTablesTableArgs

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

func (GetTablesTableArgs) ElementType

func (GetTablesTableArgs) ElementType() reflect.Type

func (GetTablesTableArgs) ToGetTablesTableOutput

func (i GetTablesTableArgs) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableArgs) ToGetTablesTableOutputWithContext

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

type GetTablesTableArray

type GetTablesTableArray []GetTablesTableInput

func (GetTablesTableArray) ElementType

func (GetTablesTableArray) ElementType() reflect.Type

func (GetTablesTableArray) ToGetTablesTableArrayOutput

func (i GetTablesTableArray) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArray) ToGetTablesTableArrayOutputWithContext

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

type GetTablesTableArrayInput

type GetTablesTableArrayInput interface {
	pulumi.Input

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

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

GetTablesTableArray{ GetTablesTableArgs{...} }

type GetTablesTableArrayOutput

type GetTablesTableArrayOutput struct{ *pulumi.OutputState }

func (GetTablesTableArrayOutput) ElementType

func (GetTablesTableArrayOutput) ElementType() reflect.Type

func (GetTablesTableArrayOutput) Index

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutput

func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput

func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext

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

type GetTablesTableInput

type GetTablesTableInput interface {
	pulumi.Input

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

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

GetTablesTableArgs{...}

type GetTablesTableOutput

type GetTablesTableOutput struct{ *pulumi.OutputState }

func (GetTablesTableOutput) ElementType

func (GetTablesTableOutput) ElementType() reflect.Type

func (GetTablesTableOutput) Id

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

func (GetTablesTableOutput) InstanceName

func (o GetTablesTableOutput) InstanceName() pulumi.StringOutput

The name of OTS instance.

func (GetTablesTableOutput) MaxVersion

func (o GetTablesTableOutput) MaxVersion() pulumi.IntOutput

The maximum number of versions stored in this table.

func (GetTablesTableOutput) PrimaryKeys

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

func (GetTablesTableOutput) TableName

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

func (GetTablesTableOutput) TimeToLive

func (o GetTablesTableOutput) TimeToLive() pulumi.IntOutput

The retention time of data stored in this table.

func (GetTablesTableOutput) ToGetTablesTableOutput

func (o GetTablesTableOutput) ToGetTablesTableOutput() GetTablesTableOutput

func (GetTablesTableOutput) ToGetTablesTableOutputWithContext

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

type GetTablesTablePrimaryKey

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

type GetTablesTablePrimaryKeyArgs

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

func (GetTablesTablePrimaryKeyArgs) ElementType

func (GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutput

func (i GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput

func (GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutputWithContext

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

type GetTablesTablePrimaryKeyArray

type GetTablesTablePrimaryKeyArray []GetTablesTablePrimaryKeyInput

func (GetTablesTablePrimaryKeyArray) ElementType

func (GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutput

func (i GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput

func (GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutputWithContext

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

type GetTablesTablePrimaryKeyArrayInput

type GetTablesTablePrimaryKeyArrayInput interface {
	pulumi.Input

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

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

GetTablesTablePrimaryKeyArray{ GetTablesTablePrimaryKeyArgs{...} }

type GetTablesTablePrimaryKeyArrayOutput

type GetTablesTablePrimaryKeyArrayOutput struct{ *pulumi.OutputState }

func (GetTablesTablePrimaryKeyArrayOutput) ElementType

func (GetTablesTablePrimaryKeyArrayOutput) Index

func (GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutput

func (o GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput

func (GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutputWithContext

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

type GetTablesTablePrimaryKeyInput

type GetTablesTablePrimaryKeyInput interface {
	pulumi.Input

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

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

GetTablesTablePrimaryKeyArgs{...}

type GetTablesTablePrimaryKeyOutput

type GetTablesTablePrimaryKeyOutput struct{ *pulumi.OutputState }

func (GetTablesTablePrimaryKeyOutput) ElementType

func (GetTablesTablePrimaryKeyOutput) Name

func (GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutput

func (o GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput

func (GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutputWithContext

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

func (GetTablesTablePrimaryKeyOutput) Type

type Instance

type Instance struct {
	pulumi.CustomResourceState

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

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

## Example Usage

```go package main

import (

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

)

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

```

## Import

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

```sh

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

```

func GetInstance

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

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

func NewInstance

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

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

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

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

func (*Instance) ToInstancePtrOutput

func (i *Instance) ToInstancePtrOutput() InstancePtrOutput

func (*Instance) ToInstancePtrOutputWithContext

func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstanceArgs

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

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

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

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

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

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

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

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

type InstanceAttachment

type InstanceAttachment struct {
	pulumi.CustomResourceState

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

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

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooInstance, err := ots.NewInstance(ctx, "fooInstance", &ots.InstanceArgs{
			Description: pulumi.String("for table"),
			AccessedBy:  pulumi.String("Vpc"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("Building table"),
			},
		})
		if err != nil {
			return err
		}
		opt0 := "VSwitch"
		fooZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: &opt0,
		}, 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

func (*InstanceAttachment) ToInstanceAttachmentPtrOutput

func (i *InstanceAttachment) ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput

func (*InstanceAttachment) ToInstanceAttachmentPtrOutputWithContext

func (i *InstanceAttachment) ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput

type InstanceAttachmentArgs

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

The set of arguments for constructing a InstanceAttachment resource.

func (InstanceAttachmentArgs) ElementType

func (InstanceAttachmentArgs) ElementType() reflect.Type

type InstanceAttachmentArray

type InstanceAttachmentArray []InstanceAttachmentInput

func (InstanceAttachmentArray) ElementType

func (InstanceAttachmentArray) ElementType() reflect.Type

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutput

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext

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

type InstanceAttachmentArrayInput

type InstanceAttachmentArrayInput interface {
	pulumi.Input

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

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

InstanceAttachmentArray{ InstanceAttachmentArgs{...} }

type InstanceAttachmentArrayOutput

type InstanceAttachmentArrayOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentArrayOutput) ElementType

func (InstanceAttachmentArrayOutput) Index

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext

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

type InstanceAttachmentInput

type InstanceAttachmentInput interface {
	pulumi.Input

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

type InstanceAttachmentMap

type InstanceAttachmentMap map[string]InstanceAttachmentInput

func (InstanceAttachmentMap) ElementType

func (InstanceAttachmentMap) ElementType() reflect.Type

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutput

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext

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

type InstanceAttachmentMapInput

type InstanceAttachmentMapInput interface {
	pulumi.Input

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

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

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

type InstanceAttachmentMapOutput

type InstanceAttachmentMapOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentMapOutput) ElementType

func (InstanceAttachmentMapOutput) MapIndex

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext

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

type InstanceAttachmentOutput

type InstanceAttachmentOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentOutput) ElementType

func (InstanceAttachmentOutput) ElementType() reflect.Type

func (InstanceAttachmentOutput) ToInstanceAttachmentOutput

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext

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

func (InstanceAttachmentOutput) ToInstanceAttachmentPtrOutput

func (o InstanceAttachmentOutput) ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentPtrOutputWithContext

func (o InstanceAttachmentOutput) ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput

type InstanceAttachmentPtrInput

type InstanceAttachmentPtrInput interface {
	pulumi.Input

	ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput
	ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput
}

type InstanceAttachmentPtrOutput

type InstanceAttachmentPtrOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentPtrOutput) Elem added in v3.9.0

func (InstanceAttachmentPtrOutput) ElementType

func (InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutput

func (o InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput

func (InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutputWithContext

func (o InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput

type InstanceAttachmentState

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

func (InstanceAttachmentState) ElementType

func (InstanceAttachmentState) ElementType() reflect.Type

type InstanceInput

type InstanceInput interface {
	pulumi.Input

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

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

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

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

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

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

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

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

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

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

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

func (InstanceOutput) ToInstancePtrOutput

func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstanceOutput) ToInstancePtrOutputWithContext

func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstancePtrInput

type InstancePtrInput interface {
	pulumi.Input

	ToInstancePtrOutput() InstancePtrOutput
	ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
}

type InstancePtrOutput

type InstancePtrOutput struct{ *pulumi.OutputState }

func (InstancePtrOutput) Elem added in v3.9.0

func (InstancePtrOutput) ElementType

func (InstancePtrOutput) ElementType() reflect.Type

func (InstancePtrOutput) ToInstancePtrOutput

func (o InstancePtrOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstancePtrOutput) ToInstancePtrOutputWithContext

func (o InstancePtrOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstanceState

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

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type Table

type Table struct {
	pulumi.CustomResourceState

	// The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
	DeviationCellVersionInSec pulumi.StringPtrOutput `pulumi:"deviationCellVersionInSec"`
	// 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 table name of the OTS instance. If changed, a new table would be created.
	TableName pulumi.StringOutput `pulumi:"tableName"`
	// The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
	TimeToLive pulumi.IntOutput `pulumi:"timeToLive"`
}

Provides an OTS table resource.

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

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraformtest"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		foo, err := ots.NewInstance(ctx, "foo", &ots.InstanceArgs{
			Description: pulumi.String(name),
			AccessedBy:  pulumi.String("Any"),
			Tags: pulumi.AnyMap{
				"Created": pulumi.Any("TF"),
				"For":     pulumi.Any("acceptance test"),
			},
		})
		if err != nil {
			return err
		}
		_, err = ots.NewTable(ctx, "basic", &ots.TableArgs{
			InstanceName: foo.Name,
			TableName:    pulumi.String(name),
			PrimaryKeys: ots.TablePrimaryKeyArray{
				&ots.TablePrimaryKeyArgs{
					Name: pulumi.String("pk1"),
					Type: pulumi.String("Integer"),
				},
				&ots.TablePrimaryKeyArgs{
					Name: pulumi.String("pk2"),
					Type: pulumi.String("String"),
				},
				&ots.TablePrimaryKeyArgs{
					Name: pulumi.String("pk3"),
					Type: pulumi.String("Binary"),
				},
			},
			TimeToLive:                -1,
			MaxVersion:                pulumi.Int(1),
			DeviationCellVersionInSec: pulumi.String("1"),
		})
		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

func (*Table) ToTablePtrOutput

func (i *Table) ToTablePtrOutput() TablePtrOutput

func (*Table) ToTablePtrOutputWithContext

func (i *Table) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TableArgs

type TableArgs struct {
	// The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
	DeviationCellVersionInSec pulumi.StringPtrInput
	// 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 table name of the OTS instance. If changed, a new table would be created.
	TableName pulumi.StringInput
	// The retention time of data stored in this table (unit: second). The value maximum is 2147483647 and -1 means never expired.
	TimeToLive pulumi.IntInput
}

The set of arguments for constructing a Table resource.

func (TableArgs) ElementType

func (TableArgs) ElementType() reflect.Type

type TableArray

type TableArray []TableInput

func (TableArray) ElementType

func (TableArray) ElementType() reflect.Type

func (TableArray) ToTableArrayOutput

func (i TableArray) ToTableArrayOutput() TableArrayOutput

func (TableArray) ToTableArrayOutputWithContext

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

type TableArrayInput

type TableArrayInput interface {
	pulumi.Input

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

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

TableArray{ TableArgs{...} }

type TableArrayOutput

type TableArrayOutput struct{ *pulumi.OutputState }

func (TableArrayOutput) ElementType

func (TableArrayOutput) ElementType() reflect.Type

func (TableArrayOutput) Index

func (TableArrayOutput) ToTableArrayOutput

func (o TableArrayOutput) ToTableArrayOutput() TableArrayOutput

func (TableArrayOutput) ToTableArrayOutputWithContext

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

type TableInput

type TableInput interface {
	pulumi.Input

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

type TableMap

type TableMap map[string]TableInput

func (TableMap) ElementType

func (TableMap) ElementType() reflect.Type

func (TableMap) ToTableMapOutput

func (i TableMap) ToTableMapOutput() TableMapOutput

func (TableMap) ToTableMapOutputWithContext

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

type TableMapInput

type TableMapInput interface {
	pulumi.Input

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

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

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

type TableMapOutput

type TableMapOutput struct{ *pulumi.OutputState }

func (TableMapOutput) ElementType

func (TableMapOutput) ElementType() reflect.Type

func (TableMapOutput) MapIndex

func (TableMapOutput) ToTableMapOutput

func (o TableMapOutput) ToTableMapOutput() TableMapOutput

func (TableMapOutput) ToTableMapOutputWithContext

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

type TableOutput

type TableOutput struct{ *pulumi.OutputState }

func (TableOutput) ElementType

func (TableOutput) ElementType() reflect.Type

func (TableOutput) ToTableOutput

func (o TableOutput) ToTableOutput() TableOutput

func (TableOutput) ToTableOutputWithContext

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

func (TableOutput) ToTablePtrOutput

func (o TableOutput) ToTablePtrOutput() TablePtrOutput

func (TableOutput) ToTablePtrOutputWithContext

func (o TableOutput) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TablePrimaryKey

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

type TablePrimaryKeyArgs

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

func (TablePrimaryKeyArgs) ElementType

func (TablePrimaryKeyArgs) ElementType() reflect.Type

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutput

func (i TablePrimaryKeyArgs) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyArgs) ToTablePrimaryKeyOutputWithContext

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

type TablePrimaryKeyArray

type TablePrimaryKeyArray []TablePrimaryKeyInput

func (TablePrimaryKeyArray) ElementType

func (TablePrimaryKeyArray) ElementType() reflect.Type

func (TablePrimaryKeyArray) ToTablePrimaryKeyArrayOutput

func (i TablePrimaryKeyArray) ToTablePrimaryKeyArrayOutput() TablePrimaryKeyArrayOutput

func (TablePrimaryKeyArray) ToTablePrimaryKeyArrayOutputWithContext

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

type TablePrimaryKeyArrayInput

type TablePrimaryKeyArrayInput interface {
	pulumi.Input

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

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

TablePrimaryKeyArray{ TablePrimaryKeyArgs{...} }

type TablePrimaryKeyArrayOutput

type TablePrimaryKeyArrayOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyArrayOutput) ElementType

func (TablePrimaryKeyArrayOutput) ElementType() reflect.Type

func (TablePrimaryKeyArrayOutput) Index

func (TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutput

func (o TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutput() TablePrimaryKeyArrayOutput

func (TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutputWithContext

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

type TablePrimaryKeyInput

type TablePrimaryKeyInput interface {
	pulumi.Input

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

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

TablePrimaryKeyArgs{...}

type TablePrimaryKeyOutput

type TablePrimaryKeyOutput struct{ *pulumi.OutputState }

func (TablePrimaryKeyOutput) ElementType

func (TablePrimaryKeyOutput) ElementType() reflect.Type

func (TablePrimaryKeyOutput) Name

Name for primary key.

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutput

func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput

func (TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext

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

func (TablePrimaryKeyOutput) Type

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

type TablePtrInput

type TablePtrInput interface {
	pulumi.Input

	ToTablePtrOutput() TablePtrOutput
	ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput
}

type TablePtrOutput

type TablePtrOutput struct{ *pulumi.OutputState }

func (TablePtrOutput) Elem added in v3.9.0

func (o TablePtrOutput) Elem() TableOutput

func (TablePtrOutput) ElementType

func (TablePtrOutput) ElementType() reflect.Type

func (TablePtrOutput) ToTablePtrOutput

func (o TablePtrOutput) ToTablePtrOutput() TablePtrOutput

func (TablePtrOutput) ToTablePtrOutputWithContext

func (o TablePtrOutput) ToTablePtrOutputWithContext(ctx context.Context) TablePtrOutput

type TableState

type TableState struct {
	// The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400.
	DeviationCellVersionInSec pulumi.StringPtrInput
	// 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 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

Jump to

Keyboard shortcuts

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