published on Monday, May 11, 2026 by tencentcloudstack
published on Monday, May 11, 2026 by tencentcloudstack
Provides a resource to manage Config recorder configuration (global singleton).
Example Usage
Enable monitoring and specify resource types
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ConfigRecorderConfig("example", {
status: true,
resourceTypes: [
"QCS::CAM::Group",
"QCS::CAM::Role",
"QCS::CAM::Policy",
"QCS::CAM::User",
"QCS::CVM::Instance",
"QCS::COS::Bucket",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ConfigRecorderConfig("example",
status=True,
resource_types=[
"QCS::CAM::Group",
"QCS::CAM::Role",
"QCS::CAM::Policy",
"QCS::CAM::User",
"QCS::CVM::Instance",
"QCS::COS::Bucket",
])
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.NewConfigRecorderConfig(ctx, "example", &tencentcloud.ConfigRecorderConfigArgs{
Status: pulumi.Bool(true),
ResourceTypes: pulumi.StringArray{
pulumi.String("QCS::CAM::Group"),
pulumi.String("QCS::CAM::Role"),
pulumi.String("QCS::CAM::Policy"),
pulumi.String("QCS::CAM::User"),
pulumi.String("QCS::CVM::Instance"),
pulumi.String("QCS::COS::Bucket"),
},
})
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.ConfigRecorderConfig("example", new()
{
Status = true,
ResourceTypes = new[]
{
"QCS::CAM::Group",
"QCS::CAM::Role",
"QCS::CAM::Policy",
"QCS::CAM::User",
"QCS::CVM::Instance",
"QCS::COS::Bucket",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ConfigRecorderConfig;
import com.pulumi.tencentcloud.ConfigRecorderConfigArgs;
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 ConfigRecorderConfig("example", ConfigRecorderConfigArgs.builder()
.status(true)
.resourceTypes(
"QCS::CAM::Group",
"QCS::CAM::Role",
"QCS::CAM::Policy",
"QCS::CAM::User",
"QCS::CVM::Instance",
"QCS::COS::Bucket")
.build());
}
}
resources:
example:
type: tencentcloud:ConfigRecorderConfig
properties:
status: true
resourceTypes:
- QCS::CAM::Group
- QCS::CAM::Role
- QCS::CAM::Policy
- QCS::CAM::User
- QCS::CVM::Instance
- QCS::COS::Bucket
Example coming soon!
Disable monitoring
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ConfigRecorderConfig("example", {status: false});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ConfigRecorderConfig("example", status=False)
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.NewConfigRecorderConfig(ctx, "example", &tencentcloud.ConfigRecorderConfigArgs{
Status: pulumi.Bool(false),
})
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.ConfigRecorderConfig("example", new()
{
Status = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ConfigRecorderConfig;
import com.pulumi.tencentcloud.ConfigRecorderConfigArgs;
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 ConfigRecorderConfig("example", ConfigRecorderConfigArgs.builder()
.status(false)
.build());
}
}
resources:
example:
type: tencentcloud:ConfigRecorderConfig
properties:
status: false
Example coming soon!
Create ConfigRecorderConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigRecorderConfig(name: string, args: ConfigRecorderConfigArgs, opts?: CustomResourceOptions);@overload
def ConfigRecorderConfig(resource_name: str,
args: ConfigRecorderConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConfigRecorderConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
status: Optional[bool] = None,
config_recorder_config_id: Optional[str] = None,
resource_types: Optional[Sequence[str]] = None)func NewConfigRecorderConfig(ctx *Context, name string, args ConfigRecorderConfigArgs, opts ...ResourceOption) (*ConfigRecorderConfig, error)public ConfigRecorderConfig(string name, ConfigRecorderConfigArgs args, CustomResourceOptions? opts = null)
public ConfigRecorderConfig(String name, ConfigRecorderConfigArgs args)
public ConfigRecorderConfig(String name, ConfigRecorderConfigArgs args, CustomResourceOptions options)
type: tencentcloud:ConfigRecorderConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_configrecorderconfig" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ConfigRecorderConfigArgs
- 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 ConfigRecorderConfigArgs
- 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 ConfigRecorderConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigRecorderConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigRecorderConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ConfigRecorderConfig 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 ConfigRecorderConfig resource accepts the following input properties:
- Status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- Config
Recorder stringConfig Id - ID of the resource.
- Resource
Types List<string> - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- Status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- Config
Recorder stringConfig Id - ID of the resource.
- Resource
Types []string - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- config_
recorder_ stringconfig_ id - ID of the resource.
- resource_
types list(string) - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status Boolean
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- config
Recorder StringConfig Id - ID of the resource.
- resource
Types List<String> - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status boolean
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- config
Recorder stringConfig Id - ID of the resource.
- resource
Types string[] - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- config_
recorder_ strconfig_ id - ID of the resource.
- resource_
types Sequence[str] - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status Boolean
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- config
Recorder StringConfig Id - ID of the resource.
- resource
Types List<String> - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigRecorderConfig resource produces the following output properties:
- Create
Time string - Recorder creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Open
Count double - Number of times monitoring was opened today.
- Trigger
Count double - Number of snapshots taken today.
- Update
Count double - Number of monitoring range updates today.
- Create
Time string - Recorder creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Open
Count float64 - Number of times monitoring was opened today.
- Trigger
Count float64 - Number of snapshots taken today.
- Update
Count float64 - Number of monitoring range updates today.
- create_
time string - Recorder creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- open_
count number - Number of times monitoring was opened today.
- trigger_
count number - Number of snapshots taken today.
- update_
count number - Number of monitoring range updates today.
- create
Time String - Recorder creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- open
Count Double - Number of times monitoring was opened today.
- trigger
Count Double - Number of snapshots taken today.
- update
Count Double - Number of monitoring range updates today.
- create
Time string - Recorder creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- open
Count number - Number of times monitoring was opened today.
- trigger
Count number - Number of snapshots taken today.
- update
Count number - Number of monitoring range updates today.
- create_
time str - Recorder creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- open_
count float - Number of times monitoring was opened today.
- trigger_
count float - Number of snapshots taken today.
- update_
count float - Number of monitoring range updates today.
- create
Time String - Recorder creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- open
Count Number - Number of times monitoring was opened today.
- trigger
Count Number - Number of snapshots taken today.
- update
Count Number - Number of monitoring range updates today.
Look up Existing ConfigRecorderConfig Resource
Get an existing ConfigRecorderConfig 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?: ConfigRecorderConfigState, opts?: CustomResourceOptions): ConfigRecorderConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config_recorder_config_id: Optional[str] = None,
create_time: Optional[str] = None,
open_count: Optional[float] = None,
resource_types: Optional[Sequence[str]] = None,
status: Optional[bool] = None,
trigger_count: Optional[float] = None,
update_count: Optional[float] = None) -> ConfigRecorderConfigfunc GetConfigRecorderConfig(ctx *Context, name string, id IDInput, state *ConfigRecorderConfigState, opts ...ResourceOption) (*ConfigRecorderConfig, error)public static ConfigRecorderConfig Get(string name, Input<string> id, ConfigRecorderConfigState? state, CustomResourceOptions? opts = null)public static ConfigRecorderConfig get(String name, Output<String> id, ConfigRecorderConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:ConfigRecorderConfig get: id: ${id}import {
to = tencentcloud_configrecorderconfig.example
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.
- Config
Recorder stringConfig Id - ID of the resource.
- Create
Time string - Recorder creation time.
- Open
Count double - Number of times monitoring was opened today.
- Resource
Types List<string> - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- Status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- Trigger
Count double - Number of snapshots taken today.
- Update
Count double - Number of monitoring range updates today.
- Config
Recorder stringConfig Id - ID of the resource.
- Create
Time string - Recorder creation time.
- Open
Count float64 - Number of times monitoring was opened today.
- Resource
Types []string - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- Status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- Trigger
Count float64 - Number of snapshots taken today.
- Update
Count float64 - Number of monitoring range updates today.
- config_
recorder_ stringconfig_ id - ID of the resource.
- create_
time string - Recorder creation time.
- open_
count number - Number of times monitoring was opened today.
- resource_
types list(string) - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- trigger_
count number - Number of snapshots taken today.
- update_
count number - Number of monitoring range updates today.
- config
Recorder StringConfig Id - ID of the resource.
- create
Time String - Recorder creation time.
- open
Count Double - Number of times monitoring was opened today.
- resource
Types List<String> - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status Boolean
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- trigger
Count Double - Number of snapshots taken today.
- update
Count Double - Number of monitoring range updates today.
- config
Recorder stringConfig Id - ID of the resource.
- create
Time string - Recorder creation time.
- open
Count number - Number of times monitoring was opened today.
- resource
Types string[] - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status boolean
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- trigger
Count number - Number of snapshots taken today.
- update
Count number - Number of monitoring range updates today.
- config_
recorder_ strconfig_ id - ID of the resource.
- create_
time str - Recorder creation time.
- open_
count float - Number of times monitoring was opened today.
- resource_
types Sequence[str] - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status bool
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- trigger_
count float - Number of snapshots taken today.
- update_
count float - Number of monitoring range updates today.
- config
Recorder StringConfig Id - ID of the resource.
- create
Time String - Recorder creation time.
- open
Count Number - Number of times monitoring was opened today.
- resource
Types List<String> - Resource type list to monitor (e.g. QCS::CAM::Group, QCS::CVM::Instance).
- status Boolean
- Whether to enable resource monitoring. true: enable (OpenConfigRecorder), false: disable (CloseConfigRecorder).
- trigger
Count Number - Number of snapshots taken today.
- update
Count Number - Number of monitoring range updates today.
Import
Config recorder config can be imported using its token ID, e.g.
$ pulumi import tencentcloud:index/configRecorderConfig:ConfigRecorderConfig example <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
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
