AggregateCompliancePack
This class encapsulates and extends the ROS resource type ALIYUN::Config::AggregateCompliancePack
, which is used to create a compliance package for an account group.
Initializers
import com.aliyun.ros.cdk.config.AggregateCompliancePack;
AggregateCompliancePack.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.aggregatorId(java.lang.String)
.aggregatorId(IResolvable)
.compliancePackName(java.lang.String)
.compliancePackName(IResolvable)
.description(java.lang.String)
.description(IResolvable)
.riskLevel(java.lang.Number)
.riskLevel(IResolvable)
// .compliancePackTemplateId(java.lang.String)
// .compliancePackTemplateId(IResolvable)
// .configRules(IResolvable)
// .configRules(java.util.List<IResolvable)
// .configRules(ConfigRulesProperty>)
// .defaultEnable(java.lang.Boolean)
// .defaultEnable(IResolvable)
// .excludeRegionIdsScope(java.lang.String)
// .excludeRegionIdsScope(IResolvable)
// .excludeResourceGroupIdsScope(java.lang.String)
// .excludeResourceGroupIdsScope(IResolvable)
// .excludeResourceIdsScope(IResolvable)
// .excludeResourceIdsScope(java.util.List<java.lang.String)
// .excludeResourceIdsScope(IResolvable>)
// .regionIdsScope(IResolvable)
// .regionIdsScope(java.util.List<java.lang.String)
// .regionIdsScope(IResolvable>)
// .resourceGroupIdsScope(IResolvable)
// .resourceGroupIdsScope(java.util.List<java.lang.String)
// .resourceGroupIdsScope(IResolvable>)
// .resourceIdsScope(java.lang.String)
// .resourceIdsScope(IResolvable)
// .tagKeyScope(java.lang.String)
// .tagKeyScope(IResolvable)
// .tagValueScope(java.lang.String)
// .tagValueScope(IResolvable)
// .templateContent(java.lang.String)
// .templateContent(IResolvable)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
aggregatorId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property aggregatorId: Aggregator id. |
compliancePackName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property compliancePackName: Compliance package name. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: The description of compliance pack. |
riskLevel |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property riskLevel: Compliance package risk level. |
compliancePackTemplateId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property compliancePackTemplateId: Compliance package template ID. |
configRules |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property configRules: List of rules in the compliance package. |
defaultEnable |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property defaultEnable: Whether the rule supports quick activation. |
excludeRegionIdsScope |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property excludeRegionIdsScope: The compliance package is invalid for the specified region ID. |
excludeResourceGroupIdsScope |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property excludeResourceGroupIdsScope: The compliance package is invalid for the specified resource group ID. |
excludeResourceIdsScope |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property excludeResourceIdsScope: The compliance package is invalid for the specified resource ID, that is, no evaluation is performed on the resource. |
regionIdsScope |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property regionIdsScope: The compliance package only takes effect for resources in the specified region ID. |
resourceGroupIdsScope |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property resourceGroupIdsScope: The compliance package only takes effect on resources in the specified resource group ID. |
resourceIdsScope |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceIdsScope: The compliance package only takes effect on the specified resource ID. |
tagKeyScope |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property tagKeyScope: Compliance packages only take effect on resources bound to the specified tag key. |
tagValueScope |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property tagValueScope: Compliance packages only take effect on resources bound to specified tag key-value pairs.TagValueScope needs to be used in conjunction with TagKeyScope. |
templateContent |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property templateContent: Template information used to generate compliance packages. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
aggregatorId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property aggregatorId: Aggregator id.
compliancePackName
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property compliancePackName: Compliance package name.
description
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of compliance pack.
riskLevel
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property riskLevel: Compliance package risk level.
Value: 1: High risk. 2: Medium risk. 3: Low risk.
compliancePackTemplateId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property compliancePackTemplateId: Compliance package template ID.
configRules
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
ConfigRulesProperty>
Property configRules: List of rules in the compliance package.
Note: Either this parameter or TemplateContent must be set.
defaultEnable
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property defaultEnable: Whether the rule supports quick activation.
Value: true: This rule will be enabled when the compliance package is quickly enabled. false (default): disable
excludeRegionIdsScope
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property excludeRegionIdsScope: The compliance package is invalid for the specified region ID.
excludeResourceGroupIdsScope
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property excludeResourceGroupIdsScope: The compliance package is invalid for the specified resource group ID.
excludeResourceIdsScope
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property excludeResourceIdsScope: The compliance package is invalid for the specified resource ID, that is, no evaluation is performed on the resource.
regionIdsScope
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property regionIdsScope: The compliance package only takes effect for resources in the specified region ID.
resourceGroupIdsScope
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property resourceGroupIdsScope: The compliance package only takes effect on resources in the specified resource group ID.
resourceIdsScope
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceIdsScope: The compliance package only takes effect on the specified resource ID.
tagKeyScope
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property tagKeyScope: Compliance packages only take effect on resources bound to the specified tag key.
tagValueScope
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property tagValueScope: Compliance packages only take effect on resources bound to specified tag key-value pairs.TagValueScope needs to be used in conjunction with TagKeyScope.
templateContent
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property templateContent: Template information used to generate compliance packages.
Note: Either this parameter or ConfigRules must be set.
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.config.AggregateCompliancePack;
AggregateCompliancePack.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrCompliancePackId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute CompliancePackId: The ID of the compliance pack id. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrCompliancePackId
Required
public IResolvable getAttrCompliancePackId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute CompliancePackId: The ID of the compliance pack id.