tencentcloud.MariadbDedicatedclusterDbInstance
Explore with Pulumi AI
Provides a resource to create a mariadb dedicatedcluster_db_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const dedicatedclusterDbInstance = new tencentcloud.MariadbDedicatedclusterDbInstance("dedicatedclusterDbInstance", {
clusterId: "dbdc-24odnuhr",
dbVersionId: "8.0",
goodsNum: 1,
instanceName: "cluster-mariadb-test-1",
memory: 2,
storage: 10,
subnetId: "subnet-3ku415by",
vpcId: "vpc-ii1jfbhl",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
dedicatedcluster_db_instance = tencentcloud.MariadbDedicatedclusterDbInstance("dedicatedclusterDbInstance",
cluster_id="dbdc-24odnuhr",
db_version_id="8.0",
goods_num=1,
instance_name="cluster-mariadb-test-1",
memory=2,
storage=10,
subnet_id="subnet-3ku415by",
vpc_id="vpc-ii1jfbhl")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMariadbDedicatedclusterDbInstance(ctx, "dedicatedclusterDbInstance", &tencentcloud.MariadbDedicatedclusterDbInstanceArgs{
ClusterId: pulumi.String("dbdc-24odnuhr"),
DbVersionId: pulumi.String("8.0"),
GoodsNum: pulumi.Float64(1),
InstanceName: pulumi.String("cluster-mariadb-test-1"),
Memory: pulumi.Float64(2),
Storage: pulumi.Float64(10),
SubnetId: pulumi.String("subnet-3ku415by"),
VpcId: pulumi.String("vpc-ii1jfbhl"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var dedicatedclusterDbInstance = new Tencentcloud.MariadbDedicatedclusterDbInstance("dedicatedclusterDbInstance", new()
{
ClusterId = "dbdc-24odnuhr",
DbVersionId = "8.0",
GoodsNum = 1,
InstanceName = "cluster-mariadb-test-1",
Memory = 2,
Storage = 10,
SubnetId = "subnet-3ku415by",
VpcId = "vpc-ii1jfbhl",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MariadbDedicatedclusterDbInstance;
import com.pulumi.tencentcloud.MariadbDedicatedclusterDbInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var dedicatedclusterDbInstance = new MariadbDedicatedclusterDbInstance("dedicatedclusterDbInstance", MariadbDedicatedclusterDbInstanceArgs.builder()
.clusterId("dbdc-24odnuhr")
.dbVersionId("8.0")
.goodsNum(1)
.instanceName("cluster-mariadb-test-1")
.memory(2)
.storage(10)
.subnetId("subnet-3ku415by")
.vpcId("vpc-ii1jfbhl")
.build());
}
}
resources:
dedicatedclusterDbInstance:
type: tencentcloud:MariadbDedicatedclusterDbInstance
properties:
clusterId: dbdc-24odnuhr
dbVersionId: '8.0'
goodsNum: 1
instanceName: cluster-mariadb-test-1
memory: 2
storage: 10
subnetId: subnet-3ku415by
vpcId: vpc-ii1jfbhl
Create MariadbDedicatedclusterDbInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MariadbDedicatedclusterDbInstance(name: string, args: MariadbDedicatedclusterDbInstanceArgs, opts?: CustomResourceOptions);
@overload
def MariadbDedicatedclusterDbInstance(resource_name: str,
args: MariadbDedicatedclusterDbInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MariadbDedicatedclusterDbInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
goods_num: Optional[float] = None,
memory: Optional[float] = None,
storage: Optional[float] = None,
db_version_id: Optional[str] = None,
instance_name: Optional[str] = None,
mariadb_dedicatedcluster_db_instance_id: Optional[str] = None,
project_id: Optional[float] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vip: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewMariadbDedicatedclusterDbInstance(ctx *Context, name string, args MariadbDedicatedclusterDbInstanceArgs, opts ...ResourceOption) (*MariadbDedicatedclusterDbInstance, error)
public MariadbDedicatedclusterDbInstance(string name, MariadbDedicatedclusterDbInstanceArgs args, CustomResourceOptions? opts = null)
public MariadbDedicatedclusterDbInstance(String name, MariadbDedicatedclusterDbInstanceArgs args)
public MariadbDedicatedclusterDbInstance(String name, MariadbDedicatedclusterDbInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:MariadbDedicatedclusterDbInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MariadbDedicatedclusterDbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MariadbDedicatedclusterDbInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MariadbDedicatedclusterDbInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MariadbDedicatedclusterDbInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MariadbDedicatedclusterDbInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MariadbDedicatedclusterDbInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MariadbDedicatedclusterDbInstance resource accepts the following input properties:
- Cluster
Id string - dedicated cluster id.
- Goods
Num double - number of instance.
- Memory double
- instance memory.
- Storage double
- instance disk storage.
- Db
Version stringId - db engine version, default to 0.
- Instance
Name string - name of this instance.
- Mariadb
Dedicatedcluster stringDb Instance Id - ID of the resource.
- Project
Id double - project id.
- Subnet
Id string - subnet id, it's required when vpcId is set.
- Dictionary<string, string>
- Tag description list.
- Vip string
- vip.
- Vpc
Id string - vpc id.
- Cluster
Id string - dedicated cluster id.
- Goods
Num float64 - number of instance.
- Memory float64
- instance memory.
- Storage float64
- instance disk storage.
- Db
Version stringId - db engine version, default to 0.
- Instance
Name string - name of this instance.
- Mariadb
Dedicatedcluster stringDb Instance Id - ID of the resource.
- Project
Id float64 - project id.
- Subnet
Id string - subnet id, it's required when vpcId is set.
- map[string]string
- Tag description list.
- Vip string
- vip.
- Vpc
Id string - vpc id.
- cluster
Id String - dedicated cluster id.
- goods
Num Double - number of instance.
- memory Double
- instance memory.
- storage Double
- instance disk storage.
- db
Version StringId - db engine version, default to 0.
- instance
Name String - name of this instance.
- mariadb
Dedicatedcluster StringDb Instance Id - ID of the resource.
- project
Id Double - project id.
- subnet
Id String - subnet id, it's required when vpcId is set.
- Map<String,String>
- Tag description list.
- vip String
- vip.
- vpc
Id String - vpc id.
- cluster
Id string - dedicated cluster id.
- goods
Num number - number of instance.
- memory number
- instance memory.
- storage number
- instance disk storage.
- db
Version stringId - db engine version, default to 0.
- instance
Name string - name of this instance.
- mariadb
Dedicatedcluster stringDb Instance Id - ID of the resource.
- project
Id number - project id.
- subnet
Id string - subnet id, it's required when vpcId is set.
- {[key: string]: string}
- Tag description list.
- vip string
- vip.
- vpc
Id string - vpc id.
- cluster_
id str - dedicated cluster id.
- goods_
num float - number of instance.
- memory float
- instance memory.
- storage float
- instance disk storage.
- db_
version_ strid - db engine version, default to 0.
- instance_
name str - name of this instance.
- mariadb_
dedicatedcluster_ strdb_ instance_ id - ID of the resource.
- project_
id float - project id.
- subnet_
id str - subnet id, it's required when vpcId is set.
- Mapping[str, str]
- Tag description list.
- vip str
- vip.
- vpc_
id str - vpc id.
- cluster
Id String - dedicated cluster id.
- goods
Num Number - number of instance.
- memory Number
- instance memory.
- storage Number
- instance disk storage.
- db
Version StringId - db engine version, default to 0.
- instance
Name String - name of this instance.
- mariadb
Dedicatedcluster StringDb Instance Id - ID of the resource.
- project
Id Number - project id.
- subnet
Id String - subnet id, it's required when vpcId is set.
- Map<String>
- Tag description list.
- vip String
- vip.
- vpc
Id String - vpc id.
Outputs
All input properties are implicitly available as output properties. Additionally, the MariadbDedicatedclusterDbInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MariadbDedicatedclusterDbInstance Resource
Get an existing MariadbDedicatedclusterDbInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MariadbDedicatedclusterDbInstanceState, opts?: CustomResourceOptions): MariadbDedicatedclusterDbInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
db_version_id: Optional[str] = None,
goods_num: Optional[float] = None,
instance_name: Optional[str] = None,
mariadb_dedicatedcluster_db_instance_id: Optional[str] = None,
memory: Optional[float] = None,
project_id: Optional[float] = None,
storage: Optional[float] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vip: Optional[str] = None,
vpc_id: Optional[str] = None) -> MariadbDedicatedclusterDbInstance
func GetMariadbDedicatedclusterDbInstance(ctx *Context, name string, id IDInput, state *MariadbDedicatedclusterDbInstanceState, opts ...ResourceOption) (*MariadbDedicatedclusterDbInstance, error)
public static MariadbDedicatedclusterDbInstance Get(string name, Input<string> id, MariadbDedicatedclusterDbInstanceState? state, CustomResourceOptions? opts = null)
public static MariadbDedicatedclusterDbInstance get(String name, Output<String> id, MariadbDedicatedclusterDbInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MariadbDedicatedclusterDbInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - dedicated cluster id.
- Db
Version stringId - db engine version, default to 0.
- Goods
Num double - number of instance.
- Instance
Name string - name of this instance.
- Mariadb
Dedicatedcluster stringDb Instance Id - ID of the resource.
- Memory double
- instance memory.
- Project
Id double - project id.
- Storage double
- instance disk storage.
- Subnet
Id string - subnet id, it's required when vpcId is set.
- Dictionary<string, string>
- Tag description list.
- Vip string
- vip.
- Vpc
Id string - vpc id.
- Cluster
Id string - dedicated cluster id.
- Db
Version stringId - db engine version, default to 0.
- Goods
Num float64 - number of instance.
- Instance
Name string - name of this instance.
- Mariadb
Dedicatedcluster stringDb Instance Id - ID of the resource.
- Memory float64
- instance memory.
- Project
Id float64 - project id.
- Storage float64
- instance disk storage.
- Subnet
Id string - subnet id, it's required when vpcId is set.
- map[string]string
- Tag description list.
- Vip string
- vip.
- Vpc
Id string - vpc id.
- cluster
Id String - dedicated cluster id.
- db
Version StringId - db engine version, default to 0.
- goods
Num Double - number of instance.
- instance
Name String - name of this instance.
- mariadb
Dedicatedcluster StringDb Instance Id - ID of the resource.
- memory Double
- instance memory.
- project
Id Double - project id.
- storage Double
- instance disk storage.
- subnet
Id String - subnet id, it's required when vpcId is set.
- Map<String,String>
- Tag description list.
- vip String
- vip.
- vpc
Id String - vpc id.
- cluster
Id string - dedicated cluster id.
- db
Version stringId - db engine version, default to 0.
- goods
Num number - number of instance.
- instance
Name string - name of this instance.
- mariadb
Dedicatedcluster stringDb Instance Id - ID of the resource.
- memory number
- instance memory.
- project
Id number - project id.
- storage number
- instance disk storage.
- subnet
Id string - subnet id, it's required when vpcId is set.
- {[key: string]: string}
- Tag description list.
- vip string
- vip.
- vpc
Id string - vpc id.
- cluster_
id str - dedicated cluster id.
- db_
version_ strid - db engine version, default to 0.
- goods_
num float - number of instance.
- instance_
name str - name of this instance.
- mariadb_
dedicatedcluster_ strdb_ instance_ id - ID of the resource.
- memory float
- instance memory.
- project_
id float - project id.
- storage float
- instance disk storage.
- subnet_
id str - subnet id, it's required when vpcId is set.
- Mapping[str, str]
- Tag description list.
- vip str
- vip.
- vpc_
id str - vpc id.
- cluster
Id String - dedicated cluster id.
- db
Version StringId - db engine version, default to 0.
- goods
Num Number - number of instance.
- instance
Name String - name of this instance.
- mariadb
Dedicatedcluster StringDb Instance Id - ID of the resource.
- memory Number
- instance memory.
- project
Id Number - project id.
- storage Number
- instance disk storage.
- subnet
Id String - subnet id, it's required when vpcId is set.
- Map<String>
- Tag description list.
- vip String
- vip.
- vpc
Id String - vpc id.
Import
mariadb dedicatedcluster_db_instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mariadbDedicatedclusterDbInstance:MariadbDedicatedclusterDbInstance dedicatedcluster_db_instance tdsql-050g3fmv
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.