tencentcloud.ClickhouseKeyvalConfig
Explore with Pulumi AI
Provides a resource to create a clickhouse keyval_config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const keyvalConfig = new tencentcloud.ClickhouseKeyvalConfig("keyvalConfig", {
instanceId: "cdwch-datuhk3z",
items: {
confKey: "max_open_files",
confValue: "50000",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
keyval_config = tencentcloud.ClickhouseKeyvalConfig("keyvalConfig",
instance_id="cdwch-datuhk3z",
items={
"conf_key": "max_open_files",
"conf_value": "50000",
})
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.NewClickhouseKeyvalConfig(ctx, "keyvalConfig", &tencentcloud.ClickhouseKeyvalConfigArgs{
InstanceId: pulumi.String("cdwch-datuhk3z"),
Items: &tencentcloud.ClickhouseKeyvalConfigItemsArgs{
ConfKey: pulumi.String("max_open_files"),
ConfValue: pulumi.String("50000"),
},
})
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 keyvalConfig = new Tencentcloud.ClickhouseKeyvalConfig("keyvalConfig", new()
{
InstanceId = "cdwch-datuhk3z",
Items = new Tencentcloud.Inputs.ClickhouseKeyvalConfigItemsArgs
{
ConfKey = "max_open_files",
ConfValue = "50000",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClickhouseKeyvalConfig;
import com.pulumi.tencentcloud.ClickhouseKeyvalConfigArgs;
import com.pulumi.tencentcloud.inputs.ClickhouseKeyvalConfigItemsArgs;
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 keyvalConfig = new ClickhouseKeyvalConfig("keyvalConfig", ClickhouseKeyvalConfigArgs.builder()
.instanceId("cdwch-datuhk3z")
.items(ClickhouseKeyvalConfigItemsArgs.builder()
.confKey("max_open_files")
.confValue("50000")
.build())
.build());
}
}
resources:
keyvalConfig:
type: tencentcloud:ClickhouseKeyvalConfig
properties:
instanceId: cdwch-datuhk3z
items:
confKey: max_open_files
confValue: '50000'
Create ClickhouseKeyvalConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClickhouseKeyvalConfig(name: string, args: ClickhouseKeyvalConfigArgs, opts?: CustomResourceOptions);
@overload
def ClickhouseKeyvalConfig(resource_name: str,
args: ClickhouseKeyvalConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClickhouseKeyvalConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
items: Optional[ClickhouseKeyvalConfigItemsArgs] = None,
clickhouse_keyval_config_id: Optional[str] = None)
func NewClickhouseKeyvalConfig(ctx *Context, name string, args ClickhouseKeyvalConfigArgs, opts ...ResourceOption) (*ClickhouseKeyvalConfig, error)
public ClickhouseKeyvalConfig(string name, ClickhouseKeyvalConfigArgs args, CustomResourceOptions? opts = null)
public ClickhouseKeyvalConfig(String name, ClickhouseKeyvalConfigArgs args)
public ClickhouseKeyvalConfig(String name, ClickhouseKeyvalConfigArgs args, CustomResourceOptions options)
type: tencentcloud:ClickhouseKeyvalConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClickhouseKeyvalConfigArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ClickhouseKeyvalConfigArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClickhouseKeyvalConfigArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClickhouseKeyvalConfigArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ClickhouseKeyvalConfigArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClickhouseKeyvalConfig 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 ClickhouseKeyvalConfig resource accepts the following input properties:
- Instance
Id This property is required. string - Instance ID.
- Items
This property is required. ClickhouseKeyval Config Items - configuration list.
- Clickhouse
Keyval stringConfig Id - ID of the resource.
- Instance
Id This property is required. string - Instance ID.
- Items
This property is required. ClickhouseKeyval Config Items Args - configuration list.
- Clickhouse
Keyval stringConfig Id - ID of the resource.
- instance
Id This property is required. String - Instance ID.
- items
This property is required. ClickhouseKeyval Config Items - configuration list.
- clickhouse
Keyval StringConfig Id - ID of the resource.
- instance
Id This property is required. string - Instance ID.
- items
This property is required. ClickhouseKeyval Config Items - configuration list.
- clickhouse
Keyval stringConfig Id - ID of the resource.
- instance_
id This property is required. str - Instance ID.
- items
This property is required. ClickhouseKeyval Config Items Args - configuration list.
- clickhouse_
keyval_ strconfig_ id - ID of the resource.
- instance
Id This property is required. String - Instance ID.
- items
This property is required. Property Map - configuration list.
- clickhouse
Keyval StringConfig Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClickhouseKeyvalConfig 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 ClickhouseKeyvalConfig Resource
Get an existing ClickhouseKeyvalConfig 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?: ClickhouseKeyvalConfigState, opts?: CustomResourceOptions): ClickhouseKeyvalConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
clickhouse_keyval_config_id: Optional[str] = None,
instance_id: Optional[str] = None,
items: Optional[ClickhouseKeyvalConfigItemsArgs] = None) -> ClickhouseKeyvalConfig
func GetClickhouseKeyvalConfig(ctx *Context, name string, id IDInput, state *ClickhouseKeyvalConfigState, opts ...ResourceOption) (*ClickhouseKeyvalConfig, error)
public static ClickhouseKeyvalConfig Get(string name, Input<string> id, ClickhouseKeyvalConfigState? state, CustomResourceOptions? opts = null)
public static ClickhouseKeyvalConfig get(String name, Output<String> id, ClickhouseKeyvalConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ClickhouseKeyvalConfig get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Clickhouse
Keyval stringConfig Id - ID of the resource.
- Instance
Id string - Instance ID.
- Items
Clickhouse
Keyval Config Items - configuration list.
- Clickhouse
Keyval stringConfig Id - ID of the resource.
- Instance
Id string - Instance ID.
- Items
Clickhouse
Keyval Config Items Args - configuration list.
- clickhouse
Keyval StringConfig Id - ID of the resource.
- instance
Id String - Instance ID.
- items
Clickhouse
Keyval Config Items - configuration list.
- clickhouse
Keyval stringConfig Id - ID of the resource.
- instance
Id string - Instance ID.
- items
Clickhouse
Keyval Config Items - configuration list.
- clickhouse_
keyval_ strconfig_ id - ID of the resource.
- instance_
id str - Instance ID.
- items
Clickhouse
Keyval Config Items Args - configuration list.
- clickhouse
Keyval StringConfig Id - ID of the resource.
- instance
Id String - Instance ID.
- items Property Map
- configuration list.
Supporting Types
ClickhouseKeyvalConfigItems, ClickhouseKeyvalConfigItemsArgs
- conf_
key This property is required. str - Instance config key.
- conf_
value This property is required. str - Instance config value.
Import
clickhouse config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/clickhouseKeyvalConfig:ClickhouseKeyvalConfig config cdwch-datuhk3z#max_open_files#50000
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.