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

alicloud.cfg.CompliancePack

Explore with Pulumi AI

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

    Provides a Cloud Config Compliance Pack resource.

    For information about Cloud Config Compliance Pack and how to use it, see What is 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") ?? "tf-example-config-name";
        var defaultRegions = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var rule1 = new AliCloud.Cfg.Rule("rule1", new()
        {
            Description = name,
            SourceOwner = "ALIYUN",
            SourceIdentifier = "ram-user-ak-create-date-expired-check",
            RiskLevel = 1,
            MaximumExecutionFrequency = "TwentyFour_Hours",
            RegionIdsScope = defaultRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id),
            ConfigRuleTriggerTypes = "ScheduledNotification",
            ResourceTypesScopes = new[]
            {
                "ACS::RAM::User",
            },
            RuleName = "ciscompliancecheck_ram-user-ak-create-date-expired-check",
            InputParameters = 
            {
                { "days", "90" },
            },
        });
    
        var rule2 = new AliCloud.Cfg.Rule("rule2", new()
        {
            Description = name,
            SourceOwner = "ALIYUN",
            SourceIdentifier = "adb-cluster-maintain-time-check",
            RiskLevel = 2,
            RegionIdsScope = defaultRegions.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id),
            ConfigRuleTriggerTypes = "ScheduledNotification",
            ResourceTypesScopes = new[]
            {
                "ACS::ADB::DBCluster",
            },
            RuleName = "governance-evaluation-adb-cluster-maintain-time-check",
            InputParameters = 
            {
                { "maintainTimes", "02:00-04:00,06:00-08:00,12:00-13:00" },
            },
        });
    
        var defaultCompliancePack = new AliCloud.Cfg.CompliancePack("defaultCompliancePack", new()
        {
            CompliancePackName = name,
            Description = "CloudGovernanceCenter evaluation",
            RiskLevel = 2,
            ConfigRuleIds = new[]
            {
                new AliCloud.Cfg.Inputs.CompliancePackConfigRuleIdArgs
                {
                    ConfigRuleId = rule1.Id,
                },
                new AliCloud.Cfg.Inputs.CompliancePackConfigRuleIdArgs
                {
                    ConfigRuleId = rule2.Id,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"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 := "tf-example-config-name"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultRegions, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		rule1, err := cfg.NewRule(ctx, "rule1", &cfg.RuleArgs{
    			Description:               pulumi.String(name),
    			SourceOwner:               pulumi.String("ALIYUN"),
    			SourceIdentifier:          pulumi.String("ram-user-ak-create-date-expired-check"),
    			RiskLevel:                 pulumi.Int(1),
    			MaximumExecutionFrequency: pulumi.String("TwentyFour_Hours"),
    			RegionIdsScope:            *pulumi.String(defaultRegions.Regions[0].Id),
    			ConfigRuleTriggerTypes:    pulumi.String("ScheduledNotification"),
    			ResourceTypesScopes: pulumi.StringArray{
    				pulumi.String("ACS::RAM::User"),
    			},
    			RuleName: pulumi.String("ciscompliancecheck_ram-user-ak-create-date-expired-check"),
    			InputParameters: pulumi.Map{
    				"days": pulumi.Any("90"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		rule2, err := cfg.NewRule(ctx, "rule2", &cfg.RuleArgs{
    			Description:            pulumi.String(name),
    			SourceOwner:            pulumi.String("ALIYUN"),
    			SourceIdentifier:       pulumi.String("adb-cluster-maintain-time-check"),
    			RiskLevel:              pulumi.Int(2),
    			RegionIdsScope:         *pulumi.String(defaultRegions.Regions[0].Id),
    			ConfigRuleTriggerTypes: pulumi.String("ScheduledNotification"),
    			ResourceTypesScopes: pulumi.StringArray{
    				pulumi.String("ACS::ADB::DBCluster"),
    			},
    			RuleName: pulumi.String("governance-evaluation-adb-cluster-maintain-time-check"),
    			InputParameters: pulumi.Map{
    				"maintainTimes": pulumi.Any("02:00-04:00,06:00-08:00,12:00-13:00"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cfg.NewCompliancePack(ctx, "defaultCompliancePack", &cfg.CompliancePackArgs{
    			CompliancePackName: pulumi.String(name),
    			Description:        pulumi.String("CloudGovernanceCenter evaluation"),
    			RiskLevel:          pulumi.Int(2),
    			ConfigRuleIds: cfg.CompliancePackConfigRuleIdArray{
    				&cfg.CompliancePackConfigRuleIdArgs{
    					ConfigRuleId: rule1.ID(),
    				},
    				&cfg.CompliancePackConfigRuleIdArgs{
    					ConfigRuleId: rule2.ID(),
    				},
    			},
    		})
    		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.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.cfg.Rule;
    import com.pulumi.alicloud.cfg.RuleArgs;
    import com.pulumi.alicloud.cfg.CompliancePack;
    import com.pulumi.alicloud.cfg.CompliancePackArgs;
    import com.pulumi.alicloud.cfg.inputs.CompliancePackConfigRuleIdArgs;
    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("tf-example-config-name");
            final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            var rule1 = new Rule("rule1", RuleArgs.builder()        
                .description(name)
                .sourceOwner("ALIYUN")
                .sourceIdentifier("ram-user-ak-create-date-expired-check")
                .riskLevel(1)
                .maximumExecutionFrequency("TwentyFour_Hours")
                .regionIdsScope(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
                .configRuleTriggerTypes("ScheduledNotification")
                .resourceTypesScopes("ACS::RAM::User")
                .ruleName("ciscompliancecheck_ram-user-ak-create-date-expired-check")
                .inputParameters(Map.of("days", "90"))
                .build());
    
            var rule2 = new Rule("rule2", RuleArgs.builder()        
                .description(name)
                .sourceOwner("ALIYUN")
                .sourceIdentifier("adb-cluster-maintain-time-check")
                .riskLevel(2)
                .regionIdsScope(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
                .configRuleTriggerTypes("ScheduledNotification")
                .resourceTypesScopes("ACS::ADB::DBCluster")
                .ruleName("governance-evaluation-adb-cluster-maintain-time-check")
                .inputParameters(Map.of("maintainTimes", "02:00-04:00,06:00-08:00,12:00-13:00"))
                .build());
    
            var defaultCompliancePack = new CompliancePack("defaultCompliancePack", CompliancePackArgs.builder()        
                .compliancePackName(name)
                .description("CloudGovernanceCenter evaluation")
                .riskLevel("2")
                .configRuleIds(            
                    CompliancePackConfigRuleIdArgs.builder()
                        .configRuleId(rule1.id())
                        .build(),
                    CompliancePackConfigRuleIdArgs.builder()
                        .configRuleId(rule2.id())
                        .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example-config-name"
    default_regions = alicloud.get_regions(current=True)
    rule1 = alicloud.cfg.Rule("rule1",
        description=name,
        source_owner="ALIYUN",
        source_identifier="ram-user-ak-create-date-expired-check",
        risk_level=1,
        maximum_execution_frequency="TwentyFour_Hours",
        region_ids_scope=default_regions.regions[0].id,
        config_rule_trigger_types="ScheduledNotification",
        resource_types_scopes=["ACS::RAM::User"],
        rule_name="ciscompliancecheck_ram-user-ak-create-date-expired-check",
        input_parameters={
            "days": "90",
        })
    rule2 = alicloud.cfg.Rule("rule2",
        description=name,
        source_owner="ALIYUN",
        source_identifier="adb-cluster-maintain-time-check",
        risk_level=2,
        region_ids_scope=default_regions.regions[0].id,
        config_rule_trigger_types="ScheduledNotification",
        resource_types_scopes=["ACS::ADB::DBCluster"],
        rule_name="governance-evaluation-adb-cluster-maintain-time-check",
        input_parameters={
            "maintainTimes": "02:00-04:00,06:00-08:00,12:00-13:00",
        })
    default_compliance_pack = alicloud.cfg.CompliancePack("defaultCompliancePack",
        compliance_pack_name=name,
        description="CloudGovernanceCenter evaluation",
        risk_level=2,
        config_rule_ids=[
            alicloud.cfg.CompliancePackConfigRuleIdArgs(
                config_rule_id=rule1.id,
            ),
            alicloud.cfg.CompliancePackConfigRuleIdArgs(
                config_rule_id=rule2.id,
            ),
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example-config-name";
    const defaultRegions = alicloud.getRegions({
        current: true,
    });
    const rule1 = new alicloud.cfg.Rule("rule1", {
        description: name,
        sourceOwner: "ALIYUN",
        sourceIdentifier: "ram-user-ak-create-date-expired-check",
        riskLevel: 1,
        maximumExecutionFrequency: "TwentyFour_Hours",
        regionIdsScope: defaultRegions.then(defaultRegions => defaultRegions.regions?.[0]?.id),
        configRuleTriggerTypes: "ScheduledNotification",
        resourceTypesScopes: ["ACS::RAM::User"],
        ruleName: "ciscompliancecheck_ram-user-ak-create-date-expired-check",
        inputParameters: {
            days: "90",
        },
    });
    const rule2 = new alicloud.cfg.Rule("rule2", {
        description: name,
        sourceOwner: "ALIYUN",
        sourceIdentifier: "adb-cluster-maintain-time-check",
        riskLevel: 2,
        regionIdsScope: defaultRegions.then(defaultRegions => defaultRegions.regions?.[0]?.id),
        configRuleTriggerTypes: "ScheduledNotification",
        resourceTypesScopes: ["ACS::ADB::DBCluster"],
        ruleName: "governance-evaluation-adb-cluster-maintain-time-check",
        inputParameters: {
            maintainTimes: "02:00-04:00,06:00-08:00,12:00-13:00",
        },
    });
    const defaultCompliancePack = new alicloud.cfg.CompliancePack("defaultCompliancePack", {
        compliancePackName: name,
        description: "CloudGovernanceCenter evaluation",
        riskLevel: 2,
        configRuleIds: [
            {
                configRuleId: rule1.id,
            },
            {
                configRuleId: rule2.id,
            },
        ],
    });
    
    configuration:
      name:
        type: string
        default: tf-example-config-name
    resources:
      rule1:
        type: alicloud:cfg:Rule
        properties:
          description: ${name}
          sourceOwner: ALIYUN
          sourceIdentifier: ram-user-ak-create-date-expired-check
          riskLevel: 1
          maximumExecutionFrequency: TwentyFour_Hours
          regionIdsScope: ${defaultRegions.regions[0].id}
          configRuleTriggerTypes: ScheduledNotification
          resourceTypesScopes:
            - ACS::RAM::User
          ruleName: ciscompliancecheck_ram-user-ak-create-date-expired-check
          inputParameters:
            days: '90'
      rule2:
        type: alicloud:cfg:Rule
        properties:
          description: ${name}
          sourceOwner: ALIYUN
          sourceIdentifier: adb-cluster-maintain-time-check
          riskLevel: 2
          regionIdsScope: ${defaultRegions.regions[0].id}
          configRuleTriggerTypes: ScheduledNotification
          resourceTypesScopes:
            - ACS::ADB::DBCluster
          ruleName: governance-evaluation-adb-cluster-maintain-time-check
          inputParameters:
            maintainTimes: 02:00-04:00,06:00-08:00,12:00-13:00
      defaultCompliancePack:
        type: alicloud:cfg:CompliancePack
        properties:
          compliancePackName: ${name}
          description: CloudGovernanceCenter evaluation
          riskLevel: '2'
          configRuleIds:
            - configRuleId: ${rule1.id}
            - configRuleId: ${rule2.id}
    variables:
      defaultRegions:
        fn::invoke:
          Function: alicloud:getRegions
          Arguments:
            current: true
    

    Create CompliancePack Resource

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

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

    CompliancePackName string
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    Description string
    The Description of compliance pack.
    RiskLevel int
    The Risk Level. Valid values:
    CompliancePackTemplateId string
    Compliance Package Template Id.
    ConfigRuleIds List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRule>
    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.

    CompliancePackName string
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    Description string
    The Description of compliance pack.
    RiskLevel int
    The Risk Level. Valid values:
    CompliancePackTemplateId string
    Compliance Package Template Id.
    ConfigRuleIds []CompliancePackConfigRuleIdArgs
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules []CompliancePackConfigRuleArgs
    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.

    compliancePackName String
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    description String
    The Description of compliance pack.
    riskLevel Integer
    The Risk Level. Valid values:
    compliancePackTemplateId String
    Compliance Package Template Id.
    configRuleIds List<CompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    configRules List<CompliancePackConfigRule>
    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.

    compliancePackName string
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    description string
    The Description of compliance pack.
    riskLevel number
    The Risk Level. Valid values:
    compliancePackTemplateId string
    Compliance Package Template Id.
    configRuleIds CompliancePackConfigRuleId[]
    A list of Config Rule IDs. See config_rule_ids below.
    configRules CompliancePackConfigRule[]
    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.

    compliance_pack_name str
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    description str
    The Description of compliance pack.
    risk_level int
    The Risk Level. Valid values:
    compliance_pack_template_id str
    Compliance Package Template Id.
    config_rule_ids Sequence[CompliancePackConfigRuleIdArgs]
    A list of Config Rule IDs. See config_rule_ids below.
    config_rules Sequence[CompliancePackConfigRuleArgs]
    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.

    compliancePackName String
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    description String
    The Description of compliance pack.
    riskLevel Number
    The Risk Level. Valid values:
    compliancePackTemplateId String
    Compliance Package Template Id.
    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 CompliancePack resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Compliance Pack.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the Compliance Pack.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Compliance Pack.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the Compliance Pack.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the Compliance Pack.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the Compliance Pack.

    Look up Existing CompliancePack Resource

    Get an existing CompliancePack 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?: CompliancePackState, opts?: CustomResourceOptions): CompliancePack
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compliance_pack_name: Optional[str] = None,
            compliance_pack_template_id: Optional[str] = None,
            config_rule_ids: Optional[Sequence[CompliancePackConfigRuleIdArgs]] = None,
            config_rules: Optional[Sequence[CompliancePackConfigRuleArgs]] = None,
            description: Optional[str] = None,
            risk_level: Optional[int] = None,
            status: Optional[str] = None) -> CompliancePack
    func GetCompliancePack(ctx *Context, name string, id IDInput, state *CompliancePackState, opts ...ResourceOption) (*CompliancePack, error)
    public static CompliancePack Get(string name, Input<string> id, CompliancePackState? state, CustomResourceOptions? opts = null)
    public static CompliancePack get(String name, Output<String> id, CompliancePackState 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:
    CompliancePackName string
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    CompliancePackTemplateId string
    Compliance Package Template Id.
    ConfigRuleIds List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRule>
    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 pack.
    RiskLevel int
    The Risk Level. Valid values:
    Status string
    The status of the Compliance Pack.
    CompliancePackName string
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    CompliancePackTemplateId string
    Compliance Package Template Id.
    ConfigRuleIds []CompliancePackConfigRuleIdArgs
    A list of Config Rule IDs. See config_rule_ids below.
    ConfigRules []CompliancePackConfigRuleArgs
    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 pack.
    RiskLevel int
    The Risk Level. Valid values:
    Status string
    The status of the Compliance Pack.
    compliancePackName String
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    compliancePackTemplateId String
    Compliance Package Template Id.
    configRuleIds List<CompliancePackConfigRuleId>
    A list of Config Rule IDs. See config_rule_ids below.
    configRules List<CompliancePackConfigRule>
    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 pack.
    riskLevel Integer
    The Risk Level. Valid values:
    status String
    The status of the Compliance Pack.
    compliancePackName string
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    compliancePackTemplateId string
    Compliance Package Template Id.
    configRuleIds CompliancePackConfigRuleId[]
    A list of Config Rule IDs. See config_rule_ids below.
    configRules CompliancePackConfigRule[]
    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 pack.
    riskLevel number
    The Risk Level. Valid values:
    status string
    The status of the Compliance Pack.
    compliance_pack_name str
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    compliance_pack_template_id str
    Compliance Package Template Id.
    config_rule_ids Sequence[CompliancePackConfigRuleIdArgs]
    A list of Config Rule IDs. See config_rule_ids below.
    config_rules Sequence[CompliancePackConfigRuleArgs]
    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 pack.
    risk_level int
    The Risk Level. Valid values:
    status str
    The status of the Compliance Pack.
    compliancePackName String
    The Compliance Package Name. NOTE: From version 1.146.0, compliance_pack_name can be modified.
    compliancePackTemplateId String
    Compliance Package Template Id.
    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 pack.
    riskLevel Number
    The Risk Level. Valid values:
    status String
    The status of the Compliance Pack.

    Supporting Types

    CompliancePackConfigRule, CompliancePackConfigRuleArgs

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

    CompliancePackConfigRuleConfigRuleParameter, CompliancePackConfigRuleConfigRuleParameterArgs

    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.

    CompliancePackConfigRuleId, CompliancePackConfigRuleIdArgs

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

    Import

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

     $ pulumi import alicloud:cfg/compliancePack:CompliancePack example <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