1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. ConfigRecorderConfig
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
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).
    ConfigRecorderConfigId string
    ID of the resource.
    ResourceTypes 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).
    ConfigRecorderConfigId string
    ID of the resource.
    ResourceTypes []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_config_id string
    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).
    configRecorderConfigId String
    ID of the resource.
    resourceTypes 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).
    configRecorderConfigId string
    ID of the resource.
    resourceTypes 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_config_id str
    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).
    configRecorderConfigId String
    ID of the resource.
    resourceTypes 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:

    CreateTime string
    Recorder creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    OpenCount double
    Number of times monitoring was opened today.
    TriggerCount double
    Number of snapshots taken today.
    UpdateCount double
    Number of monitoring range updates today.
    CreateTime string
    Recorder creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    OpenCount float64
    Number of times monitoring was opened today.
    TriggerCount float64
    Number of snapshots taken today.
    UpdateCount 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.
    createTime String
    Recorder creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    openCount Double
    Number of times monitoring was opened today.
    triggerCount Double
    Number of snapshots taken today.
    updateCount Double
    Number of monitoring range updates today.
    createTime string
    Recorder creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    openCount number
    Number of times monitoring was opened today.
    triggerCount number
    Number of snapshots taken today.
    updateCount 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.
    createTime String
    Recorder creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    openCount Number
    Number of times monitoring was opened today.
    triggerCount Number
    Number of snapshots taken today.
    updateCount 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) -> ConfigRecorderConfig
    func 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.
    The following state arguments are supported:
    ConfigRecorderConfigId string
    ID of the resource.
    CreateTime string
    Recorder creation time.
    OpenCount double
    Number of times monitoring was opened today.
    ResourceTypes 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).
    TriggerCount double
    Number of snapshots taken today.
    UpdateCount double
    Number of monitoring range updates today.
    ConfigRecorderConfigId string
    ID of the resource.
    CreateTime string
    Recorder creation time.
    OpenCount float64
    Number of times monitoring was opened today.
    ResourceTypes []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).
    TriggerCount float64
    Number of snapshots taken today.
    UpdateCount float64
    Number of monitoring range updates today.
    config_recorder_config_id string
    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.
    configRecorderConfigId String
    ID of the resource.
    createTime String
    Recorder creation time.
    openCount Double
    Number of times monitoring was opened today.
    resourceTypes 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).
    triggerCount Double
    Number of snapshots taken today.
    updateCount Double
    Number of monitoring range updates today.
    configRecorderConfigId string
    ID of the resource.
    createTime string
    Recorder creation time.
    openCount number
    Number of times monitoring was opened today.
    resourceTypes 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).
    triggerCount number
    Number of snapshots taken today.
    updateCount number
    Number of monitoring range updates today.
    config_recorder_config_id str
    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.
    configRecorderConfigId String
    ID of the resource.
    createTime String
    Recorder creation time.
    openCount Number
    Number of times monitoring was opened today.
    resourceTypes 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).
    triggerCount Number
    Number of snapshots taken today.
    updateCount 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 tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.