WebLockConfig
- Implements: IWebLockConfig
This class encapsulates and extends the ROS resource type ALIYUN::ThreatDetection::WebLockConfig.
Initializers
import com.aliyun.ros.cdk.threatdetection.WebLockConfig;
WebLockConfig.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.defenceMode(java.lang.String)
.defenceMode(IResolvable)
.dir(java.lang.String)
.dir(IResolvable)
.localBackupDir(java.lang.String)
.localBackupDir(IResolvable)
.uuid(java.lang.String)
.uuid(IResolvable)
// .exclusiveDir(java.lang.String)
// .exclusiveDir(IResolvable)
// .exclusiveFile(java.lang.String)
// .exclusiveFile(IResolvable)
// .exclusiveFileType(java.lang.String)
// .exclusiveFileType(IResolvable)
// .inclusiveFile(java.lang.String)
// .inclusiveFile(IResolvable)
// .inclusiveFileType(java.lang.String)
// .inclusiveFileType(IResolvable)
// .mode(java.lang.String)
// .mode(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. |
defenceMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property defenceMode: The prevention mode. |
dir | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dir: The directory for which you want to enable web tamper proofing. |
localBackupDir | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property localBackupDir: The local path to the backup files of the protected directory.\ The directory format of a Linux server is different from that of a Windows server. You must enter the directory in the required format based on your operating system. Examples: * Linux server: \/usr\/local\/aegis\/bak * Windows server: C:\Program Files (x86)\xxx\Aegis\bak. |
uuid | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property uuid: The UUID of the server for which you want to add a directory to protect. |
exclusiveDir | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property exclusiveDir: The directory for which you want to disable web tamper proofing. |
exclusiveFile | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property exclusiveFile: The file for which you want to disable web tamper proofing. |
exclusiveFileType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property exclusiveFileType: The type of file for which you want to disable web tamper proofing. |
inclusiveFile | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property inclusiveFile: The file that has web tamper proofing enabled. |
inclusiveFileType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property inclusiveFileType: The type of file for which you want to enable web tamper proofing. |
mode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property mode: The protection mode of web tamper proofing. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
defenceModeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property defenceMode: The prevention mode.
Valid values:
- block: Interception Mode
- audit: Alert Mode.
dirRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dir: The directory for which you want to enable web tamper proofing.
localBackupDirRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property localBackupDir: The local path to the backup files of the protected directory.\ The directory format of a Linux server is different from that of a Windows server. You must enter the directory in the required format based on your operating system. Examples: * Linux server: \/usr\/local\/aegis\/bak * Windows server: C:\Program Files (x86)\xxx\Aegis\bak.
uuidRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property uuid: The UUID of the server for which you want to add a directory to protect.
You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.
exclusiveDirOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property exclusiveDir: The directory for which you want to disable web tamper proofing.
If you set Mode to blacklist, you must specify this parameter.
exclusiveFileOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property exclusiveFile: The file for which you want to disable web tamper proofing.
If you set Mode to blacklist, you must specify this parameter.
exclusiveFileTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property exclusiveFileType: The type of file for which you want to disable web tamper proofing.
Separate multiple types with semicolons (;). Valid values:
- php
- jsp
- asp
- aspx
- js
- cgi
- html
- htm
- xml
- shtml
- shtm
- jpg
- gif
- png
If you set Mode to blacklist, you must specify this parameter.
inclusiveFileOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property inclusiveFile: The file that has web tamper proofing enabled.
If the value of Mode is whitelist, this parameter is returned.
inclusiveFileTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property inclusiveFileType: The type of file for which you want to enable web tamper proofing.
Separate multiple types with semicolons (;). Valid values:
- php
- jsp
- asp
- aspx
- js
- cgi
- html
- htm
- xml
- shtml
- shtm
- jpg
- gif
- png
If you set Mode to whitelist, you must specify this parameter.
modeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property mode: The protection mode of web tamper proofing.
Valid values:
- whitelist: In this mode, web tamper proofing is enabled for the specified directories and file types.
- blacklist: In this mode, web tamper proofing is enabled for the unspecified sub-directories, file types, and files in the protected directories.
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.WebLockConfig;
WebLockConfig.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. |
attrConfigId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ConfigId: The configuration ID of the protected directory. |
attrDefenceMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute DefenceMode: The prevention mode. |
attrDir | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Dir: The directory for which you want to enable web tamper proofing. |
attrExclusiveDir | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ExclusiveDir: The directory for which you want to disable web tamper proofing. |
attrExclusiveFile | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ExclusiveFile: The file for which you want to disable web tamper proofing. |
attrExclusiveFileType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute ExclusiveFileType: The type of file for which you want to disable web tamper proofing. |
attrInclusiveFile | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InclusiveFile: The file that has web tamper proofing enabled. |
attrInclusiveFileType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute InclusiveFileType: The type of file for which you want to enable web tamper proofing. |
attrLocalBackupDir | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute LocalBackupDir: The local path to the backup files of the protected directory. |
attrMode | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Mode: The protection mode of web tamper proofing. |
attrUuid | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Uuid: The UUID of the server for which you want to add a directory to protect. |
props | WebLockConfigProps | 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
attrConfigIdRequired
public java.lang.Object getAttrConfigId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ConfigId: The configuration ID of the protected directory.
attrDefenceModeRequired
public java.lang.Object getAttrDefenceMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute DefenceMode: The prevention mode.
attrDirRequired
public java.lang.Object getAttrDir();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Dir: The directory for which you want to enable web tamper proofing.
attrExclusiveDirRequired
public java.lang.Object getAttrExclusiveDir();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ExclusiveDir: The directory for which you want to disable web tamper proofing.
attrExclusiveFileRequired
public java.lang.Object getAttrExclusiveFile();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ExclusiveFile: The file for which you want to disable web tamper proofing.
attrExclusiveFileTypeRequired
public java.lang.Object getAttrExclusiveFileType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute ExclusiveFileType: The type of file for which you want to disable web tamper proofing.
Separate multiple types with semicolons (;).
attrInclusiveFileRequired
public java.lang.Object getAttrInclusiveFile();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InclusiveFile: The file that has web tamper proofing enabled.
attrInclusiveFileTypeRequired
public java.lang.Object getAttrInclusiveFileType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute InclusiveFileType: The type of file for which you want to enable web tamper proofing.
Separate multiple types with semicolons (;).
attrLocalBackupDirRequired
public java.lang.Object getAttrLocalBackupDir();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute LocalBackupDir: The local path to the backup files of the protected directory.
attrModeRequired
public java.lang.Object getAttrMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Mode: The protection mode of web tamper proofing.
attrUuidRequired
public java.lang.Object getAttrUuid();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Uuid: The UUID of the server for which you want to add a directory to protect.
propsRequired
public WebLockConfigProps getProps();
- Type: WebLockConfigProps