1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. ConfigRemediation
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 create a Config remediation setting.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.ConfigRemediation("example", {
        ruleId: "cr-Gxt8pzxgCVZJ0C95H1HO",
        remediationType: "SCF",
        remediationTemplateId: "qcs::scf:ap-guangzhou:uin/100000005287:namespace/test/functions/my-remediation-func",
        invokeType: "MANUAL_EXECUTION",
        sourceType: "CUSTOM",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.ConfigRemediation("example",
        rule_id="cr-Gxt8pzxgCVZJ0C95H1HO",
        remediation_type="SCF",
        remediation_template_id="qcs::scf:ap-guangzhou:uin/100000005287:namespace/test/functions/my-remediation-func",
        invoke_type="MANUAL_EXECUTION",
        source_type="CUSTOM")
    
    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.NewConfigRemediation(ctx, "example", &tencentcloud.ConfigRemediationArgs{
    			RuleId:                pulumi.String("cr-Gxt8pzxgCVZJ0C95H1HO"),
    			RemediationType:       pulumi.String("SCF"),
    			RemediationTemplateId: pulumi.String("qcs::scf:ap-guangzhou:uin/100000005287:namespace/test/functions/my-remediation-func"),
    			InvokeType:            pulumi.String("MANUAL_EXECUTION"),
    			SourceType:            pulumi.String("CUSTOM"),
    		})
    		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.ConfigRemediation("example", new()
        {
            RuleId = "cr-Gxt8pzxgCVZJ0C95H1HO",
            RemediationType = "SCF",
            RemediationTemplateId = "qcs::scf:ap-guangzhou:uin/100000005287:namespace/test/functions/my-remediation-func",
            InvokeType = "MANUAL_EXECUTION",
            SourceType = "CUSTOM",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ConfigRemediation;
    import com.pulumi.tencentcloud.ConfigRemediationArgs;
    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 ConfigRemediation("example", ConfigRemediationArgs.builder()
                .ruleId("cr-Gxt8pzxgCVZJ0C95H1HO")
                .remediationType("SCF")
                .remediationTemplateId("qcs::scf:ap-guangzhou:uin/100000005287:namespace/test/functions/my-remediation-func")
                .invokeType("MANUAL_EXECUTION")
                .sourceType("CUSTOM")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:ConfigRemediation
        properties:
          ruleId: cr-Gxt8pzxgCVZJ0C95H1HO
          remediationType: SCF
          remediationTemplateId: qcs::scf:ap-guangzhou:uin/100000005287:namespace/test/functions/my-remediation-func
          invokeType: MANUAL_EXECUTION
          sourceType: CUSTOM
    
    Example coming soon!
    

    Create ConfigRemediation Resource

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

    Constructor syntax

    new ConfigRemediation(name: string, args: ConfigRemediationArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigRemediation(resource_name: str,
                          args: ConfigRemediationArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConfigRemediation(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          invoke_type: Optional[str] = None,
                          remediation_template_id: Optional[str] = None,
                          remediation_type: Optional[str] = None,
                          rule_id: Optional[str] = None,
                          config_remediation_id: Optional[str] = None,
                          source_type: Optional[str] = None)
    func NewConfigRemediation(ctx *Context, name string, args ConfigRemediationArgs, opts ...ResourceOption) (*ConfigRemediation, error)
    public ConfigRemediation(string name, ConfigRemediationArgs args, CustomResourceOptions? opts = null)
    public ConfigRemediation(String name, ConfigRemediationArgs args)
    public ConfigRemediation(String name, ConfigRemediationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ConfigRemediation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_configremediation" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ConfigRemediationArgs
    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 ConfigRemediationArgs
    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 ConfigRemediationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigRemediationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigRemediationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    InvokeType string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    RemediationTemplateId string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    RemediationType string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    RuleId string
    Config rule ID to bind the remediation setting to.
    ConfigRemediationId string
    ID of the resource.
    SourceType string
    Template source. Valid value: CUSTOM (custom template).
    InvokeType string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    RemediationTemplateId string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    RemediationType string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    RuleId string
    Config rule ID to bind the remediation setting to.
    ConfigRemediationId string
    ID of the resource.
    SourceType string
    Template source. Valid value: CUSTOM (custom template).
    invoke_type string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    remediation_template_id string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediation_type string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    rule_id string
    Config rule ID to bind the remediation setting to.
    config_remediation_id string
    ID of the resource.
    source_type string
    Template source. Valid value: CUSTOM (custom template).
    invokeType String
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    remediationTemplateId String
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediationType String
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    ruleId String
    Config rule ID to bind the remediation setting to.
    configRemediationId String
    ID of the resource.
    sourceType String
    Template source. Valid value: CUSTOM (custom template).
    invokeType string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    remediationTemplateId string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediationType string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    ruleId string
    Config rule ID to bind the remediation setting to.
    configRemediationId string
    ID of the resource.
    sourceType string
    Template source. Valid value: CUSTOM (custom template).
    invoke_type str
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    remediation_template_id str
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediation_type str
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    rule_id str
    Config rule ID to bind the remediation setting to.
    config_remediation_id str
    ID of the resource.
    source_type str
    Template source. Valid value: CUSTOM (custom template).
    invokeType String
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    remediationTemplateId String
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediationType String
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    ruleId String
    Config rule ID to bind the remediation setting to.
    configRemediationId String
    ID of the resource.
    sourceType String
    Template source. Valid value: CUSTOM (custom template).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConfigRemediation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerUin string
    Owner account UIN.
    RemediationId string
    Remediation setting ID.
    RemediationSourceType string
    Remediation source type returned from API.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerUin string
    Owner account UIN.
    RemediationId string
    Remediation setting ID.
    RemediationSourceType string
    Remediation source type returned from API.
    id string
    The provider-assigned unique ID for this managed resource.
    owner_uin string
    Owner account UIN.
    remediation_id string
    Remediation setting ID.
    remediation_source_type string
    Remediation source type returned from API.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerUin String
    Owner account UIN.
    remediationId String
    Remediation setting ID.
    remediationSourceType String
    Remediation source type returned from API.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerUin string
    Owner account UIN.
    remediationId string
    Remediation setting ID.
    remediationSourceType string
    Remediation source type returned from API.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_uin str
    Owner account UIN.
    remediation_id str
    Remediation setting ID.
    remediation_source_type str
    Remediation source type returned from API.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerUin String
    Owner account UIN.
    remediationId String
    Remediation setting ID.
    remediationSourceType String
    Remediation source type returned from API.

    Look up Existing ConfigRemediation Resource

    Get an existing ConfigRemediation 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?: ConfigRemediationState, opts?: CustomResourceOptions): ConfigRemediation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_remediation_id: Optional[str] = None,
            invoke_type: Optional[str] = None,
            owner_uin: Optional[str] = None,
            remediation_id: Optional[str] = None,
            remediation_source_type: Optional[str] = None,
            remediation_template_id: Optional[str] = None,
            remediation_type: Optional[str] = None,
            rule_id: Optional[str] = None,
            source_type: Optional[str] = None) -> ConfigRemediation
    func GetConfigRemediation(ctx *Context, name string, id IDInput, state *ConfigRemediationState, opts ...ResourceOption) (*ConfigRemediation, error)
    public static ConfigRemediation Get(string name, Input<string> id, ConfigRemediationState? state, CustomResourceOptions? opts = null)
    public static ConfigRemediation get(String name, Output<String> id, ConfigRemediationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ConfigRemediation    get:      id: ${id}
    import {
      to = tencentcloud_configremediation.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:
    ConfigRemediationId string
    ID of the resource.
    InvokeType string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    OwnerUin string
    Owner account UIN.
    RemediationId string
    Remediation setting ID.
    RemediationSourceType string
    Remediation source type returned from API.
    RemediationTemplateId string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    RemediationType string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    RuleId string
    Config rule ID to bind the remediation setting to.
    SourceType string
    Template source. Valid value: CUSTOM (custom template).
    ConfigRemediationId string
    ID of the resource.
    InvokeType string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    OwnerUin string
    Owner account UIN.
    RemediationId string
    Remediation setting ID.
    RemediationSourceType string
    Remediation source type returned from API.
    RemediationTemplateId string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    RemediationType string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    RuleId string
    Config rule ID to bind the remediation setting to.
    SourceType string
    Template source. Valid value: CUSTOM (custom template).
    config_remediation_id string
    ID of the resource.
    invoke_type string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    owner_uin string
    Owner account UIN.
    remediation_id string
    Remediation setting ID.
    remediation_source_type string
    Remediation source type returned from API.
    remediation_template_id string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediation_type string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    rule_id string
    Config rule ID to bind the remediation setting to.
    source_type string
    Template source. Valid value: CUSTOM (custom template).
    configRemediationId String
    ID of the resource.
    invokeType String
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    ownerUin String
    Owner account UIN.
    remediationId String
    Remediation setting ID.
    remediationSourceType String
    Remediation source type returned from API.
    remediationTemplateId String
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediationType String
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    ruleId String
    Config rule ID to bind the remediation setting to.
    sourceType String
    Template source. Valid value: CUSTOM (custom template).
    configRemediationId string
    ID of the resource.
    invokeType string
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    ownerUin string
    Owner account UIN.
    remediationId string
    Remediation setting ID.
    remediationSourceType string
    Remediation source type returned from API.
    remediationTemplateId string
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediationType string
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    ruleId string
    Config rule ID to bind the remediation setting to.
    sourceType string
    Template source. Valid value: CUSTOM (custom template).
    config_remediation_id str
    ID of the resource.
    invoke_type str
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    owner_uin str
    Owner account UIN.
    remediation_id str
    Remediation setting ID.
    remediation_source_type str
    Remediation source type returned from API.
    remediation_template_id str
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediation_type str
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    rule_id str
    Config rule ID to bind the remediation setting to.
    source_type str
    Template source. Valid value: CUSTOM (custom template).
    configRemediationId String
    ID of the resource.
    invokeType String
    Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
    ownerUin String
    Owner account UIN.
    remediationId String
    Remediation setting ID.
    remediationSourceType String
    Remediation source type returned from API.
    remediationTemplateId String
    Remediation template ID (e.g. SCF function resource path: qcs::scf:ap-guangzhou:uin/functions/xxx).
    remediationType String
    Remediation type. Valid value: SCF (cloud function, custom remediation).
    ruleId String
    Config rule ID to bind the remediation setting to.
    sourceType String
    Template source. Valid value: CUSTOM (custom template).

    Import

    Config remediation can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/configRemediation:ConfigRemediation example crr-lKj43O4nbSD78XYlvGS9
    

    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.