tencentcloud.CynosdbInstanceParam
Explore with Pulumi AI
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:
- Cluster
Id string - Cluster ID.
- Cynosdb
Instance stringParam Id - ID of the resource.
- Instance
Id string - Instance ID.
- Instance
Param List<CynosdbLists Instance Param Instance Param List> - Instance parameter list.
- Is
In stringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- Cluster
Id string - Cluster ID.
- Cynosdb
Instance stringParam Id - ID of the resource.
- Instance
Id string - Instance ID.
- Instance
Param []CynosdbLists Instance Param Instance Param List Args - Instance parameter list.
- Is
In stringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster
Id String - Cluster ID.
- cynosdb
Instance StringParam Id - ID of the resource.
- instance
Id String - Instance ID.
- instance
Param List<CynosdbLists Instance Param Instance Param List> - Instance parameter list.
- is
In StringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster
Id string - Cluster ID.
- cynosdb
Instance stringParam Id - ID of the resource.
- instance
Id string - Instance ID.
- instance
Param CynosdbLists Instance Param Instance Param List[] - Instance parameter list.
- is
In stringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster_
id str - Cluster ID.
- cynosdb_
instance_ strparam_ id - ID of the resource.
- instance_
id str - Instance ID.
- instance_
param_ Sequence[Cynosdblists Instance Param Instance Param List Args] - Instance parameter list.
- is_
in_ strmaintain_ period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster
Id String - Cluster ID.
- cynosdb
Instance StringParam Id - ID of the resource.
- instance
Id String - Instance ID.
- instance
Param List<Property Map>Lists - Instance parameter list.
- is
In StringMaintain Period - 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.
- Cluster
Id string - Cluster ID.
- Cynosdb
Instance stringParam Id - ID of the resource.
- Instance
Id string - Instance ID.
- Instance
Param List<CynosdbLists Instance Param Instance Param List> - Instance parameter list.
- Is
In stringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- Cluster
Id string - Cluster ID.
- Cynosdb
Instance stringParam Id - ID of the resource.
- Instance
Id string - Instance ID.
- Instance
Param []CynosdbLists Instance Param Instance Param List Args - Instance parameter list.
- Is
In stringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster
Id String - Cluster ID.
- cynosdb
Instance StringParam Id - ID of the resource.
- instance
Id String - Instance ID.
- instance
Param List<CynosdbLists Instance Param Instance Param List> - Instance parameter list.
- is
In StringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster
Id string - Cluster ID.
- cynosdb
Instance stringParam Id - ID of the resource.
- instance
Id string - Instance ID.
- instance
Param CynosdbLists Instance Param Instance Param List[] - Instance parameter list.
- is
In stringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster_
id str - Cluster ID.
- cynosdb_
instance_ strparam_ id - ID of the resource.
- instance_
id str - Instance ID.
- instance_
param_ Sequence[Cynosdblists Instance Param Instance Param List Args] - Instance parameter list.
- is_
in_ strmaintain_ period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
- cluster
Id String - Cluster ID.
- cynosdb
Instance StringParam Id - ID of the resource.
- instance
Id String - Instance ID.
- instance
Param List<Property Map>Lists - Instance parameter list.
- is
In StringMaintain Period - Yes: modify within the operation and maintenance time window, no: execute immediately (default value).
Supporting Types
CynosdbInstanceParamInstanceParamList, CynosdbInstanceParamInstanceParamListArgs
- Current
Value string - Current value of parameter.
- Param
Name string - Parameter Name.
- Current
Value string - Current value of parameter.
- Param
Name string - Parameter Name.
- current
Value String - Current value of parameter.
- param
Name String - Parameter Name.
- current
Value string - Current value of parameter.
- param
Name string - Parameter Name.
- current_
value str - Current value of parameter.
- param_
name str - Parameter Name.
- current
Value String - Current value of parameter.
- param
Name String - Parameter Name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.