CustomCheckItem
- Implements: ICustomCheckItem
This class encapsulates and extends the ROS resource type ALIYUN::ThreatDetection::CustomCheckItem.
Initializers
import com.aliyun.ros.cdk.threatdetection.CustomCheckItem;
CustomCheckItem.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.checkRule(IResolvable)
.checkRule(java.util.Map<java.lang.String, java.lang.Object>)
.checkShowName(java.lang.String)
.checkShowName(IResolvable)
.instanceSubType(java.lang.String)
.instanceSubType(IResolvable)
.instanceType(java.lang.String)
.instanceType(IResolvable)
.riskLevel(java.lang.String)
.riskLevel(IResolvable)
.sectionIds(IResolvable)
.sectionIds(java.util.List<java.lang.Number)
.sectionIds(IResolvable>)
.status(java.lang.String)
.status(IResolvable)
.vendor(java.lang.String)
.vendor(IResolvable)
// .assistInfo(IResolvable)
// .assistInfo(AssistInfoProperty)
// .description(IResolvable)
// .description(DescriptionProperty)
// .remark(java.lang.String)
// .remark(IResolvable)
// .solution(IResolvable)
// .solution(SolutionProperty)
.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. |
checkRule | com.aliyun.ros.cdk.core.IResolvable OR java.util.Map | Property checkRule: Check Item Check Rules. |
checkShowName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property checkShowName: Check item display name. |
instanceSubType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceSubType: Asset subtype to which the check item belongs. |
instanceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property instanceType: Asset type to which the check item belongs. |
riskLevel | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property riskLevel: Risk level of inspection items. |
sectionIds | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property sectionIds: CHECK SECTION OF INSPECTIONS. |
status | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property status: Check item status. |
vendor | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vendor: Vendor to which the item belongs. |
assistInfo | com.aliyun.ros.cdk.core.IResolvable OR AssistInfoProperty | Property assistInfo: Check Item Description Help Information. |
description | com.aliyun.ros.cdk.core.IResolvable OR DescriptionProperty | Property description: Check item description information. |
remark | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property remark: Remarks. |
solution | com.aliyun.ros.cdk.core.IResolvable OR SolutionProperty | Property solution: Check Item Solution. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
checkRuleRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property checkRule: Check Item Check Rules.
checkShowNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property checkShowName: Check item display name.
instanceSubTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceSubType: Asset subtype to which the check item belongs.
instanceTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceType: Asset type to which the check item belongs.
riskLevelRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property riskLevel: Risk level of inspection items.
sectionIdsRequired
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property sectionIds: CHECK SECTION OF INSPECTIONS.
statusRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property status: Check item status.
Values: EDIT: Editing in progress RELEASE: Published
vendorRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vendor: Vendor to which the item belongs.
assistInfoOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR AssistInfoProperty
Property assistInfo: Check Item Description Help Information.
descriptionOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR DescriptionProperty
Property description: Check item description information.
remarkOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property remark: Remarks.
solutionOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR SolutionProperty
Property solution: Check Item Solution.
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.threatdetection.CustomCheckItem;
CustomCheckItem.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. |
attrAssistInfo | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute AssistInfo: Check Item Description Help Information. |
attrCheckId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CheckId: The first ID of the resource. |
attrCheckRule | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CheckRule: Check Item Check Rules. |
attrCheckShowName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute CheckShowName: Check item display name. |
attrDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Description: Check item description information. |
attrInstanceSubType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InstanceSubType: Asset subtype to which the check item belongs. |
attrInstanceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InstanceType: Asset type to which the check item belongs. |
attrRemark | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Remark: Remarks. |
attrRiskLevel | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute RiskLevel: Risk level of inspection items. |
attrSectionIds | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute SectionIds: CHECK SECTION OF INSPECTIONS. |
attrSolution | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Solution: Check Item Solution. |
attrVendor | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Vendor: Vendor to which the item belongs. |
props | CustomCheckItemProps | 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
attrAssistInfoRequired
public java.lang.Object getAttrAssistInfo();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute AssistInfo: Check Item Description Help Information.
attrCheckIdRequired
public java.lang.Object getAttrCheckId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CheckId: The first ID of the resource.
attrCheckRuleRequired
public java.lang.Object getAttrCheckRule();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CheckRule: Check Item Check Rules.
attrCheckShowNameRequired
public java.lang.Object getAttrCheckShowName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute CheckShowName: Check item display name.
attrDescriptionRequired
public java.lang.Object getAttrDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Description: Check item description information.
attrInstanceSubTypeRequired
public java.lang.Object getAttrInstanceSubType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceSubType: Asset subtype to which the check item belongs.
attrInstanceTypeRequired
public java.lang.Object getAttrInstanceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceType: Asset type to which the check item belongs.
attrRemarkRequired
public java.lang.Object getAttrRemark();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Remark: Remarks.
attrRiskLevelRequired
public java.lang.Object getAttrRiskLevel();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute RiskLevel: Risk level of inspection items.
attrSectionIdsRequired
public java.lang.Object getAttrSectionIds();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute SectionIds: CHECK SECTION OF INSPECTIONS.
attrSolutionRequired
public java.lang.Object getAttrSolution();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Solution: Check Item Solution.
attrVendorRequired
public java.lang.Object getAttrVendor();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Vendor: Vendor to which the item belongs.
propsRequired
public CustomCheckItemProps getProps();
- Type: CustomCheckItemProps