tencentcloud.MysqlDeployGroup
Explore with Pulumi AI
Provides a resource to create a mysql deploy_group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MysqlDeployGroup("example", {
deployGroupName: "tf-example",
description: "desc.",
devClasses: ["TS85"],
limitNum: 1,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MysqlDeployGroup("example",
deploy_group_name="tf-example",
description="desc.",
dev_classes=["TS85"],
limit_num=1)
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.NewMysqlDeployGroup(ctx, "example", &tencentcloud.MysqlDeployGroupArgs{
DeployGroupName: pulumi.String("tf-example"),
Description: pulumi.String("desc."),
DevClasses: pulumi.StringArray{
pulumi.String("TS85"),
},
LimitNum: pulumi.Float64(1),
})
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 example = new Tencentcloud.MysqlDeployGroup("example", new()
{
DeployGroupName = "tf-example",
Description = "desc.",
DevClasses = new[]
{
"TS85",
},
LimitNum = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MysqlDeployGroup;
import com.pulumi.tencentcloud.MysqlDeployGroupArgs;
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 example = new MysqlDeployGroup("example", MysqlDeployGroupArgs.builder()
.deployGroupName("tf-example")
.description("desc.")
.devClasses("TS85")
.limitNum(1)
.build());
}
}
resources:
example:
type: tencentcloud:MysqlDeployGroup
properties:
deployGroupName: tf-example
description: desc.
devClasses:
- TS85
limitNum: 1
Create MysqlDeployGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MysqlDeployGroup(name: string, args: MysqlDeployGroupArgs, opts?: CustomResourceOptions);
@overload
def MysqlDeployGroup(resource_name: str,
args: MysqlDeployGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MysqlDeployGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
deploy_group_name: Optional[str] = None,
description: Optional[str] = None,
dev_classes: Optional[Sequence[str]] = None,
limit_num: Optional[float] = None,
mysql_deploy_group_id: Optional[str] = None)
func NewMysqlDeployGroup(ctx *Context, name string, args MysqlDeployGroupArgs, opts ...ResourceOption) (*MysqlDeployGroup, error)
public MysqlDeployGroup(string name, MysqlDeployGroupArgs args, CustomResourceOptions? opts = null)
public MysqlDeployGroup(String name, MysqlDeployGroupArgs args)
public MysqlDeployGroup(String name, MysqlDeployGroupArgs args, CustomResourceOptions options)
type: tencentcloud:MysqlDeployGroup
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 MysqlDeployGroupArgs
- 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 MysqlDeployGroupArgs
- 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 MysqlDeployGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlDeployGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MysqlDeployGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MysqlDeployGroup 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 MysqlDeployGroup resource accepts the following input properties:
- Deploy
Group stringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- Description string
- The description of deploy group. the maximum length cannot exceed 200 characters.
- Dev
Classes List<string> - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- Limit
Num double - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- Mysql
Deploy stringGroup Id - ID of the resource.
- Deploy
Group stringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- Description string
- The description of deploy group. the maximum length cannot exceed 200 characters.
- Dev
Classes []string - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- Limit
Num float64 - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- Mysql
Deploy stringGroup Id - ID of the resource.
- deploy
Group StringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- description String
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev
Classes List<String> - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit
Num Double - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql
Deploy StringGroup Id - ID of the resource.
- deploy
Group stringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- description string
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev
Classes string[] - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit
Num number - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql
Deploy stringGroup Id - ID of the resource.
- deploy_
group_ strname - The name of deploy group. the maximum length cannot exceed 60 characters.
- description str
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev_
classes Sequence[str] - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit_
num float - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql_
deploy_ strgroup_ id - ID of the resource.
- deploy
Group StringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- description String
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev
Classes List<String> - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit
Num Number - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql
Deploy StringGroup Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the MysqlDeployGroup 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 MysqlDeployGroup Resource
Get an existing MysqlDeployGroup 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?: MysqlDeployGroupState, opts?: CustomResourceOptions): MysqlDeployGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
deploy_group_name: Optional[str] = None,
description: Optional[str] = None,
dev_classes: Optional[Sequence[str]] = None,
limit_num: Optional[float] = None,
mysql_deploy_group_id: Optional[str] = None) -> MysqlDeployGroup
func GetMysqlDeployGroup(ctx *Context, name string, id IDInput, state *MysqlDeployGroupState, opts ...ResourceOption) (*MysqlDeployGroup, error)
public static MysqlDeployGroup Get(string name, Input<string> id, MysqlDeployGroupState? state, CustomResourceOptions? opts = null)
public static MysqlDeployGroup get(String name, Output<String> id, MysqlDeployGroupState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MysqlDeployGroup 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.
- Deploy
Group stringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- Description string
- The description of deploy group. the maximum length cannot exceed 200 characters.
- Dev
Classes List<string> - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- Limit
Num double - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- Mysql
Deploy stringGroup Id - ID of the resource.
- Deploy
Group stringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- Description string
- The description of deploy group. the maximum length cannot exceed 200 characters.
- Dev
Classes []string - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- Limit
Num float64 - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- Mysql
Deploy stringGroup Id - ID of the resource.
- deploy
Group StringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- description String
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev
Classes List<String> - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit
Num Double - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql
Deploy StringGroup Id - ID of the resource.
- deploy
Group stringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- description string
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev
Classes string[] - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit
Num number - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql
Deploy stringGroup Id - ID of the resource.
- deploy_
group_ strname - The name of deploy group. the maximum length cannot exceed 60 characters.
- description str
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev_
classes Sequence[str] - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit_
num float - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql_
deploy_ strgroup_ id - ID of the resource.
- deploy
Group StringName - The name of deploy group. the maximum length cannot exceed 60 characters.
- description String
- The description of deploy group. the maximum length cannot exceed 200 characters.
- dev
Classes List<String> - The device class of deploy group. optional value is SH12+SH02, TS85, etc.
- limit
Num Number - The limit on the number of instances on the same physical machine in deploy group affinity policy 1.
- mysql
Deploy StringGroup Id - ID of the resource.
Import
mysql deploy_group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/mysqlDeployGroup:MysqlDeployGroup deploy_group deploy_group_id
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.