published on Monday, May 11, 2026 by tencentcloudstack
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:
- Invoke
Type string - Remediation execution mode. Valid values: MANUAL_EXECUTION (manual), AUTO_EXECUTION (automatic), NON_EXECUTION (disabled), NOT_CONFIG (not configured).
- Remediation
Template stringId - 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 stringId - ID of the resource.
- Source
Type 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 stringId - 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 stringId - ID of the resource.
- Source
Type 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_ stringid - 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_ stringid - ID of the resource.
- source_
type 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 StringId - 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 StringId - ID of the resource.
- source
Type 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 stringId - 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 stringId - ID of the resource.
- source
Type 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_ strid - 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_ strid - ID of the resource.
- source_
type str - 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 StringId - 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 StringId - ID of the resource.
- source
Type 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.
- Owner
Uin string - Owner account UIN.
- Remediation
Id string - Remediation setting ID.
- Remediation
Source stringType - 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 stringType - 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_ stringtype - 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 StringType - 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 stringType - 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_ strtype - 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 StringType - 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) -> ConfigRemediationfunc 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.
- Config
Remediation stringId - 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 stringType - Remediation source type returned from API.
- Remediation
Template stringId - 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).
- Config
Remediation stringId - 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 stringType - Remediation source type returned from API.
- Remediation
Template stringId - 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).
- config_
remediation_ stringid - 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_ stringtype - Remediation source type returned from API.
- remediation_
template_ stringid - 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).
- config
Remediation StringId - 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 StringType - Remediation source type returned from API.
- remediation
Template StringId - 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).
- config
Remediation stringId - 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 stringType - Remediation source type returned from API.
- remediation
Template stringId - 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).
- config_
remediation_ strid - 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_ strtype - Remediation source type returned from API.
- remediation_
template_ strid - 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).
- config
Remediation StringId - 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 StringType - Remediation source type returned from API.
- remediation
Template StringId - 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).
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
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
