mongodb

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.5

func PkgVersion() (semver.Version, error)

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

Types

type GetInstancesArgs

type GetInstancesArgs struct {
	// Type of Mongodb cluster, and available values include replica set cluster(expressed with `REPLSET`), sharding cluster(expressed with `SHARD`).
	ClusterType *string `pulumi:"clusterType"`
	// ID of the Mongodb instance to be queried.
	InstanceId *string `pulumi:"instanceId"`
	// Name prefix of the Mongodb instance.
	InstanceNamePrefix *string `pulumi:"instanceNamePrefix"`
	// Used to store results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Tags of the Mongodb instance to be queried.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstanceList

type GetInstancesInstanceList struct {
	// Auto renew flag.
	AutoRenewFlag int `pulumi:"autoRenewFlag"`
	// The available zone of the Mongodb.
	AvailableZone string `pulumi:"availableZone"`
	// The charge type of instance.
	ChargeType string `pulumi:"chargeType"`
	// Type of Mongodb cluster, and available values include replica set cluster(expressed with `REPLSET`), sharding cluster(expressed with `SHARD`).
	ClusterType string `pulumi:"clusterType"`
	// Number of cpu's core.
	Cpu int `pulumi:"cpu"`
	// Creation time of the Mongodb instance.
	CreateTime string `pulumi:"createTime"`
	// Version of the Mongodb engine.
	EngineVersion string `pulumi:"engineVersion"`
	// ID of the Mongodb instance to be queried.
	InstanceId string `pulumi:"instanceId"`
	// Name of the Mongodb instance.
	InstanceName string `pulumi:"instanceName"`
	// Type of Mongodb instance.
	MachineType string `pulumi:"machineType"`
	// Memory size.
	Memory int `pulumi:"memory"`
	// ID of the project which the instance belongs.
	ProjectId int `pulumi:"projectId"`
	// Number of sharding.
	ShardQuantity int `pulumi:"shardQuantity"`
	// Status of the Mongodb, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status int `pulumi:"status"`
	// ID of the subnet.
	SubnetId string `pulumi:"subnetId"`
	// Tags of the Mongodb instance to be queried.
	Tags map[string]interface{} `pulumi:"tags"`
	// IP of the Mongodb instance.
	Vip string `pulumi:"vip"`
	// Disk size.
	Volume int `pulumi:"volume"`
	// ID of the VPC.
	VpcId string `pulumi:"vpcId"`
	// IP port of the Mongodb instance.
	Vport int `pulumi:"vport"`
}

type GetInstancesInstanceListArgs

type GetInstancesInstanceListArgs struct {
	// Auto renew flag.
	AutoRenewFlag pulumi.IntInput `pulumi:"autoRenewFlag"`
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringInput `pulumi:"availableZone"`
	// The charge type of instance.
	ChargeType pulumi.StringInput `pulumi:"chargeType"`
	// Type of Mongodb cluster, and available values include replica set cluster(expressed with `REPLSET`), sharding cluster(expressed with `SHARD`).
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// Number of cpu's core.
	Cpu pulumi.IntInput `pulumi:"cpu"`
	// Creation time of the Mongodb instance.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Version of the Mongodb engine.
	EngineVersion pulumi.StringInput `pulumi:"engineVersion"`
	// ID of the Mongodb instance to be queried.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Name of the Mongodb instance.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// Type of Mongodb instance.
	MachineType pulumi.StringInput `pulumi:"machineType"`
	// Memory size.
	Memory pulumi.IntInput `pulumi:"memory"`
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntInput `pulumi:"projectId"`
	// Number of sharding.
	ShardQuantity pulumi.IntInput `pulumi:"shardQuantity"`
	// Status of the Mongodb, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status pulumi.IntInput `pulumi:"status"`
	// ID of the subnet.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
	// Tags of the Mongodb instance to be queried.
	Tags pulumi.MapInput `pulumi:"tags"`
	// IP of the Mongodb instance.
	Vip pulumi.StringInput `pulumi:"vip"`
	// Disk size.
	Volume pulumi.IntInput `pulumi:"volume"`
	// ID of the VPC.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// IP port of the Mongodb instance.
	Vport pulumi.IntInput `pulumi:"vport"`
}

func (GetInstancesInstanceListArgs) ElementType

func (GetInstancesInstanceListArgs) ToGetInstancesInstanceListOutput

func (i GetInstancesInstanceListArgs) ToGetInstancesInstanceListOutput() GetInstancesInstanceListOutput

func (GetInstancesInstanceListArgs) ToGetInstancesInstanceListOutputWithContext

func (i GetInstancesInstanceListArgs) ToGetInstancesInstanceListOutputWithContext(ctx context.Context) GetInstancesInstanceListOutput

type GetInstancesInstanceListArray

type GetInstancesInstanceListArray []GetInstancesInstanceListInput

func (GetInstancesInstanceListArray) ElementType

func (GetInstancesInstanceListArray) ToGetInstancesInstanceListArrayOutput

func (i GetInstancesInstanceListArray) ToGetInstancesInstanceListArrayOutput() GetInstancesInstanceListArrayOutput

func (GetInstancesInstanceListArray) ToGetInstancesInstanceListArrayOutputWithContext

func (i GetInstancesInstanceListArray) ToGetInstancesInstanceListArrayOutputWithContext(ctx context.Context) GetInstancesInstanceListArrayOutput

type GetInstancesInstanceListArrayInput

type GetInstancesInstanceListArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceListArrayOutput() GetInstancesInstanceListArrayOutput
	ToGetInstancesInstanceListArrayOutputWithContext(context.Context) GetInstancesInstanceListArrayOutput
}

GetInstancesInstanceListArrayInput is an input type that accepts GetInstancesInstanceListArray and GetInstancesInstanceListArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceListArrayInput` via:

GetInstancesInstanceListArray{ GetInstancesInstanceListArgs{...} }

type GetInstancesInstanceListArrayOutput

type GetInstancesInstanceListArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceListArrayOutput) ElementType

func (GetInstancesInstanceListArrayOutput) Index

func (GetInstancesInstanceListArrayOutput) ToGetInstancesInstanceListArrayOutput

func (o GetInstancesInstanceListArrayOutput) ToGetInstancesInstanceListArrayOutput() GetInstancesInstanceListArrayOutput

func (GetInstancesInstanceListArrayOutput) ToGetInstancesInstanceListArrayOutputWithContext

func (o GetInstancesInstanceListArrayOutput) ToGetInstancesInstanceListArrayOutputWithContext(ctx context.Context) GetInstancesInstanceListArrayOutput

type GetInstancesInstanceListInput

type GetInstancesInstanceListInput interface {
	pulumi.Input

	ToGetInstancesInstanceListOutput() GetInstancesInstanceListOutput
	ToGetInstancesInstanceListOutputWithContext(context.Context) GetInstancesInstanceListOutput
}

GetInstancesInstanceListInput is an input type that accepts GetInstancesInstanceListArgs and GetInstancesInstanceListOutput values. You can construct a concrete instance of `GetInstancesInstanceListInput` via:

GetInstancesInstanceListArgs{...}

type GetInstancesInstanceListOutput

type GetInstancesInstanceListOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceListOutput) AutoRenewFlag

Auto renew flag.

func (GetInstancesInstanceListOutput) AvailableZone

The available zone of the Mongodb.

func (GetInstancesInstanceListOutput) ChargeType

The charge type of instance.

func (GetInstancesInstanceListOutput) ClusterType

Type of Mongodb cluster, and available values include replica set cluster(expressed with `REPLSET`), sharding cluster(expressed with `SHARD`).

func (GetInstancesInstanceListOutput) Cpu

Number of cpu's core.

func (GetInstancesInstanceListOutput) CreateTime

Creation time of the Mongodb instance.

func (GetInstancesInstanceListOutput) ElementType

func (GetInstancesInstanceListOutput) EngineVersion

Version of the Mongodb engine.

func (GetInstancesInstanceListOutput) InstanceId

ID of the Mongodb instance to be queried.

func (GetInstancesInstanceListOutput) InstanceName

Name of the Mongodb instance.

func (GetInstancesInstanceListOutput) MachineType

Type of Mongodb instance.

func (GetInstancesInstanceListOutput) Memory

Memory size.

func (GetInstancesInstanceListOutput) ProjectId

ID of the project which the instance belongs.

func (GetInstancesInstanceListOutput) ShardQuantity

Number of sharding.

func (GetInstancesInstanceListOutput) Status

Status of the Mongodb, and available values include pending initialization(expressed with 0), processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).

func (GetInstancesInstanceListOutput) SubnetId

ID of the subnet.

func (GetInstancesInstanceListOutput) Tags

Tags of the Mongodb instance to be queried.

func (GetInstancesInstanceListOutput) ToGetInstancesInstanceListOutput

func (o GetInstancesInstanceListOutput) ToGetInstancesInstanceListOutput() GetInstancesInstanceListOutput

func (GetInstancesInstanceListOutput) ToGetInstancesInstanceListOutputWithContext

func (o GetInstancesInstanceListOutput) ToGetInstancesInstanceListOutputWithContext(ctx context.Context) GetInstancesInstanceListOutput

func (GetInstancesInstanceListOutput) Vip

IP of the Mongodb instance.

func (GetInstancesInstanceListOutput) Volume

Disk size.

func (GetInstancesInstanceListOutput) VpcId

ID of the VPC.

func (GetInstancesInstanceListOutput) Vport

IP port of the Mongodb instance.

type GetInstancesOutputArgs

type GetInstancesOutputArgs struct {
	// Type of Mongodb cluster, and available values include replica set cluster(expressed with `REPLSET`), sharding cluster(expressed with `SHARD`).
	ClusterType pulumi.StringPtrInput `pulumi:"clusterType"`
	// ID of the Mongodb instance to be queried.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// Name prefix of the Mongodb instance.
	InstanceNamePrefix pulumi.StringPtrInput `pulumi:"instanceNamePrefix"`
	// Used to store results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Tags of the Mongodb instance to be queried.
	Tags pulumi.MapInput `pulumi:"tags"`
}

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

type GetInstancesResult struct {
	// Type of Mongodb cluster.
	ClusterType *string `pulumi:"clusterType"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ID of the Mongodb instance.
	InstanceId *string `pulumi:"instanceId"`
	// A list of instances. Each element contains the following attributes:
	InstanceLists      []GetInstancesInstanceList `pulumi:"instanceLists"`
	InstanceNamePrefix *string                    `pulumi:"instanceNamePrefix"`
	ResultOutputFile   *string                    `pulumi:"resultOutputFile"`
	// Tags of the Mongodb instance.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getInstances.

func GetInstances

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

Use this data source to query detailed information of Mongodb instances.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Mongodb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Mongodb"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mongodb.GetInstances(ctx, &mongodb.GetInstancesArgs{
			ClusterType: pulumi.StringRef("REPLSET"),
			InstanceId:  pulumi.StringRef("cmgo-l6lwdsel"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetInstancesResultOutput

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func (GetInstancesResultOutput) ClusterType

Type of Mongodb cluster.

func (GetInstancesResultOutput) ElementType

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) InstanceId

ID of the Mongodb instance.

func (GetInstancesResultOutput) InstanceLists

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

func (GetInstancesResultOutput) InstanceNamePrefix

func (o GetInstancesResultOutput) InstanceNamePrefix() pulumi.StringPtrOutput

func (GetInstancesResultOutput) ResultOutputFile

func (o GetInstancesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetInstancesResultOutput) Tags

Tags of the Mongodb instance.

func (GetInstancesResultOutput) ToGetInstancesResultOutput

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext

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

type GetZoneConfigArgs

type GetZoneConfigArgs struct {
	// The available zone of the Mongodb.
	AvailableZone *string `pulumi:"availableZone"`
	// Used to store results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getZoneConfig.

type GetZoneConfigList

type GetZoneConfigList struct {
	// The available zone of the Mongodb.
	AvailableZone string `pulumi:"availableZone"`
	// Type of Mongodb cluster.
	ClusterType string `pulumi:"clusterType"`
	// Number of cpu's core.
	Cpu int `pulumi:"cpu"`
	// Default disk size.
	DefaultStorage int `pulumi:"defaultStorage"`
	// Version of the Mongodb version.
	EngineVersion string `pulumi:"engineVersion"`
	// Type of Mongodb instance.
	MachineType string `pulumi:"machineType"`
	// Maximum replicate set num for sharding cluster.
	MaxReplicateSetNum int `pulumi:"maxReplicateSetNum"`
	// Maximum size of the disk.
	MaxStorage int `pulumi:"maxStorage"`
	// Memory size.
	Memory int `pulumi:"memory"`
	// Minimum replicate set num for sharding cluster.
	MinReplicateSetNum int `pulumi:"minReplicateSetNum"`
	// Minimum sie of the disk.
	MinStorage int `pulumi:"minStorage"`
}

type GetZoneConfigListArgs

type GetZoneConfigListArgs struct {
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringInput `pulumi:"availableZone"`
	// Type of Mongodb cluster.
	ClusterType pulumi.StringInput `pulumi:"clusterType"`
	// Number of cpu's core.
	Cpu pulumi.IntInput `pulumi:"cpu"`
	// Default disk size.
	DefaultStorage pulumi.IntInput `pulumi:"defaultStorage"`
	// Version of the Mongodb version.
	EngineVersion pulumi.StringInput `pulumi:"engineVersion"`
	// Type of Mongodb instance.
	MachineType pulumi.StringInput `pulumi:"machineType"`
	// Maximum replicate set num for sharding cluster.
	MaxReplicateSetNum pulumi.IntInput `pulumi:"maxReplicateSetNum"`
	// Maximum size of the disk.
	MaxStorage pulumi.IntInput `pulumi:"maxStorage"`
	// Memory size.
	Memory pulumi.IntInput `pulumi:"memory"`
	// Minimum replicate set num for sharding cluster.
	MinReplicateSetNum pulumi.IntInput `pulumi:"minReplicateSetNum"`
	// Minimum sie of the disk.
	MinStorage pulumi.IntInput `pulumi:"minStorage"`
}

func (GetZoneConfigListArgs) ElementType

func (GetZoneConfigListArgs) ElementType() reflect.Type

func (GetZoneConfigListArgs) ToGetZoneConfigListOutput

func (i GetZoneConfigListArgs) ToGetZoneConfigListOutput() GetZoneConfigListOutput

func (GetZoneConfigListArgs) ToGetZoneConfigListOutputWithContext

func (i GetZoneConfigListArgs) ToGetZoneConfigListOutputWithContext(ctx context.Context) GetZoneConfigListOutput

type GetZoneConfigListArray

type GetZoneConfigListArray []GetZoneConfigListInput

func (GetZoneConfigListArray) ElementType

func (GetZoneConfigListArray) ElementType() reflect.Type

func (GetZoneConfigListArray) ToGetZoneConfigListArrayOutput

func (i GetZoneConfigListArray) ToGetZoneConfigListArrayOutput() GetZoneConfigListArrayOutput

func (GetZoneConfigListArray) ToGetZoneConfigListArrayOutputWithContext

func (i GetZoneConfigListArray) ToGetZoneConfigListArrayOutputWithContext(ctx context.Context) GetZoneConfigListArrayOutput

type GetZoneConfigListArrayInput

type GetZoneConfigListArrayInput interface {
	pulumi.Input

	ToGetZoneConfigListArrayOutput() GetZoneConfigListArrayOutput
	ToGetZoneConfigListArrayOutputWithContext(context.Context) GetZoneConfigListArrayOutput
}

GetZoneConfigListArrayInput is an input type that accepts GetZoneConfigListArray and GetZoneConfigListArrayOutput values. You can construct a concrete instance of `GetZoneConfigListArrayInput` via:

GetZoneConfigListArray{ GetZoneConfigListArgs{...} }

type GetZoneConfigListArrayOutput

type GetZoneConfigListArrayOutput struct{ *pulumi.OutputState }

func (GetZoneConfigListArrayOutput) ElementType

func (GetZoneConfigListArrayOutput) Index

func (GetZoneConfigListArrayOutput) ToGetZoneConfigListArrayOutput

func (o GetZoneConfigListArrayOutput) ToGetZoneConfigListArrayOutput() GetZoneConfigListArrayOutput

func (GetZoneConfigListArrayOutput) ToGetZoneConfigListArrayOutputWithContext

func (o GetZoneConfigListArrayOutput) ToGetZoneConfigListArrayOutputWithContext(ctx context.Context) GetZoneConfigListArrayOutput

type GetZoneConfigListInput

type GetZoneConfigListInput interface {
	pulumi.Input

	ToGetZoneConfigListOutput() GetZoneConfigListOutput
	ToGetZoneConfigListOutputWithContext(context.Context) GetZoneConfigListOutput
}

GetZoneConfigListInput is an input type that accepts GetZoneConfigListArgs and GetZoneConfigListOutput values. You can construct a concrete instance of `GetZoneConfigListInput` via:

GetZoneConfigListArgs{...}

type GetZoneConfigListOutput

type GetZoneConfigListOutput struct{ *pulumi.OutputState }

func (GetZoneConfigListOutput) AvailableZone

func (o GetZoneConfigListOutput) AvailableZone() pulumi.StringOutput

The available zone of the Mongodb.

func (GetZoneConfigListOutput) ClusterType

Type of Mongodb cluster.

func (GetZoneConfigListOutput) Cpu

Number of cpu's core.

func (GetZoneConfigListOutput) DefaultStorage

func (o GetZoneConfigListOutput) DefaultStorage() pulumi.IntOutput

Default disk size.

func (GetZoneConfigListOutput) ElementType

func (GetZoneConfigListOutput) ElementType() reflect.Type

func (GetZoneConfigListOutput) EngineVersion

func (o GetZoneConfigListOutput) EngineVersion() pulumi.StringOutput

Version of the Mongodb version.

func (GetZoneConfigListOutput) MachineType

Type of Mongodb instance.

func (GetZoneConfigListOutput) MaxReplicateSetNum

func (o GetZoneConfigListOutput) MaxReplicateSetNum() pulumi.IntOutput

Maximum replicate set num for sharding cluster.

func (GetZoneConfigListOutput) MaxStorage

func (o GetZoneConfigListOutput) MaxStorage() pulumi.IntOutput

Maximum size of the disk.

func (GetZoneConfigListOutput) Memory

Memory size.

func (GetZoneConfigListOutput) MinReplicateSetNum

func (o GetZoneConfigListOutput) MinReplicateSetNum() pulumi.IntOutput

Minimum replicate set num for sharding cluster.

func (GetZoneConfigListOutput) MinStorage

func (o GetZoneConfigListOutput) MinStorage() pulumi.IntOutput

Minimum sie of the disk.

func (GetZoneConfigListOutput) ToGetZoneConfigListOutput

func (o GetZoneConfigListOutput) ToGetZoneConfigListOutput() GetZoneConfigListOutput

func (GetZoneConfigListOutput) ToGetZoneConfigListOutputWithContext

func (o GetZoneConfigListOutput) ToGetZoneConfigListOutputWithContext(ctx context.Context) GetZoneConfigListOutput

type GetZoneConfigOutputArgs

type GetZoneConfigOutputArgs struct {
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringPtrInput `pulumi:"availableZone"`
	// Used to store results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getZoneConfig.

func (GetZoneConfigOutputArgs) ElementType

func (GetZoneConfigOutputArgs) ElementType() reflect.Type

type GetZoneConfigResult

type GetZoneConfigResult struct {
	// The available zone of the Mongodb.
	AvailableZone *string `pulumi:"availableZone"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of zone config. Each element contains the following attributes:
	Lists            []GetZoneConfigList `pulumi:"lists"`
	ResultOutputFile *string             `pulumi:"resultOutputFile"`
}

A collection of values returned by getZoneConfig.

func GetZoneConfig

func GetZoneConfig(ctx *pulumi.Context, args *GetZoneConfigArgs, opts ...pulumi.InvokeOption) (*GetZoneConfigResult, error)

Use this data source to query the available mongodb specifications for different zone.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Mongodb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Mongodb"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mongodb.GetZoneConfig(ctx, &mongodb.GetZoneConfigArgs{
			AvailableZone: pulumi.StringRef("ap-guangzhou-2"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetZoneConfigResultOutput

type GetZoneConfigResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZoneConfig.

func (GetZoneConfigResultOutput) AvailableZone

The available zone of the Mongodb.

func (GetZoneConfigResultOutput) ElementType

func (GetZoneConfigResultOutput) ElementType() reflect.Type

func (GetZoneConfigResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetZoneConfigResultOutput) Lists

A list of zone config. Each element contains the following attributes:

func (GetZoneConfigResultOutput) ResultOutputFile

func (o GetZoneConfigResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetZoneConfigResultOutput) ToGetZoneConfigResultOutput

func (o GetZoneConfigResultOutput) ToGetZoneConfigResultOutput() GetZoneConfigResultOutput

func (GetZoneConfigResultOutput) ToGetZoneConfigResultOutputWithContext

func (o GetZoneConfigResultOutput) ToGetZoneConfigResultOutputWithContext(ctx context.Context) GetZoneConfigResultOutput

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrOutput `pulumi:"autoRenewFlag"`
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringOutput `pulumi:"availableZone"`
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// Creation time of the Mongodb instance.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// Name of the Mongodb instance.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	MachineType pulumi.StringOutput `pulumi:"machineType"`
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntOutput `pulumi:"memory"`
	// Password of this Mongodb account.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrOutput `pulumi:"prepaidPeriod"`
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
	// List of standby instances' info.
	StandbyInstanceLists InstanceStandbyInstanceListArrayOutput `pulumi:"standbyInstanceLists"`
	// Status of the Mongodb instance, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status pulumi.IntOutput `pulumi:"status"`
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// IP of the Mongodb instance.
	Vip pulumi.StringOutput `pulumi:"vip"`
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntOutput `pulumi:"volume"`
	// ID of the VPC.
	VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
	// IP port of the Mongodb instance.
	Vport pulumi.IntOutput `pulumi:"vport"`
}

Provide a resource to create a Mongodb instance.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Mongodb"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mongodb.NewInstance(ctx, "mongodb", &Mongodb.InstanceArgs{
			AvailableZone: pulumi.String("ap-guangzhou-2"),
			EngineVersion: pulumi.String("MONGO_3_WT"),
			InstanceName:  pulumi.String("mongodb"),
			MachineType:   pulumi.String("GIO"),
			Memory:        pulumi.Int(4),
			Password:      pulumi.String("password1234"),
			ProjectId:     pulumi.Int(0),
			SubnetId:      pulumi.String("subnet-lk0svi3p"),
			Volume:        pulumi.Int(100),
			VpcId:         pulumi.String("vpc-mz3efvbw"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Mongodb instance can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Mongodb/instance:Instance mongodb cmgo-41s6jwy4

```

func GetInstance

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

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

func NewInstance

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

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

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

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

type InstanceArgs

type InstanceArgs struct {
	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrInput
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringInput
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrInput
	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	EngineVersion pulumi.StringInput
	// Name of the Mongodb instance.
	InstanceName pulumi.StringInput
	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	MachineType pulumi.StringInput
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntInput
	// Password of this Mongodb account.
	Password pulumi.StringPtrInput
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrInput
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayInput
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrInput
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapInput
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntInput
	// ID of the VPC.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

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

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

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

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

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

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

type InstanceInput

type InstanceInput interface {
	pulumi.Input

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

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

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

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

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

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

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

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

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

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) AutoRenewFlag

func (o InstanceOutput) AutoRenewFlag() pulumi.IntPtrOutput

Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.

func (InstanceOutput) AvailableZone

func (o InstanceOutput) AvailableZone() pulumi.StringOutput

The available zone of the Mongodb.

func (InstanceOutput) ChargeType

func (o InstanceOutput) ChargeType() pulumi.StringPtrOutput

The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.

func (InstanceOutput) CreateTime

func (o InstanceOutput) CreateTime() pulumi.StringOutput

Creation time of the Mongodb instance.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) EngineVersion

func (o InstanceOutput) EngineVersion() pulumi.StringOutput

Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT` (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.

func (InstanceOutput) InstanceName

func (o InstanceOutput) InstanceName() pulumi.StringOutput

Name of the Mongodb instance.

func (InstanceOutput) MachineType

func (o InstanceOutput) MachineType() pulumi.StringOutput

Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).

func (InstanceOutput) Memory

func (o InstanceOutput) Memory() pulumi.IntOutput

Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.

func (InstanceOutput) Password

func (o InstanceOutput) Password() pulumi.StringPtrOutput

Password of this Mongodb account.

func (InstanceOutput) PrepaidPeriod

func (o InstanceOutput) PrepaidPeriod() pulumi.IntPtrOutput

The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.

func (InstanceOutput) ProjectId

func (o InstanceOutput) ProjectId() pulumi.IntPtrOutput

ID of the project which the instance belongs.

func (InstanceOutput) SecurityGroups

func (o InstanceOutput) SecurityGroups() pulumi.StringArrayOutput

ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.

func (InstanceOutput) StandbyInstanceLists

func (o InstanceOutput) StandbyInstanceLists() InstanceStandbyInstanceListArrayOutput

List of standby instances' info.

func (InstanceOutput) Status

func (o InstanceOutput) Status() pulumi.IntOutput

Status of the Mongodb instance, and available values include pending initialization(expressed with 0), processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).

func (InstanceOutput) SubnetId

func (o InstanceOutput) SubnetId() pulumi.StringPtrOutput

ID of the subnet within this VPC. The value is required if `vpcId` is set.

func (InstanceOutput) Tags

func (o InstanceOutput) Tags() pulumi.MapOutput

The tags of the Mongodb. Key name `project` is system reserved and can't be used.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

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

func (InstanceOutput) Vip

IP of the Mongodb instance.

func (InstanceOutput) Volume

func (o InstanceOutput) Volume() pulumi.IntOutput

Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.

func (InstanceOutput) VpcId

ID of the VPC.

func (InstanceOutput) Vport

func (o InstanceOutput) Vport() pulumi.IntOutput

IP port of the Mongodb instance.

type InstanceStandbyInstanceList

type InstanceStandbyInstanceList struct {
	// Indicates the ID of standby instance.
	StandbyInstanceId *string `pulumi:"standbyInstanceId"`
	// Indicates the region of standby instance.
	StandbyInstanceRegion *string `pulumi:"standbyInstanceRegion"`
}

type InstanceStandbyInstanceListArgs

type InstanceStandbyInstanceListArgs struct {
	// Indicates the ID of standby instance.
	StandbyInstanceId pulumi.StringPtrInput `pulumi:"standbyInstanceId"`
	// Indicates the region of standby instance.
	StandbyInstanceRegion pulumi.StringPtrInput `pulumi:"standbyInstanceRegion"`
}

func (InstanceStandbyInstanceListArgs) ElementType

func (InstanceStandbyInstanceListArgs) ToInstanceStandbyInstanceListOutput

func (i InstanceStandbyInstanceListArgs) ToInstanceStandbyInstanceListOutput() InstanceStandbyInstanceListOutput

func (InstanceStandbyInstanceListArgs) ToInstanceStandbyInstanceListOutputWithContext

func (i InstanceStandbyInstanceListArgs) ToInstanceStandbyInstanceListOutputWithContext(ctx context.Context) InstanceStandbyInstanceListOutput

type InstanceStandbyInstanceListArray

type InstanceStandbyInstanceListArray []InstanceStandbyInstanceListInput

func (InstanceStandbyInstanceListArray) ElementType

func (InstanceStandbyInstanceListArray) ToInstanceStandbyInstanceListArrayOutput

func (i InstanceStandbyInstanceListArray) ToInstanceStandbyInstanceListArrayOutput() InstanceStandbyInstanceListArrayOutput

func (InstanceStandbyInstanceListArray) ToInstanceStandbyInstanceListArrayOutputWithContext

func (i InstanceStandbyInstanceListArray) ToInstanceStandbyInstanceListArrayOutputWithContext(ctx context.Context) InstanceStandbyInstanceListArrayOutput

type InstanceStandbyInstanceListArrayInput

type InstanceStandbyInstanceListArrayInput interface {
	pulumi.Input

	ToInstanceStandbyInstanceListArrayOutput() InstanceStandbyInstanceListArrayOutput
	ToInstanceStandbyInstanceListArrayOutputWithContext(context.Context) InstanceStandbyInstanceListArrayOutput
}

InstanceStandbyInstanceListArrayInput is an input type that accepts InstanceStandbyInstanceListArray and InstanceStandbyInstanceListArrayOutput values. You can construct a concrete instance of `InstanceStandbyInstanceListArrayInput` via:

InstanceStandbyInstanceListArray{ InstanceStandbyInstanceListArgs{...} }

type InstanceStandbyInstanceListArrayOutput

type InstanceStandbyInstanceListArrayOutput struct{ *pulumi.OutputState }

func (InstanceStandbyInstanceListArrayOutput) ElementType

func (InstanceStandbyInstanceListArrayOutput) Index

func (InstanceStandbyInstanceListArrayOutput) ToInstanceStandbyInstanceListArrayOutput

func (o InstanceStandbyInstanceListArrayOutput) ToInstanceStandbyInstanceListArrayOutput() InstanceStandbyInstanceListArrayOutput

func (InstanceStandbyInstanceListArrayOutput) ToInstanceStandbyInstanceListArrayOutputWithContext

func (o InstanceStandbyInstanceListArrayOutput) ToInstanceStandbyInstanceListArrayOutputWithContext(ctx context.Context) InstanceStandbyInstanceListArrayOutput

type InstanceStandbyInstanceListInput

type InstanceStandbyInstanceListInput interface {
	pulumi.Input

	ToInstanceStandbyInstanceListOutput() InstanceStandbyInstanceListOutput
	ToInstanceStandbyInstanceListOutputWithContext(context.Context) InstanceStandbyInstanceListOutput
}

InstanceStandbyInstanceListInput is an input type that accepts InstanceStandbyInstanceListArgs and InstanceStandbyInstanceListOutput values. You can construct a concrete instance of `InstanceStandbyInstanceListInput` via:

InstanceStandbyInstanceListArgs{...}

type InstanceStandbyInstanceListOutput

type InstanceStandbyInstanceListOutput struct{ *pulumi.OutputState }

func (InstanceStandbyInstanceListOutput) ElementType

func (InstanceStandbyInstanceListOutput) StandbyInstanceId

Indicates the ID of standby instance.

func (InstanceStandbyInstanceListOutput) StandbyInstanceRegion

func (o InstanceStandbyInstanceListOutput) StandbyInstanceRegion() pulumi.StringPtrOutput

Indicates the region of standby instance.

func (InstanceStandbyInstanceListOutput) ToInstanceStandbyInstanceListOutput

func (o InstanceStandbyInstanceListOutput) ToInstanceStandbyInstanceListOutput() InstanceStandbyInstanceListOutput

func (InstanceStandbyInstanceListOutput) ToInstanceStandbyInstanceListOutputWithContext

func (o InstanceStandbyInstanceListOutput) ToInstanceStandbyInstanceListOutputWithContext(ctx context.Context) InstanceStandbyInstanceListOutput

type InstanceState

type InstanceState struct {
	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrInput
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringPtrInput
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrInput
	// Creation time of the Mongodb instance.
	CreateTime pulumi.StringPtrInput
	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	EngineVersion pulumi.StringPtrInput
	// Name of the Mongodb instance.
	InstanceName pulumi.StringPtrInput
	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	MachineType pulumi.StringPtrInput
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntPtrInput
	// Password of this Mongodb account.
	Password pulumi.StringPtrInput
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrInput
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayInput
	// List of standby instances' info.
	StandbyInstanceLists InstanceStandbyInstanceListArrayInput
	// Status of the Mongodb instance, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status pulumi.IntPtrInput
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrInput
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapInput
	// IP of the Mongodb instance.
	Vip pulumi.StringPtrInput
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntPtrInput
	// ID of the VPC.
	VpcId pulumi.StringPtrInput
	// IP port of the Mongodb instance.
	Vport pulumi.IntPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type ShardingInstance

type ShardingInstance struct {
	pulumi.CustomResourceState

	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrOutput `pulumi:"autoRenewFlag"`
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringOutput `pulumi:"availableZone"`
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// Creation time of the Mongodb instance.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// Name of the Mongodb instance.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	MachineType pulumi.StringOutput `pulumi:"machineType"`
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntOutput `pulumi:"memory"`
	// Number of nodes per shard, at least 3(one master and two slaves).
	NodesPerShard pulumi.IntOutput `pulumi:"nodesPerShard"`
	// Password of this Mongodb account.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrOutput `pulumi:"prepaidPeriod"`
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
	// Number of sharding.
	ShardQuantity pulumi.IntOutput `pulumi:"shardQuantity"`
	// Status of the Mongodb instance, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status pulumi.IntOutput `pulumi:"status"`
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// IP of the Mongodb instance.
	Vip pulumi.StringOutput `pulumi:"vip"`
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntOutput `pulumi:"volume"`
	// ID of the VPC.
	VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
	// IP port of the Mongodb instance.
	Vport pulumi.IntOutput `pulumi:"vport"`
}

Provide a resource to create a Mongodb sharding instance.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Mongodb"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Mongodb.NewShardingInstance(ctx, "mongodb", &Mongodb.ShardingInstanceArgs{
			AvailableZone: pulumi.String("ap-guangzhou-3"),
			EngineVersion: pulumi.String("MONGO_3_WT"),
			InstanceName:  pulumi.String("mongodb"),
			MachineType:   pulumi.String("GIO"),
			Memory:        pulumi.Int(4),
			NodesPerShard: pulumi.Int(3),
			Password:      pulumi.String("password1234"),
			ProjectId:     pulumi.Int(0),
			ShardQuantity: pulumi.Int(2),
			SubnetId:      pulumi.String("subnet-lk0svi3p"),
			Volume:        pulumi.Int(100),
			VpcId:         pulumi.String("vpc-mz3efvbw"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Mongodb sharding instance can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Mongodb/shardingInstance:ShardingInstance mongodb cmgo-41s6jwy4

```

func GetShardingInstance

func GetShardingInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShardingInstanceState, opts ...pulumi.ResourceOption) (*ShardingInstance, error)

GetShardingInstance gets an existing ShardingInstance 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 NewShardingInstance

func NewShardingInstance(ctx *pulumi.Context,
	name string, args *ShardingInstanceArgs, opts ...pulumi.ResourceOption) (*ShardingInstance, error)

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

func (*ShardingInstance) ElementType

func (*ShardingInstance) ElementType() reflect.Type

func (*ShardingInstance) ToShardingInstanceOutput

func (i *ShardingInstance) ToShardingInstanceOutput() ShardingInstanceOutput

func (*ShardingInstance) ToShardingInstanceOutputWithContext

func (i *ShardingInstance) ToShardingInstanceOutputWithContext(ctx context.Context) ShardingInstanceOutput

type ShardingInstanceArgs

type ShardingInstanceArgs struct {
	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrInput
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringInput
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrInput
	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	EngineVersion pulumi.StringInput
	// Name of the Mongodb instance.
	InstanceName pulumi.StringInput
	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	MachineType pulumi.StringInput
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntInput
	// Number of nodes per shard, at least 3(one master and two slaves).
	NodesPerShard pulumi.IntInput
	// Password of this Mongodb account.
	Password pulumi.StringPtrInput
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrInput
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayInput
	// Number of sharding.
	ShardQuantity pulumi.IntInput
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrInput
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapInput
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntInput
	// ID of the VPC.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a ShardingInstance resource.

func (ShardingInstanceArgs) ElementType

func (ShardingInstanceArgs) ElementType() reflect.Type

type ShardingInstanceArray

type ShardingInstanceArray []ShardingInstanceInput

func (ShardingInstanceArray) ElementType

func (ShardingInstanceArray) ElementType() reflect.Type

func (ShardingInstanceArray) ToShardingInstanceArrayOutput

func (i ShardingInstanceArray) ToShardingInstanceArrayOutput() ShardingInstanceArrayOutput

func (ShardingInstanceArray) ToShardingInstanceArrayOutputWithContext

func (i ShardingInstanceArray) ToShardingInstanceArrayOutputWithContext(ctx context.Context) ShardingInstanceArrayOutput

type ShardingInstanceArrayInput

type ShardingInstanceArrayInput interface {
	pulumi.Input

	ToShardingInstanceArrayOutput() ShardingInstanceArrayOutput
	ToShardingInstanceArrayOutputWithContext(context.Context) ShardingInstanceArrayOutput
}

ShardingInstanceArrayInput is an input type that accepts ShardingInstanceArray and ShardingInstanceArrayOutput values. You can construct a concrete instance of `ShardingInstanceArrayInput` via:

ShardingInstanceArray{ ShardingInstanceArgs{...} }

type ShardingInstanceArrayOutput

type ShardingInstanceArrayOutput struct{ *pulumi.OutputState }

func (ShardingInstanceArrayOutput) ElementType

func (ShardingInstanceArrayOutput) Index

func (ShardingInstanceArrayOutput) ToShardingInstanceArrayOutput

func (o ShardingInstanceArrayOutput) ToShardingInstanceArrayOutput() ShardingInstanceArrayOutput

func (ShardingInstanceArrayOutput) ToShardingInstanceArrayOutputWithContext

func (o ShardingInstanceArrayOutput) ToShardingInstanceArrayOutputWithContext(ctx context.Context) ShardingInstanceArrayOutput

type ShardingInstanceInput

type ShardingInstanceInput interface {
	pulumi.Input

	ToShardingInstanceOutput() ShardingInstanceOutput
	ToShardingInstanceOutputWithContext(ctx context.Context) ShardingInstanceOutput
}

type ShardingInstanceMap

type ShardingInstanceMap map[string]ShardingInstanceInput

func (ShardingInstanceMap) ElementType

func (ShardingInstanceMap) ElementType() reflect.Type

func (ShardingInstanceMap) ToShardingInstanceMapOutput

func (i ShardingInstanceMap) ToShardingInstanceMapOutput() ShardingInstanceMapOutput

func (ShardingInstanceMap) ToShardingInstanceMapOutputWithContext

func (i ShardingInstanceMap) ToShardingInstanceMapOutputWithContext(ctx context.Context) ShardingInstanceMapOutput

type ShardingInstanceMapInput

type ShardingInstanceMapInput interface {
	pulumi.Input

	ToShardingInstanceMapOutput() ShardingInstanceMapOutput
	ToShardingInstanceMapOutputWithContext(context.Context) ShardingInstanceMapOutput
}

ShardingInstanceMapInput is an input type that accepts ShardingInstanceMap and ShardingInstanceMapOutput values. You can construct a concrete instance of `ShardingInstanceMapInput` via:

ShardingInstanceMap{ "key": ShardingInstanceArgs{...} }

type ShardingInstanceMapOutput

type ShardingInstanceMapOutput struct{ *pulumi.OutputState }

func (ShardingInstanceMapOutput) ElementType

func (ShardingInstanceMapOutput) ElementType() reflect.Type

func (ShardingInstanceMapOutput) MapIndex

func (ShardingInstanceMapOutput) ToShardingInstanceMapOutput

func (o ShardingInstanceMapOutput) ToShardingInstanceMapOutput() ShardingInstanceMapOutput

func (ShardingInstanceMapOutput) ToShardingInstanceMapOutputWithContext

func (o ShardingInstanceMapOutput) ToShardingInstanceMapOutputWithContext(ctx context.Context) ShardingInstanceMapOutput

type ShardingInstanceOutput

type ShardingInstanceOutput struct{ *pulumi.OutputState }

func (ShardingInstanceOutput) AutoRenewFlag

func (o ShardingInstanceOutput) AutoRenewFlag() pulumi.IntPtrOutput

Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.

func (ShardingInstanceOutput) AvailableZone

func (o ShardingInstanceOutput) AvailableZone() pulumi.StringOutput

The available zone of the Mongodb.

func (ShardingInstanceOutput) ChargeType

The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.

func (ShardingInstanceOutput) CreateTime

Creation time of the Mongodb instance.

func (ShardingInstanceOutput) ElementType

func (ShardingInstanceOutput) ElementType() reflect.Type

func (ShardingInstanceOutput) EngineVersion

func (o ShardingInstanceOutput) EngineVersion() pulumi.StringOutput

Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT` (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.

func (ShardingInstanceOutput) InstanceName

func (o ShardingInstanceOutput) InstanceName() pulumi.StringOutput

Name of the Mongodb instance.

func (ShardingInstanceOutput) MachineType

func (o ShardingInstanceOutput) MachineType() pulumi.StringOutput

Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).

func (ShardingInstanceOutput) Memory

Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.

func (ShardingInstanceOutput) NodesPerShard

func (o ShardingInstanceOutput) NodesPerShard() pulumi.IntOutput

Number of nodes per shard, at least 3(one master and two slaves).

func (ShardingInstanceOutput) Password

Password of this Mongodb account.

func (ShardingInstanceOutput) PrepaidPeriod

func (o ShardingInstanceOutput) PrepaidPeriod() pulumi.IntPtrOutput

The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.

func (ShardingInstanceOutput) ProjectId

ID of the project which the instance belongs.

func (ShardingInstanceOutput) SecurityGroups

func (o ShardingInstanceOutput) SecurityGroups() pulumi.StringArrayOutput

ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.

func (ShardingInstanceOutput) ShardQuantity

func (o ShardingInstanceOutput) ShardQuantity() pulumi.IntOutput

Number of sharding.

func (ShardingInstanceOutput) Status

Status of the Mongodb instance, and available values include pending initialization(expressed with 0), processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).

func (ShardingInstanceOutput) SubnetId

ID of the subnet within this VPC. The value is required if `vpcId` is set.

func (ShardingInstanceOutput) Tags

The tags of the Mongodb. Key name `project` is system reserved and can't be used.

func (ShardingInstanceOutput) ToShardingInstanceOutput

func (o ShardingInstanceOutput) ToShardingInstanceOutput() ShardingInstanceOutput

func (ShardingInstanceOutput) ToShardingInstanceOutputWithContext

func (o ShardingInstanceOutput) ToShardingInstanceOutputWithContext(ctx context.Context) ShardingInstanceOutput

func (ShardingInstanceOutput) Vip

IP of the Mongodb instance.

func (ShardingInstanceOutput) Volume

Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.

func (ShardingInstanceOutput) VpcId

ID of the VPC.

func (ShardingInstanceOutput) Vport

IP port of the Mongodb instance.

type ShardingInstanceState

type ShardingInstanceState struct {
	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrInput
	// The available zone of the Mongodb.
	AvailableZone pulumi.StringPtrInput
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrInput
	// Creation time of the Mongodb instance.
	CreateTime pulumi.StringPtrInput
	// Version of the Mongodb, and available values include `MONGO_36_WT` (MongoDB 3.6 WiredTiger Edition), `MONGO_40_WT` (MongoDB 4.0 WiredTiger Edition) and `MONGO_42_WT`  (MongoDB 4.2 WiredTiger Edition). NOTE: `MONGO_3_WT` (MongoDB 3.2 WiredTiger Edition) and `MONGO_3_ROCKS` (MongoDB 3.2 RocksDB Edition) will deprecated.
	EngineVersion pulumi.StringPtrInput
	// Name of the Mongodb instance.
	InstanceName pulumi.StringPtrInput
	// Type of Mongodb instance, and available values include `HIO`(or `GIO` which will be deprecated, represents high IO) and `HIO10G`(or `TGIO` which will be deprecated, represents 10-gigabit high IO).
	MachineType pulumi.StringPtrInput
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntPtrInput
	// Number of nodes per shard, at least 3(one master and two slaves).
	NodesPerShard pulumi.IntPtrInput
	// Password of this Mongodb account.
	Password pulumi.StringPtrInput
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrInput
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayInput
	// Number of sharding.
	ShardQuantity pulumi.IntPtrInput
	// Status of the Mongodb instance, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status pulumi.IntPtrInput
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrInput
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapInput
	// IP of the Mongodb instance.
	Vip pulumi.StringPtrInput
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntPtrInput
	// ID of the VPC.
	VpcId pulumi.StringPtrInput
	// IP port of the Mongodb instance.
	Vport pulumi.IntPtrInput
}

func (ShardingInstanceState) ElementType

func (ShardingInstanceState) ElementType() reflect.Type

type StandbyInstance

type StandbyInstance struct {
	pulumi.CustomResourceState

	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrOutput `pulumi:"autoRenewFlag"`
	// The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
	AvailableZone pulumi.StringOutput `pulumi:"availableZone"`
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// Creation time of the Mongodb instance.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Version of the standby Mongodb instance and must be same as the version of main instance.
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// Indicates the main instance ID of standby instances.
	FatherInstanceId pulumi.StringOutput `pulumi:"fatherInstanceId"`
	// Indicates the region of main instance.
	FatherInstanceRegion pulumi.StringOutput `pulumi:"fatherInstanceRegion"`
	// Name of the Mongodb instance.
	InstanceName pulumi.StringOutput `pulumi:"instanceName"`
	// Type of standby Mongodb instance and must be same as the type of main instance.
	MachineType pulumi.StringOutput `pulumi:"machineType"`
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntOutput `pulumi:"memory"`
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrOutput `pulumi:"prepaidPeriod"`
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
	// Status of the Mongodb instance, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status pulumi.IntOutput `pulumi:"status"`
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// IP of the Mongodb instance.
	Vip pulumi.StringOutput `pulumi:"vip"`
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntOutput `pulumi:"volume"`
	// ID of the VPC.
	VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
	// IP port of the Mongodb instance.
	Vport pulumi.IntOutput `pulumi:"vport"`
}

Provide a resource to create a Mongodb standby instance.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Mongodb"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/providers"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := providers.Newtencentcloud(ctx, "shanghai", &providers.tencentcloudArgs{
			Region: "ap-shanghai",
		})
		if err != nil {
			return err
		}
		mongodbInstance, err := Mongodb.NewInstance(ctx, "mongodbInstance", &Mongodb.InstanceArgs{
			InstanceName:  pulumi.String("tf-mongodb-test"),
			Memory:        pulumi.Int(4),
			Volume:        pulumi.Int(100),
			EngineVersion: pulumi.String("MONGO_40_WT"),
			MachineType:   pulumi.String("HIO10G"),
			AvailableZone: pulumi.Any(_var.Availability_zone),
			ProjectId:     pulumi.Int(0),
			Password:      pulumi.String("test1234"),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("test"),
			},
		})
		if err != nil {
			return err
		}
		_, err = Mongodb.NewStandbyInstance(ctx, "mongodbStandbyInstance", &Mongodb.StandbyInstanceArgs{
			InstanceName:         pulumi.String("tf-mongodb-standby-test"),
			Memory:               pulumi.Int(4),
			Volume:               pulumi.Int(100),
			AvailableZone:        pulumi.String("ap-shanghai-2"),
			ProjectId:            pulumi.Int(0),
			FatherInstanceId:     mongodbInstance.ID(),
			FatherInstanceRegion: pulumi.String("ap-guangzhou"),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("test"),
			},
		}, pulumi.Provider(tencentcloud.Shanghai))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Mongodb instance can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Mongodb/standbyInstance:StandbyInstance mongodb cmgo-41s6jwy4

```

func GetStandbyInstance

func GetStandbyInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StandbyInstanceState, opts ...pulumi.ResourceOption) (*StandbyInstance, error)

GetStandbyInstance gets an existing StandbyInstance 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 NewStandbyInstance

func NewStandbyInstance(ctx *pulumi.Context,
	name string, args *StandbyInstanceArgs, opts ...pulumi.ResourceOption) (*StandbyInstance, error)

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

func (*StandbyInstance) ElementType

func (*StandbyInstance) ElementType() reflect.Type

func (*StandbyInstance) ToStandbyInstanceOutput

func (i *StandbyInstance) ToStandbyInstanceOutput() StandbyInstanceOutput

func (*StandbyInstance) ToStandbyInstanceOutputWithContext

func (i *StandbyInstance) ToStandbyInstanceOutputWithContext(ctx context.Context) StandbyInstanceOutput

type StandbyInstanceArgs

type StandbyInstanceArgs struct {
	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrInput
	// The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
	AvailableZone pulumi.StringInput
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrInput
	// Indicates the main instance ID of standby instances.
	FatherInstanceId pulumi.StringInput
	// Indicates the region of main instance.
	FatherInstanceRegion pulumi.StringInput
	// Name of the Mongodb instance.
	InstanceName pulumi.StringInput
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntInput
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrInput
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayInput
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrInput
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapInput
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntInput
	// ID of the VPC.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a StandbyInstance resource.

func (StandbyInstanceArgs) ElementType

func (StandbyInstanceArgs) ElementType() reflect.Type

type StandbyInstanceArray

type StandbyInstanceArray []StandbyInstanceInput

func (StandbyInstanceArray) ElementType

func (StandbyInstanceArray) ElementType() reflect.Type

func (StandbyInstanceArray) ToStandbyInstanceArrayOutput

func (i StandbyInstanceArray) ToStandbyInstanceArrayOutput() StandbyInstanceArrayOutput

func (StandbyInstanceArray) ToStandbyInstanceArrayOutputWithContext

func (i StandbyInstanceArray) ToStandbyInstanceArrayOutputWithContext(ctx context.Context) StandbyInstanceArrayOutput

type StandbyInstanceArrayInput

type StandbyInstanceArrayInput interface {
	pulumi.Input

	ToStandbyInstanceArrayOutput() StandbyInstanceArrayOutput
	ToStandbyInstanceArrayOutputWithContext(context.Context) StandbyInstanceArrayOutput
}

StandbyInstanceArrayInput is an input type that accepts StandbyInstanceArray and StandbyInstanceArrayOutput values. You can construct a concrete instance of `StandbyInstanceArrayInput` via:

StandbyInstanceArray{ StandbyInstanceArgs{...} }

type StandbyInstanceArrayOutput

type StandbyInstanceArrayOutput struct{ *pulumi.OutputState }

func (StandbyInstanceArrayOutput) ElementType

func (StandbyInstanceArrayOutput) ElementType() reflect.Type

func (StandbyInstanceArrayOutput) Index

func (StandbyInstanceArrayOutput) ToStandbyInstanceArrayOutput

func (o StandbyInstanceArrayOutput) ToStandbyInstanceArrayOutput() StandbyInstanceArrayOutput

func (StandbyInstanceArrayOutput) ToStandbyInstanceArrayOutputWithContext

func (o StandbyInstanceArrayOutput) ToStandbyInstanceArrayOutputWithContext(ctx context.Context) StandbyInstanceArrayOutput

type StandbyInstanceInput

type StandbyInstanceInput interface {
	pulumi.Input

	ToStandbyInstanceOutput() StandbyInstanceOutput
	ToStandbyInstanceOutputWithContext(ctx context.Context) StandbyInstanceOutput
}

type StandbyInstanceMap

type StandbyInstanceMap map[string]StandbyInstanceInput

func (StandbyInstanceMap) ElementType

func (StandbyInstanceMap) ElementType() reflect.Type

func (StandbyInstanceMap) ToStandbyInstanceMapOutput

func (i StandbyInstanceMap) ToStandbyInstanceMapOutput() StandbyInstanceMapOutput

func (StandbyInstanceMap) ToStandbyInstanceMapOutputWithContext

func (i StandbyInstanceMap) ToStandbyInstanceMapOutputWithContext(ctx context.Context) StandbyInstanceMapOutput

type StandbyInstanceMapInput

type StandbyInstanceMapInput interface {
	pulumi.Input

	ToStandbyInstanceMapOutput() StandbyInstanceMapOutput
	ToStandbyInstanceMapOutputWithContext(context.Context) StandbyInstanceMapOutput
}

StandbyInstanceMapInput is an input type that accepts StandbyInstanceMap and StandbyInstanceMapOutput values. You can construct a concrete instance of `StandbyInstanceMapInput` via:

StandbyInstanceMap{ "key": StandbyInstanceArgs{...} }

type StandbyInstanceMapOutput

type StandbyInstanceMapOutput struct{ *pulumi.OutputState }

func (StandbyInstanceMapOutput) ElementType

func (StandbyInstanceMapOutput) ElementType() reflect.Type

func (StandbyInstanceMapOutput) MapIndex

func (StandbyInstanceMapOutput) ToStandbyInstanceMapOutput

func (o StandbyInstanceMapOutput) ToStandbyInstanceMapOutput() StandbyInstanceMapOutput

func (StandbyInstanceMapOutput) ToStandbyInstanceMapOutputWithContext

func (o StandbyInstanceMapOutput) ToStandbyInstanceMapOutputWithContext(ctx context.Context) StandbyInstanceMapOutput

type StandbyInstanceOutput

type StandbyInstanceOutput struct{ *pulumi.OutputState }

func (StandbyInstanceOutput) AutoRenewFlag

func (o StandbyInstanceOutput) AutoRenewFlag() pulumi.IntPtrOutput

Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.

func (StandbyInstanceOutput) AvailableZone

func (o StandbyInstanceOutput) AvailableZone() pulumi.StringOutput

The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.

func (StandbyInstanceOutput) ChargeType

The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.

func (StandbyInstanceOutput) CreateTime

func (o StandbyInstanceOutput) CreateTime() pulumi.StringOutput

Creation time of the Mongodb instance.

func (StandbyInstanceOutput) ElementType

func (StandbyInstanceOutput) ElementType() reflect.Type

func (StandbyInstanceOutput) EngineVersion

func (o StandbyInstanceOutput) EngineVersion() pulumi.StringOutput

Version of the standby Mongodb instance and must be same as the version of main instance.

func (StandbyInstanceOutput) FatherInstanceId

func (o StandbyInstanceOutput) FatherInstanceId() pulumi.StringOutput

Indicates the main instance ID of standby instances.

func (StandbyInstanceOutput) FatherInstanceRegion

func (o StandbyInstanceOutput) FatherInstanceRegion() pulumi.StringOutput

Indicates the region of main instance.

func (StandbyInstanceOutput) InstanceName

func (o StandbyInstanceOutput) InstanceName() pulumi.StringOutput

Name of the Mongodb instance.

func (StandbyInstanceOutput) MachineType

func (o StandbyInstanceOutput) MachineType() pulumi.StringOutput

Type of standby Mongodb instance and must be same as the type of main instance.

func (StandbyInstanceOutput) Memory

Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.

func (StandbyInstanceOutput) PrepaidPeriod

func (o StandbyInstanceOutput) PrepaidPeriod() pulumi.IntPtrOutput

The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.

func (StandbyInstanceOutput) ProjectId

ID of the project which the instance belongs.

func (StandbyInstanceOutput) SecurityGroups

func (o StandbyInstanceOutput) SecurityGroups() pulumi.StringArrayOutput

ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.

func (StandbyInstanceOutput) Status

Status of the Mongodb instance, and available values include pending initialization(expressed with 0), processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).

func (StandbyInstanceOutput) SubnetId

ID of the subnet within this VPC. The value is required if `vpcId` is set.

func (StandbyInstanceOutput) Tags

The tags of the Mongodb. Key name `project` is system reserved and can't be used.

func (StandbyInstanceOutput) ToStandbyInstanceOutput

func (o StandbyInstanceOutput) ToStandbyInstanceOutput() StandbyInstanceOutput

func (StandbyInstanceOutput) ToStandbyInstanceOutputWithContext

func (o StandbyInstanceOutput) ToStandbyInstanceOutputWithContext(ctx context.Context) StandbyInstanceOutput

func (StandbyInstanceOutput) Vip

IP of the Mongodb instance.

func (StandbyInstanceOutput) Volume

Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.

func (StandbyInstanceOutput) VpcId

ID of the VPC.

func (StandbyInstanceOutput) Vport

IP port of the Mongodb instance.

type StandbyInstanceState

type StandbyInstanceState struct {
	// Auto renew flag. Valid values are `0`(NOTIFY_AND_MANUAL_RENEW), `1`(NOTIFY_AND_AUTO_RENEW) and `2`(DISABLE_NOTIFY_AND_MANUAL_RENEW). Default value is `0`. Note: only works for PREPAID instance. Only supports`0` and `1` for creation.
	AutoRenewFlag pulumi.IntPtrInput
	// The available zone of the Mongodb standby instance. NOTE: must not be same with father instance's.
	AvailableZone pulumi.StringPtrInput
	// The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. Default value is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. Caution that update operation on this field will delete old instances and create new one with new charge type.
	ChargeType pulumi.StringPtrInput
	// Creation time of the Mongodb instance.
	CreateTime pulumi.StringPtrInput
	// Version of the standby Mongodb instance and must be same as the version of main instance.
	EngineVersion pulumi.StringPtrInput
	// Indicates the main instance ID of standby instances.
	FatherInstanceId pulumi.StringPtrInput
	// Indicates the region of main instance.
	FatherInstanceRegion pulumi.StringPtrInput
	// Name of the Mongodb instance.
	InstanceName pulumi.StringPtrInput
	// Type of standby Mongodb instance and must be same as the type of main instance.
	MachineType pulumi.StringPtrInput
	// Memory size. The minimum value is 2, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Memory pulumi.IntPtrInput
	// The tenancy (time unit is month) of the prepaid instance. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. NOTE: it only works when chargeType is set to `PREPAID`.
	PrepaidPeriod pulumi.IntPtrInput
	// ID of the project which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the security group. NOTE: for instance which `engineVersion` is `MONGO_40_WT`, `securityGroups` is not supported.
	SecurityGroups pulumi.StringArrayInput
	// Status of the Mongodb instance, and available values include pending initialization(expressed with 0),  processing(expressed with 1), running(expressed with 2) and expired(expressed with -2).
	Status pulumi.IntPtrInput
	// ID of the subnet within this VPC. The value is required if `vpcId` is set.
	SubnetId pulumi.StringPtrInput
	// The tags of the Mongodb. Key name `project` is system reserved and can't be used.
	Tags pulumi.MapInput
	// IP of the Mongodb instance.
	Vip pulumi.StringPtrInput
	// Disk size. The minimum value is 25, and unit is GB. Memory and volume must be upgraded or degraded simultaneously.
	Volume pulumi.IntPtrInput
	// ID of the VPC.
	VpcId pulumi.StringPtrInput
	// IP port of the Mongodb instance.
	Vport pulumi.IntPtrInput
}

func (StandbyInstanceState) ElementType

func (StandbyInstanceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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