Instance
This class encapsulates and extends the ROS resource type ALIYUN::SAS::Instance
, which is used to purchase Security Center.
Initializers
import com.aliyun.ros.cdk.sas.Instance;
Instance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.period(java.lang.Number)
.period(IResolvable)
.periodUnit(java.lang.String)
.periodUnit(IResolvable)
// .antiRansomware(java.lang.Number)
// .antiRansomware(IResolvable)
// .antiRansomwareManageService(java.lang.Boolean)
// .antiRansomwareManageService(IResolvable)
// .autoPay(java.lang.Boolean)
// .autoPay(IResolvable)
// .autoRenew(java.lang.Boolean)
// .autoRenew(IResolvable)
// .cloudHoneypot(java.lang.Boolean)
// .cloudHoneypot(IResolvable)
// .configurationAssessment(java.lang.Boolean)
// .configurationAssessment(IResolvable)
// .containerImageScan(java.lang.Number)
// .containerImageScan(IResolvable)
// .edition(java.lang.String)
// .edition(IResolvable)
// .logAnalysis(java.lang.Number)
// .logAnalysis(IResolvable)
// .maliciousFileDetectionSdk(java.lang.Boolean)
// .maliciousFileDetectionSdk(IResolvable)
// .protectedServers(java.lang.Number)
// .protectedServers(IResolvable)
// .quotaForApplicationProtection(java.lang.Number)
// .quotaForApplicationProtection(IResolvable)
// .quotaForCloudHoneypot(java.lang.Number)
// .quotaForCloudHoneypot(IResolvable)
// .quotaForConfigurationAssessment(java.lang.Number)
// .quotaForConfigurationAssessment(IResolvable)
// .quotaForMaliciousFileDetectionSdk(java.lang.Number)
// .quotaForMaliciousFileDetectionSdk(IResolvable)
// .quotaForVulnerabilityFixing(java.lang.Number)
// .quotaForVulnerabilityFixing(IResolvable)
// .quotaForWebTamperProofing(java.lang.Number)
// .quotaForWebTamperProofing(IResolvable)
// .threatAnalysis(java.lang.Boolean)
// .threatAnalysis(IResolvable)
// .threatAnalysisLogStorageCapacity(java.lang.Number)
// .threatAnalysisLogStorageCapacity(IResolvable)
// .vCore(java.lang.Number)
// .vCore(IResolvable)
// .vulnerabilityFixing(java.lang.Boolean)
// .vulnerabilityFixing(IResolvable)
// .webTamperProtection(java.lang.Boolean)
// .webTamperProtection(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. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: The subscription period of the firewallIf PeriodUnit is month, the valid range is 1, 3, 6 If periodUnit is year, the valid range is 1, 2, 3. |
periodUnit |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property periodUnit: The unit of the subscription duration. |
antiRansomware |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property antiRansomware: Security Center provides a comprehensive anti-ransomware solution to protect your business. |
antiRansomwareManageService |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property antiRansomwareManageService: Provide you with security hosting services such as anti-ransomware configuration, monitoring, and anti-ransomware incident emergency response. |
autoPay |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property autoPay: Whether to auto pay the bill.Default: True. |
autoRenew |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Whether to auto renew the prepay instance.Default: False. |
cloudHoneypot |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property cloudHoneypot: The cloud honeypot feature can capture attacks in a timely and efficient manner. |
configurationAssessment |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property configurationAssessment: The configuration assessment feature detects configuration errors and security risks on cloud services from the following dimensions: identity and permission management, security risks in Alibaba Cloud services, and compliance risks.This ensures the security of the running environment of your cloud services. |
containerImageScan |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property containerImageScan: Security Center provides the container image scan feature to protect containers. |
edition |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property edition: The version of Security center. |
logAnalysis |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property logAnalysis: In response to the requirements of the network security law, which requires logs to be stored for at least 180 days, we recommend that you configure a 40GB log storage each server. |
maliciousFileDetectionSdk |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property maliciousFileDetectionSdk: The configuration assessment feature detects configuration errors and security risks on cloud services from the following dimensions: identity and permission management, security risks in Alibaba Cloud services, and compliance risks. |
protectedServers |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property protectedServers: Authorization is the same as the number of servers you have. |
quotaForApplicationProtection |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quotaForApplicationProtection: The application protection feature can detect attacks on applications and provide self-protection during application runtime. |
quotaForCloudHoneypot |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quotaForCloudHoneypot:. |
quotaForConfigurationAssessment |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quotaForConfigurationAssessment:. |
quotaForMaliciousFileDetectionSdk |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quotaForMaliciousFileDetectionSdk:. |
quotaForVulnerabilityFixing |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quotaForVulnerabilityFixing: Specify the quota for vulnerability fixing based on the number of vulnerabilities that you want to fix each month. |
quotaForWebTamperProofing |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property quotaForWebTamperProofing:. |
threatAnalysis |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property threatAnalysis: The threat analysis feature allows you to handle alerts that are generated for assets in the cloud within different accounts and assets of multiple cloud services in a centralized manner. |
threatAnalysisLogStorageCapacity |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property threatAnalysisLogStorageCapacity:. |
vCore |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property vCore: This parameter indicates the number of server vCPUs. |
vulnerabilityFixing |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property vulnerabilityFixing: The vulnerability fixing feature allows you to fix system vulnerabilities with a few clicks. |
webTamperProtection |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property webTamperProtection: To ensure that the website information of important systems is not maliciously tampered with, there are bad content such as hanging horses, black chains, illegal implantation of terrorist threats, pornography, etc. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
period
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: The subscription period of the firewallIf PeriodUnit is month, the valid range is 1, 3, 6 If periodUnit is year, the valid range is 1, 2, 3.
periodUnit
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property periodUnit: The unit of the subscription duration.
Valid values: Month Year
antiRansomware
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property antiRansomware: Security Center provides a comprehensive anti-ransomware solution to protect your business.
We recommend that you configure a data protection capacity of 50GB for each server.
antiRansomwareManageService
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property antiRansomwareManageService: Provide you with security hosting services such as anti-ransomware configuration, monitoring, and anti-ransomware incident emergency response.
Note:
autoPay
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoPay: Whether to auto pay the bill.Default: True.
autoRenew
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether to auto renew the prepay instance.Default: False.
cloudHoneypot
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property cloudHoneypot: The cloud honeypot feature can capture attacks in a timely and efficient manner.
You can use the feature to protect your core assets and detect attacks in attack and defense scenarios.
configurationAssessment
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property configurationAssessment: The configuration assessment feature detects configuration errors and security risks on cloud services from the following dimensions: identity and permission management, security risks in Alibaba Cloud services, and compliance risks.This ensures the security of the running environment of your cloud services.
containerImageScan
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property containerImageScan: Security Center provides the container image scan feature to protect containers.
Security Center can detect CVEs, application vulnerabilities, viruses, and malicious samples and allows you to handle the detected risks. You can configure this parameter based on the number of images or digests. For example, if the number of images or digests that are updated in the previous day is 10, you can set this parameter to 300 for a monthly subscription or to 3650 for a yearly subscription. This is more cost-effective.
edition
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property edition: The version of Security center.
logAnalysis
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property logAnalysis: In response to the requirements of the network security law, which requires logs to be stored for at least 180 days, we recommend that you configure a 40GB log storage each server.
Log analysis supports multi-dimensional security logs of cloud assets, out-of-the-box reports, and powerful SQL syntax analysis, so as to monitor business status, troubleshoot attacks, security operations such as traceability and positioning are easier.
maliciousFileDetectionSdk
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property maliciousFileDetectionSdk: The configuration assessment feature detects configuration errors and security risks on cloud services from the following dimensions: identity and permission management, security risks in Alibaba Cloud services, and compliance risks.
This ensures the security of the running environment of your cloud services.
protectedServers
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property protectedServers: Authorization is the same as the number of servers you have.
quotaForApplicationProtection
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quotaForApplicationProtection: The application protection feature can detect attacks on applications and provide self-protection during application runtime.
The feature supports simple and convenient O&M and can effectively defend against zero-day and OWASP Top vulnerabilities. The feature is a value-added feature. You are charged based on the number of assets on which the RASP agent is installed. You must configure protection policies after you purchase the feature.
quotaForCloudHoneypot
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quotaForCloudHoneypot:.
quotaForConfigurationAssessment
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quotaForConfigurationAssessment:.
quotaForMaliciousFileDetectionSdk
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quotaForMaliciousFileDetectionSdk:.
quotaForVulnerabilityFixing
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quotaForVulnerabilityFixing: Specify the quota for vulnerability fixing based on the number of vulnerabilities that you want to fix each month.
The quota is equal to the total number of vulnerabilities that you want to fix on all servers regardless of the vulnerability names. For example, if you use Security Center to fix the same vulnerability on 10 servers, the quota is deducted by 10.
quotaForWebTamperProofing
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property quotaForWebTamperProofing:.
threatAnalysis
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property threatAnalysis: The threat analysis feature allows you to handle alerts that are generated for assets in the cloud within different accounts and assets of multiple cloud services in a centralized manner.
The feature also allows you to handle risks with a few clicks. The feature provides automatic orchestration and response capabilities.
threatAnalysisLogStorageCapacity
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property threatAnalysisLogStorageCapacity:.
vCore
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property vCore: This parameter indicates the number of server vCPUs.
vulnerabilityFixing
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property vulnerabilityFixing: The vulnerability fixing feature allows you to fix system vulnerabilities with a few clicks.
This improves O&M efficiency. You can separately purchase the vulnerability fixing feature. You are charged based on the number of times that you perform vulnerability fixing.
webTamperProtection
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property webTamperProtection: To ensure that the website information of important systems is not maliciously tampered with, there are bad content such as hanging horses, black chains, illegal implantation of terrorist threats, pornography, etc.
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.sas.Instance;
Instance.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. |
attrInstanceId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InstanceId: Instance 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
attrInstanceId
Required
public IResolvable getAttrInstanceId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceId: Instance Id.