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 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") || "terraform_example";
const default = alicloud.resourcemanager.getAccounts({
status: "CreateSuccess",
});
const defaultAggregator = new alicloud.cfg.Aggregator("default", {
aggregatorAccounts: [{
accountId: _default.then(_default => _default.accounts?.[0]?.accountId),
accountName: _default.then(_default => _default.accounts?.[0]?.displayName),
accountType: "ResourceDirectory",
}],
aggregatorName: name,
description: name,
aggregatorType: "CUSTOM",
});
const defaultAggregateConfigRule = new alicloud.cfg.AggregateConfigRule("default", {
aggregateConfigRuleName: "contains-tag",
aggregatorId: defaultAggregator.id,
configRuleTriggerTypes: "ConfigurationItemChangeNotification",
sourceOwner: "ALIYUN",
sourceIdentifier: "contains-tag",
description: name,
riskLevel: 1,
resourceTypesScopes: ["ACS::ECS::Instance"],
inputParameters: {
key: "example",
value: "example",
},
});
const defaultAggregateCompliancePack = new alicloud.cfg.AggregateCompliancePack("default", {
aggregateCompliancePackName: name,
aggregatorId: defaultAggregator.id,
description: name,
riskLevel: 1,
configRuleIds: [{
configRuleId: defaultAggregateConfigRule.configRuleId,
}],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform_example"
default = alicloud.resourcemanager.get_accounts(status="CreateSuccess")
default_aggregator = alicloud.cfg.Aggregator("default",
aggregator_accounts=[{
"account_id": default.accounts[0].account_id,
"account_name": default.accounts[0].display_name,
"account_type": "ResourceDirectory",
}],
aggregator_name=name,
description=name,
aggregator_type="CUSTOM")
default_aggregate_config_rule = alicloud.cfg.AggregateConfigRule("default",
aggregate_config_rule_name="contains-tag",
aggregator_id=default_aggregator.id,
config_rule_trigger_types="ConfigurationItemChangeNotification",
source_owner="ALIYUN",
source_identifier="contains-tag",
description=name,
risk_level=1,
resource_types_scopes=["ACS::ECS::Instance"],
input_parameters={
"key": "example",
"value": "example",
})
default_aggregate_compliance_pack = alicloud.cfg.AggregateCompliancePack("default",
aggregate_compliance_pack_name=name,
aggregator_id=default_aggregator.id,
description=name,
risk_level=1,
config_rule_ids=[{
"config_rule_id": default_aggregate_config_rule.config_rule_id,
}])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cfg"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := resourcemanager.GetAccounts(ctx, &resourcemanager.GetAccountsArgs{
Status: pulumi.StringRef("CreateSuccess"),
}, nil)
if err != nil {
return err
}
defaultAggregator, err := cfg.NewAggregator(ctx, "default", &cfg.AggregatorArgs{
AggregatorAccounts: cfg.AggregatorAggregatorAccountArray{
&cfg.AggregatorAggregatorAccountArgs{
AccountId: pulumi.String(_default.Accounts[0].AccountId),
AccountName: pulumi.String(_default.Accounts[0].DisplayName),
AccountType: pulumi.String("ResourceDirectory"),
},
},
AggregatorName: pulumi.String(name),
Description: pulumi.String(name),
AggregatorType: pulumi.String("CUSTOM"),
})
if err != nil {
return err
}
defaultAggregateConfigRule, err := cfg.NewAggregateConfigRule(ctx, "default", &cfg.AggregateConfigRuleArgs{
AggregateConfigRuleName: pulumi.String("contains-tag"),
AggregatorId: defaultAggregator.ID(),
ConfigRuleTriggerTypes: pulumi.String("ConfigurationItemChangeNotification"),
SourceOwner: pulumi.String("ALIYUN"),
SourceIdentifier: pulumi.String("contains-tag"),
Description: pulumi.String(name),
RiskLevel: pulumi.Int(1),
ResourceTypesScopes: pulumi.StringArray{
pulumi.String("ACS::ECS::Instance"),
},
InputParameters: pulumi.StringMap{
"key": pulumi.String("example"),
"value": pulumi.String("example"),
},
})
if err != nil {
return err
}
_, err = cfg.NewAggregateCompliancePack(ctx, "default", &cfg.AggregateCompliancePackArgs{
AggregateCompliancePackName: pulumi.String(name),
AggregatorId: defaultAggregator.ID(),
Description: pulumi.String(name),
RiskLevel: pulumi.Int(1),
ConfigRuleIds: cfg.AggregateCompliancePackConfigRuleIdArray{
&cfg.AggregateCompliancePackConfigRuleIdArgs{
ConfigRuleId: defaultAggregateConfigRule.ConfigRuleId,
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform_example";
var @default = AliCloud.ResourceManager.GetAccounts.Invoke(new()
{
Status = "CreateSuccess",
});
var defaultAggregator = new AliCloud.Cfg.Aggregator("default", new()
{
AggregatorAccounts = new[]
{
new AliCloud.Cfg.Inputs.AggregatorAggregatorAccountArgs
{
AccountId = @default.Apply(@default => @default.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.AccountId)),
AccountName = @default.Apply(@default => @default.Apply(getAccountsResult => getAccountsResult.Accounts[0]?.DisplayName)),
AccountType = "ResourceDirectory",
},
},
AggregatorName = name,
Description = name,
AggregatorType = "CUSTOM",
});
var defaultAggregateConfigRule = new AliCloud.Cfg.AggregateConfigRule("default", new()
{
AggregateConfigRuleName = "contains-tag",
AggregatorId = defaultAggregator.Id,
ConfigRuleTriggerTypes = "ConfigurationItemChangeNotification",
SourceOwner = "ALIYUN",
SourceIdentifier = "contains-tag",
Description = name,
RiskLevel = 1,
ResourceTypesScopes = new[]
{
"ACS::ECS::Instance",
},
InputParameters =
{
{ "key", "example" },
{ "value", "example" },
},
});
var defaultAggregateCompliancePack = new AliCloud.Cfg.AggregateCompliancePack("default", new()
{
AggregateCompliancePackName = name,
AggregatorId = defaultAggregator.Id,
Description = name,
RiskLevel = 1,
ConfigRuleIds = new[]
{
new AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRuleIdArgs
{
ConfigRuleId = defaultAggregateConfigRule.ConfigRuleId,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetAccountsArgs;
import com.pulumi.alicloud.cfg.Aggregator;
import com.pulumi.alicloud.cfg.AggregatorArgs;
import com.pulumi.alicloud.cfg.inputs.AggregatorAggregatorAccountArgs;
import com.pulumi.alicloud.cfg.AggregateConfigRule;
import com.pulumi.alicloud.cfg.AggregateConfigRuleArgs;
import com.pulumi.alicloud.cfg.AggregateCompliancePack;
import com.pulumi.alicloud.cfg.AggregateCompliancePackArgs;
import com.pulumi.alicloud.cfg.inputs.AggregateCompliancePackConfigRuleIdArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform_example");
final var default = ResourcemanagerFunctions.getAccounts(GetAccountsArgs.builder()
.status("CreateSuccess")
.build());
var defaultAggregator = new Aggregator("defaultAggregator", AggregatorArgs.builder()
.aggregatorAccounts(AggregatorAggregatorAccountArgs.builder()
.accountId(default_.accounts()[0].accountId())
.accountName(default_.accounts()[0].displayName())
.accountType("ResourceDirectory")
.build())
.aggregatorName(name)
.description(name)
.aggregatorType("CUSTOM")
.build());
var defaultAggregateConfigRule = new AggregateConfigRule("defaultAggregateConfigRule", AggregateConfigRuleArgs.builder()
.aggregateConfigRuleName("contains-tag")
.aggregatorId(defaultAggregator.id())
.configRuleTriggerTypes("ConfigurationItemChangeNotification")
.sourceOwner("ALIYUN")
.sourceIdentifier("contains-tag")
.description(name)
.riskLevel(1)
.resourceTypesScopes("ACS::ECS::Instance")
.inputParameters(Map.ofEntries(
Map.entry("key", "example"),
Map.entry("value", "example")
))
.build());
var defaultAggregateCompliancePack = new AggregateCompliancePack("defaultAggregateCompliancePack", AggregateCompliancePackArgs.builder()
.aggregateCompliancePackName(name)
.aggregatorId(defaultAggregator.id())
.description(name)
.riskLevel(1)
.configRuleIds(AggregateCompliancePackConfigRuleIdArgs.builder()
.configRuleId(defaultAggregateConfigRule.configRuleId())
.build())
.build());
}
}
configuration:
name:
type: string
default: terraform_example
resources:
defaultAggregator:
type: alicloud:cfg:Aggregator
name: default
properties:
aggregatorAccounts:
- accountId: ${default.accounts[0].accountId}
accountName: ${default.accounts[0].displayName}
accountType: ResourceDirectory
aggregatorName: ${name}
description: ${name}
aggregatorType: CUSTOM
defaultAggregateConfigRule:
type: alicloud:cfg:AggregateConfigRule
name: default
properties:
aggregateConfigRuleName: contains-tag
aggregatorId: ${defaultAggregator.id}
configRuleTriggerTypes: ConfigurationItemChangeNotification
sourceOwner: ALIYUN
sourceIdentifier: contains-tag
description: ${name}
riskLevel: 1
resourceTypesScopes:
- ACS::ECS::Instance
inputParameters:
key: example
value: example
defaultAggregateCompliancePack:
type: alicloud:cfg:AggregateCompliancePack
name: default
properties:
aggregateCompliancePackName: ${name}
aggregatorId: ${defaultAggregator.id}
description: ${name}
riskLevel: 1
configRuleIds:
- configRuleId: ${defaultAggregateConfigRule.configRuleId}
variables:
default:
fn::invoke:
Function: alicloud:resourcemanager:getAccounts
Arguments:
status: CreateSuccess
Create AggregateCompliancePack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AggregateCompliancePack(name: string, args: AggregateCompliancePackArgs, opts?: CustomResourceOptions);
@overload
def AggregateCompliancePack(resource_name: str,
args: AggregateCompliancePackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AggregateCompliancePack(resource_name: str,
opts: Optional[ResourceOptions] = None,
aggregate_compliance_pack_name: Optional[str] = None,
aggregator_id: Optional[str] = None,
description: Optional[str] = None,
risk_level: Optional[int] = None,
compliance_pack_template_id: Optional[str] = None,
config_rule_ids: Optional[Sequence[AggregateCompliancePackConfigRuleIdArgs]] = None,
config_rules: Optional[Sequence[AggregateCompliancePackConfigRuleArgs]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var aggregateCompliancePackResource = new AliCloud.Cfg.AggregateCompliancePack("aggregateCompliancePackResource", new()
{
AggregateCompliancePackName = "string",
AggregatorId = "string",
Description = "string",
RiskLevel = 0,
CompliancePackTemplateId = "string",
ConfigRuleIds = new[]
{
new AliCloud.Cfg.Inputs.AggregateCompliancePackConfigRuleIdArgs
{
ConfigRuleId = "string",
},
},
});
example, err := cfg.NewAggregateCompliancePack(ctx, "aggregateCompliancePackResource", &cfg.AggregateCompliancePackArgs{
AggregateCompliancePackName: pulumi.String("string"),
AggregatorId: pulumi.String("string"),
Description: pulumi.String("string"),
RiskLevel: pulumi.Int(0),
CompliancePackTemplateId: pulumi.String("string"),
ConfigRuleIds: cfg.AggregateCompliancePackConfigRuleIdArray{
&cfg.AggregateCompliancePackConfigRuleIdArgs{
ConfigRuleId: pulumi.String("string"),
},
},
})
var aggregateCompliancePackResource = new AggregateCompliancePack("aggregateCompliancePackResource", AggregateCompliancePackArgs.builder()
.aggregateCompliancePackName("string")
.aggregatorId("string")
.description("string")
.riskLevel(0)
.compliancePackTemplateId("string")
.configRuleIds(AggregateCompliancePackConfigRuleIdArgs.builder()
.configRuleId("string")
.build())
.build());
aggregate_compliance_pack_resource = alicloud.cfg.AggregateCompliancePack("aggregateCompliancePackResource",
aggregate_compliance_pack_name="string",
aggregator_id="string",
description="string",
risk_level=0,
compliance_pack_template_id="string",
config_rule_ids=[{
"config_rule_id": "string",
}])
const aggregateCompliancePackResource = new alicloud.cfg.AggregateCompliancePack("aggregateCompliancePackResource", {
aggregateCompliancePackName: "string",
aggregatorId: "string",
description: "string",
riskLevel: 0,
compliancePackTemplateId: "string",
configRuleIds: [{
configRuleId: "string",
}],
});
type: alicloud:cfg:AggregateCompliancePack
properties:
aggregateCompliancePackName: string
aggregatorId: string
compliancePackTemplateId: string
configRuleIds:
- configRuleId: string
description: string
riskLevel: 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AggregateCompliancePack resource accepts the following input properties:
- Aggregate
Compliance stringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - Aggregator
Id string - The ID of aggregator.
- Description string
- The description of compliance package.
- Risk
Level int - The Risk Level. Valid values:
- 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> - A list of Config Rule IDs. See
config_rule_ids
below. - Config
Rules List<Pulumi.Ali Cloud. Cfg. Inputs. Aggregate 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.
- Aggregate
Compliance stringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - Aggregator
Id string - The ID of aggregator.
- Description string
- The description of compliance package.
- Risk
Level int - The Risk Level. Valid values:
- 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. See
config_rule_ids
below. - Config
Rules []AggregateCompliance Pack 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.
- aggregate
Compliance StringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator
Id String - The ID of aggregator.
- description String
- The description of compliance package.
- risk
Level Integer - The Risk Level. Valid values:
- compliance
Pack StringTemplate Id - The Template ID of compliance package.
- config
Rule List<AggregateIds Compliance Pack Config Rule Id> - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules List<AggregateCompliance 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.
- aggregate
Compliance stringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator
Id string - The ID of aggregator.
- description string
- The description of compliance package.
- risk
Level number - The Risk Level. Valid values:
- compliance
Pack stringTemplate Id - The Template ID of compliance package.
- config
Rule AggregateIds Compliance Pack Config Rule Id[] - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules AggregateCompliance 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.
- aggregate_
compliance_ strpack_ name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator_
id str - The ID of aggregator.
- description str
- The description of compliance package.
- risk_
level int - The Risk Level. Valid values:
- compliance_
pack_ strtemplate_ id - The Template ID of compliance package.
- config_
rule_ Sequence[Aggregateids Compliance Pack Config Rule Id Args] - A list of Config Rule IDs. See
config_rule_ids
below. - config_
rules Sequence[AggregateCompliance Pack 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.
- aggregate
Compliance StringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator
Id String - The ID of aggregator.
- description String
- The description of compliance package.
- risk
Level Number - The Risk Level. Valid values:
- compliance
Pack StringTemplate Id - The Template ID of compliance package.
- 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 AggregateCompliancePack resource produces the following output properties:
- Aggregator
Compliance stringPack Id - The ID of the compliance package.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the Aggregate Compliance Pack.
- Aggregator
Compliance stringPack Id - The ID of the compliance package.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The status of the Aggregate Compliance Pack.
- aggregator
Compliance StringPack Id - The ID of the compliance package.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the Aggregate Compliance Pack.
- aggregator
Compliance stringPack Id - The ID of the compliance package.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The status of the Aggregate Compliance Pack.
- aggregator_
compliance_ strpack_ id - The ID of the compliance package.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The status of the Aggregate Compliance Pack.
- aggregator
Compliance StringPack Id - The ID of the compliance package.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The status of the Aggregate Compliance Pack.
Look up Existing AggregateCompliancePack Resource
Get an existing AggregateCompliancePack resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AggregateCompliancePackState, opts?: CustomResourceOptions): AggregateCompliancePack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aggregate_compliance_pack_name: Optional[str] = None,
aggregator_compliance_pack_id: Optional[str] = None,
aggregator_id: Optional[str] = None,
compliance_pack_template_id: Optional[str] = None,
config_rule_ids: Optional[Sequence[AggregateCompliancePackConfigRuleIdArgs]] = None,
config_rules: Optional[Sequence[AggregateCompliancePackConfigRuleArgs]] = None,
description: Optional[str] = None,
risk_level: Optional[int] = None,
status: Optional[str] = None) -> AggregateCompliancePack
func GetAggregateCompliancePack(ctx *Context, name string, id IDInput, state *AggregateCompliancePackState, opts ...ResourceOption) (*AggregateCompliancePack, error)
public static AggregateCompliancePack Get(string name, Input<string> id, AggregateCompliancePackState? state, CustomResourceOptions? opts = null)
public static AggregateCompliancePack get(String name, Output<String> id, AggregateCompliancePackState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aggregate
Compliance stringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - Aggregator
Compliance stringPack Id - The ID of the compliance package.
- 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> - A list of Config Rule IDs. See
config_rule_ids
below. - Config
Rules List<Pulumi.Ali Cloud. Cfg. Inputs. Aggregate 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 package.
- Risk
Level int - The Risk Level. Valid values:
- Status string
- The status of the Aggregate Compliance Pack.
- Aggregate
Compliance stringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - Aggregator
Compliance stringPack Id - The ID of the compliance package.
- 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. See
config_rule_ids
below. - Config
Rules []AggregateCompliance Pack 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 package.
- Risk
Level int - The Risk Level. Valid values:
- Status string
- The status of the Aggregate Compliance Pack.
- aggregate
Compliance StringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator
Compliance StringPack Id - The ID of the compliance package.
- 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> - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules List<AggregateCompliance 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 package.
- risk
Level Integer - The Risk Level. Valid values:
- status String
- The status of the Aggregate Compliance Pack.
- aggregate
Compliance stringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator
Compliance stringPack Id - The ID of the compliance package.
- 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[] - A list of Config Rule IDs. See
config_rule_ids
below. - config
Rules AggregateCompliance 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 package.
- risk
Level number - The Risk Level. Valid values:
- status string
- The status of the Aggregate Compliance Pack.
- aggregate_
compliance_ strpack_ name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator_
compliance_ strpack_ id - The ID of the compliance package.
- 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. See
config_rule_ids
below. - config_
rules Sequence[AggregateCompliance Pack 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 package.
- risk_
level int - The Risk Level. Valid values:
- status str
- The status of the Aggregate Compliance Pack.
- aggregate
Compliance StringPack Name - The name of compliance package name. NOTE: From version 1.145.0,
aggregate_compliance_pack_name
can be modified. - aggregator
Compliance StringPack Id - The ID of the compliance package.
- 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. 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 package.
- risk
Level Number - The Risk Level. Valid values:
- status String
- The status of the Aggregate Compliance Pack.
Supporting Types
AggregateCompliancePackConfigRule, AggregateCompliancePackConfigRuleArgs
- 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. See
config_rule_parameters
below.
- Managed
Rule stringIdentifier - The Managed Rule Identifier.
- Config
Rule []AggregateParameters Compliance Pack Config Rule Config Rule Parameter - A list of parameter rules. See
config_rule_parameters
below.
- managed
Rule StringIdentifier - The Managed Rule Identifier.
- config
Rule List<AggregateParameters Compliance Pack Config Rule Config Rule Parameter> - A list of parameter rules. See
config_rule_parameters
below.
- managed
Rule stringIdentifier - The Managed Rule Identifier.
- config
Rule AggregateParameters Compliance Pack Config Rule Config Rule Parameter[] - A list of parameter rules. See
config_rule_parameters
below.
- managed_
rule_ stridentifier - The Managed Rule Identifier.
- config_
rule_ Sequence[Aggregateparameters Compliance Pack Config Rule Config Rule Parameter] - A list of parameter rules. See
config_rule_parameters
below.
- managed
Rule StringIdentifier - The Managed Rule Identifier.
- config
Rule List<Property Map>Parameters - A list of parameter rules. See
config_rule_parameters
below.
AggregateCompliancePackConfigRuleConfigRuleParameter, AggregateCompliancePackConfigRuleConfigRuleParameterArgs
- 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, AggregateCompliancePackConfigRuleIdArgs
- 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>
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.