1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cfg
  5. CompliancePack
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 by Pulumi

alicloud.cfg.CompliancePack

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.38.0 published on Friday, Jun 2, 2023 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 in 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") ?? "example_name";
        var defaultInstances = AliCloud.Ecs.GetInstances.Invoke();
    
        var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
        {
            Status = "OK",
        });
    
        var defaultRule = new AliCloud.Cfg.Rule("defaultRule", new()
        {
            RuleName = name,
            Description = name,
            SourceIdentifier = "ecs-instances-in-vpc",
            SourceOwner = "ALIYUN",
            ResourceTypesScopes = new[]
            {
                "ACS::ECS::Instance",
            },
            RiskLevel = 1,
            ConfigRuleTriggerTypes = "ConfigurationItemChangeNotification",
            TagKeyScope = "tfTest",
            TagValueScope = "tfTest 123",
            ResourceGroupIdsScope = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
            ExcludeResourceIdsScope = defaultInstances.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id),
            RegionIdsScope = "cn-hangzhou",
            InputParameters = 
            {
                { "vpcIds", defaultInstances.Apply(getInstancesResult => getInstancesResult.Instances[0]?.VpcId) },
            },
        });
    
        var defaultCompliancePack = new AliCloud.Cfg.CompliancePack("defaultCompliancePack", new()
        {
            CompliancePackName = "tf-testaccConfig1234",
            Description = "tf-testaccConfig1234",
            RiskLevel = 1,
            ConfigRuleIds = new[]
            {
                new AliCloud.Cfg.Inputs.CompliancePackConfigRuleIdArgs
                {
                    ConfigRuleId = defaultRule.Id,
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
    	"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 := "example_name"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultInstances, err := ecs.GetInstances(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
    			Status: pulumi.StringRef("OK"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultRule, err := cfg.NewRule(ctx, "defaultRule", &cfg.RuleArgs{
    			RuleName:         pulumi.String(name),
    			Description:      pulumi.String(name),
    			SourceIdentifier: pulumi.String("ecs-instances-in-vpc"),
    			SourceOwner:      pulumi.String("ALIYUN"),
    			ResourceTypesScopes: pulumi.StringArray{
    				pulumi.String("ACS::ECS::Instance"),
    			},
    			RiskLevel:               pulumi.Int(1),
    			ConfigRuleTriggerTypes:  pulumi.String("ConfigurationItemChangeNotification"),
    			TagKeyScope:             pulumi.String("tfTest"),
    			TagValueScope:           pulumi.String("tfTest 123"),
    			ResourceGroupIdsScope:   *pulumi.String(defaultResourceGroups.Ids[0]),
    			ExcludeResourceIdsScope: *pulumi.String(defaultInstances.Instances[0].Id),
    			RegionIdsScope:          pulumi.String("cn-hangzhou"),
    			InputParameters: pulumi.AnyMap{
    				"vpcIds": *pulumi.String(defaultInstances.Instances[0].VpcId),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cfg.NewCompliancePack(ctx, "defaultCompliancePack", &cfg.CompliancePackArgs{
    			CompliancePackName: pulumi.String("tf-testaccConfig1234"),
    			Description:        pulumi.String("tf-testaccConfig1234"),
    			RiskLevel:          pulumi.Int(1),
    			ConfigRuleIds: cfg.CompliancePackConfigRuleIdArray{
    				&cfg.CompliancePackConfigRuleIdArgs{
    					ConfigRuleId: defaultRule.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.ecs.EcsFunctions;
    import com.pulumi.alicloud.ecs.inputs.GetInstancesArgs;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    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("example_name");
            final var defaultInstances = EcsFunctions.getInstances();
    
            final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .status("OK")
                .build());
    
            var defaultRule = new Rule("defaultRule", RuleArgs.builder()        
                .ruleName(name)
                .description(name)
                .sourceIdentifier("ecs-instances-in-vpc")
                .sourceOwner("ALIYUN")
                .resourceTypesScopes("ACS::ECS::Instance")
                .riskLevel(1)
                .configRuleTriggerTypes("ConfigurationItemChangeNotification")
                .tagKeyScope("tfTest")
                .tagValueScope("tfTest 123")
                .resourceGroupIdsScope(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
                .excludeResourceIdsScope(defaultInstances.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()))
                .regionIdsScope("cn-hangzhou")
                .inputParameters(Map.of("vpcIds", defaultInstances.applyValue(getInstancesResult -> getInstancesResult.instances()[0].vpcId())))
                .build());
    
            var defaultCompliancePack = new CompliancePack("defaultCompliancePack", CompliancePackArgs.builder()        
                .compliancePackName("tf-testaccConfig1234")
                .description("tf-testaccConfig1234")
                .riskLevel("1")
                .configRuleIds(CompliancePackConfigRuleIdArgs.builder()
                    .configRuleId(defaultRule.id())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "example_name"
    default_instances = alicloud.ecs.get_instances()
    default_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
    default_rule = alicloud.cfg.Rule("defaultRule",
        rule_name=name,
        description=name,
        source_identifier="ecs-instances-in-vpc",
        source_owner="ALIYUN",
        resource_types_scopes=["ACS::ECS::Instance"],
        risk_level=1,
        config_rule_trigger_types="ConfigurationItemChangeNotification",
        tag_key_scope="tfTest",
        tag_value_scope="tfTest 123",
        resource_group_ids_scope=default_resource_groups.ids[0],
        exclude_resource_ids_scope=default_instances.instances[0].id,
        region_ids_scope="cn-hangzhou",
        input_parameters={
            "vpcIds": default_instances.instances[0].vpc_id,
        })
    default_compliance_pack = alicloud.cfg.CompliancePack("defaultCompliancePack",
        compliance_pack_name="tf-testaccConfig1234",
        description="tf-testaccConfig1234",
        risk_level=1,
        config_rule_ids=[alicloud.cfg.CompliancePackConfigRuleIdArgs(
            config_rule_id=default_rule.id,
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "example_name";
    const defaultInstances = alicloud.ecs.getInstances({});
    const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
        status: "OK",
    });
    const defaultRule = new alicloud.cfg.Rule("defaultRule", {
        ruleName: name,
        description: name,
        sourceIdentifier: "ecs-instances-in-vpc",
        sourceOwner: "ALIYUN",
        resourceTypesScopes: ["ACS::ECS::Instance"],
        riskLevel: 1,
        configRuleTriggerTypes: "ConfigurationItemChangeNotification",
        tagKeyScope: "tfTest",
        tagValueScope: "tfTest 123",
        resourceGroupIdsScope: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.ids?.[0]),
        excludeResourceIdsScope: defaultInstances.then(defaultInstances => defaultInstances.instances?.[0]?.id),
        regionIdsScope: "cn-hangzhou",
        inputParameters: {
            vpcIds: defaultInstances.then(defaultInstances => defaultInstances.instances?.[0]?.vpcId),
        },
    });
    const defaultCompliancePack = new alicloud.cfg.CompliancePack("defaultCompliancePack", {
        compliancePackName: "tf-testaccConfig1234",
        description: "tf-testaccConfig1234",
        riskLevel: 1,
        configRuleIds: [{
            configRuleId: defaultRule.id,
        }],
    });
    
    configuration:
      name:
        type: string
        default: example_name
    resources:
      defaultRule:
        type: alicloud:cfg:Rule
        properties:
          ruleName: ${name}
          description: ${name}
          sourceIdentifier: ecs-instances-in-vpc
          sourceOwner: ALIYUN
          resourceTypesScopes:
            - ACS::ECS::Instance
          riskLevel: 1
          configRuleTriggerTypes: ConfigurationItemChangeNotification
          tagKeyScope: tfTest
          tagValueScope: tfTest 123
          resourceGroupIdsScope: ${defaultResourceGroups.ids[0]}
          excludeResourceIdsScope: ${defaultInstances.instances[0].id}
          regionIdsScope: cn-hangzhou
          inputParameters:
            vpcIds: ${defaultInstances.instances[0].vpcId}
      defaultCompliancePack:
        type: alicloud:cfg:CompliancePack
        properties:
          compliancePackName: tf-testaccConfig1234
          description: tf-testaccConfig1234
          riskLevel: '1'
          configRuleIds:
            - configRuleId: ${defaultRule.id}
    variables:
      defaultInstances:
        fn::invoke:
          Function: alicloud:ecs:getInstances
          Arguments: {}
      defaultResourceGroups:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments:
            status: OK
    

    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: the compliance_pack_name supports modification since V1.146.0.

    Description string

    The Description of compliance pack.

    RiskLevel int

    The Risk Level. Valid values: 1: critical, 2: warning, 3: info.

    CompliancePackTemplateId string

    Compliance Package Template Id.

    ConfigRuleIds List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRuleIdArgs>

    A list of Config Rule IDs.

    ConfigRules List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRuleArgs>

    A list of Config Rules.

    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: the compliance_pack_name supports modification since V1.146.0.

    Description string

    The Description of compliance pack.

    RiskLevel int

    The Risk Level. Valid values: 1: critical, 2: warning, 3: info.

    CompliancePackTemplateId string

    Compliance Package Template Id.

    ConfigRuleIds []CompliancePackConfigRuleIdArgs

    A list of Config Rule IDs.

    ConfigRules []CompliancePackConfigRuleArgs

    A list of Config Rules.

    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: the compliance_pack_name supports modification since V1.146.0.

    description String

    The Description of compliance pack.

    riskLevel Integer

    The Risk Level. Valid values: 1: critical, 2: warning, 3: info.

    compliancePackTemplateId String

    Compliance Package Template Id.

    configRuleIds List<CompliancePackConfigRuleIdArgs>

    A list of Config Rule IDs.

    configRules List<CompliancePackConfigRuleArgs>

    A list of Config Rules.

    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: the compliance_pack_name supports modification since V1.146.0.

    description string

    The Description of compliance pack.

    riskLevel number

    The Risk Level. Valid values: 1: critical, 2: warning, 3: info.

    compliancePackTemplateId string

    Compliance Package Template Id.

    configRuleIds CompliancePackConfigRuleIdArgs[]

    A list of Config Rule IDs.

    configRules CompliancePackConfigRuleArgs[]

    A list of Config Rules.

    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: the compliance_pack_name supports modification since V1.146.0.

    description str

    The Description of compliance pack.

    risk_level int

    The Risk Level. Valid values: 1: critical, 2: warning, 3: info.

    compliance_pack_template_id str

    Compliance Package Template Id.

    config_rule_ids Sequence[CompliancePackConfigRuleIdArgs]

    A list of Config Rule IDs.

    config_rules Sequence[CompliancePackConfigRuleArgs]

    A list of Config Rules.

    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: the compliance_pack_name supports modification since V1.146.0.

    description String

    The Description of compliance pack.

    riskLevel Number

    The Risk Level. Valid values: 1: critical, 2: warning, 3: info.

    compliancePackTemplateId String

    Compliance Package Template Id.

    configRuleIds List<Property Map>

    A list of Config Rule IDs.

    configRules List<Property Map>

    A list of Config Rules.

    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 resource. The valid values: CREATING, ACTIVE.

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    The status of the resource. The valid values: CREATING, ACTIVE.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The status of the resource. The valid values: CREATING, ACTIVE.

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    The status of the resource. The valid values: CREATING, ACTIVE.

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    The status of the resource. The valid values: CREATING, ACTIVE.

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    The status of the resource. The valid values: CREATING, ACTIVE.

    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: the compliance_pack_name supports modification since V1.146.0.

    CompliancePackTemplateId string

    Compliance Package Template Id.

    ConfigRuleIds List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRuleIdArgs>

    A list of Config Rule IDs.

    ConfigRules List<Pulumi.AliCloud.Cfg.Inputs.CompliancePackConfigRuleArgs>

    A list of Config Rules.

    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: 1: critical, 2: warning, 3: info.

    Status string

    The status of the resource. The valid values: CREATING, ACTIVE.

    CompliancePackName string

    The Compliance Package Name. . NOTE: the compliance_pack_name supports modification since V1.146.0.

    CompliancePackTemplateId string

    Compliance Package Template Id.

    ConfigRuleIds []CompliancePackConfigRuleIdArgs

    A list of Config Rule IDs.

    ConfigRules []CompliancePackConfigRuleArgs

    A list of Config Rules.

    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: 1: critical, 2: warning, 3: info.

    Status string

    The status of the resource. The valid values: CREATING, ACTIVE.

    compliancePackName String

    The Compliance Package Name. . NOTE: the compliance_pack_name supports modification since V1.146.0.

    compliancePackTemplateId String

    Compliance Package Template Id.

    configRuleIds List<CompliancePackConfigRuleIdArgs>

    A list of Config Rule IDs.

    configRules List<CompliancePackConfigRuleArgs>

    A list of Config Rules.

    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: 1: critical, 2: warning, 3: info.

    status String

    The status of the resource. The valid values: CREATING, ACTIVE.

    compliancePackName string

    The Compliance Package Name. . NOTE: the compliance_pack_name supports modification since V1.146.0.

    compliancePackTemplateId string

    Compliance Package Template Id.

    configRuleIds CompliancePackConfigRuleIdArgs[]

    A list of Config Rule IDs.

    configRules CompliancePackConfigRuleArgs[]

    A list of Config Rules.

    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: 1: critical, 2: warning, 3: info.

    status string

    The status of the resource. The valid values: CREATING, ACTIVE.

    compliance_pack_name str

    The Compliance Package Name. . NOTE: the compliance_pack_name supports modification since V1.146.0.

    compliance_pack_template_id str

    Compliance Package Template Id.

    config_rule_ids Sequence[CompliancePackConfigRuleIdArgs]

    A list of Config Rule IDs.

    config_rules Sequence[CompliancePackConfigRuleArgs]

    A list of Config Rules.

    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: 1: critical, 2: warning, 3: info.

    status str

    The status of the resource. The valid values: CREATING, ACTIVE.

    compliancePackName String

    The Compliance Package Name. . NOTE: the compliance_pack_name supports modification since V1.146.0.

    compliancePackTemplateId String

    Compliance Package Template Id.

    configRuleIds List<Property Map>

    A list of Config Rule IDs.

    configRules List<Property Map>

    A list of Config Rules.

    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: 1: critical, 2: warning, 3: info.

    status String

    The status of the resource. The valid values: CREATING, ACTIVE.

    Supporting Types

    CompliancePackConfigRule

    ManagedRuleIdentifier string

    The Managed Rule Identifier.

    ConfigRuleParameters []CompliancePackConfigRuleConfigRuleParameter

    A list of Config Rule Parameters.

    managedRuleIdentifier String

    The Managed Rule Identifier.

    configRuleParameters List<CompliancePackConfigRuleConfigRuleParameter>

    A list of Config Rule Parameters.

    managedRuleIdentifier string

    The Managed Rule Identifier.

    configRuleParameters CompliancePackConfigRuleConfigRuleParameter[]

    A list of Config Rule Parameters.

    managed_rule_identifier str

    The Managed Rule Identifier.

    config_rule_parameters Sequence[CompliancePackConfigRuleConfigRuleParameter]

    A list of Config Rule Parameters.

    managedRuleIdentifier String

    The Managed Rule Identifier.

    configRuleParameters List<Property Map>

    A list of Config Rule Parameters.

    CompliancePackConfigRuleConfigRuleParameter

    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

    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.38.0 published on Friday, Jun 2, 2023 by Pulumi