Documentation
¶
Index ¶
- type GetInstanceAttachmentsArgs
- type GetInstanceAttachmentsAttachment
- type GetInstanceAttachmentsAttachmentArgs
- func (GetInstanceAttachmentsAttachmentArgs) ElementType() reflect.Type
- func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput
- func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput
- type GetInstanceAttachmentsAttachmentArray
- func (GetInstanceAttachmentsAttachmentArray) ElementType() reflect.Type
- func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput
- func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput
- type GetInstanceAttachmentsAttachmentArrayInput
- type GetInstanceAttachmentsAttachmentArrayOutput
- func (GetInstanceAttachmentsAttachmentArrayOutput) ElementType() reflect.Type
- func (o GetInstanceAttachmentsAttachmentArrayOutput) Index(i pulumi.IntInput) GetInstanceAttachmentsAttachmentOutput
- func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput
- func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput
- type GetInstanceAttachmentsAttachmentInput
- type GetInstanceAttachmentsAttachmentOutput
- func (o GetInstanceAttachmentsAttachmentOutput) Domain() pulumi.StringOutput
- func (GetInstanceAttachmentsAttachmentOutput) ElementType() reflect.Type
- func (o GetInstanceAttachmentsAttachmentOutput) Endpoint() pulumi.StringOutput
- func (o GetInstanceAttachmentsAttachmentOutput) Id() pulumi.StringOutput
- func (o GetInstanceAttachmentsAttachmentOutput) InstanceName() pulumi.StringOutput
- func (o GetInstanceAttachmentsAttachmentOutput) Region() pulumi.StringOutput
- func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput
- func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput
- func (o GetInstanceAttachmentsAttachmentOutput) VpcId() pulumi.StringOutput
- func (o GetInstanceAttachmentsAttachmentOutput) VpcName() pulumi.StringOutput
- type GetInstanceAttachmentsResult
- type GetInstancesArgs
- type GetInstancesInstance
- type GetInstancesInstanceArgs
- type GetInstancesInstanceArray
- type GetInstancesInstanceArrayInput
- type GetInstancesInstanceArrayOutput
- func (GetInstancesInstanceArrayOutput) ElementType() reflect.Type
- func (o GetInstancesInstanceArrayOutput) Index(i pulumi.IntInput) GetInstancesInstanceOutput
- func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
- func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput
- type GetInstancesInstanceInput
- type GetInstancesInstanceOutput
- func (o GetInstancesInstanceOutput) ClusterType() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) CreateTime() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) Description() pulumi.StringOutput
- func (GetInstancesInstanceOutput) ElementType() reflect.Type
- func (o GetInstancesInstanceOutput) EntityQuota() pulumi.IntOutput
- func (o GetInstancesInstanceOutput) Id() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) Name() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) Network() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) ReadCapacity() pulumi.IntOutput
- func (o GetInstancesInstanceOutput) Status() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) Tags() pulumi.MapOutput
- func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
- func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput
- func (o GetInstancesInstanceOutput) UserId() pulumi.StringOutput
- func (o GetInstancesInstanceOutput) WriteCapacity() pulumi.IntOutput
- type GetInstancesResult
- type GetServiceArgs
- type GetServiceResult
- type GetTablesArgs
- type GetTablesResult
- type GetTablesTable
- type GetTablesTableArgs
- type GetTablesTableArray
- type GetTablesTableArrayInput
- type GetTablesTableArrayOutput
- func (GetTablesTableArrayOutput) ElementType() reflect.Type
- func (o GetTablesTableArrayOutput) Index(i pulumi.IntInput) GetTablesTableOutput
- func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput
- func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput
- type GetTablesTableInput
- type GetTablesTableOutput
- func (GetTablesTableOutput) ElementType() reflect.Type
- func (o GetTablesTableOutput) Id() pulumi.StringOutput
- func (o GetTablesTableOutput) InstanceName() pulumi.StringOutput
- func (o GetTablesTableOutput) MaxVersion() pulumi.IntOutput
- func (o GetTablesTableOutput) PrimaryKeys() GetTablesTablePrimaryKeyArrayOutput
- func (o GetTablesTableOutput) TableName() pulumi.StringOutput
- func (o GetTablesTableOutput) TimeToLive() pulumi.IntOutput
- func (o GetTablesTableOutput) ToGetTablesTableOutput() GetTablesTableOutput
- func (o GetTablesTableOutput) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput
- type GetTablesTablePrimaryKey
- type GetTablesTablePrimaryKeyArgs
- func (GetTablesTablePrimaryKeyArgs) ElementType() reflect.Type
- func (i GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput
- func (i GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyOutput
- type GetTablesTablePrimaryKeyArray
- func (GetTablesTablePrimaryKeyArray) ElementType() reflect.Type
- func (i GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput
- func (i GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyArrayOutput
- type GetTablesTablePrimaryKeyArrayInput
- type GetTablesTablePrimaryKeyArrayOutput
- func (GetTablesTablePrimaryKeyArrayOutput) ElementType() reflect.Type
- func (o GetTablesTablePrimaryKeyArrayOutput) Index(i pulumi.IntInput) GetTablesTablePrimaryKeyOutput
- func (o GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput
- func (o GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyArrayOutput
- type GetTablesTablePrimaryKeyInput
- type GetTablesTablePrimaryKeyOutput
- func (GetTablesTablePrimaryKeyOutput) ElementType() reflect.Type
- func (o GetTablesTablePrimaryKeyOutput) Name() pulumi.StringOutput
- func (o GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput
- func (o GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyOutput
- func (o GetTablesTablePrimaryKeyOutput) Type() pulumi.StringOutput
- type Instance
- type InstanceArgs
- type InstanceAttachment
- type InstanceAttachmentArgs
- type InstanceAttachmentInput
- type InstanceAttachmentOutput
- type InstanceAttachmentState
- type InstanceInput
- type InstanceOutput
- type InstanceState
- type Table
- type TableArgs
- type TableInput
- type TableOutput
- type TablePrimaryKey
- type TablePrimaryKeyArgs
- type TablePrimaryKeyArray
- type TablePrimaryKeyArrayInput
- type TablePrimaryKeyArrayOutput
- func (TablePrimaryKeyArrayOutput) ElementType() reflect.Type
- func (o TablePrimaryKeyArrayOutput) Index(i pulumi.IntInput) TablePrimaryKeyOutput
- func (o TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutput() TablePrimaryKeyArrayOutput
- func (o TablePrimaryKeyArrayOutput) ToTablePrimaryKeyArrayOutputWithContext(ctx context.Context) TablePrimaryKeyArrayOutput
- type TablePrimaryKeyInput
- type TablePrimaryKeyOutput
- func (TablePrimaryKeyOutput) ElementType() reflect.Type
- func (o TablePrimaryKeyOutput) Name() pulumi.StringOutput
- func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutput() TablePrimaryKeyOutput
- func (o TablePrimaryKeyOutput) ToTablePrimaryKeyOutputWithContext(ctx context.Context) TablePrimaryKeyOutput
- func (o TablePrimaryKeyOutput) Type() pulumi.StringOutput
- type TableState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetInstanceAttachmentsArgs ¶ added in v2.18.0
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 ¶ added in v2.18.0
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 ¶ added in v2.18.0
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 ¶ added in v2.18.0
func (GetInstanceAttachmentsAttachmentArgs) ElementType() reflect.Type
func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput ¶ added in v2.18.0
func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput
func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext ¶ added in v2.18.0
func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput
type GetInstanceAttachmentsAttachmentArray ¶ added in v2.18.0
type GetInstanceAttachmentsAttachmentArray []GetInstanceAttachmentsAttachmentInput
func (GetInstanceAttachmentsAttachmentArray) ElementType ¶ added in v2.18.0
func (GetInstanceAttachmentsAttachmentArray) ElementType() reflect.Type
func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput ¶ added in v2.18.0
func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput
func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext ¶ added in v2.18.0
func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput
type GetInstanceAttachmentsAttachmentArrayInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetInstanceAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }
func (GetInstanceAttachmentsAttachmentArrayOutput) ElementType ¶ added in v2.18.0
func (GetInstanceAttachmentsAttachmentArrayOutput) ElementType() reflect.Type
func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput
func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput
type GetInstanceAttachmentsAttachmentInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetInstanceAttachmentsAttachmentOutput struct{ *pulumi.OutputState }
func (GetInstanceAttachmentsAttachmentOutput) Domain ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) Domain() pulumi.StringOutput
The domain of the instance attachment.
func (GetInstanceAttachmentsAttachmentOutput) ElementType ¶ added in v2.18.0
func (GetInstanceAttachmentsAttachmentOutput) ElementType() reflect.Type
func (GetInstanceAttachmentsAttachmentOutput) Endpoint ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) Endpoint() pulumi.StringOutput
The access endpoint of the instance attachment.
func (GetInstanceAttachmentsAttachmentOutput) Id ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) Id() pulumi.StringOutput
The resource ID, the value is same as "instanceName".
func (GetInstanceAttachmentsAttachmentOutput) InstanceName ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) InstanceName() pulumi.StringOutput
The name of OTS instance.
func (GetInstanceAttachmentsAttachmentOutput) Region ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) Region() pulumi.StringOutput
The region of the instance attachment.
func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput
func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput
func (GetInstanceAttachmentsAttachmentOutput) VpcId ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) VpcId() pulumi.StringOutput
The ID of attaching VPC to instance.
func (GetInstanceAttachmentsAttachmentOutput) VpcName ¶ added in v2.18.0
func (o GetInstanceAttachmentsAttachmentOutput) VpcName() pulumi.StringOutput
The name of attaching VPC to instance.
type GetInstanceAttachmentsResult ¶ added in v2.18.0
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 ¶ added in v2.18.0
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/v2/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v2/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 GetInstancesArgs ¶ added in v2.18.0
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/v2/go/alicloud/ots" // "github.com/pulumi/pulumi/sdk/v2/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 ¶ added in v2.18.0
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/v2/go/alicloud/ots" // "github.com/pulumi/pulumi/sdk/v2/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 ¶ added in v2.18.0
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/v2/go/alicloud/ots" // "github.com/pulumi/pulumi/sdk/v2/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 ¶ added in v2.18.0
func (GetInstancesInstanceArgs) ElementType() reflect.Type
func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput ¶ added in v2.18.0
func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext ¶ added in v2.18.0
func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput
type GetInstancesInstanceArray ¶ added in v2.18.0
type GetInstancesInstanceArray []GetInstancesInstanceInput
func (GetInstancesInstanceArray) ElementType ¶ added in v2.18.0
func (GetInstancesInstanceArray) ElementType() reflect.Type
func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput ¶ added in v2.18.0
func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext ¶ added in v2.18.0
func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput
type GetInstancesInstanceArrayInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }
func (GetInstancesInstanceArrayOutput) ElementType ¶ added in v2.18.0
func (GetInstancesInstanceArrayOutput) ElementType() reflect.Type
func (GetInstancesInstanceArrayOutput) Index ¶ added in v2.18.0
func (o GetInstancesInstanceArrayOutput) Index(i pulumi.IntInput) GetInstancesInstanceOutput
func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput ¶ added in v2.18.0
func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext ¶ added in v2.18.0
func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput
type GetInstancesInstanceInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetInstancesInstanceOutput struct{ *pulumi.OutputState }
func (GetInstancesInstanceOutput) ClusterType ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) ClusterType() pulumi.StringOutput
The cluster type of the instance. Possible values: `SSD`, `HYBRID`.
func (GetInstancesInstanceOutput) CreateTime ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) CreateTime() pulumi.StringOutput
The create time of the instance.
func (GetInstancesInstanceOutput) Description ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) Description() pulumi.StringOutput
The description of the instance.
func (GetInstancesInstanceOutput) ElementType ¶ added in v2.18.0
func (GetInstancesInstanceOutput) ElementType() reflect.Type
func (GetInstancesInstanceOutput) EntityQuota ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) EntityQuota() pulumi.IntOutput
The instance quota which indicating the maximum number of tables.
func (GetInstancesInstanceOutput) Id ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) Id() pulumi.StringOutput
ID of the instance.
func (GetInstancesInstanceOutput) Name ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) Name() pulumi.StringOutput
Instance name.
func (GetInstancesInstanceOutput) Network ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) Network() pulumi.StringOutput
The network type of the instance. Possible values: `NORMAL`, `VPC`, `VPC_CONSOLE`.
func (GetInstancesInstanceOutput) ReadCapacity ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) ReadCapacity() pulumi.IntOutput
The maximum adjustable read capacity unit of the instance.
func (GetInstancesInstanceOutput) Status ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) Status() pulumi.StringOutput
Instance status. Possible values: `Running`, `Disabled`, `Deleting`.
func (GetInstancesInstanceOutput) Tags ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) Tags() pulumi.MapOutput
A map of tags assigned to the instance. It must be in the format: ```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v2/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 ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput
func (GetInstancesInstanceOutput) UserId ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) UserId() pulumi.StringOutput
The user id of the instance.
func (GetInstancesInstanceOutput) WriteCapacity ¶ added in v2.18.0
func (o GetInstancesInstanceOutput) WriteCapacity() pulumi.IntOutput
The maximum adjustable write capacity unit of the instance.
type GetInstancesResult ¶ added in v2.18.0
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 ¶ added in v2.18.0
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/v2/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v2/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 GetServiceArgs ¶ added in v2.18.0
type GetServiceArgs struct { // Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: "On" or "Off". Enable *string `pulumi:"enable"` }
A collection of arguments for invoking getService.
type GetServiceResult ¶ added in v2.18.0
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 ¶ added in v2.18.0
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/v2/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v2/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 GetTablesArgs ¶ added in v2.18.0
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 GetTablesResult ¶ added in v2.18.0
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 ¶ added in v2.18.0
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/v2/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v2/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 GetTablesTable ¶ added in v2.18.0
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 ¶ added in v2.18.0
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 ¶ added in v2.18.0
func (GetTablesTableArgs) ElementType() reflect.Type
func (GetTablesTableArgs) ToGetTablesTableOutput ¶ added in v2.18.0
func (i GetTablesTableArgs) ToGetTablesTableOutput() GetTablesTableOutput
func (GetTablesTableArgs) ToGetTablesTableOutputWithContext ¶ added in v2.18.0
func (i GetTablesTableArgs) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput
type GetTablesTableArray ¶ added in v2.18.0
type GetTablesTableArray []GetTablesTableInput
func (GetTablesTableArray) ElementType ¶ added in v2.18.0
func (GetTablesTableArray) ElementType() reflect.Type
func (GetTablesTableArray) ToGetTablesTableArrayOutput ¶ added in v2.18.0
func (i GetTablesTableArray) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput
func (GetTablesTableArray) ToGetTablesTableArrayOutputWithContext ¶ added in v2.18.0
func (i GetTablesTableArray) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput
type GetTablesTableArrayInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetTablesTableArrayOutput struct{ *pulumi.OutputState }
func (GetTablesTableArrayOutput) ElementType ¶ added in v2.18.0
func (GetTablesTableArrayOutput) ElementType() reflect.Type
func (GetTablesTableArrayOutput) Index ¶ added in v2.18.0
func (o GetTablesTableArrayOutput) Index(i pulumi.IntInput) GetTablesTableOutput
func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutput ¶ added in v2.18.0
func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutput() GetTablesTableArrayOutput
func (GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext ¶ added in v2.18.0
func (o GetTablesTableArrayOutput) ToGetTablesTableArrayOutputWithContext(ctx context.Context) GetTablesTableArrayOutput
type GetTablesTableInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetTablesTableOutput struct{ *pulumi.OutputState }
func (GetTablesTableOutput) ElementType ¶ added in v2.18.0
func (GetTablesTableOutput) ElementType() reflect.Type
func (GetTablesTableOutput) Id ¶ added in v2.18.0
func (o GetTablesTableOutput) Id() pulumi.StringOutput
ID of the table. The value is `<instance_name>:<table_name>`.
func (GetTablesTableOutput) InstanceName ¶ added in v2.18.0
func (o GetTablesTableOutput) InstanceName() pulumi.StringOutput
The name of OTS instance.
func (GetTablesTableOutput) MaxVersion ¶ added in v2.18.0
func (o GetTablesTableOutput) MaxVersion() pulumi.IntOutput
The maximum number of versions stored in this table.
func (GetTablesTableOutput) PrimaryKeys ¶ added in v2.18.0
func (o GetTablesTableOutput) PrimaryKeys() GetTablesTablePrimaryKeyArrayOutput
The property of `TableMeta` which indicates the structure information of a table.
func (GetTablesTableOutput) TableName ¶ added in v2.18.0
func (o GetTablesTableOutput) TableName() pulumi.StringOutput
The table name of the OTS which could not be changed.
func (GetTablesTableOutput) TimeToLive ¶ added in v2.18.0
func (o GetTablesTableOutput) TimeToLive() pulumi.IntOutput
The retention time of data stored in this table.
func (GetTablesTableOutput) ToGetTablesTableOutput ¶ added in v2.18.0
func (o GetTablesTableOutput) ToGetTablesTableOutput() GetTablesTableOutput
func (GetTablesTableOutput) ToGetTablesTableOutputWithContext ¶ added in v2.18.0
func (o GetTablesTableOutput) ToGetTablesTableOutputWithContext(ctx context.Context) GetTablesTableOutput
type GetTablesTablePrimaryKey ¶ added in v2.18.0
type GetTablesTablePrimaryKeyArgs ¶ added in v2.18.0
type GetTablesTablePrimaryKeyArgs struct { Name pulumi.StringInput `pulumi:"name"` Type pulumi.StringInput `pulumi:"type"` }
func (GetTablesTablePrimaryKeyArgs) ElementType ¶ added in v2.18.0
func (GetTablesTablePrimaryKeyArgs) ElementType() reflect.Type
func (GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutput ¶ added in v2.18.0
func (i GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput
func (GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutputWithContext ¶ added in v2.18.0
func (i GetTablesTablePrimaryKeyArgs) ToGetTablesTablePrimaryKeyOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyOutput
type GetTablesTablePrimaryKeyArray ¶ added in v2.18.0
type GetTablesTablePrimaryKeyArray []GetTablesTablePrimaryKeyInput
func (GetTablesTablePrimaryKeyArray) ElementType ¶ added in v2.18.0
func (GetTablesTablePrimaryKeyArray) ElementType() reflect.Type
func (GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutput ¶ added in v2.18.0
func (i GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput
func (GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutputWithContext ¶ added in v2.18.0
func (i GetTablesTablePrimaryKeyArray) ToGetTablesTablePrimaryKeyArrayOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyArrayOutput
type GetTablesTablePrimaryKeyArrayInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetTablesTablePrimaryKeyArrayOutput struct{ *pulumi.OutputState }
func (GetTablesTablePrimaryKeyArrayOutput) ElementType ¶ added in v2.18.0
func (GetTablesTablePrimaryKeyArrayOutput) ElementType() reflect.Type
func (GetTablesTablePrimaryKeyArrayOutput) Index ¶ added in v2.18.0
func (o GetTablesTablePrimaryKeyArrayOutput) Index(i pulumi.IntInput) GetTablesTablePrimaryKeyOutput
func (GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutput ¶ added in v2.18.0
func (o GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutput() GetTablesTablePrimaryKeyArrayOutput
func (GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutputWithContext ¶ added in v2.18.0
func (o GetTablesTablePrimaryKeyArrayOutput) ToGetTablesTablePrimaryKeyArrayOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyArrayOutput
type GetTablesTablePrimaryKeyInput ¶ added in v2.18.0
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 ¶ added in v2.18.0
type GetTablesTablePrimaryKeyOutput struct{ *pulumi.OutputState }
func (GetTablesTablePrimaryKeyOutput) ElementType ¶ added in v2.18.0
func (GetTablesTablePrimaryKeyOutput) ElementType() reflect.Type
func (GetTablesTablePrimaryKeyOutput) Name ¶ added in v2.18.0
func (o GetTablesTablePrimaryKeyOutput) Name() pulumi.StringOutput
func (GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutput ¶ added in v2.18.0
func (o GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutput() GetTablesTablePrimaryKeyOutput
func (GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutputWithContext ¶ added in v2.18.0
func (o GetTablesTablePrimaryKeyOutput) ToGetTablesTablePrimaryKeyOutputWithContext(ctx context.Context) GetTablesTablePrimaryKeyOutput
func (GetTablesTablePrimaryKeyOutput) Type ¶ added in v2.18.0
func (o GetTablesTablePrimaryKeyOutput) Type() pulumi.StringOutput
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/v2/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v2/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.StringMap{ "Created": pulumi.String("TF"), "For": pulumi.String("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 ¶ added in v2.25.1
func (Instance) ToInstanceOutput ¶ added in v2.25.1
func (i Instance) ToInstanceOutput() InstanceOutput
func (Instance) ToInstanceOutputWithContext ¶ added in v2.25.1
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 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/v2/go/alicloud" "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ots" "github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v2/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.StringMap{ "Created": pulumi.String("TF"), "For": pulumi.String("Building table"), }, }) if err != nil { return err } opt0 := "VSwitch" fooZones, err := alicloud.GetZones(ctx, &alicloud.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(), CidrBlock: pulumi.String("172.16.1.0/24"), AvailabilityZone: 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 ¶ added in v2.25.1
func (InstanceAttachment) ElementType() reflect.Type
func (InstanceAttachment) ToInstanceAttachmentOutput ¶ added in v2.25.1
func (i InstanceAttachment) ToInstanceAttachmentOutput() InstanceAttachmentOutput
func (InstanceAttachment) ToInstanceAttachmentOutputWithContext ¶ added in v2.25.1
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 InstanceAttachmentInput ¶ added in v2.25.1
type InstanceAttachmentInput interface { pulumi.Input ToInstanceAttachmentOutput() InstanceAttachmentOutput ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput }
type InstanceAttachmentOutput ¶ added in v2.25.1
type InstanceAttachmentOutput struct {
*pulumi.OutputState
}
func (InstanceAttachmentOutput) ElementType ¶ added in v2.25.1
func (InstanceAttachmentOutput) ElementType() reflect.Type
func (InstanceAttachmentOutput) ToInstanceAttachmentOutput ¶ added in v2.25.1
func (o InstanceAttachmentOutput) ToInstanceAttachmentOutput() InstanceAttachmentOutput
func (InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext ¶ added in v2.25.1
func (o InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput
type InstanceAttachmentState ¶
type InstanceAttachmentState struct { // The name of the OTS instance. InstanceName pulumi.StringPtrInput // The ID of attaching VPC to instance. VpcId pulumi.StringPtrInput // The name of attaching VPC to instance. VpcName pulumi.StringPtrInput // The ID of attaching VSwitch to instance. VswitchId pulumi.StringPtrInput }
func (InstanceAttachmentState) ElementType ¶
func (InstanceAttachmentState) ElementType() reflect.Type
type InstanceInput ¶ added in v2.25.1
type InstanceInput interface { pulumi.Input ToInstanceOutput() InstanceOutput ToInstanceOutputWithContext(ctx context.Context) InstanceOutput }
type InstanceOutput ¶ added in v2.25.1
type InstanceOutput struct {
*pulumi.OutputState
}
func (InstanceOutput) ElementType ¶ added in v2.25.1
func (InstanceOutput) ElementType() reflect.Type
func (InstanceOutput) ToInstanceOutput ¶ added in v2.25.1
func (o InstanceOutput) ToInstanceOutput() InstanceOutput
func (InstanceOutput) ToInstanceOutputWithContext ¶ added in v2.25.1
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
type InstanceState ¶
type InstanceState struct { // The network limitation of accessing instance. Valid values: AccessedBy pulumi.StringPtrInput // The description of the instance. Currently, it does not support modifying. Description pulumi.StringPtrInput // The type of instance. Valid values are "Capacity" and "HighPerformance". Default to "HighPerformance". InstanceType pulumi.StringPtrInput // The name of the instance. Name pulumi.StringPtrInput // A mapping of tags to assign to the instance. Tags pulumi.MapInput }
func (InstanceState) ElementType ¶
func (InstanceState) ElementType() reflect.Type
type Table ¶
type Table struct { pulumi.CustomResourceState // The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400. DeviationCellVersionInSec pulumi.StringPtrOutput `pulumi:"deviationCellVersionInSec"` // 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/v2/go/alicloud/ots" "github.com/pulumi/pulumi/sdk/v2/go/pulumi" "github.com/pulumi/pulumi/sdk/v2/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.StringMap{ "Created": pulumi.String("TF"), "For": pulumi.String("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: pulumi.Int(-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 ¶ added in v2.25.1
func (Table) ToTableOutput ¶ added in v2.25.1
func (i Table) ToTableOutput() TableOutput
func (Table) ToTableOutputWithContext ¶ added in v2.25.1
func (i Table) ToTableOutputWithContext(ctx context.Context) TableOutput
type TableArgs ¶
type TableArgs struct { // The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400. DeviationCellVersionInSec pulumi.StringPtrInput // 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 ¶
type TableInput ¶ added in v2.25.1
type TableInput interface { pulumi.Input ToTableOutput() TableOutput ToTableOutputWithContext(ctx context.Context) TableOutput }
type TableOutput ¶ added in v2.25.1
type TableOutput struct {
*pulumi.OutputState
}
func (TableOutput) ElementType ¶ added in v2.25.1
func (TableOutput) ElementType() reflect.Type
func (TableOutput) ToTableOutput ¶ added in v2.25.1
func (o TableOutput) ToTableOutput() TableOutput
func (TableOutput) ToTableOutputWithContext ¶ added in v2.25.1
func (o TableOutput) ToTableOutputWithContext(ctx context.Context) TableOutput
type TablePrimaryKey ¶
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 (o TablePrimaryKeyArrayOutput) Index(i pulumi.IntInput) TablePrimaryKeyOutput
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 ¶
func (o TablePrimaryKeyOutput) Name() pulumi.StringOutput
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 ¶
func (o TablePrimaryKeyOutput) Type() pulumi.StringOutput
Type for primary key. Only `Integer`, `String` or `Binary` is allowed.
type TableState ¶
type TableState struct { // The max version offset of the table. The valid value is 1-9223372036854775807. Defaults to 86400. DeviationCellVersionInSec pulumi.StringPtrInput // 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