alicloud.cfg.AggregateCompliancePack
Explore with Pulumi AI
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 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 defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
{
Status = "OK",
});
var defaultInstances = AliCloud.Ecs.GetInstances.Invoke();
var defaultAggregator = new AliCloud.Cfg.Aggregator("defaultAggregator", new()
{
AggregatorAccounts = new[]
{
new AliCloud.Cfg.Inputs.AggregatorAggregatorAccountArgs
{
AccountId = "140278452670****",
AccountName = "test-2",
AccountType = "ResourceDirectory",
},
},
AggregatorName = "tf-testaccaggregator",
Description = "tf-testaccaggregator",
});
var defaultAggregateConfigRule = new AliCloud.Cfg.AggregateConfigRule("defaultAggregateConfigRule", new()
{
AggregatorId = defaultAggregator.Id,
AggregateConfigRuleName = name,
SourceOwner = "ALIYUN",
SourceIdentifier = "ecs-cpu-min-count-limit",
ConfigRuleTriggerTypes = "ConfigurationItemChangeNotification",
ResourceTypesScopes = new[]
{
"ACS::ECS::Instance",
},
RiskLevel = 1,
Description = name,
ExcludeResourceIdsScope = defaultInstances.Apply(getInstancesResult => getInstancesResult.Ids[0]),
InputParameters =
{
{ "cpuCount", "4" },
},
RegionIdsScope = "cn-hangzhou",
ResourceGroupIdsScope = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
TagKeyScope = "tFTest",
TagValueScope = "forTF 123",
});
var defaultAggregateCompliancePack = new AliCloud.Cfg.AggregateCompliancePack("defaultAggregateCompliancePack", new()
{
AggregateCompliancePackName = "tf-testaccConfig1234",
AggregatorId = defaultAggregator.Id,
Description = "tf-testaccConfig1234",
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/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
}
defaultResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
Status: pulumi.StringRef("OK"),
}, nil)
if err != nil {
return err
}
defaultInstances, err := ecs.GetInstances(ctx, nil, nil)
if err != nil {
return err
}
defaultAggregator, err := cfg.NewAggregator(ctx, "defaultAggregator", &cfg.AggregatorArgs{
AggregatorAccounts: cfg.AggregatorAggregatorAccountArray{
&cfg.AggregatorAggregatorAccountArgs{
AccountId: pulumi.String("140278452670****"),
AccountName: pulumi.String("test-2"),
AccountType: pulumi.String("ResourceDirectory"),
},
},
AggregatorName: pulumi.String("tf-testaccaggregator"),
Description: pulumi.String("tf-testaccaggregator"),
})
if err != nil {
return err
}
defaultAggregateConfigRule, err := cfg.NewAggregateConfigRule(ctx, "defaultAggregateConfigRule", &cfg.AggregateConfigRuleArgs{
AggregatorId: defaultAggregator.ID(),
AggregateConfigRuleName: pulumi.String(name),
SourceOwner: pulumi.String("ALIYUN"),
SourceIdentifier: pulumi.String("ecs-cpu-min-count-limit"),
ConfigRuleTriggerTypes: pulumi.String("ConfigurationItemChangeNotification"),
ResourceTypesScopes: pulumi.StringArray{
pulumi.String("ACS::ECS::Instance"),
},
RiskLevel: pulumi.Int(1),
Description: pulumi.String(name),
ExcludeResourceIdsScope: *pulumi.String(defaultInstances.Ids[0]),
InputParameters: pulumi.AnyMap{
"cpuCount": pulumi.Any("4"),
},
RegionIdsScope: pulumi.String("cn-hangzhou"),
ResourceGroupIdsScope: *pulumi.String(defaultResourceGroups.Ids[0]),
TagKeyScope: pulumi.String("tFTest"),
TagValueScope: pulumi.String("forTF 123"),
})
if err != nil {
return err
}
_, err = cfg.NewAggregateCompliancePack(ctx, "defaultAggregateCompliancePack", &cfg.AggregateCompliancePackArgs{
AggregateCompliancePackName: pulumi.String("tf-testaccConfig1234"),
AggregatorId: defaultAggregator.ID(),
Description: pulumi.String("tf-testaccConfig1234"),
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.GetResourceGroupsArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstancesArgs;
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("example_name");
final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
.status("OK")
.build());
final var defaultInstances = EcsFunctions.getInstances();
var defaultAggregator = new Aggregator("defaultAggregator", AggregatorArgs.builder()
.aggregatorAccounts(AggregatorAggregatorAccountArgs.builder()
.accountId("140278452670****")
.accountName("test-2")
.accountType("ResourceDirectory")
.build())
.aggregatorName("tf-testaccaggregator")
.description("tf-testaccaggregator")
.build());
var defaultAggregateConfigRule = new AggregateConfigRule("defaultAggregateConfigRule", AggregateConfigRuleArgs.builder()
.aggregatorId(defaultAggregator.id())
.aggregateConfigRuleName(name)
.sourceOwner("ALIYUN")
.sourceIdentifier("ecs-cpu-min-count-limit")
.configRuleTriggerTypes("ConfigurationItemChangeNotification")
.resourceTypesScopes("ACS::ECS::Instance")
.riskLevel(1)
.description(name)
.excludeResourceIdsScope(defaultInstances.applyValue(getInstancesResult -> getInstancesResult.ids()[0]))
.inputParameters(Map.of("cpuCount", "4"))
.regionIdsScope("cn-hangzhou")
.resourceGroupIdsScope(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
.tagKeyScope("tFTest")
.tagValueScope("forTF 123")
.build());
var defaultAggregateCompliancePack = new AggregateCompliancePack("defaultAggregateCompliancePack", AggregateCompliancePackArgs.builder()
.aggregateCompliancePackName("tf-testaccConfig1234")
.aggregatorId(defaultAggregator.id())
.description("tf-testaccConfig1234")
.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 = "example_name"
default_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
default_instances = alicloud.ecs.get_instances()
default_aggregator = alicloud.cfg.Aggregator("defaultAggregator",
aggregator_accounts=[alicloud.cfg.AggregatorAggregatorAccountArgs(
account_id="140278452670****",
account_name="test-2",
account_type="ResourceDirectory",
)],
aggregator_name="tf-testaccaggregator",
description="tf-testaccaggregator")
default_aggregate_config_rule = alicloud.cfg.AggregateConfigRule("defaultAggregateConfigRule",
aggregator_id=default_aggregator.id,
aggregate_config_rule_name=name,
source_owner="ALIYUN",
source_identifier="ecs-cpu-min-count-limit",
config_rule_trigger_types="ConfigurationItemChangeNotification",
resource_types_scopes=["ACS::ECS::Instance"],
risk_level=1,
description=name,
exclude_resource_ids_scope=default_instances.ids[0],
input_parameters={
"cpuCount": "4",
},
region_ids_scope="cn-hangzhou",
resource_group_ids_scope=default_resource_groups.ids[0],
tag_key_scope="tFTest",
tag_value_scope="forTF 123")
default_aggregate_compliance_pack = alicloud.cfg.AggregateCompliancePack("defaultAggregateCompliancePack",
aggregate_compliance_pack_name="tf-testaccConfig1234",
aggregator_id=default_aggregator.id,
description="tf-testaccConfig1234",
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") || "example_name";
const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({
status: "OK",
});
const defaultInstances = alicloud.ecs.getInstances({});
const defaultAggregator = new alicloud.cfg.Aggregator("defaultAggregator", {
aggregatorAccounts: [{
accountId: "140278452670****",
accountName: "test-2",
accountType: "ResourceDirectory",
}],
aggregatorName: "tf-testaccaggregator",
description: "tf-testaccaggregator",
});
const defaultAggregateConfigRule = new alicloud.cfg.AggregateConfigRule("defaultAggregateConfigRule", {
aggregatorId: defaultAggregator.id,
aggregateConfigRuleName: name,
sourceOwner: "ALIYUN",
sourceIdentifier: "ecs-cpu-min-count-limit",
configRuleTriggerTypes: "ConfigurationItemChangeNotification",
resourceTypesScopes: ["ACS::ECS::Instance"],
riskLevel: 1,
description: name,
excludeResourceIdsScope: defaultInstances.then(defaultInstances => defaultInstances.ids?.[0]),
inputParameters: {
cpuCount: "4",
},
regionIdsScope: "cn-hangzhou",
resourceGroupIdsScope: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.ids?.[0]),
tagKeyScope: "tFTest",
tagValueScope: "forTF 123",
});
const defaultAggregateCompliancePack = new alicloud.cfg.AggregateCompliancePack("defaultAggregateCompliancePack", {
aggregateCompliancePackName: "tf-testaccConfig1234",
aggregatorId: defaultAggregator.id,
description: "tf-testaccConfig1234",
riskLevel: 1,
configRuleIds: [{
configRuleId: defaultAggregateConfigRule.configRuleId,
}],
});
configuration:
name:
type: string
default: example_name
resources:
defaultAggregator:
type: alicloud:cfg:Aggregator
properties:
aggregatorAccounts:
- accountId: 140278452670****
accountName: test-2
accountType: ResourceDirectory
aggregatorName: tf-testaccaggregator
description: tf-testaccaggregator
defaultAggregateConfigRule:
type: alicloud:cfg:AggregateConfigRule
properties:
aggregatorId: ${defaultAggregator.id}
aggregateConfigRuleName: ${name}
sourceOwner: ALIYUN
sourceIdentifier: ecs-cpu-min-count-limit
configRuleTriggerTypes: ConfigurationItemChangeNotification
resourceTypesScopes:
- ACS::ECS::Instance
riskLevel: 1
description: ${name}
excludeResourceIdsScope: ${defaultInstances.ids[0]}
inputParameters:
cpuCount: '4'
regionIdsScope: cn-hangzhou
resourceGroupIdsScope: ${defaultResourceGroups.ids[0]}
tagKeyScope: tFTest
tagValueScope: forTF 123
defaultAggregateCompliancePack:
type: alicloud:cfg:AggregateCompliancePack
properties:
aggregateCompliancePackName: tf-testaccConfig1234
aggregatorId: ${defaultAggregator.id}
description: tf-testaccConfig1234
riskLevel: 1
configRuleIds:
- configRuleId: ${defaultAggregateConfigRule.configRuleId}
variables:
defaultResourceGroups:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments:
status: OK
defaultInstances:
fn::invoke:
Function: alicloud:ecs:getInstances
Arguments: {}
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:
- Aggregate
Compliance stringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- Aggregator
Id string The ID of aggregator.
- Description string
The description of compliance package.
- Risk
Level int The Risk Level. Valid values:
1
: critical2
: warning3
: info.- Compliance
Pack stringTemplate Id The Template ID of compliance package.
- Config
Rule List<Pulumi.Ids Ali Cloud. Cfg. Inputs. Aggregate Compliance Pack Config Rule Id Args> A list of Config Rule IDs.
- Config
Rules List<Pulumi.Ali Cloud. Cfg. Inputs. Aggregate Compliance Pack Config Rule Args> A list of Config Rules.
Field 'config_rules' has been deprecated from provider version 1.141.0. New field 'config_rule_ids' instead.
- Aggregate
Compliance stringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- Aggregator
Id string The ID of aggregator.
- Description string
The description of compliance package.
- Risk
Level int The Risk Level. Valid values:
1
: critical2
: warning3
: info.- Compliance
Pack stringTemplate Id The Template ID of compliance package.
- Config
Rule []AggregateIds Compliance Pack Config Rule Id Args A list of Config Rule IDs.
- Config
Rules []AggregateCompliance Pack Config Rule Args A list of Config Rules.
Field 'config_rules' has been deprecated from provider version 1.141.0. New field 'config_rule_ids' instead.
- aggregate
Compliance StringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator
Id String The ID of aggregator.
- description String
The description of compliance package.
- risk
Level Integer The Risk Level. Valid values:
1
: critical2
: warning3
: info.- compliance
Pack StringTemplate Id The Template ID of compliance package.
- config
Rule List<AggregateIds Compliance Pack Config Rule Id Args> A list of Config Rule IDs.
- config
Rules List<AggregateCompliance Pack Config Rule Args> A list of Config Rules.
Field 'config_rules' has been deprecated from provider version 1.141.0. New field 'config_rule_ids' instead.
- aggregate
Compliance stringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator
Id string The ID of aggregator.
- description string
The description of compliance package.
- risk
Level number The Risk Level. Valid values:
1
: critical2
: warning3
: info.- compliance
Pack stringTemplate Id The Template ID of compliance package.
- config
Rule AggregateIds Compliance Pack Config Rule Id Args[] A list of Config Rule IDs.
- config
Rules AggregateCompliance Pack Config Rule Args[] A list of Config Rules.
Field 'config_rules' has been deprecated from provider version 1.141.0. New field 'config_rule_ids' instead.
- aggregate_
compliance_ strpack_ name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator_
id str The ID of aggregator.
- description str
The description of compliance package.
- risk_
level int The Risk Level. Valid values:
1
: critical2
: warning3
: info.- compliance_
pack_ strtemplate_ id The Template ID of compliance package.
- config_
rule_ Sequence[Aggregateids Compliance Pack Config Rule Id Args] A list of Config Rule IDs.
- config_
rules Sequence[AggregateCompliance Pack Config Rule Args] A list of Config Rules.
Field 'config_rules' has been deprecated from provider version 1.141.0. New field 'config_rule_ids' instead.
- aggregate
Compliance StringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator
Id String The ID of aggregator.
- description String
The description of compliance package.
- risk
Level Number The Risk Level. Valid values:
1
: critical2
: warning3
: info.- compliance
Pack StringTemplate Id The Template ID of compliance package.
- config
Rule List<Property Map>Ids A list of Config Rule IDs.
- config
Rules List<Property Map> A list of Config Rules.
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:
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_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.
- Aggregate
Compliance stringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- Aggregator
Id string The ID of aggregator.
- Compliance
Pack stringTemplate Id The Template ID of compliance package.
- Config
Rule List<Pulumi.Ids Ali Cloud. Cfg. Inputs. Aggregate Compliance Pack Config Rule Id Args> A list of Config Rule IDs.
- Config
Rules List<Pulumi.Ali Cloud. Cfg. Inputs. Aggregate Compliance Pack Config Rule Args> A list of Config Rules.
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.
- Risk
Level int The Risk Level. Valid values:
1
: critical2
: warning3
: info.- Status string
The status of the resource. The valid values:
CREATING
,ACTIVE
.
- Aggregate
Compliance stringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- Aggregator
Id string The ID of aggregator.
- Compliance
Pack stringTemplate Id The Template ID of compliance package.
- Config
Rule []AggregateIds Compliance Pack Config Rule Id Args A list of Config Rule IDs.
- Config
Rules []AggregateCompliance Pack Config Rule Args A list of Config Rules.
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.
- Risk
Level int The Risk Level. Valid values:
1
: critical2
: warning3
: info.- Status string
The status of the resource. The valid values:
CREATING
,ACTIVE
.
- aggregate
Compliance StringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator
Id String The ID of aggregator.
- compliance
Pack StringTemplate Id The Template ID of compliance package.
- config
Rule List<AggregateIds Compliance Pack Config Rule Id Args> A list of Config Rule IDs.
- config
Rules List<AggregateCompliance Pack Config Rule Args> A list of Config Rules.
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.
- risk
Level Integer The Risk Level. Valid values:
1
: critical2
: warning3
: info.- status String
The status of the resource. The valid values:
CREATING
,ACTIVE
.
- aggregate
Compliance stringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator
Id string The ID of aggregator.
- compliance
Pack stringTemplate Id The Template ID of compliance package.
- config
Rule AggregateIds Compliance Pack Config Rule Id Args[] A list of Config Rule IDs.
- config
Rules AggregateCompliance Pack Config Rule Args[] A list of Config Rules.
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.
- risk
Level number The Risk Level. Valid values:
1
: critical2
: warning3
: info.- status string
The status of the resource. The valid values:
CREATING
,ACTIVE
.
- aggregate_
compliance_ strpack_ name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator_
id str The ID of aggregator.
- compliance_
pack_ strtemplate_ id The Template ID of compliance package.
- config_
rule_ Sequence[Aggregateids Compliance Pack Config Rule Id Args] A list of Config Rule IDs.
- config_
rules Sequence[AggregateCompliance Pack Config Rule Args] A list of Config Rules.
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:
1
: critical2
: warning3
: info.- status str
The status of the resource. The valid values:
CREATING
,ACTIVE
.
- aggregate
Compliance StringPack Name The name of compliance package name. NOTE: the
aggregate_compliance_pack_name
supports modification since V1.145.0.- aggregator
Id String The ID of aggregator.
- compliance
Pack StringTemplate Id The Template ID of compliance package.
- config
Rule List<Property Map>Ids A list of Config Rule IDs.
- config
Rules List<Property Map> A list of Config Rules.
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.
- risk
Level Number The Risk Level. Valid values:
1
: critical2
: warning3
: info.- status String
The status of the resource. The valid values:
CREATING
,ACTIVE
.
Supporting Types
AggregateCompliancePackConfigRule
- Managed
Rule stringIdentifier The Managed Rule Identifier.
- Config
Rule List<Pulumi.Parameters Ali Cloud. Cfg. Inputs. Aggregate Compliance Pack Config Rule Config Rule Parameter> A list of parameter rules.
- Managed
Rule stringIdentifier The Managed Rule Identifier.
- Config
Rule []AggregateParameters Compliance Pack Config Rule Config Rule Parameter A list of parameter rules.
- managed
Rule StringIdentifier The Managed Rule Identifier.
- config
Rule List<AggregateParameters Compliance Pack Config Rule Config Rule Parameter> A list of parameter rules.
- managed
Rule stringIdentifier The Managed Rule Identifier.
- config
Rule AggregateParameters Compliance Pack Config Rule Config Rule Parameter[] A list of parameter rules.
- managed_
rule_ stridentifier The Managed Rule Identifier.
- config_
rule_ Sequence[Aggregateparameters Compliance Pack Config Rule Config Rule Parameter] A list of parameter rules.
- managed
Rule StringIdentifier The Managed Rule Identifier.
- config
Rule List<Property Map>Parameters A list of parameter rules.
AggregateCompliancePackConfigRuleConfigRuleParameter
- 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.
AggregateCompliancePackConfigRuleId
- Config
Rule stringId The rule ID of Aggregate Config Rule.
- Config
Rule stringId The rule ID of Aggregate Config Rule.
- config
Rule StringId The rule ID of Aggregate Config Rule.
- config
Rule stringId The rule ID of Aggregate Config Rule.
- config_
rule_ strid The rule ID of Aggregate Config Rule.
- config
Rule StringId 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.