1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cfg
  5. AggregateCompliancePack
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

alicloud.cfg.AggregateCompliancePack

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.49.0 published on Sunday, Feb 4, 2024 by Pulumi

    Provides a Cloud Config Aggregate Compliance Pack resource.

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

    NOTE: Available since v1.124.0.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform_example";
        var defaultAccounts = AliCloud.ResourceManager.GetAccounts.Invoke(new()
        {
            Status = "CreateSuccess",
        });
    
        var defaultAggregator = new AliCloud.Cfg.Aggregator("defaultAggregator", new()
        {
            AggregatorAccounts = new[]
            {
                new AliCloud.Cfg.Inputs.AggregatorAggregatorAccountArgs
                {
                    AccountId = defaultAccounts.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.AccountId),
                    AccountName = defaultAccounts.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.DisplayName),
                    AccountType = "ResourceDirectory",
                },
            },
            AggregatorName = name,
            Description = name,
            AggregatorType = "CUSTOM",
        });
    
        var defaultAggregateConfigRule = new AliCloud.Cfg.AggregateConfigRule("defaultAggregateConfigRule", new()
        {
            AggregateConfigRuleName = "contains-tag",
            AggregatorId = defaultAggregator.Id,
            ConfigRuleTriggerTypes = "ConfigurationItemChangeNotification",
            SourceOwner = "ALIYUN",
            SourceIdentifier = "contains-tag",
            Description = name,
            RiskLevel = 1,
            ResourceTypesScopes = new[]
            {
                "ACS::ECS::Instance",
            },
            InputParameters = 
            {
                { "key", "example" },
                { "value", "example" },
            },
        });
    
        var defaultAggregateCompliancePack = new AliCloud.Cfg.AggregateCompliancePack("defaultAggregateCompliancePack", new()
        {
            AggregateCompliancePackName = name,
            AggregatorId = defaultAggregator.Id,
            Description = name,
            RiskLevel = 1,
            ConfigRuleIds = new[]
            {
                new AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRuleIdArgs
                {
                    ConfigRuleId = defaultAggregateConfigRule.ConfigRuleId,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"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
    		}
    		defaultAccounts, err := resourcemanager.GetAccounts(ctx, &resourcemanager.GetAccountsArgs{
    			Status: pulumi.StringRef("CreateSuccess"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultAggregator, err := cfg.NewAggregator(ctx, "defaultAggregator", &cfg.AggregatorArgs{
    			AggregatorAccounts: cfg.AggregatorAggregatorAccountArray{
    				&cfg.AggregatorAggregatorAccountArgs{
    					AccountId:   *pulumi.String(defaultAccounts.Accounts[0].AccountId),
    					AccountName: *pulumi.String(defaultAccounts.Accounts[0].DisplayName),
    					AccountType: pulumi.String("ResourceDirectory"),
    				},
    			},
    			AggregatorName: pulumi.String(name),
    			Description:    pulumi.String(name),
    			AggregatorType: pulumi.String("CUSTOM"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultAggregateConfigRule, err := cfg.NewAggregateConfigRule(ctx, "defaultAggregateConfigRule", &cfg.AggregateConfigRuleArgs{
    			AggregateConfigRuleName: pulumi.String("contains-tag"),
    			AggregatorId:            defaultAggregator.ID(),
    			ConfigRuleTriggerTypes:  pulumi.String("ConfigurationItemChangeNotification"),
    			SourceOwner:             pulumi.String("ALIYUN"),
    			SourceIdentifier:        pulumi.String("contains-tag"),
    			Description:             pulumi.String(name),
    			RiskLevel:               pulumi.Int(1),
    			ResourceTypesScopes: pulumi.StringArray{
    				pulumi.String("ACS::ECS::Instance"),
    			},
    			InputParameters: pulumi.Map{
    				"key":   pulumi.Any("example"),
    				"value": pulumi.Any("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cfg.NewAggregateCompliancePack(ctx, "defaultAggregateCompliancePack", &cfg.AggregateCompliancePackArgs{
    			AggregateCompliancePackName: pulumi.String(name),
    			AggregatorId:                defaultAggregator.ID(),
    			Description:                 pulumi.String(name),
    			RiskLevel:                   pulumi.Int(1),
    			ConfigRuleIds: cfg.AggregateCompliancePackConfigRuleIdArray{
    				&cfg.AggregateCompliancePackConfigRuleIdArgs{
    					ConfigRuleId: defaultAggregateConfigRule.ConfigRuleId,
    				},
    			},
    		})
    		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.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetAccountsArgs;
    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 com.pulumi.alicloud.cfg.AggregateCompliancePack;
    import com.pulumi.alicloud.cfg.AggregateCompliancePackArgs;
    import com.pulumi.alicloud.cfg.inputs.AggregateCompliancePackConfigRuleIdArgs;
    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");
            final var defaultAccounts = ResourcemanagerFunctions.getAccounts(GetAccountsArgs.builder()
                .status("CreateSuccess")
                .build());
    
            var defaultAggregator = new Aggregator("defaultAggregator", AggregatorArgs.builder()        
                .aggregatorAccounts(AggregatorAggregatorAccountArgs.builder()
                    .accountId(defaultAccounts.applyValue(getAccountsResult -> getAccountsResult.accounts()[0].accountId()))
                    .accountName(defaultAccounts.applyValue(getAccountsResult -> getAccountsResult.accounts()[0].displayName()))
                    .accountType("ResourceDirectory")
                    .build())
                .aggregatorName(name)
                .description(name)
                .aggregatorType("CUSTOM")
                .build());
    
            var defaultAggregateConfigRule = new AggregateConfigRule("defaultAggregateConfigRule", AggregateConfigRuleArgs.builder()        
                .aggregateConfigRuleName("contains-tag")
                .aggregatorId(defaultAggregator.id())
                .configRuleTriggerTypes("ConfigurationItemChangeNotification")
                .sourceOwner("ALIYUN")
                .sourceIdentifier("contains-tag")
                .description(name)
                .riskLevel(1)
                .resourceTypesScopes("ACS::ECS::Instance")
                .inputParameters(Map.ofEntries(
                    Map.entry("key", "example"),
                    Map.entry("value", "example")
                ))
                .build());
    
            var defaultAggregateCompliancePack = new AggregateCompliancePack("defaultAggregateCompliancePack", AggregateCompliancePackArgs.builder()        
                .aggregateCompliancePackName(name)
                .aggregatorId(defaultAggregator.id())
                .description(name)
                .riskLevel(1)
                .configRuleIds(AggregateCompliancePackConfigRuleIdArgs.builder()
                    .configRuleId(defaultAggregateConfigRule.configRuleId())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform_example"
    default_accounts = alicloud.resourcemanager.get_accounts(status="CreateSuccess")
    default_aggregator = alicloud.cfg.Aggregator("defaultAggregator",
        aggregator_accounts=[alicloud.cfg.AggregatorAggregatorAccountArgs(
            account_id=default_accounts.accounts[0].account_id,
            account_name=default_accounts.accounts[0].display_name,
            account_type="ResourceDirectory",
        )],
        aggregator_name=name,
        description=name,
        aggregator_type="CUSTOM")
    default_aggregate_config_rule = alicloud.cfg.AggregateConfigRule("defaultAggregateConfigRule",
        aggregate_config_rule_name="contains-tag",
        aggregator_id=default_aggregator.id,
        config_rule_trigger_types="ConfigurationItemChangeNotification",
        source_owner="ALIYUN",
        source_identifier="contains-tag",
        description=name,
        risk_level=1,
        resource_types_scopes=["ACS::ECS::Instance"],
        input_parameters={
            "key": "example",
            "value": "example",
        })
    default_aggregate_compliance_pack = alicloud.cfg.AggregateCompliancePack("defaultAggregateCompliancePack",
        aggregate_compliance_pack_name=name,
        aggregator_id=default_aggregator.id,
        description=name,
        risk_level=1,
        config_rule_ids=[alicloud.cfg.AggregateCompliancePackConfigRuleIdArgs(
            config_rule_id=default_aggregate_config_rule.config_rule_id,
        )])
    
    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 defaultAccounts = alicloud.resourcemanager.getAccounts({
        status: "CreateSuccess",
    });
    const defaultAggregator = new alicloud.cfg.Aggregator("defaultAggregator", {
        aggregatorAccounts: [{
            accountId: defaultAccounts.then(defaultAccounts => defaultAccounts.accounts?.[0]?.accountId),
            accountName: defaultAccounts.then(defaultAccounts => defaultAccounts.accounts?.[0]?.displayName),
            accountType: "ResourceDirectory",
        }],
        aggregatorName: name,
        description: name,
        aggregatorType: "CUSTOM",
    });
    const defaultAggregateConfigRule = new alicloud.cfg.AggregateConfigRule("defaultAggregateConfigRule", {
        aggregateConfigRuleName: "contains-tag",
        aggregatorId: defaultAggregator.id,
        configRuleTriggerTypes: "ConfigurationItemChangeNotification",
        sourceOwner: "ALIYUN",
        sourceIdentifier: "contains-tag",
        description: name,
        riskLevel: 1,
        resourceTypesScopes: ["ACS::ECS::Instance"],
        inputParameters: {
            key: "example",
            value: "example",
        },
    });
    const defaultAggregateCompliancePack = new alicloud.cfg.AggregateCompliancePack("defaultAggregateCompliancePack", {
        aggregateCompliancePackName: name,
        aggregatorId: defaultAggregator.id,
        description: name,
        riskLevel: 1,
        configRuleIds: [{
            configRuleId: defaultAggregateConfigRule.configRuleId,
        }],
    });
    
    configuration:
      name:
        type: string
        default: terraform_example
    resources:
      defaultAggregator:
        type: alicloud:cfg:Aggregator
        properties:
          aggregatorAccounts:
            - accountId: ${defaultAccounts.accounts[0].accountId}
              accountName: ${defaultAccounts.accounts[0].displayName}
              accountType: ResourceDirectory
          aggregatorName: ${name}
          description: ${name}
          aggregatorType: CUSTOM
      defaultAggregateConfigRule:
        type: alicloud:cfg:AggregateConfigRule
        properties:
          aggregateConfigRuleName: contains-tag
          aggregatorId: ${defaultAggregator.id}
          configRuleTriggerTypes: ConfigurationItemChangeNotification
          sourceOwner: ALIYUN
          sourceIdentifier: contains-tag
          description: ${name}
          riskLevel: 1
          resourceTypesScopes:
            - ACS::ECS::Instance
          inputParameters:
            key: example
            value: example
      defaultAggregateCompliancePack:
        type: alicloud:cfg:AggregateCompliancePack
        properties:
          aggregateCompliancePackName: ${name}
          aggregatorId: ${defaultAggregator.id}
          description: ${name}
          riskLevel: 1
          configRuleIds:
            - configRuleId: ${defaultAggregateConfigRule.configRuleId}
    variables:
      defaultAccounts:
        fn::invoke:
          Function: alicloud:resourcemanager:getAccounts
          Arguments:
            status: CreateSuccess
    

    Create AggregateCompliancePack Resource

    new AggregateCompliancePack(name: string, args: AggregateCompliancePackArgs, opts?: CustomResourceOptions);
    @overload
    def AggregateCompliancePack(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                aggregate_compliance_pack_name: Optional[str] = None,
                                aggregator_id: Optional[str] = None,
                                compliance_pack_template_id: Optional[str] = None,
                                config_rule_ids: Optional[Sequence[AggregateCompliancePackConfigRuleIdArgs]] = None,
                                config_rules: Optional[Sequence[AggregateCompliancePackConfigRuleArgs]] = None,
                                description: Optional[str] = None,
                                risk_level: Optional[int] = None)
    @overload
    def AggregateCompliancePack(resource_name: str,
                                args: AggregateCompliancePackArgs,
                                opts: Optional[ResourceOptions] = None)
    func NewAggregateCompliancePack(ctx *Context, name string, args AggregateCompliancePackArgs, opts ...ResourceOption) (*AggregateCompliancePack, error)
    public AggregateCompliancePack(string name, AggregateCompliancePackArgs args, CustomResourceOptions? opts = null)
    public AggregateCompliancePack(String name, AggregateCompliancePackArgs args)
    public AggregateCompliancePack(String name, AggregateCompliancePackArgs args, CustomResourceOptions options)
    
    type: alicloud:cfg:AggregateCompliancePack
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AggregateCompliancePackArgs
    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 AggregateCompliancePackArgs
    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 AggregateCompliancePackArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AggregateCompliancePackArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AggregateCompliancePackArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AggregateCompliancePackName string
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    AggregatorId string
    The ID of aggregator.
    Description string
    The description of compliance package.
    RiskLevel int
    The Risk Level. Valid values:
    CompliancePackTemplateId string
    The Template ID of compliance package.
    ConfigRuleIds List<Pulumi.AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules List<Pulumi.AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRule>
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    AggregateCompliancePackName string
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    AggregatorId string
    The ID of aggregator.
    Description string
    The description of compliance package.
    RiskLevel int
    The Risk Level. Valid values:
    CompliancePackTemplateId string
    The Template ID of compliance package.
    ConfigRuleIds []AggregateCompliancePackConfigRuleIdArgs
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules []AggregateCompliancePackConfigRuleArgs
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    aggregateCompliancePackName String
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregatorId String
    The ID of aggregator.
    description String
    The description of compliance package.
    riskLevel Integer
    The Risk Level. Valid values:
    compliancePackTemplateId String
    The Template ID of compliance package.
    configRuleIds List<AggregateCompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    configRules List<AggregateCompliancePackConfigRule>
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    aggregateCompliancePackName string
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregatorId string
    The ID of aggregator.
    description string
    The description of compliance package.
    riskLevel number
    The Risk Level. Valid values:
    compliancePackTemplateId string
    The Template ID of compliance package.
    configRuleIds AggregateCompliancePackConfigRuleId[]
    A list of Config Rule IDs. See config_rule_ids below.
    configRules AggregateCompliancePackConfigRule[]
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    aggregate_compliance_pack_name str
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregator_id str
    The ID of aggregator.
    description str
    The description of compliance package.
    risk_level int
    The Risk Level. Valid values:
    compliance_pack_template_id str
    The Template ID of compliance package.
    config_rule_ids Sequence[AggregateCompliancePackConfigRuleIdArgs]
    A list of Config Rule IDs. See config_rule_ids below.
    config_rules Sequence[AggregateCompliancePackConfigRuleArgs]
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    aggregateCompliancePackName String
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregatorId String
    The ID of aggregator.
    description String
    The description of compliance package.
    riskLevel Number
    The Risk Level. Valid values:
    compliancePackTemplateId String
    The Template ID of compliance package.
    configRuleIds List<Property Map>
    A list of Config Rule IDs. See config_rule_ids below.
    configRules List<Property Map>
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Outputs

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

    AggregatorCompliancePackId string
    The ID of the compliance package.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Aggregate Compliance Pack.
    AggregatorCompliancePackId string
    The ID of the compliance package.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Aggregate Compliance Pack.
    aggregatorCompliancePackId String
    The ID of the compliance package.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Aggregate Compliance Pack.
    aggregatorCompliancePackId string
    The ID of the compliance package.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Aggregate Compliance Pack.
    aggregator_compliance_pack_id str
    The ID of the compliance package.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Aggregate Compliance Pack.
    aggregatorCompliancePackId String
    The ID of the compliance package.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Aggregate Compliance Pack.

    Look up Existing AggregateCompliancePack Resource

    Get an existing AggregateCompliancePack 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?: AggregateCompliancePackState, opts?: CustomResourceOptions): AggregateCompliancePack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aggregate_compliance_pack_name: Optional[str] = None,
            aggregator_compliance_pack_id: Optional[str] = None,
            aggregator_id: Optional[str] = None,
            compliance_pack_template_id: Optional[str] = None,
            config_rule_ids: Optional[Sequence[AggregateCompliancePackConfigRuleIdArgs]] = None,
            config_rules: Optional[Sequence[AggregateCompliancePackConfigRuleArgs]] = None,
            description: Optional[str] = None,
            risk_level: Optional[int] = None,
            status: Optional[str] = None) -> AggregateCompliancePack
    func GetAggregateCompliancePack(ctx *Context, name string, id IDInput, state *AggregateCompliancePackState, opts ...ResourceOption) (*AggregateCompliancePack, error)
    public static AggregateCompliancePack Get(string name, Input<string> id, AggregateCompliancePackState? state, CustomResourceOptions? opts = null)
    public static AggregateCompliancePack get(String name, Output<String> id, AggregateCompliancePackState 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:
    AggregateCompliancePackName string
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    AggregatorCompliancePackId string
    The ID of the compliance package.
    AggregatorId string
    The ID of aggregator.
    CompliancePackTemplateId string
    The Template ID of compliance package.
    ConfigRuleIds List<Pulumi.AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules List<Pulumi.AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRule>
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Description string
    The description of compliance package.
    RiskLevel int
    The Risk Level. Valid values:
    Status string
    The status of the Aggregate Compliance Pack.
    AggregateCompliancePackName string
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    AggregatorCompliancePackId string
    The ID of the compliance package.
    AggregatorId string
    The ID of aggregator.
    CompliancePackTemplateId string
    The Template ID of compliance package.
    ConfigRuleIds []AggregateCompliancePackConfigRuleIdArgs
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules []AggregateCompliancePackConfigRuleArgs
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Description string
    The description of compliance package.
    RiskLevel int
    The Risk Level. Valid values:
    Status string
    The status of the Aggregate Compliance Pack.
    aggregateCompliancePackName String
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregatorCompliancePackId String
    The ID of the compliance package.
    aggregatorId String
    The ID of aggregator.
    compliancePackTemplateId String
    The Template ID of compliance package.
    configRuleIds List<AggregateCompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    configRules List<AggregateCompliancePackConfigRule>
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    description String
    The description of compliance package.
    riskLevel Integer
    The Risk Level. Valid values:
    status String
    The status of the Aggregate Compliance Pack.
    aggregateCompliancePackName string
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregatorCompliancePackId string
    The ID of the compliance package.
    aggregatorId string
    The ID of aggregator.
    compliancePackTemplateId string
    The Template ID of compliance package.
    configRuleIds AggregateCompliancePackConfigRuleId[]
    A list of Config Rule IDs. See config_rule_ids below.
    configRules AggregateCompliancePackConfigRule[]
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    description string
    The description of compliance package.
    riskLevel number
    The Risk Level. Valid values:
    status string
    The status of the Aggregate Compliance Pack.
    aggregate_compliance_pack_name str
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregator_compliance_pack_id str
    The ID of the compliance package.
    aggregator_id str
    The ID of aggregator.
    compliance_pack_template_id str
    The Template ID of compliance package.
    config_rule_ids Sequence[AggregateCompliancePackConfigRuleIdArgs]
    A list of Config Rule IDs. See config_rule_ids below.
    config_rules Sequence[AggregateCompliancePackConfigRuleArgs]
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    description str
    The description of compliance package.
    risk_level int
    The Risk Level. Valid values:
    status str
    The status of the Aggregate Compliance Pack.
    aggregateCompliancePackName String
    The name of compliance package name. NOTE: From version 1.145.0, aggregate_compliance_pack_name can be modified.
    aggregatorCompliancePackId String
    The ID of the compliance package.
    aggregatorId String
    The ID of aggregator.
    compliancePackTemplateId String
    The Template ID of compliance package.
    configRuleIds List<Property Map>
    A list of Config Rule IDs. See config_rule_ids below.
    configRules List<Property Map>
    A list of Config Rules. See config_rules below. NOTE: Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    Deprecated:Field config_rules has been deprecated from provider version 1.141.0. New field config_rule_ids instead.

    description String
    The description of compliance package.
    riskLevel Number
    The Risk Level. Valid values:
    status String
    The status of the Aggregate Compliance Pack.

    Supporting Types

    AggregateCompliancePackConfigRule, AggregateCompliancePackConfigRuleArgs

    ManagedRuleIdentifier string
    The Managed Rule Identifier.
    ConfigRuleParameters List<Pulumi.AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRuleConfigRuleParameter>
    A list of parameter rules. See config_rule_parameters below.
    ManagedRuleIdentifier string
    The Managed Rule Identifier.
    ConfigRuleParameters []AggregateCompliancePackConfigRuleConfigRuleParameter
    A list of parameter rules. See config_rule_parameters below.
    managedRuleIdentifier String
    The Managed Rule Identifier.
    configRuleParameters List<AggregateCompliancePackConfigRuleConfigRuleParameter>
    A list of parameter rules. See config_rule_parameters below.
    managedRuleIdentifier string
    The Managed Rule Identifier.
    configRuleParameters AggregateCompliancePackConfigRuleConfigRuleParameter[]
    A list of parameter rules. See config_rule_parameters below.
    managed_rule_identifier str
    The Managed Rule Identifier.
    config_rule_parameters Sequence[AggregateCompliancePackConfigRuleConfigRuleParameter]
    A list of parameter rules. See config_rule_parameters below.
    managedRuleIdentifier String
    The Managed Rule Identifier.
    configRuleParameters List<Property Map>
    A list of parameter rules. See config_rule_parameters below.

    AggregateCompliancePackConfigRuleConfigRuleParameter, AggregateCompliancePackConfigRuleConfigRuleParameterArgs

    ParameterName string
    The Parameter Name.
    ParameterValue string
    The Parameter Value.
    ParameterName string
    The Parameter Name.
    ParameterValue string
    The Parameter Value.
    parameterName String
    The Parameter Name.
    parameterValue String
    The Parameter Value.
    parameterName string
    The Parameter Name.
    parameterValue string
    The Parameter Value.
    parameter_name str
    The Parameter Name.
    parameter_value str
    The Parameter Value.
    parameterName String
    The Parameter Name.
    parameterValue String
    The Parameter Value.

    AggregateCompliancePackConfigRuleId, AggregateCompliancePackConfigRuleIdArgs

    ConfigRuleId string
    The rule ID of Aggregate Config Rule.
    ConfigRuleId string
    The rule ID of Aggregate Config Rule.
    configRuleId String
    The rule ID of Aggregate Config Rule.
    configRuleId string
    The rule ID of Aggregate Config Rule.
    config_rule_id str
    The rule ID of Aggregate Config Rule.
    configRuleId String
    The rule ID of Aggregate Config Rule.

    Import

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

     $ pulumi import alicloud:cfg/aggregateCompliancePack:AggregateCompliancePack example <aggregator_id>:<aggregator_compliance_pack_id>
    

    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.49.0 published on Sunday, Feb 4, 2024 by Pulumi