Skip to content

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.ListConfigRulesProperty> 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: Compliance package risk level.

Value: 1: High risk. 2: Medium risk. 3: Low risk.


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.ListConfigRulesProperty>

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.
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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • 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.

xRequired

  • 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.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


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 IResolvable getAttrCompliancePackId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CompliancePackId: The ID of the compliance pack id.