alicloud.cfg.CompliancePack
Explore with Pulumi AI
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
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 default = 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: _default.then(_default => _default.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: _default.then(_default => _default.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("default", {
compliancePackName: name,
description: "CloudGovernanceCenter evaluation",
riskLevel: 2,
configRuleIds: [
{
configRuleId: rule1.id,
},
{
configRuleId: rule2.id,
},
],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example-config-name"
default = 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[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[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("default",
compliance_pack_name=name,
description="CloudGovernanceCenter evaluation",
risk_level=2,
config_rule_ids=[
{
"config_rule_id": rule1.id,
},
{
"config_rule_id": 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
}
_default, 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(_default.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.StringMap{
"days": pulumi.String("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(_default.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.StringMap{
"maintainTimes": pulumi.String("02:00-04:00,06:00-08:00,12:00-13:00"),
},
})
if err != nil {
return err
}
_, err = cfg.NewCompliancePack(ctx, "default", &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
})
}
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 @default = 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 = @default.Apply(@default => @default.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 = @default.Apply(@default => @default.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("default", 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 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 default = 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(default_.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(default_.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());
}
}
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: ${default.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: ${default.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
name: default
properties:
compliancePackName: ${name}
description: CloudGovernanceCenter evaluation
riskLevel: '2'
configRuleIds:
- configRuleId: ${rule1.id}
- configRuleId: ${rule2.id}
variables:
default:
fn::invoke:
Function: alicloud:getRegions
Arguments:
current: true
Create CompliancePack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CompliancePack(name: string, args: CompliancePackArgs, opts?: CustomResourceOptions);
@overload
def CompliancePack(resource_name: str,
args: CompliancePackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CompliancePack(resource_name: str,
opts: Optional[ResourceOptions] = None,
compliance_pack_name: Optional[str] = None,
description: Optional[str] = None,
risk_level: Optional[int] = None,
compliance_pack_template_id: Optional[str] = None,
config_rule_ids: Optional[Sequence[CompliancePackConfigRuleIdArgs]] = None,
config_rules: Optional[Sequence[CompliancePackConfigRuleArgs]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var compliancePackResource = new AliCloud.Cfg.CompliancePack("compliancePackResource", new()
{
CompliancePackName = "string",
Description = "string",
RiskLevel = 0,
CompliancePackTemplateId = "string",
ConfigRuleIds = new[]
{
new AliCloud.Cfg.Inputs.CompliancePackConfigRuleIdArgs
{
ConfigRuleId = "string",
},
},
});
example, err := cfg.NewCompliancePack(ctx, "compliancePackResource", &cfg.CompliancePackArgs{
CompliancePackName: pulumi.String("string"),
Description: pulumi.String("string"),
RiskLevel: pulumi.Int(0),
CompliancePackTemplateId: pulumi.String("string"),
ConfigRuleIds: cfg.CompliancePackConfigRuleIdArray{
&cfg.CompliancePackConfigRuleIdArgs{
ConfigRuleId: pulumi.String("string"),
},
},
})
var compliancePackResource = new CompliancePack("compliancePackResource", CompliancePackArgs.builder()
.compliancePackName("string")
.description("string")
.riskLevel(0)
.compliancePackTemplateId("string")
.configRuleIds(CompliancePackConfigRuleIdArgs.builder()
.configRuleId("string")
.build())
.build());
compliance_pack_resource = alicloud.cfg.CompliancePack("compliancePackResource",
compliance_pack_name="string",
description="string",
risk_level=0,
compliance_pack_template_id="string",
config_rule_ids=[alicloud.cfg.CompliancePackConfigRuleIdArgs(
config_rule_id="string",
)])
const compliancePackResource = new alicloud.cfg.CompliancePack("compliancePackResource", {
compliancePackName: "string",
description: "string",
riskLevel: 0,
compliancePackTemplateId: "string",
configRuleIds: [{
configRuleId: "string",
}],
});
type: alicloud:cfg:CompliancePack
properties:
compliancePackName: string
compliancePackTemplateId: string
configRuleIds:
- configRuleId: string
description: string
riskLevel: 0
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:
- Compliance
Pack stringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - Description string
- The Description of compliance pack.
- Risk
Level int - The Risk Level. Valid values:
- Compliance
Pack stringTemplate Id - Compliance Package Template Id.
- Config
Rule List<Pulumi.Ids Ali Cloud. Cfg. Inputs. Compliance Pack Config Rule Id> - A list of Config Rule IDs. See
config_rule_ids
below. - Config
Rules List<Pulumi.Ali Cloud. Cfg. Inputs. Compliance Pack Config Rule> - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead.
- Compliance
Pack stringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - Description string
- The Description of compliance pack.
- Risk
Level int - The Risk Level. Valid values:
- Compliance
Pack stringTemplate Id - Compliance Package Template Id.
- Config
Rule []ComplianceIds Pack Config Rule Id Args - A list of Config Rule IDs. See
config_rule_ids
below. - Config
Rules []CompliancePack Config Rule Args - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead.
- compliance
Pack StringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - description String
- The Description of compliance pack.
- risk
Level Integer - The Risk Level. Valid values:
- compliance
Pack StringTemplate Id - Compliance Package Template Id.
- config
Rule List<ComplianceIds Pack Config Rule Id> - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules List<CompliancePack Config Rule> - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead.
- compliance
Pack stringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - description string
- The Description of compliance pack.
- risk
Level number - The Risk Level. Valid values:
- compliance
Pack stringTemplate Id - Compliance Package Template Id.
- config
Rule ComplianceIds Pack Config Rule Id[] - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules CompliancePack Config Rule[] - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead.
- compliance_
pack_ strname - 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_ strtemplate_ id - Compliance Package Template Id.
- config_
rule_ Sequence[Complianceids Pack Config Rule Id Args] - A list of Config Rule IDs. See
config_rule_ids
below. - config_
rules Sequence[CompliancePack Config Rule Args] - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead.
- compliance
Pack StringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - description String
- The Description of compliance pack.
- risk
Level Number - The Risk Level. Valid values:
- compliance
Pack StringTemplate Id - Compliance Package Template Id.
- config
Rule List<Property Map>Ids - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules List<Property Map> - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead.
Outputs
All input properties are implicitly available as output properties. Additionally, the CompliancePack resource produces the following output properties:
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.
- Compliance
Pack stringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - Compliance
Pack stringTemplate Id - Compliance Package Template Id.
- Config
Rule List<Pulumi.Ids Ali Cloud. Cfg. Inputs. Compliance Pack Config Rule Id> - A list of Config Rule IDs. See
config_rule_ids
below. - Config
Rules List<Pulumi.Ali Cloud. Cfg. Inputs. Compliance Pack Config Rule> - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead. - Description string
- The Description of compliance pack.
- Risk
Level int - The Risk Level. Valid values:
- Status string
- The status of the Compliance Pack.
- Compliance
Pack stringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - Compliance
Pack stringTemplate Id - Compliance Package Template Id.
- Config
Rule []ComplianceIds Pack Config Rule Id Args - A list of Config Rule IDs. See
config_rule_ids
below. - Config
Rules []CompliancePack Config Rule Args - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead. - Description string
- The Description of compliance pack.
- Risk
Level int - The Risk Level. Valid values:
- Status string
- The status of the Compliance Pack.
- compliance
Pack StringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - compliance
Pack StringTemplate Id - Compliance Package Template Id.
- config
Rule List<ComplianceIds Pack Config Rule Id> - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules List<CompliancePack Config Rule> - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead. - description String
- The Description of compliance pack.
- risk
Level Integer - The Risk Level. Valid values:
- status String
- The status of the Compliance Pack.
- compliance
Pack stringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - compliance
Pack stringTemplate Id - Compliance Package Template Id.
- config
Rule ComplianceIds Pack Config Rule Id[] - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules CompliancePack Config Rule[] - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead. - description string
- The Description of compliance pack.
- risk
Level number - The Risk Level. Valid values:
- status string
- The status of the Compliance Pack.
- compliance_
pack_ strname - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - compliance_
pack_ strtemplate_ id - Compliance Package Template Id.
- config_
rule_ Sequence[Complianceids Pack Config Rule Id Args] - A list of Config Rule IDs. See
config_rule_ids
below. - config_
rules Sequence[CompliancePack Config Rule Args] - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_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.
- compliance
Pack StringName - The Compliance Package Name. NOTE: From version 1.146.0,
compliance_pack_name
can be modified. - compliance
Pack StringTemplate Id - Compliance Package Template Id.
- config
Rule List<Property Map>Ids - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules List<Property Map> - A list of Config Rules. See
config_rules
below. NOTE: Fieldconfig_rules
has been deprecated from provider version 1.141.0. New fieldconfig_rule_ids
instead. - description String
- The Description of compliance pack.
- risk
Level Number - The Risk Level. Valid values:
- status String
- The status of the Compliance Pack.
Supporting Types
CompliancePackConfigRule, CompliancePackConfigRuleArgs
- Managed
Rule stringIdentifier - The Managed Rule Identifier.
- Config
Rule List<Pulumi.Parameters Ali Cloud. Cfg. Inputs. Compliance Pack Config Rule Config Rule Parameter> - A list of Config Rule Parameters. See
config_rule_parameters
below.
- Managed
Rule stringIdentifier - The Managed Rule Identifier.
- Config
Rule []ComplianceParameters Pack Config Rule Config Rule Parameter - A list of Config Rule Parameters. See
config_rule_parameters
below.
- managed
Rule StringIdentifier - The Managed Rule Identifier.
- config
Rule List<ComplianceParameters Pack Config Rule Config Rule Parameter> - A list of Config Rule Parameters. See
config_rule_parameters
below.
- managed
Rule stringIdentifier - The Managed Rule Identifier.
- config
Rule ComplianceParameters Pack Config Rule Config Rule Parameter[] - A list of Config Rule Parameters. See
config_rule_parameters
below.
- managed_
rule_ stridentifier - The Managed Rule Identifier.
- config_
rule_ Sequence[Complianceparameters Pack Config Rule Config Rule Parameter] - A list of Config Rule Parameters. See
config_rule_parameters
below.
- managed
Rule StringIdentifier - The Managed Rule Identifier.
- config
Rule List<Property Map>Parameters - A list of Config Rule Parameters. See
config_rule_parameters
below.
CompliancePackConfigRuleConfigRuleParameter, CompliancePackConfigRuleConfigRuleParameterArgs
- Parameter
Name string - The parameter name.
- Parameter
Value string - The parameter value.
- Parameter
Name string - The parameter name.
- Parameter
Value string - The parameter value.
- parameter
Name String - The parameter name.
- parameter
Value String - The parameter value.
- parameter
Name string - The parameter name.
- parameter
Value string - The parameter value.
- parameter_
name str - The parameter name.
- parameter_
value str - The parameter value.
- parameter
Name String - The parameter name.
- parameter
Value String - The parameter value.
CompliancePackConfigRuleId, CompliancePackConfigRuleIdArgs
- Config
Rule stringId - The rule ID of Config Rule.
- Config
Rule stringId - The rule ID of Config Rule.
- config
Rule StringId - The rule ID of Config Rule.
- config
Rule stringId - The rule ID of Config Rule.
- config_
rule_ strid - The rule ID of Config Rule.
- config
Rule StringId - 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>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.