AggregateConfigRule

Provides a Cloud Config Aggregate Config Rule resource.

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

NOTE: Available in v1.124.0+.

Example Usage

Basic Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleAggregator = new AliCloud.Cfg.Aggregator("exampleAggregator", new AliCloud.Cfg.AggregatorArgs
        {
            AggregatorAccounts = 
            {
                new AliCloud.Cfg.Inputs.AggregatorAggregatorAccountArgs
                {
                    AccountId = "140278452670****",
                    AccountName = "test-2",
                    AccountType = "ResourceDirectory",
                },
            },
            AggregatorName = "tf-testaccaggregator",
            Description = "tf-testaccaggregator",
        });
        var exampleAggregateConfigRule = new AliCloud.Cfg.AggregateConfigRule("exampleAggregateConfigRule", new AliCloud.Cfg.AggregateConfigRuleArgs
        {
            AggregateConfigRuleName = "tf-testaccconfig1234",
            AggregatorId = exampleAggregator.Id,
            ConfigRuleTriggerTypes = "ConfigurationItemChangeNotification",
            SourceOwner = "ALIYUN",
            SourceIdentifier = "ecs-cpu-min-count-limit",
            RiskLevel = 1,
            ResourceTypesScopes = 
            {
                "ACS::ECS::Instance",
            },
            InputParameters = 
            {
                { "cpuCount", "4" },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleAggregator, err := cfg.NewAggregator(ctx, "exampleAggregator", &cfg.AggregatorArgs{
			AggregatorAccounts: cfg.AggregatorAggregatorAccountArray{
				&cfg.AggregatorAggregatorAccountArgs{
					AccountId:   pulumi.String("140278452670****"),
					AccountName: pulumi.String("test-2"),
					AccountType: pulumi.String("ResourceDirectory"),
				},
			},
			AggregatorName: pulumi.String("tf-testaccaggregator"),
			Description:    pulumi.String("tf-testaccaggregator"),
		})
		if err != nil {
			return err
		}
		_, err = cfg.NewAggregateConfigRule(ctx, "exampleAggregateConfigRule", &cfg.AggregateConfigRuleArgs{
			AggregateConfigRuleName: pulumi.String("tf-testaccconfig1234"),
			AggregatorId:            exampleAggregator.ID(),
			ConfigRuleTriggerTypes:  pulumi.String("ConfigurationItemChangeNotification"),
			SourceOwner:             pulumi.String("ALIYUN"),
			SourceIdentifier:        pulumi.String("ecs-cpu-min-count-limit"),
			RiskLevel:               pulumi.Int(1),
			ResourceTypesScopes: pulumi.StringArray{
				pulumi.String("ACS::ECS::Instance"),
			},
			InputParameters: pulumi.AnyMap{
				"cpuCount": pulumi.Any("4"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.inputs.AggregatorAggregatorAccountArgs;
import com.pulumi.alicloud.cfg.AggregateConfigRule;
import com.pulumi.alicloud.cfg.AggregateConfigRuleArgs;
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 exampleAggregator = new Aggregator("exampleAggregator", AggregatorArgs.builder()        
            .aggregatorAccounts(AggregatorAggregatorAccountArgs.builder()
                .accountId("140278452670****")
                .accountName("test-2")
                .accountType("ResourceDirectory")
                .build())
            .aggregatorName("tf-testaccaggregator")
            .description("tf-testaccaggregator")
            .build());

        var exampleAggregateConfigRule = new AggregateConfigRule("exampleAggregateConfigRule", AggregateConfigRuleArgs.builder()        
            .aggregateConfigRuleName("tf-testaccconfig1234")
            .aggregatorId(exampleAggregator.id())
            .configRuleTriggerTypes("ConfigurationItemChangeNotification")
            .sourceOwner("ALIYUN")
            .sourceIdentifier("ecs-cpu-min-count-limit")
            .riskLevel(1)
            .resourceTypesScopes("ACS::ECS::Instance")
            .inputParameters(Map.of("cpuCount", "4"))
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example_aggregator = alicloud.cfg.Aggregator("exampleAggregator",
    aggregator_accounts=[alicloud.cfg.AggregatorAggregatorAccountArgs(
        account_id="140278452670****",
        account_name="test-2",
        account_type="ResourceDirectory",
    )],
    aggregator_name="tf-testaccaggregator",
    description="tf-testaccaggregator")
example_aggregate_config_rule = alicloud.cfg.AggregateConfigRule("exampleAggregateConfigRule",
    aggregate_config_rule_name="tf-testaccconfig1234",
    aggregator_id=example_aggregator.id,
    config_rule_trigger_types="ConfigurationItemChangeNotification",
    source_owner="ALIYUN",
    source_identifier="ecs-cpu-min-count-limit",
    risk_level=1,
    resource_types_scopes=["ACS::ECS::Instance"],
    input_parameters={
        "cpuCount": "4",
    })
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const exampleAggregator = new alicloud.cfg.Aggregator("exampleAggregator", {
    aggregatorAccounts: [{
        accountId: "140278452670****",
        accountName: "test-2",
        accountType: "ResourceDirectory",
    }],
    aggregatorName: "tf-testaccaggregator",
    description: "tf-testaccaggregator",
});
const exampleAggregateConfigRule = new alicloud.cfg.AggregateConfigRule("exampleAggregateConfigRule", {
    aggregateConfigRuleName: "tf-testaccconfig1234",
    aggregatorId: exampleAggregator.id,
    configRuleTriggerTypes: "ConfigurationItemChangeNotification",
    sourceOwner: "ALIYUN",
    sourceIdentifier: "ecs-cpu-min-count-limit",
    riskLevel: 1,
    resourceTypesScopes: ["ACS::ECS::Instance"],
    inputParameters: {
        cpuCount: "4",
    },
});
resources:
  exampleAggregator:
    type: alicloud:cfg:Aggregator
    properties:
      aggregatorAccounts:
        - accountId: 140278452670****
          accountName: test-2
          accountType: ResourceDirectory
      aggregatorName: tf-testaccaggregator
      description: tf-testaccaggregator
  exampleAggregateConfigRule:
    type: alicloud:cfg:AggregateConfigRule
    properties:
      aggregateConfigRuleName: tf-testaccconfig1234
      aggregatorId: ${exampleAggregator.id}
      configRuleTriggerTypes: ConfigurationItemChangeNotification
      sourceOwner: ALIYUN
      sourceIdentifier: ecs-cpu-min-count-limit
      riskLevel: 1
      resourceTypesScopes:
        - ACS::ECS::Instance
      inputParameters:
        cpuCount: 4

Create AggregateConfigRule Resource

new AggregateConfigRule(name: string, args: AggregateConfigRuleArgs, opts?: CustomResourceOptions);
@overload
def AggregateConfigRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        aggregate_config_rule_name: Optional[str] = None,
                        aggregator_id: Optional[str] = None,
                        config_rule_trigger_types: Optional[str] = None,
                        description: Optional[str] = None,
                        exclude_resource_ids_scope: Optional[str] = None,
                        input_parameters: Optional[Mapping[str, Any]] = None,
                        maximum_execution_frequency: Optional[str] = None,
                        region_ids_scope: Optional[str] = None,
                        resource_group_ids_scope: Optional[str] = None,
                        resource_types_scopes: Optional[Sequence[str]] = None,
                        risk_level: Optional[int] = None,
                        source_identifier: Optional[str] = None,
                        source_owner: Optional[str] = None,
                        status: Optional[str] = None,
                        tag_key_scope: Optional[str] = None,
                        tag_value_scope: Optional[str] = None)
@overload
def AggregateConfigRule(resource_name: str,
                        args: AggregateConfigRuleArgs,
                        opts: Optional[ResourceOptions] = None)
func NewAggregateConfigRule(ctx *Context, name string, args AggregateConfigRuleArgs, opts ...ResourceOption) (*AggregateConfigRule, error)
public AggregateConfigRule(string name, AggregateConfigRuleArgs args, CustomResourceOptions? opts = null)
public AggregateConfigRule(String name, AggregateConfigRuleArgs args)
public AggregateConfigRule(String name, AggregateConfigRuleArgs args, CustomResourceOptions options)
type: alicloud:cfg:AggregateConfigRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

AggregateConfigRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AggregateConfigRule resource accepts the following input properties:

AggregateConfigRuleName string

The name of the rule.

AggregatorId string

The Aggregator Id.

ConfigRuleTriggerTypes string

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

ResourceTypesScopes List<string>

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

RiskLevel int

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

SourceIdentifier string

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

SourceOwner string

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

Description string

The description of the rule.

ExcludeResourceIdsScope string

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

InputParameters Dictionary<string, object>

The settings map of the input parameters for the rule.

MaximumExecutionFrequency string

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

RegionIdsScope string

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

ResourceGroupIdsScope string

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

Status string

The rule status. The valid values: ACTIVE, INACTIVE.

TagKeyScope string

The rule monitors the tag key, only applies to rules created based on managed rules.

TagValueScope string

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

AggregateConfigRuleName string

The name of the rule.

AggregatorId string

The Aggregator Id.

ConfigRuleTriggerTypes string

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

ResourceTypesScopes []string

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

RiskLevel int

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

SourceIdentifier string

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

SourceOwner string

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

Description string

The description of the rule.

ExcludeResourceIdsScope string

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

InputParameters map[string]interface{}

The settings map of the input parameters for the rule.

MaximumExecutionFrequency string

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

RegionIdsScope string

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

ResourceGroupIdsScope string

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

Status string

The rule status. The valid values: ACTIVE, INACTIVE.

TagKeyScope string

The rule monitors the tag key, only applies to rules created based on managed rules.

TagValueScope string

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregateConfigRuleName String

The name of the rule.

aggregatorId String

The Aggregator Id.

configRuleTriggerTypes String

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

resourceTypesScopes List<String>

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

riskLevel Integer

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

sourceIdentifier String

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

sourceOwner String

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

description String

The description of the rule.

excludeResourceIdsScope String

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

inputParameters Map<String,Object>

The settings map of the input parameters for the rule.

maximumExecutionFrequency String

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

regionIdsScope String

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resourceGroupIdsScope String

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

status String

The rule status. The valid values: ACTIVE, INACTIVE.

tagKeyScope String

The rule monitors the tag key, only applies to rules created based on managed rules.

tagValueScope String

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregateConfigRuleName string

The name of the rule.

aggregatorId string

The Aggregator Id.

configRuleTriggerTypes string

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

resourceTypesScopes string[]

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

riskLevel number

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

sourceIdentifier string

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

sourceOwner string

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

description string

The description of the rule.

excludeResourceIdsScope string

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

inputParameters {[key: string]: any}

The settings map of the input parameters for the rule.

maximumExecutionFrequency string

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

regionIdsScope string

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resourceGroupIdsScope string

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

status string

The rule status. The valid values: ACTIVE, INACTIVE.

tagKeyScope string

The rule monitors the tag key, only applies to rules created based on managed rules.

tagValueScope string

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregate_config_rule_name str

The name of the rule.

aggregator_id str

The Aggregator Id.

config_rule_trigger_types str

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

resource_types_scopes Sequence[str]

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

risk_level int

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

source_identifier str

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

source_owner str

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

description str

The description of the rule.

exclude_resource_ids_scope str

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

input_parameters Mapping[str, Any]

The settings map of the input parameters for the rule.

maximum_execution_frequency str

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

region_ids_scope str

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resource_group_ids_scope str

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

status str

The rule status. The valid values: ACTIVE, INACTIVE.

tag_key_scope str

The rule monitors the tag key, only applies to rules created based on managed rules.

tag_value_scope str

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregateConfigRuleName String

The name of the rule.

aggregatorId String

The Aggregator Id.

configRuleTriggerTypes String

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

resourceTypesScopes List<String>

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

riskLevel Number

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

sourceIdentifier String

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

sourceOwner String

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

description String

The description of the rule.

excludeResourceIdsScope String

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

inputParameters Map<Any>

The settings map of the input parameters for the rule.

maximumExecutionFrequency String

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

regionIdsScope String

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resourceGroupIdsScope String

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

status String

The rule status. The valid values: ACTIVE, INACTIVE.

tagKeyScope String

The rule monitors the tag key, only applies to rules created based on managed rules.

tagValueScope String

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

Outputs

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

ConfigRuleId string

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

Id string

The provider-assigned unique ID for this managed resource.

ConfigRuleId string

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

Id string

The provider-assigned unique ID for this managed resource.

configRuleId String

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

id String

The provider-assigned unique ID for this managed resource.

configRuleId string

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

id string

The provider-assigned unique ID for this managed resource.

config_rule_id str

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

id str

The provider-assigned unique ID for this managed resource.

configRuleId String

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing AggregateConfigRule Resource

Get an existing AggregateConfigRule 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?: AggregateConfigRuleState, opts?: CustomResourceOptions): AggregateConfigRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        aggregate_config_rule_name: Optional[str] = None,
        aggregator_id: Optional[str] = None,
        config_rule_id: Optional[str] = None,
        config_rule_trigger_types: Optional[str] = None,
        description: Optional[str] = None,
        exclude_resource_ids_scope: Optional[str] = None,
        input_parameters: Optional[Mapping[str, Any]] = None,
        maximum_execution_frequency: Optional[str] = None,
        region_ids_scope: Optional[str] = None,
        resource_group_ids_scope: Optional[str] = None,
        resource_types_scopes: Optional[Sequence[str]] = None,
        risk_level: Optional[int] = None,
        source_identifier: Optional[str] = None,
        source_owner: Optional[str] = None,
        status: Optional[str] = None,
        tag_key_scope: Optional[str] = None,
        tag_value_scope: Optional[str] = None) -> AggregateConfigRule
func GetAggregateConfigRule(ctx *Context, name string, id IDInput, state *AggregateConfigRuleState, opts ...ResourceOption) (*AggregateConfigRule, error)
public static AggregateConfigRule Get(string name, Input<string> id, AggregateConfigRuleState? state, CustomResourceOptions? opts = null)
public static AggregateConfigRule get(String name, Output<String> id, AggregateConfigRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
AggregateConfigRuleName string

The name of the rule.

AggregatorId string

The Aggregator Id.

ConfigRuleId string

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

ConfigRuleTriggerTypes string

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

Description string

The description of the rule.

ExcludeResourceIdsScope string

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

InputParameters Dictionary<string, object>

The settings map of the input parameters for the rule.

MaximumExecutionFrequency string

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

RegionIdsScope string

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

ResourceGroupIdsScope string

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

ResourceTypesScopes List<string>

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

RiskLevel int

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

SourceIdentifier string

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

SourceOwner string

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

Status string

The rule status. The valid values: ACTIVE, INACTIVE.

TagKeyScope string

The rule monitors the tag key, only applies to rules created based on managed rules.

TagValueScope string

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

AggregateConfigRuleName string

The name of the rule.

AggregatorId string

The Aggregator Id.

ConfigRuleId string

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

ConfigRuleTriggerTypes string

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

Description string

The description of the rule.

ExcludeResourceIdsScope string

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

InputParameters map[string]interface{}

The settings map of the input parameters for the rule.

MaximumExecutionFrequency string

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

RegionIdsScope string

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

ResourceGroupIdsScope string

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

ResourceTypesScopes []string

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

RiskLevel int

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

SourceIdentifier string

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

SourceOwner string

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

Status string

The rule status. The valid values: ACTIVE, INACTIVE.

TagKeyScope string

The rule monitors the tag key, only applies to rules created based on managed rules.

TagValueScope string

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregateConfigRuleName String

The name of the rule.

aggregatorId String

The Aggregator Id.

configRuleId String

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

configRuleTriggerTypes String

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

description String

The description of the rule.

excludeResourceIdsScope String

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

inputParameters Map<String,Object>

The settings map of the input parameters for the rule.

maximumExecutionFrequency String

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

regionIdsScope String

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resourceGroupIdsScope String

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

resourceTypesScopes List<String>

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

riskLevel Integer

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

sourceIdentifier String

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

sourceOwner String

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

status String

The rule status. The valid values: ACTIVE, INACTIVE.

tagKeyScope String

The rule monitors the tag key, only applies to rules created based on managed rules.

tagValueScope String

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregateConfigRuleName string

The name of the rule.

aggregatorId string

The Aggregator Id.

configRuleId string

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

configRuleTriggerTypes string

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

description string

The description of the rule.

excludeResourceIdsScope string

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

inputParameters {[key: string]: any}

The settings map of the input parameters for the rule.

maximumExecutionFrequency string

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

regionIdsScope string

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resourceGroupIdsScope string

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

resourceTypesScopes string[]

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

riskLevel number

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

sourceIdentifier string

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

sourceOwner string

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

status string

The rule status. The valid values: ACTIVE, INACTIVE.

tagKeyScope string

The rule monitors the tag key, only applies to rules created based on managed rules.

tagValueScope string

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregate_config_rule_name str

The name of the rule.

aggregator_id str

The Aggregator Id.

config_rule_id str

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

config_rule_trigger_types str

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

description str

The description of the rule.

exclude_resource_ids_scope str

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

input_parameters Mapping[str, Any]

The settings map of the input parameters for the rule.

maximum_execution_frequency str

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

region_ids_scope str

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resource_group_ids_scope str

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

resource_types_scopes Sequence[str]

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

risk_level int

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

source_identifier str

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

source_owner str

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

status str

The rule status. The valid values: ACTIVE, INACTIVE.

tag_key_scope str

The rule monitors the tag key, only applies to rules created based on managed rules.

tag_value_scope str

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

aggregateConfigRuleName String

The name of the rule.

aggregatorId String

The Aggregator Id.

configRuleId String

(Available in 1.141.0+) The rule ID of Aggregate Config Rule.

configRuleTriggerTypes String

The trigger type of the rule. Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.

description String

The description of the rule.

excludeResourceIdsScope String

The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.

inputParameters Map<Any>

The settings map of the input parameters for the rule.

maximumExecutionFrequency String

The frequency of the compliance evaluations. Valid values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours. System default value is TwentyFour_Hours and valid when the config_rule_trigger_types is ScheduledNotification.

regionIdsScope String

The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.

resourceGroupIdsScope String

The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.

resourceTypesScopes List<String>

Resource types to be evaluated. Alibaba Cloud services that support Cloud Config.

riskLevel Number

The risk level of the resources that are not compliant with the rule. Valid values: 1: critical 2: warning 3: info.

sourceIdentifier String

The identifier of the rule. For a managed rule, the value is the identifier of the managed rule. For a custom rule, the value is the ARN of the custom rule. Using managed rules, refer to List of Managed rules.

sourceOwner String

Specifies whether you or Alibaba Cloud owns and manages the rule. Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule.

status String

The rule status. The valid values: ACTIVE, INACTIVE.

tagKeyScope String

The rule monitors the tag key, only applies to rules created based on managed rules.

tagValueScope String

The rule monitors the tag value, use with the tag_key_scope options. only applies to rules created based on managed rules.

Import

Cloud Config Aggregate Config Rule can be imported using the id, e.g.

 $ pulumi import alicloud:cfg/aggregateConfigRule:AggregateConfigRule example <aggregator_id>:<config_rule_id>

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.