Instance

This resource will help you to manager a Table Store Instance. It is foundation of creating data table.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        // Create an OTS instance
        var foo = new AliCloud.Ots.Instance("foo", new AliCloud.Ots.InstanceArgs
        {
            AccessedBy = "Vpc",
            Description = "for table",
            Tags = 
            {
                { "Created", "TF" },
                { "For", "Building table" },
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

# Create an OTS instance
foo = alicloud.ots.Instance("foo",
    accessed_by="Vpc",
    description="for table",
    tags={
        "Created": "TF",
        "For": "Building table",
    })
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

// Create an OTS instance
const foo = new alicloud.ots.Instance("foo", {
    accessedBy: "Vpc",
    description: "for table",
    tags: {
        Created: "TF",
        For: "Building table",
    },
});

Create a Instance Resource

def Instance(resource_name, opts=None, accessed_by=None, description=None, instance_type=None, name=None, tags=None, __props__=None);
func NewInstance(ctx *Context, name string, args *InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Instance Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Instance resource accepts the following input properties:

AccessedBy string

The network limitation of accessing instance. Valid values:

Description string

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

InstanceType string

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

Name string

The name of the instance.

Tags Dictionary<string, object>

A mapping of tags to assign to the instance.

AccessedBy string

The network limitation of accessing instance. Valid values:

Description string

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

InstanceType string

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

Name string

The name of the instance.

Tags map[string]interface{}

A mapping of tags to assign to the instance.

accessedBy string

The network limitation of accessing instance. Valid values:

description string

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

instanceType string

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

name string

The name of the instance.

tags {[key: string]: any}

A mapping of tags to assign to the instance.

accessed_by str

The network limitation of accessing instance. Valid values:

description str

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

instance_type str

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

name str

The name of the instance.

tags Dict[str, Any]

A mapping of tags to assign to the instance.

Outputs

All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Instance Resource

Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance
static get(resource_name, id, opts=None, accessed_by=None, description=None, instance_type=None, name=None, tags=None, __props__=None);
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AccessedBy string

The network limitation of accessing instance. Valid values:

Description string

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

InstanceType string

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

Name string

The name of the instance.

Tags Dictionary<string, object>

A mapping of tags to assign to the instance.

AccessedBy string

The network limitation of accessing instance. Valid values:

Description string

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

InstanceType string

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

Name string

The name of the instance.

Tags map[string]interface{}

A mapping of tags to assign to the instance.

accessedBy string

The network limitation of accessing instance. Valid values:

description string

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

instanceType string

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

name string

The name of the instance.

tags {[key: string]: any}

A mapping of tags to assign to the instance.

accessed_by str

The network limitation of accessing instance. Valid values:

description str

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

instance_type str

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

name str

The name of the instance.

tags Dict[str, Any]

A mapping of tags to assign to the instance.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.