AggregateCompliancePack
- Implements: IAggregateCompliancePack
This class encapsulates and extends the ROS resource type ALIYUN::Config::AggregateCompliancePack.
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: The risk level of the compliance pack. |
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. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
aggregatorIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property aggregatorId: Aggregator id.
compliancePackNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property compliancePackName: Compliance package name.
descriptionRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of compliance pack.
riskLevelRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property riskLevel: The risk level of the compliance pack.
Valid values:
- 1: High
- 2 (default): Medium
- 3: Low
compliancePackTemplateIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property compliancePackTemplateId: Compliance package template ID.
configRulesOptional
- 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.
defaultEnableOptional
- 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
excludeRegionIdsScopeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property excludeRegionIdsScope: The compliance package is invalid for the specified region ID.
excludeResourceGroupIdsScopeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property excludeResourceGroupIdsScope: The compliance package is invalid for the specified resource group ID.
excludeResourceIdsScopeOptional
- 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.
regionIdsScopeOptional
- 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.
resourceGroupIdsScopeOptional
- 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.
resourceIdsScopeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceIdsScope: The compliance package only takes effect on the specified resource ID.
tagKeyScopeOptional
- 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.
tagValueScopeOptional
- 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.
templateContentOptional
- 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. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | 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
fetchCondition
public RosCondition fetchCondition()
fetchDependency
public java.util.List<java.lang.String> fetchDependency()
fetchResourceDesc
public java.lang.String fetchResourceDesc()
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. |
env | com.aliyun.ros.cdk.core.IResourceEnvironment | The environment this resource belongs to. |
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 | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CompliancePackId: The ID of the compliance pack id. |
props | AggregateCompliancePackProps | No description. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
envRequired
public IResourceEnvironment getEnv();
- Type: com.aliyun.ros.cdk.core.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrCompliancePackIdRequired
public java.lang.Object getAttrCompliancePackId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CompliancePackId: The ID of the compliance pack id.
propsRequired
public AggregateCompliancePackProps getProps();