1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cfg
  5. AggregateRemediation
Alibaba Cloud v3.93.0 published on Tuesday, Jan 27, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.93.0 published on Tuesday, Jan 27, 2026 by Pulumi

    Provides a Cloud Config (Config) Aggregate Remediation resource.

    Rule remediation in multi-account scenarios.

    For information about Cloud Config (Config) Aggregate Remediation and how to use it, see What is Aggregate Remediation.

    NOTE: Available since v1.267.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const create_agg = new alicloud.cfg.Aggregator("create-agg", {
        aggregatorName: "rd",
        description: "rd",
        aggregatorType: "RD",
    });
    const create_rule = new alicloud.cfg.AggregateConfigRule("create-rule", {
        sourceOwner: "ALIYUN",
        sourceIdentifier: "required-tags",
        aggregateConfigRuleName: "agg-rule-name",
        configRuleTriggerTypes: "ConfigurationItemChangeNotification",
        riskLevel: 1,
        resourceTypesScopes: ["ACS::OSS::Bucket"],
        aggregatorId: create_agg.id,
        inputParameters: {
            tag1Key: "aaa",
            tag1Value: "bbb",
        },
    });
    const _default = new alicloud.cfg.AggregateRemediation("default", {
        configRuleId: create_rule.configRuleId,
        remediationTemplateId: "ACS-TAG-TagResources",
        remediationSourceType: "ALIYUN",
        invokeType: "MANUAL_EXECUTION",
        remediationType: "OOS",
        aggregatorId: create_agg.id,
        remediationOriginParams: JSON.stringify({
            properties: [
                {
                    name: "regionId",
                    type: "String",
                    value: "{regionId}",
                    allowedValues: [],
                    description: "region ID",
                },
                {
                    name: "tags",
                    type: "Json",
                    value: "{\"aaa\":\"bbb\"}",
                    allowedValues: [],
                    description: "resource tags (for example,{\"k1\":\"v1\",\"k2\":\"v2\"}).",
                },
                {
                    name: "resourceType",
                    type: "String",
                    value: "{resourceType}",
                    allowedValues: [],
                    description: "resource type",
                },
                {
                    name: "resourceIds",
                    type: "ARRAY",
                    value: "[{\"resources\":[]}]",
                    allowedValues: [],
                    description: "Resource ID List",
                },
            ],
        }),
    });
    
    import pulumi
    import json
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    create_agg = alicloud.cfg.Aggregator("create-agg",
        aggregator_name="rd",
        description="rd",
        aggregator_type="RD")
    create_rule = alicloud.cfg.AggregateConfigRule("create-rule",
        source_owner="ALIYUN",
        source_identifier="required-tags",
        aggregate_config_rule_name="agg-rule-name",
        config_rule_trigger_types="ConfigurationItemChangeNotification",
        risk_level=1,
        resource_types_scopes=["ACS::OSS::Bucket"],
        aggregator_id=create_agg.id,
        input_parameters={
            "tag1Key": "aaa",
            "tag1Value": "bbb",
        })
    default = alicloud.cfg.AggregateRemediation("default",
        config_rule_id=create_rule.config_rule_id,
        remediation_template_id="ACS-TAG-TagResources",
        remediation_source_type="ALIYUN",
        invoke_type="MANUAL_EXECUTION",
        remediation_type="OOS",
        aggregator_id=create_agg.id,
        remediation_origin_params=json.dumps({
            "properties": [
                {
                    "name": "regionId",
                    "type": "String",
                    "value": "{regionId}",
                    "allowedValues": [],
                    "description": "region ID",
                },
                {
                    "name": "tags",
                    "type": "Json",
                    "value": "{\"aaa\":\"bbb\"}",
                    "allowedValues": [],
                    "description": "resource tags (for example,{\"k1\":\"v1\",\"k2\":\"v2\"}).",
                },
                {
                    "name": "resourceType",
                    "type": "String",
                    "value": "{resourceType}",
                    "allowedValues": [],
                    "description": "resource type",
                },
                {
                    "name": "resourceIds",
                    "type": "ARRAY",
                    "value": "[{\"resources\":[]}]",
                    "allowedValues": [],
                    "description": "Resource ID List",
                },
            ],
        }))
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		create_agg, err := cfg.NewAggregator(ctx, "create-agg", &cfg.AggregatorArgs{
    			AggregatorName: pulumi.String("rd"),
    			Description:    pulumi.String("rd"),
    			AggregatorType: pulumi.String("RD"),
    		})
    		if err != nil {
    			return err
    		}
    		create_rule, err := cfg.NewAggregateConfigRule(ctx, "create-rule", &cfg.AggregateConfigRuleArgs{
    			SourceOwner:             pulumi.String("ALIYUN"),
    			SourceIdentifier:        pulumi.String("required-tags"),
    			AggregateConfigRuleName: pulumi.String("agg-rule-name"),
    			ConfigRuleTriggerTypes:  pulumi.String("ConfigurationItemChangeNotification"),
    			RiskLevel:               pulumi.Int(1),
    			ResourceTypesScopes: pulumi.StringArray{
    				pulumi.String("ACS::OSS::Bucket"),
    			},
    			AggregatorId: create_agg.ID(),
    			InputParameters: pulumi.StringMap{
    				"tag1Key":   pulumi.String("aaa"),
    				"tag1Value": pulumi.String("bbb"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"properties": []map[string]interface{}{
    				map[string]interface{}{
    					"name":          "regionId",
    					"type":          "String",
    					"value":         "{regionId}",
    					"allowedValues": []interface{}{},
    					"description":   "region ID",
    				},
    				map[string]interface{}{
    					"name":          "tags",
    					"type":          "Json",
    					"value":         "{\"aaa\":\"bbb\"}",
    					"allowedValues": []interface{}{},
    					"description":   "resource tags (for example,{\"k1\":\"v1\",\"k2\":\"v2\"}).",
    				},
    				map[string]interface{}{
    					"name":          "resourceType",
    					"type":          "String",
    					"value":         "{resourceType}",
    					"allowedValues": []interface{}{},
    					"description":   "resource type",
    				},
    				map[string]interface{}{
    					"name":          "resourceIds",
    					"type":          "ARRAY",
    					"value":         "[{\"resources\":[]}]",
    					"allowedValues": []interface{}{},
    					"description":   "Resource ID List",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = cfg.NewAggregateRemediation(ctx, "default", &cfg.AggregateRemediationArgs{
    			ConfigRuleId:            create_rule.ConfigRuleId,
    			RemediationTemplateId:   pulumi.String("ACS-TAG-TagResources"),
    			RemediationSourceType:   pulumi.String("ALIYUN"),
    			InvokeType:              pulumi.String("MANUAL_EXECUTION"),
    			RemediationType:         pulumi.String("OOS"),
    			AggregatorId:            create_agg.ID(),
    			RemediationOriginParams: pulumi.String(json0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var create_agg = new AliCloud.Cfg.Aggregator("create-agg", new()
        {
            AggregatorName = "rd",
            Description = "rd",
            AggregatorType = "RD",
        });
    
        var create_rule = new AliCloud.Cfg.AggregateConfigRule("create-rule", new()
        {
            SourceOwner = "ALIYUN",
            SourceIdentifier = "required-tags",
            AggregateConfigRuleName = "agg-rule-name",
            ConfigRuleTriggerTypes = "ConfigurationItemChangeNotification",
            RiskLevel = 1,
            ResourceTypesScopes = new[]
            {
                "ACS::OSS::Bucket",
            },
            AggregatorId = create_agg.Id,
            InputParameters = 
            {
                { "tag1Key", "aaa" },
                { "tag1Value", "bbb" },
            },
        });
    
        var @default = new AliCloud.Cfg.AggregateRemediation("default", new()
        {
            ConfigRuleId = create_rule.ConfigRuleId,
            RemediationTemplateId = "ACS-TAG-TagResources",
            RemediationSourceType = "ALIYUN",
            InvokeType = "MANUAL_EXECUTION",
            RemediationType = "OOS",
            AggregatorId = create_agg.Id,
            RemediationOriginParams = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["properties"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["name"] = "regionId",
                        ["type"] = "String",
                        ["value"] = "{regionId}",
                        ["allowedValues"] = new[]
                        {
                        },
                        ["description"] = "region ID",
                    },
                    new Dictionary<string, object?>
                    {
                        ["name"] = "tags",
                        ["type"] = "Json",
                        ["value"] = "{\"aaa\":\"bbb\"}",
                        ["allowedValues"] = new[]
                        {
                        },
                        ["description"] = "resource tags (for example,{\"k1\":\"v1\",\"k2\":\"v2\"}).",
                    },
                    new Dictionary<string, object?>
                    {
                        ["name"] = "resourceType",
                        ["type"] = "String",
                        ["value"] = "{resourceType}",
                        ["allowedValues"] = new[]
                        {
                        },
                        ["description"] = "resource type",
                    },
                    new Dictionary<string, object?>
                    {
                        ["name"] = "resourceIds",
                        ["type"] = "ARRAY",
                        ["value"] = "[{\"resources\":[]}]",
                        ["allowedValues"] = new[]
                        {
                        },
                        ["description"] = "Resource ID List",
                    },
                },
            }),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cfg.Aggregator;
    import com.pulumi.alicloud.cfg.AggregatorArgs;
    import com.pulumi.alicloud.cfg.AggregateConfigRule;
    import com.pulumi.alicloud.cfg.AggregateConfigRuleArgs;
    import com.pulumi.alicloud.cfg.AggregateRemediation;
    import com.pulumi.alicloud.cfg.AggregateRemediationArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var create_agg = new Aggregator("create-agg", AggregatorArgs.builder()
                .aggregatorName("rd")
                .description("rd")
                .aggregatorType("RD")
                .build());
    
            var create_rule = new AggregateConfigRule("create-rule", AggregateConfigRuleArgs.builder()
                .sourceOwner("ALIYUN")
                .sourceIdentifier("required-tags")
                .aggregateConfigRuleName("agg-rule-name")
                .configRuleTriggerTypes("ConfigurationItemChangeNotification")
                .riskLevel(1)
                .resourceTypesScopes("ACS::OSS::Bucket")
                .aggregatorId(create_agg.id())
                .inputParameters(Map.ofEntries(
                    Map.entry("tag1Key", "aaa"),
                    Map.entry("tag1Value", "bbb")
                ))
                .build());
    
            var default_ = new AggregateRemediation("default", AggregateRemediationArgs.builder()
                .configRuleId(create_rule.configRuleId())
                .remediationTemplateId("ACS-TAG-TagResources")
                .remediationSourceType("ALIYUN")
                .invokeType("MANUAL_EXECUTION")
                .remediationType("OOS")
                .aggregatorId(create_agg.id())
                .remediationOriginParams(serializeJson(
                    jsonObject(
                        jsonProperty("properties", jsonArray(
                            jsonObject(
                                jsonProperty("name", "regionId"),
                                jsonProperty("type", "String"),
                                jsonProperty("value", "{regionId}"),
                                jsonProperty("allowedValues", jsonArray(
                                )),
                                jsonProperty("description", "region ID")
                            ), 
                            jsonObject(
                                jsonProperty("name", "tags"),
                                jsonProperty("type", "Json"),
                                jsonProperty("value", "{\"aaa\":\"bbb\"}"),
                                jsonProperty("allowedValues", jsonArray(
                                )),
                                jsonProperty("description", "resource tags (for example,{\"k1\":\"v1\",\"k2\":\"v2\"}).")
                            ), 
                            jsonObject(
                                jsonProperty("name", "resourceType"),
                                jsonProperty("type", "String"),
                                jsonProperty("value", "{resourceType}"),
                                jsonProperty("allowedValues", jsonArray(
                                )),
                                jsonProperty("description", "resource type")
                            ), 
                            jsonObject(
                                jsonProperty("name", "resourceIds"),
                                jsonProperty("type", "ARRAY"),
                                jsonProperty("value", "[{\"resources\":[]}]"),
                                jsonProperty("allowedValues", jsonArray(
                                )),
                                jsonProperty("description", "Resource ID List")
                            )
                        ))
                    )))
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      create-agg:
        type: alicloud:cfg:Aggregator
        properties:
          aggregatorName: rd
          description: rd
          aggregatorType: RD
      create-rule:
        type: alicloud:cfg:AggregateConfigRule
        properties:
          sourceOwner: ALIYUN
          sourceIdentifier: required-tags
          aggregateConfigRuleName: agg-rule-name
          configRuleTriggerTypes: ConfigurationItemChangeNotification
          riskLevel: '1'
          resourceTypesScopes:
            - ACS::OSS::Bucket
          aggregatorId: ${["create-agg"].id}
          inputParameters:
            tag1Key: aaa
            tag1Value: bbb
      default:
        type: alicloud:cfg:AggregateRemediation
        properties:
          configRuleId: ${["create-rule"].configRuleId}
          remediationTemplateId: ACS-TAG-TagResources
          remediationSourceType: ALIYUN
          invokeType: MANUAL_EXECUTION
          remediationType: OOS
          aggregatorId: ${["create-agg"].id}
          remediationOriginParams:
            fn::toJSON:
              properties:
                - name: regionId
                  type: String
                  value: '{regionId}'
                  allowedValues: []
                  description: region ID
                - name: tags
                  type: Json
                  value: '{"aaa":"bbb"}'
                  allowedValues: []
                  description: resource tags (for example,{"k1":"v1","k2":"v2"}).
                - name: resourceType
                  type: String
                  value: '{resourceType}'
                  allowedValues: []
                  description: resource type
                - name: resourceIds
                  type: ARRAY
                  value: '[{"resources":[]}]'
                  allowedValues: []
                  description: Resource ID List
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create AggregateRemediation Resource

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

    Constructor syntax

    new AggregateRemediation(name: string, args: AggregateRemediationArgs, opts?: CustomResourceOptions);
    @overload
    def AggregateRemediation(resource_name: str,
                             args: AggregateRemediationArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def AggregateRemediation(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             aggregator_id: Optional[str] = None,
                             config_rule_id: Optional[str] = None,
                             invoke_type: Optional[str] = None,
                             remediation_origin_params: Optional[str] = None,
                             remediation_template_id: Optional[str] = None,
                             remediation_type: Optional[str] = None,
                             remediation_source_type: Optional[str] = None)
    func NewAggregateRemediation(ctx *Context, name string, args AggregateRemediationArgs, opts ...ResourceOption) (*AggregateRemediation, error)
    public AggregateRemediation(string name, AggregateRemediationArgs args, CustomResourceOptions? opts = null)
    public AggregateRemediation(String name, AggregateRemediationArgs args)
    public AggregateRemediation(String name, AggregateRemediationArgs args, CustomResourceOptions options)
    
    type: alicloud:cfg:AggregateRemediation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var aggregateRemediationResource = new AliCloud.Cfg.AggregateRemediation("aggregateRemediationResource", new()
    {
        AggregatorId = "string",
        ConfigRuleId = "string",
        InvokeType = "string",
        RemediationOriginParams = "string",
        RemediationTemplateId = "string",
        RemediationType = "string",
        RemediationSourceType = "string",
    });
    
    example, err := cfg.NewAggregateRemediation(ctx, "aggregateRemediationResource", &cfg.AggregateRemediationArgs{
    	AggregatorId:            pulumi.String("string"),
    	ConfigRuleId:            pulumi.String("string"),
    	InvokeType:              pulumi.String("string"),
    	RemediationOriginParams: pulumi.String("string"),
    	RemediationTemplateId:   pulumi.String("string"),
    	RemediationType:         pulumi.String("string"),
    	RemediationSourceType:   pulumi.String("string"),
    })
    
    var aggregateRemediationResource = new AggregateRemediation("aggregateRemediationResource", AggregateRemediationArgs.builder()
        .aggregatorId("string")
        .configRuleId("string")
        .invokeType("string")
        .remediationOriginParams("string")
        .remediationTemplateId("string")
        .remediationType("string")
        .remediationSourceType("string")
        .build());
    
    aggregate_remediation_resource = alicloud.cfg.AggregateRemediation("aggregateRemediationResource",
        aggregator_id="string",
        config_rule_id="string",
        invoke_type="string",
        remediation_origin_params="string",
        remediation_template_id="string",
        remediation_type="string",
        remediation_source_type="string")
    
    const aggregateRemediationResource = new alicloud.cfg.AggregateRemediation("aggregateRemediationResource", {
        aggregatorId: "string",
        configRuleId: "string",
        invokeType: "string",
        remediationOriginParams: "string",
        remediationTemplateId: "string",
        remediationType: "string",
        remediationSourceType: "string",
    });
    
    type: alicloud:cfg:AggregateRemediation
    properties:
        aggregatorId: string
        configRuleId: string
        invokeType: string
        remediationOriginParams: string
        remediationSourceType: string
        remediationTemplateId: string
        remediationType: string
    

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

    AggregatorId string
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    ConfigRuleId string
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    InvokeType string
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    RemediationOriginParams string
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    RemediationTemplateId string
    The ID of the correction template.
    RemediationType string
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    RemediationSourceType string
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    AggregatorId string
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    ConfigRuleId string
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    InvokeType string
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    RemediationOriginParams string
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    RemediationTemplateId string
    The ID of the correction template.
    RemediationType string
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    RemediationSourceType string
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    aggregatorId String
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    configRuleId String
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invokeType String
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediationOriginParams String
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediationTemplateId String
    The ID of the correction template.
    remediationType String
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    remediationSourceType String
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    aggregatorId string
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    configRuleId string
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invokeType string
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediationOriginParams string
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediationTemplateId string
    The ID of the correction template.
    remediationType string
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    remediationSourceType string
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    aggregator_id str
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    config_rule_id str
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invoke_type str
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediation_origin_params str
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediation_template_id str
    The ID of the correction template.
    remediation_type str
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    remediation_source_type str
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    aggregatorId String
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    configRuleId String
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invokeType String
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediationOriginParams String
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediationTemplateId String
    The ID of the correction template.
    remediationType String
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    remediationSourceType String
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RemediationId string
    Multi-account remediation ID
    Id string
    The provider-assigned unique ID for this managed resource.
    RemediationId string
    Multi-account remediation ID
    id String
    The provider-assigned unique ID for this managed resource.
    remediationId String
    Multi-account remediation ID
    id string
    The provider-assigned unique ID for this managed resource.
    remediationId string
    Multi-account remediation ID
    id str
    The provider-assigned unique ID for this managed resource.
    remediation_id str
    Multi-account remediation ID
    id String
    The provider-assigned unique ID for this managed resource.
    remediationId String
    Multi-account remediation ID

    Look up Existing AggregateRemediation Resource

    Get an existing AggregateRemediation 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?: AggregateRemediationState, opts?: CustomResourceOptions): AggregateRemediation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aggregator_id: Optional[str] = None,
            config_rule_id: Optional[str] = None,
            invoke_type: Optional[str] = None,
            remediation_id: Optional[str] = None,
            remediation_origin_params: Optional[str] = None,
            remediation_source_type: Optional[str] = None,
            remediation_template_id: Optional[str] = None,
            remediation_type: Optional[str] = None) -> AggregateRemediation
    func GetAggregateRemediation(ctx *Context, name string, id IDInput, state *AggregateRemediationState, opts ...ResourceOption) (*AggregateRemediation, error)
    public static AggregateRemediation Get(string name, Input<string> id, AggregateRemediationState? state, CustomResourceOptions? opts = null)
    public static AggregateRemediation get(String name, Output<String> id, AggregateRemediationState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cfg:AggregateRemediation    get:      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:
    AggregatorId string
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    ConfigRuleId string
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    InvokeType string
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    RemediationId string
    Multi-account remediation ID
    RemediationOriginParams string
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    RemediationSourceType string
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    RemediationTemplateId string
    The ID of the correction template.
    RemediationType string
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    AggregatorId string
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    ConfigRuleId string
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    InvokeType string
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    RemediationId string
    Multi-account remediation ID
    RemediationOriginParams string
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    RemediationSourceType string
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    RemediationTemplateId string
    The ID of the correction template.
    RemediationType string
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    aggregatorId String
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    configRuleId String
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invokeType String
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediationId String
    Multi-account remediation ID
    remediationOriginParams String
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediationSourceType String
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    remediationTemplateId String
    The ID of the correction template.
    remediationType String
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    aggregatorId string
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    configRuleId string
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invokeType string
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediationId string
    Multi-account remediation ID
    remediationOriginParams string
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediationSourceType string
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    remediationTemplateId string
    The ID of the correction template.
    remediationType string
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    aggregator_id str
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    config_rule_id str
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invoke_type str
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediation_id str
    Multi-account remediation ID
    remediation_origin_params str
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediation_source_type str
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    remediation_template_id str
    The ID of the correction template.
    remediation_type str
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).
    aggregatorId String
    The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
    configRuleId String
    The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
    invokeType String
    Correction of execution mode. Value:

    • NON_EXECUTION: Not executed.
    • AUTO_EXECUTION: Automatically executed.
    • MANUAL_EXECUTION: Execute manually.
    • NOT_CONFIG: Not set.
    remediationId String
    Multi-account remediation ID
    remediationOriginParams String
    Correct the parameters of the settings. For more information about how to obtain the parameters of remediation settings, see the parameter 'Template definition' in ListRemediationTemplates '.
    remediationSourceType String
    The source of the template to perform the correction. Value:

    • ALIYUN (default): Official website template.
    • CUSTOM: CUSTOM template.
    • NONE: NONE.
    remediationTemplateId String
    The ID of the correction template.
    remediationType String
    Remediation type. Value:

    • OOS: Operation and maintenance orchestration (Template correction).
    • FC: Function Compute (custom correction).

    Import

    Cloud Config (Config) Aggregate Remediation can be imported using the id, e.g.

    $ pulumi import alicloud:cfg/aggregateRemediation:AggregateRemediation example <aggregator_id>:<remediation_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.93.0 published on Tuesday, Jan 27, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate