tsdb

package
v2.38.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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 GetInstancesArgs

type GetInstancesArgs struct {
	// The app key.
	AppKey *string `pulumi:"appKey"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// The engine type of instance. Enumerative: `tsdbTsdb` refers to TSDB, `tsdbInfluxdb` refers to TSDB for InfluxDB️.
	EngineType *string `pulumi:"engineType"`
	// A list of Instance IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The query str.
	QueryStr *string `pulumi:"queryStr"`
	// Instance status, enumerative: ACTIVATION,DELETED, CREATING,CLASS_CHANGING,LOCKED.
	Status *string `pulumi:"status"`
	// The status list.
	StatusList *string `pulumi:"statusList"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstance

type GetInstancesInstance struct {
	// Auto renew.
	AutoRenew string `pulumi:"autoRenew"`
	// The cpu core number of instance.
	CpuNumber string `pulumi:"cpuNumber"`
	// The disk type of instance. `cloudSsd` refers to SSD disk, `cloudEfficiency` refers to efficiency disk,cloud_essd refers to ESSD PL1 disk.
	DiskCategory string `pulumi:"diskCategory"`
	// The engine type of instance. Enumerative: `tsdbTsdb` refers to TSDB, `tsdbInfluxdb` refers to TSDB for InfluxDB️.
	EngineType string `pulumi:"engineType"`
	// Instance expiration time.
	ExpiredTime int `pulumi:"expiredTime"`
	// The ID of the Instance.
	Id string `pulumi:"id"`
	// The alias of the instance.
	InstanceAlias string `pulumi:"instanceAlias"`
	// The specification of the instance.
	InstanceClass string `pulumi:"instanceClass"`
	// The ID of the instance.
	InstanceId string `pulumi:"instanceId"`
	// The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB.
	InstanceStorage string `pulumi:"instanceStorage"`
	// The memory size of instance.
	MemorySize string `pulumi:"memorySize"`
	// Instance network type.
	NetworkType string `pulumi:"networkType"`
	// The billing method. Valid values: `PayAsYouGo` and `Subscription`. The `PayAsYouGo` value indicates the pay-as-you-go method, and the `Subscription` value indicates the subscription method.
	PaymentType string `pulumi:"paymentType"`
	// Instance status, enumerative: ACTIVATION,DELETED, CREATING,CLASS_CHANGING,LOCKED.
	Status string `pulumi:"status"`
	// The vpc connection address of instance.
	VpcConnectionAddress string `pulumi:"vpcConnectionAddress"`
	// The ID of the virtual private cloud (VPC) that is connected to the instance.
	VpcId string `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId string `pulumi:"vswitchId"`
	// The zone ID of the instance.
	ZoneId string `pulumi:"zoneId"`
}

type GetInstancesInstanceArgs

type GetInstancesInstanceArgs struct {
	// Auto renew.
	AutoRenew pulumi.StringInput `pulumi:"autoRenew"`
	// The cpu core number of instance.
	CpuNumber pulumi.StringInput `pulumi:"cpuNumber"`
	// The disk type of instance. `cloudSsd` refers to SSD disk, `cloudEfficiency` refers to efficiency disk,cloud_essd refers to ESSD PL1 disk.
	DiskCategory pulumi.StringInput `pulumi:"diskCategory"`
	// The engine type of instance. Enumerative: `tsdbTsdb` refers to TSDB, `tsdbInfluxdb` refers to TSDB for InfluxDB️.
	EngineType pulumi.StringInput `pulumi:"engineType"`
	// Instance expiration time.
	ExpiredTime pulumi.IntInput `pulumi:"expiredTime"`
	// The ID of the Instance.
	Id pulumi.StringInput `pulumi:"id"`
	// The alias of the instance.
	InstanceAlias pulumi.StringInput `pulumi:"instanceAlias"`
	// The specification of the instance.
	InstanceClass pulumi.StringInput `pulumi:"instanceClass"`
	// The ID of the instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB.
	InstanceStorage pulumi.StringInput `pulumi:"instanceStorage"`
	// The memory size of instance.
	MemorySize pulumi.StringInput `pulumi:"memorySize"`
	// Instance network type.
	NetworkType pulumi.StringInput `pulumi:"networkType"`
	// The billing method. Valid values: `PayAsYouGo` and `Subscription`. The `PayAsYouGo` value indicates the pay-as-you-go method, and the `Subscription` value indicates the subscription method.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// Instance status, enumerative: ACTIVATION,DELETED, CREATING,CLASS_CHANGING,LOCKED.
	Status pulumi.StringInput `pulumi:"status"`
	// The vpc connection address of instance.
	VpcConnectionAddress pulumi.StringInput `pulumi:"vpcConnectionAddress"`
	// The ID of the virtual private cloud (VPC) that is connected to the instance.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// The zone ID of the instance.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

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

Auto renew.

func (GetInstancesInstanceOutput) CpuNumber

The cpu core number of instance.

func (GetInstancesInstanceOutput) DiskCategory

The disk type of instance. `cloudSsd` refers to SSD disk, `cloudEfficiency` refers to efficiency disk,cloud_essd refers to ESSD PL1 disk.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) EngineType

The engine type of instance. Enumerative: `tsdbTsdb` refers to TSDB, `tsdbInfluxdb` refers to TSDB for InfluxDB️.

func (GetInstancesInstanceOutput) ExpiredTime

Instance expiration time.

func (GetInstancesInstanceOutput) Id

The ID of the Instance.

func (GetInstancesInstanceOutput) InstanceAlias

The alias of the instance.

func (GetInstancesInstanceOutput) InstanceClass

The specification of the instance.

func (GetInstancesInstanceOutput) InstanceId

The ID of the instance.

func (GetInstancesInstanceOutput) InstanceStorage

func (o GetInstancesInstanceOutput) InstanceStorage() pulumi.StringOutput

The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB.

func (GetInstancesInstanceOutput) MemorySize

The memory size of instance.

func (GetInstancesInstanceOutput) NetworkType

Instance network type.

func (GetInstancesInstanceOutput) PaymentType

The billing method. Valid values: `PayAsYouGo` and `Subscription`. The `PayAsYouGo` value indicates the pay-as-you-go method, and the `Subscription` value indicates the subscription method.

func (GetInstancesInstanceOutput) Status

Instance status, enumerative: ACTIVATION,DELETED, CREATING,CLASS_CHANGING,LOCKED.

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

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

func (GetInstancesInstanceOutput) VpcConnectionAddress

func (o GetInstancesInstanceOutput) VpcConnectionAddress() pulumi.StringOutput

The vpc connection address of instance.

func (GetInstancesInstanceOutput) VpcId

The ID of the virtual private cloud (VPC) that is connected to the instance.

func (GetInstancesInstanceOutput) VswitchId

The vswitch id.

func (GetInstancesInstanceOutput) ZoneId

The zone ID of the instance.

type GetInstancesResult

type GetInstancesResult struct {
	AppKey        *string `pulumi:"appKey"`
	EnableDetails *bool   `pulumi:"enableDetails"`
	EngineType    *string `pulumi:"engineType"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Ids        []string               `pulumi:"ids"`
	Instances  []GetInstancesInstance `pulumi:"instances"`
	OutputFile *string                `pulumi:"outputFile"`
	QueryStr   *string                `pulumi:"queryStr"`
	Status     *string                `pulumi:"status"`
	StatusList *string                `pulumi:"statusList"`
}

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 Time Series Database (TSDB) Instances of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/tsdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := tsdb.GetInstances(ctx, &tsdb.GetInstancesArgs{
			Ids: []string{
				"example_value",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTsdbInstanceId", example.Instances[0].Id)
		return nil
	})
}

```

type GetZonesArgs

type GetZonesArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getZones.

type GetZonesResult

type GetZonesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string         `pulumi:"id"`
	Ids        []string       `pulumi:"ids"`
	OutputFile *string        `pulumi:"outputFile"`
	Zones      []GetZonesZone `pulumi:"zones"`
}

A collection of values returned by getZones.

func GetZones

func GetZones(ctx *pulumi.Context, args *GetZonesArgs, opts ...pulumi.InvokeOption) (*GetZonesResult, error)

This data source provides the available zones with the Time Series Database (TSDB) Instance of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/tsdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := tsdb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTsdbZonesId", example.Zones[0].ZoneId)
		return nil
	})
}

```

type GetZonesZone

type GetZonesZone struct {
	// The ID of zone.
	Id string `pulumi:"id"`
	// The local name.
	LocalName string `pulumi:"localName"`
	// The zone ID.
	ZoneId string `pulumi:"zoneId"`
}

type GetZonesZoneArgs

type GetZonesZoneArgs struct {
	// The ID of zone.
	Id pulumi.StringInput `pulumi:"id"`
	// The local name.
	LocalName pulumi.StringInput `pulumi:"localName"`
	// The zone ID.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetZonesZoneArgs) ElementType

func (GetZonesZoneArgs) ElementType() reflect.Type

func (GetZonesZoneArgs) ToGetZonesZoneOutput

func (i GetZonesZoneArgs) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneArgs) ToGetZonesZoneOutputWithContext

func (i GetZonesZoneArgs) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

type GetZonesZoneArray

type GetZonesZoneArray []GetZonesZoneInput

func (GetZonesZoneArray) ElementType

func (GetZonesZoneArray) ElementType() reflect.Type

func (GetZonesZoneArray) ToGetZonesZoneArrayOutput

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneArrayInput

type GetZonesZoneArrayInput interface {
	pulumi.Input

	ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput
	ToGetZonesZoneArrayOutputWithContext(context.Context) GetZonesZoneArrayOutput
}

GetZonesZoneArrayInput is an input type that accepts GetZonesZoneArray and GetZonesZoneArrayOutput values. You can construct a concrete instance of `GetZonesZoneArrayInput` via:

GetZonesZoneArray{ GetZonesZoneArgs{...} }

type GetZonesZoneArrayOutput

type GetZonesZoneArrayOutput struct{ *pulumi.OutputState }

func (GetZonesZoneArrayOutput) ElementType

func (GetZonesZoneArrayOutput) ElementType() reflect.Type

func (GetZonesZoneArrayOutput) Index

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneInput

type GetZonesZoneInput interface {
	pulumi.Input

	ToGetZonesZoneOutput() GetZonesZoneOutput
	ToGetZonesZoneOutputWithContext(context.Context) GetZonesZoneOutput
}

GetZonesZoneInput is an input type that accepts GetZonesZoneArgs and GetZonesZoneOutput values. You can construct a concrete instance of `GetZonesZoneInput` via:

GetZonesZoneArgs{...}

type GetZonesZoneOutput

type GetZonesZoneOutput struct{ *pulumi.OutputState }

func (GetZonesZoneOutput) ElementType

func (GetZonesZoneOutput) ElementType() reflect.Type

func (GetZonesZoneOutput) Id

The ID of zone.

func (GetZonesZoneOutput) LocalName

func (o GetZonesZoneOutput) LocalName() pulumi.StringOutput

The local name.

func (GetZonesZoneOutput) ToGetZonesZoneOutput

func (o GetZonesZoneOutput) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneOutput) ToGetZonesZoneOutputWithContext

func (o GetZonesZoneOutput) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

func (GetZonesZoneOutput) ZoneId

The zone ID.

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// The app key.
	AppKey pulumi.StringPtrOutput `pulumi:"appKey"`
	// The disk type of instance. Valid when the engine type is `tsdbInfluxdb`. `cloudSsd` refers to SSD disk, `cloudEfficiency` refers to efficiency disk, `cloudEssd` refers to ESSD PL1 disk. Valid values: `cloudEfficiency`, `cloudEssd`, `cloudSsd`.
	DiskCategory pulumi.StringPtrOutput `pulumi:"diskCategory"`
	// The duration.
	Duration pulumi.StringPtrOutput `pulumi:"duration"`
	// The engine type of instance Enumerative: `tsdbTsdb` refers to TSDB, `tsdbInfluxdb` refers to TSDB for InfluxDB️.
	EngineType pulumi.StringPtrOutput `pulumi:"engineType"`
	// The alias of the instance.
	InstanceAlias pulumi.StringPtrOutput `pulumi:"instanceAlias"`
	// The specification of the instance.
	// - Following enumerative value for TSDB for InfluxDB️ standart edition:
	// - `influxdata.n1.mxlarge` refers to 2 CPU 8GB memory;
	// - `influxdata.n1.xlarge` refers to 4 CPU 16GB memory;
	// - `influxdata.n1.2xlarge` refers to 8 CPU 32 GB memory;
	// - `influxdata.n1.4xlarge` refers to 16 CPU 64 GB memory;
	// - `influxdata.n1.8xlarge` refers to 32 CPU 128 GB memory;
	// - `influxdata.n1.16xlarge` refers to 64 CPU 256 GB memory.
	// - Following enumerative value for TSDB for InfluxDB High-availability edition:
	// - `influxdata.n1.mxlarge_ha` refers to 2 CPU 8GB memory;
	// - `influxdata.n1.xlarge_ha` refers to 4 CPU 16GB memory;
	// - `influxdata.n1.2xlarge_ha` refers to 8 CPU 32 GB memory;
	// - `influxdata.n1.4xlarge_ha` refers to 16 CPU 64 GB memory;
	// - `influxdata.n1.8xlarge_ha` refers to 32 CPU 128 GB memory;
	// - `influxdata.n1.16xlarge_ha` refers to 64 CPU 256 GB memory.
	// - Following enumerative value for TSDB:
	// - `tsdb.1x.basic` refers to basic edition I;
	// - `tsdb.3x.basic` refers to basic edition II;
	// - `tsdb.4x.basic` refers to basic edtion III;
	// - `tsdb.12x.standard` refers to standard edition I;
	// - `tsdb.24x.standard` refers to standard edition II;
	// - `tsdb.48x.large` refers to ultimate edition I;
	// - `tsdb.94x.large` refers to ultimate edition II.
	InstanceClass pulumi.StringOutput `pulumi:"instanceClass"`
	// The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
	InstanceStorage pulumi.StringOutput `pulumi:"instanceStorage"`
	// The billing method. Valid values: `PayAsYouGo` and `Subscription`. The `PayAsYouGo` value indicates the pay-as-you-go method, and the `Subscription` value indicates the subscription method.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// Instance status, enumerative: `ACTIVATION`, `DELETED`, `CREATING`, `CLASS_CHANGING`, `LOCKED`.
	Status pulumi.StringOutput `pulumi:"status"`
	// The vswitch id.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
	// The zone ID of the instance.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a Time Series Database (TSDB) Instance resource.

For information about Time Series Database (TSDB) Instance and how to use it, see [What is Time Series Database (TSDB)](https://www.alibabacloud.com/help/en/doc-detail/55652.htm).

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/tsdb"
"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 {
		exampleZones, err := tsdb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "exampleNetwork", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("192.168.0.0/16"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "exampleSwitch", &vpc.SwitchArgs{
			AvailabilityZone: pulumi.String(exampleZones.Ids[0]),
			CidrBlock:        pulumi.String("192.168.1.0/24"),
			VpcId:            exampleNetwork.ID(),
		})
		if err != nil {
			return err
		}
		_, err = tsdb.NewInstance(ctx, "exampleInstance", &tsdb.InstanceArgs{
			PaymentType:     pulumi.String("PayAsYouGo"),
			VswitchId:       exampleSwitch.ID(),
			InstanceStorage: pulumi.String("50"),
			InstanceClass:   pulumi.String("tsdb.1x.basic"),
			EngineType:      pulumi.String("tsdb_tsdb"),
			InstanceAlias:   pulumi.String("tf-testaccTsdbInstance"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

TSDB Instance can be imported using the id, e.g.

```sh

$ pulumi import alicloud:tsdb/instance:Instance example <id>

```

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 added in v2.35.1

func (i *Instance) ToInstancePtrOutput() InstancePtrOutput

func (*Instance) ToInstancePtrOutputWithContext added in v2.35.1

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

type InstanceArgs

type InstanceArgs struct {
	// The app key.
	AppKey pulumi.StringPtrInput
	// The disk type of instance. Valid when the engine type is `tsdbInfluxdb`. `cloudSsd` refers to SSD disk, `cloudEfficiency` refers to efficiency disk, `cloudEssd` refers to ESSD PL1 disk. Valid values: `cloudEfficiency`, `cloudEssd`, `cloudSsd`.
	DiskCategory pulumi.StringPtrInput
	// The duration.
	Duration pulumi.StringPtrInput
	// The engine type of instance Enumerative: `tsdbTsdb` refers to TSDB, `tsdbInfluxdb` refers to TSDB for InfluxDB️.
	EngineType pulumi.StringPtrInput
	// The alias of the instance.
	InstanceAlias pulumi.StringPtrInput
	// The specification of the instance.
	// - Following enumerative value for TSDB for InfluxDB️ standart edition:
	// - `influxdata.n1.mxlarge` refers to 2 CPU 8GB memory;
	// - `influxdata.n1.xlarge` refers to 4 CPU 16GB memory;
	// - `influxdata.n1.2xlarge` refers to 8 CPU 32 GB memory;
	// - `influxdata.n1.4xlarge` refers to 16 CPU 64 GB memory;
	// - `influxdata.n1.8xlarge` refers to 32 CPU 128 GB memory;
	// - `influxdata.n1.16xlarge` refers to 64 CPU 256 GB memory.
	// - Following enumerative value for TSDB for InfluxDB High-availability edition:
	// - `influxdata.n1.mxlarge_ha` refers to 2 CPU 8GB memory;
	// - `influxdata.n1.xlarge_ha` refers to 4 CPU 16GB memory;
	// - `influxdata.n1.2xlarge_ha` refers to 8 CPU 32 GB memory;
	// - `influxdata.n1.4xlarge_ha` refers to 16 CPU 64 GB memory;
	// - `influxdata.n1.8xlarge_ha` refers to 32 CPU 128 GB memory;
	// - `influxdata.n1.16xlarge_ha` refers to 64 CPU 256 GB memory.
	// - Following enumerative value for TSDB:
	// - `tsdb.1x.basic` refers to basic edition I;
	// - `tsdb.3x.basic` refers to basic edition II;
	// - `tsdb.4x.basic` refers to basic edtion III;
	// - `tsdb.12x.standard` refers to standard edition I;
	// - `tsdb.24x.standard` refers to standard edition II;
	// - `tsdb.48x.large` refers to ultimate edition I;
	// - `tsdb.94x.large` refers to ultimate edition II.
	InstanceClass pulumi.StringInput
	// The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
	InstanceStorage pulumi.StringInput
	// The billing method. Valid values: `PayAsYouGo` and `Subscription`. The `PayAsYouGo` value indicates the pay-as-you-go method, and the `Subscription` value indicates the subscription method.
	PaymentType pulumi.StringInput
	// The vswitch id.
	VswitchId pulumi.StringInput
	// The zone ID of the instance.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray added in v2.35.1

type InstanceArray []InstanceInput

func (InstanceArray) ElementType added in v2.35.1

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput added in v2.35.1

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext added in v2.35.1

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

type InstanceArrayInput added in v2.35.1

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 added in v2.35.1

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType added in v2.35.1

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index added in v2.35.1

func (InstanceArrayOutput) ToInstanceArrayOutput added in v2.35.1

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext added in v2.35.1

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

type InstanceInput

type InstanceInput interface {
	pulumi.Input

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

type InstanceMap added in v2.35.1

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType added in v2.35.1

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput added in v2.35.1

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext added in v2.35.1

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

type InstanceMapInput added in v2.35.1

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 added in v2.35.1

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType added in v2.35.1

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex added in v2.35.1

func (InstanceMapOutput) ToInstanceMapOutput added in v2.35.1

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext added in v2.35.1

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 added in v2.35.1

func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstanceOutput) ToInstancePtrOutputWithContext added in v2.35.1

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

type InstancePtrInput added in v2.35.1

type InstancePtrInput interface {
	pulumi.Input

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

type InstancePtrOutput added in v2.35.1

type InstancePtrOutput struct {
	*pulumi.OutputState
}

func (InstancePtrOutput) ElementType added in v2.35.1

func (InstancePtrOutput) ElementType() reflect.Type

func (InstancePtrOutput) ToInstancePtrOutput added in v2.35.1

func (o InstancePtrOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstancePtrOutput) ToInstancePtrOutputWithContext added in v2.35.1

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

type InstanceState

type InstanceState struct {
	// The app key.
	AppKey pulumi.StringPtrInput
	// The disk type of instance. Valid when the engine type is `tsdbInfluxdb`. `cloudSsd` refers to SSD disk, `cloudEfficiency` refers to efficiency disk, `cloudEssd` refers to ESSD PL1 disk. Valid values: `cloudEfficiency`, `cloudEssd`, `cloudSsd`.
	DiskCategory pulumi.StringPtrInput
	// The duration.
	Duration pulumi.StringPtrInput
	// The engine type of instance Enumerative: `tsdbTsdb` refers to TSDB, `tsdbInfluxdb` refers to TSDB for InfluxDB️.
	EngineType pulumi.StringPtrInput
	// The alias of the instance.
	InstanceAlias pulumi.StringPtrInput
	// The specification of the instance.
	// - Following enumerative value for TSDB for InfluxDB️ standart edition:
	// - `influxdata.n1.mxlarge` refers to 2 CPU 8GB memory;
	// - `influxdata.n1.xlarge` refers to 4 CPU 16GB memory;
	// - `influxdata.n1.2xlarge` refers to 8 CPU 32 GB memory;
	// - `influxdata.n1.4xlarge` refers to 16 CPU 64 GB memory;
	// - `influxdata.n1.8xlarge` refers to 32 CPU 128 GB memory;
	// - `influxdata.n1.16xlarge` refers to 64 CPU 256 GB memory.
	// - Following enumerative value for TSDB for InfluxDB High-availability edition:
	// - `influxdata.n1.mxlarge_ha` refers to 2 CPU 8GB memory;
	// - `influxdata.n1.xlarge_ha` refers to 4 CPU 16GB memory;
	// - `influxdata.n1.2xlarge_ha` refers to 8 CPU 32 GB memory;
	// - `influxdata.n1.4xlarge_ha` refers to 16 CPU 64 GB memory;
	// - `influxdata.n1.8xlarge_ha` refers to 32 CPU 128 GB memory;
	// - `influxdata.n1.16xlarge_ha` refers to 64 CPU 256 GB memory.
	// - Following enumerative value for TSDB:
	// - `tsdb.1x.basic` refers to basic edition I;
	// - `tsdb.3x.basic` refers to basic edition II;
	// - `tsdb.4x.basic` refers to basic edtion III;
	// - `tsdb.12x.standard` refers to standard edition I;
	// - `tsdb.24x.standard` refers to standard edition II;
	// - `tsdb.48x.large` refers to ultimate edition I;
	// - `tsdb.94x.large` refers to ultimate edition II.
	InstanceClass pulumi.StringPtrInput
	// The storage capacity of the instance. Unit: GB. For example, the value 50 indicates 50 GB. Does not support shrink storage.
	InstanceStorage pulumi.StringPtrInput
	// The billing method. Valid values: `PayAsYouGo` and `Subscription`. The `PayAsYouGo` value indicates the pay-as-you-go method, and the `Subscription` value indicates the subscription method.
	PaymentType pulumi.StringPtrInput
	// Instance status, enumerative: `ACTIVATION`, `DELETED`, `CREATING`, `CLASS_CHANGING`, `LOCKED`.
	Status pulumi.StringPtrInput
	// The vswitch id.
	VswitchId pulumi.StringPtrInput
	// The zone ID of the instance.
	ZoneId pulumi.StringPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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