1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CynosdbInstanceParam
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CynosdbInstanceParam

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a cynosdb instance_param

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const instanceParam = new tencentcloud.CynosdbInstanceParam("instanceParam", {
        clusterId: "cynosdbmysql-bws8h88b",
        instanceId: "cynosdbmysql-ins-rikr6z4o",
        instanceParamLists: [{
            currentValue: "0",
            paramName: "init_connect",
        }],
        isInMaintainPeriod: "no",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    instance_param = tencentcloud.CynosdbInstanceParam("instanceParam",
        cluster_id="cynosdbmysql-bws8h88b",
        instance_id="cynosdbmysql-ins-rikr6z4o",
        instance_param_lists=[{
            "current_value": "0",
            "param_name": "init_connect",
        }],
        is_in_maintain_period="no")
    
    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.NewCynosdbInstanceParam(ctx, "instanceParam", &tencentcloud.CynosdbInstanceParamArgs{
    			ClusterId:  pulumi.String("cynosdbmysql-bws8h88b"),
    			InstanceId: pulumi.String("cynosdbmysql-ins-rikr6z4o"),
    			InstanceParamLists: tencentcloud.CynosdbInstanceParamInstanceParamListArray{
    				&tencentcloud.CynosdbInstanceParamInstanceParamListArgs{
    					CurrentValue: pulumi.String("0"),
    					ParamName:    pulumi.String("init_connect"),
    				},
    			},
    			IsInMaintainPeriod: pulumi.String("no"),
    		})
    		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 instanceParam = new Tencentcloud.CynosdbInstanceParam("instanceParam", new()
        {
            ClusterId = "cynosdbmysql-bws8h88b",
            InstanceId = "cynosdbmysql-ins-rikr6z4o",
            InstanceParamLists = new[]
            {
                new Tencentcloud.Inputs.CynosdbInstanceParamInstanceParamListArgs
                {
                    CurrentValue = "0",
                    ParamName = "init_connect",
                },
            },
            IsInMaintainPeriod = "no",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CynosdbInstanceParam;
    import com.pulumi.tencentcloud.CynosdbInstanceParamArgs;
    import com.pulumi.tencentcloud.inputs.CynosdbInstanceParamInstanceParamListArgs;
    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 instanceParam = new CynosdbInstanceParam("instanceParam", CynosdbInstanceParamArgs.builder()
                .clusterId("cynosdbmysql-bws8h88b")
                .instanceId("cynosdbmysql-ins-rikr6z4o")
                .instanceParamLists(CynosdbInstanceParamInstanceParamListArgs.builder()
                    .currentValue("0")
                    .paramName("init_connect")
                    .build())
                .isInMaintainPeriod("no")
                .build());
    
        }
    }
    
    resources:
      instanceParam:
        type: tencentcloud:CynosdbInstanceParam
        properties:
          clusterId: cynosdbmysql-bws8h88b
          instanceId: cynosdbmysql-ins-rikr6z4o
          instanceParamLists:
            - currentValue: '0'
              paramName: init_connect
          isInMaintainPeriod: no
    

    Create CynosdbInstanceParam Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CynosdbInstanceParam(name: string, args: CynosdbInstanceParamArgs, opts?: CustomResourceOptions);
    @overload
    def CynosdbInstanceParam(resource_name: str,
                             args: CynosdbInstanceParamArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def CynosdbInstanceParam(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             cluster_id: Optional[str] = None,
                             cynosdb_instance_param_id: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             instance_param_lists: Optional[Sequence[CynosdbInstanceParamInstanceParamListArgs]] = None,
                             is_in_maintain_period: Optional[str] = None)
    func NewCynosdbInstanceParam(ctx *Context, name string, args CynosdbInstanceParamArgs, opts ...ResourceOption) (*CynosdbInstanceParam, error)
    public CynosdbInstanceParam(string name, CynosdbInstanceParamArgs args, CustomResourceOptions? opts = null)
    public CynosdbInstanceParam(String name, CynosdbInstanceParamArgs args)
    public CynosdbInstanceParam(String name, CynosdbInstanceParamArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CynosdbInstanceParam
    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 CynosdbInstanceParamArgs
    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 CynosdbInstanceParamArgs
    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 CynosdbInstanceParamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CynosdbInstanceParamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CynosdbInstanceParamArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CynosdbInstanceParam 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 CynosdbInstanceParam resource accepts the following input properties:

    ClusterId string
    Cluster ID.
    CynosdbInstanceParamId string
    ID of the resource.
    InstanceId string
    Instance ID.
    InstanceParamLists List<CynosdbInstanceParamInstanceParamList>
    Instance parameter list.
    IsInMaintainPeriod string
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    ClusterId string
    Cluster ID.
    CynosdbInstanceParamId string
    ID of the resource.
    InstanceId string
    Instance ID.
    InstanceParamLists []CynosdbInstanceParamInstanceParamListArgs
    Instance parameter list.
    IsInMaintainPeriod string
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    clusterId String
    Cluster ID.
    cynosdbInstanceParamId String
    ID of the resource.
    instanceId String
    Instance ID.
    instanceParamLists List<CynosdbInstanceParamInstanceParamList>
    Instance parameter list.
    isInMaintainPeriod String
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    clusterId string
    Cluster ID.
    cynosdbInstanceParamId string
    ID of the resource.
    instanceId string
    Instance ID.
    instanceParamLists CynosdbInstanceParamInstanceParamList[]
    Instance parameter list.
    isInMaintainPeriod string
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    cluster_id str
    Cluster ID.
    cynosdb_instance_param_id str
    ID of the resource.
    instance_id str
    Instance ID.
    instance_param_lists Sequence[CynosdbInstanceParamInstanceParamListArgs]
    Instance parameter list.
    is_in_maintain_period str
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    clusterId String
    Cluster ID.
    cynosdbInstanceParamId String
    ID of the resource.
    instanceId String
    Instance ID.
    instanceParamLists List<Property Map>
    Instance parameter list.
    isInMaintainPeriod String
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CynosdbInstanceParam 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 CynosdbInstanceParam Resource

    Get an existing CynosdbInstanceParam 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?: CynosdbInstanceParamState, opts?: CustomResourceOptions): CynosdbInstanceParam
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            cynosdb_instance_param_id: Optional[str] = None,
            instance_id: Optional[str] = None,
            instance_param_lists: Optional[Sequence[CynosdbInstanceParamInstanceParamListArgs]] = None,
            is_in_maintain_period: Optional[str] = None) -> CynosdbInstanceParam
    func GetCynosdbInstanceParam(ctx *Context, name string, id IDInput, state *CynosdbInstanceParamState, opts ...ResourceOption) (*CynosdbInstanceParam, error)
    public static CynosdbInstanceParam Get(string name, Input<string> id, CynosdbInstanceParamState? state, CustomResourceOptions? opts = null)
    public static CynosdbInstanceParam get(String name, Output<String> id, CynosdbInstanceParamState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CynosdbInstanceParam    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.
    The following state arguments are supported:
    ClusterId string
    Cluster ID.
    CynosdbInstanceParamId string
    ID of the resource.
    InstanceId string
    Instance ID.
    InstanceParamLists List<CynosdbInstanceParamInstanceParamList>
    Instance parameter list.
    IsInMaintainPeriod string
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    ClusterId string
    Cluster ID.
    CynosdbInstanceParamId string
    ID of the resource.
    InstanceId string
    Instance ID.
    InstanceParamLists []CynosdbInstanceParamInstanceParamListArgs
    Instance parameter list.
    IsInMaintainPeriod string
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    clusterId String
    Cluster ID.
    cynosdbInstanceParamId String
    ID of the resource.
    instanceId String
    Instance ID.
    instanceParamLists List<CynosdbInstanceParamInstanceParamList>
    Instance parameter list.
    isInMaintainPeriod String
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    clusterId string
    Cluster ID.
    cynosdbInstanceParamId string
    ID of the resource.
    instanceId string
    Instance ID.
    instanceParamLists CynosdbInstanceParamInstanceParamList[]
    Instance parameter list.
    isInMaintainPeriod string
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    cluster_id str
    Cluster ID.
    cynosdb_instance_param_id str
    ID of the resource.
    instance_id str
    Instance ID.
    instance_param_lists Sequence[CynosdbInstanceParamInstanceParamListArgs]
    Instance parameter list.
    is_in_maintain_period str
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
    clusterId String
    Cluster ID.
    cynosdbInstanceParamId String
    ID of the resource.
    instanceId String
    Instance ID.
    instanceParamLists List<Property Map>
    Instance parameter list.
    isInMaintainPeriod String
    Yes: modify within the operation and maintenance time window, no: execute immediately (default value).

    Supporting Types

    CynosdbInstanceParamInstanceParamList, CynosdbInstanceParamInstanceParamListArgs

    CurrentValue string
    Current value of parameter.
    ParamName string
    Parameter Name.
    CurrentValue string
    Current value of parameter.
    ParamName string
    Parameter Name.
    currentValue String
    Current value of parameter.
    paramName String
    Parameter Name.
    currentValue string
    Current value of parameter.
    paramName string
    Parameter Name.
    current_value str
    Current value of parameter.
    param_name str
    Parameter Name.
    currentValue String
    Current value of parameter.
    paramName String
    Parameter Name.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack