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:
- Aggregator
Id string - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- Config
Rule stringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- Invoke
Type string - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- Remediation
Origin stringParams - 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 stringId - The ID of the correction template.
- Remediation
Type string - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- Remediation
Source stringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- Aggregator
Id string - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- Config
Rule stringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- Invoke
Type string - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- Remediation
Origin stringParams - 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 stringId - The ID of the correction template.
- Remediation
Type string - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- Remediation
Source stringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- aggregator
Id String - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- config
Rule StringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- invoke
Type String - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- remediation
Origin StringParams - 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 StringId - The ID of the correction template.
- remediation
Type String - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- remediation
Source StringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- aggregator
Id string - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- config
Rule stringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- invoke
Type string - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- remediation
Origin stringParams - 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 stringId - The ID of the correction template.
- remediation
Type string - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- remediation
Source stringType - 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_ strid - 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_ strparams - 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_ strid - 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_ strtype - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- aggregator
Id String - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- config
Rule StringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- invoke
Type String - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- remediation
Origin StringParams - 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 StringId - The ID of the correction template.
- remediation
Type String - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- remediation
Source StringType - 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.
- Remediation
Id string - Multi-account remediation ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Remediation
Id string - Multi-account remediation ID
- id String
- The provider-assigned unique ID for this managed resource.
- remediation
Id String - Multi-account remediation ID
- id string
- The provider-assigned unique ID for this managed resource.
- remediation
Id 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.
- remediation
Id 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) -> AggregateRemediationfunc 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.
- Aggregator
Id string - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- Config
Rule stringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- Invoke
Type string - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- Remediation
Id string - Multi-account remediation ID
- Remediation
Origin stringParams - 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 stringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- Remediation
Template stringId - The ID of the correction template.
- Remediation
Type string - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- Aggregator
Id string - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- Config
Rule stringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- Invoke
Type string - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- Remediation
Id string - Multi-account remediation ID
- Remediation
Origin stringParams - 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 stringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- Remediation
Template stringId - The ID of the correction template.
- Remediation
Type string - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- aggregator
Id String - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- config
Rule StringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- invoke
Type String - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- remediation
Id String - Multi-account remediation ID
- remediation
Origin StringParams - 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 StringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- remediation
Template StringId - The ID of the correction template.
- remediation
Type String - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- aggregator
Id string - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- config
Rule stringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- invoke
Type string - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- remediation
Id string - Multi-account remediation ID
- remediation
Origin stringParams - 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 stringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- remediation
Template stringId - The ID of the correction template.
- remediation
Type 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_ strid - 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_ strparams - 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_ strtype - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- remediation_
template_ strid - The ID of the correction template.
- remediation_
type str - Remediation type. Value:
- OOS: Operation and maintenance orchestration (Template correction).
- FC: Function Compute (custom correction).
- aggregator
Id String - The account Group ID. For more information about how to obtain the account group ID, see ListAggregators.
- config
Rule StringId - The rule ID. For more information about how to obtain the rule ID, see [ListAggregateConfigRules].
- invoke
Type String - Correction of execution mode. Value:
- NON_EXECUTION: Not executed.
- AUTO_EXECUTION: Automatically executed.
- MANUAL_EXECUTION: Execute manually.
- NOT_CONFIG: Not set.
- remediation
Id String - Multi-account remediation ID
- remediation
Origin StringParams - 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 StringType - The source of the template to perform the correction. Value:
- ALIYUN (default): Official website template.
- CUSTOM: CUSTOM template.
- NONE: NONE.
- remediation
Template StringId - The ID of the correction template.
- remediation
Type 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
alicloudTerraform Provider.
