CycleTask
- Implements: ICycleTask
This class encapsulates and extends the ROS resource type ALIYUN::ThreatDetection::CycleTask.
Initializers
import com.aliyun.ros.cdk.threatdetection.CycleTask;
CycleTask.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.enable(java.lang.Number)
.enable(IResolvable)
.firstDateStr(java.lang.Number)
.firstDateStr(IResolvable)
.intervalPeriod(java.lang.Number)
.intervalPeriod(IResolvable)
.periodUnit(java.lang.String)
.periodUnit(IResolvable)
.targetEndTime(java.lang.Number)
.targetEndTime(IResolvable)
.targetStartTime(java.lang.Number)
.targetStartTime(IResolvable)
.taskName(java.lang.String)
.taskName(IResolvable)
.taskType(java.lang.String)
.taskType(IResolvable)
// .param(IResolvable)
// .param(java.util.Map<java.lang.String, java.lang.Object>)
// .source(java.lang.String)
// .source(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. |
enable | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property enable: Specifies whether to enable the task. |
firstDateStr | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property firstDateStr: The first time when the task is performed. |
intervalPeriod | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property intervalPeriod: The interval at which the task is run. |
periodUnit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property periodUnit: The unit of the scan interval. |
targetEndTime | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property targetEndTime: The time when the task ends. |
targetStartTime | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property targetStartTime: The time when the task is started. |
taskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property taskName: The task name. |
taskType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property taskType: The type of the task. |
param | com.aliyun.ros.cdk.core.IResolvable OR java.util.Map | Property param: The additional information. |
source | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property source: The additional source for the task. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
enableRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property enable: Specifies whether to enable the task.
Valid values:
- 1: yes
- 0: no.
firstDateStrRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property firstDateStr: The first time when the task is performed.
intervalPeriodRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property intervalPeriod: The interval at which the task is run.
periodUnitRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property periodUnit: The unit of the scan interval.
Valid values:
- day
- hour.
targetEndTimeRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property targetEndTime: The time when the task ends.
Unit: hours.
targetStartTimeRequired
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property targetStartTime: The time when the task is started.
Unit: hours.
taskNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property taskName: The task name.
taskTypeRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property taskType: The type of the task.
Valid values:
- VIRUS_VUL_SCHEDULE_SCAN: virus scan task
- IMAGE_SCAN: image scan task
- EMG_VUL_SCHEDULE_SCAN: urgent vulnerability scan task.
paramOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property param: The additional information.
sourceOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property source: The additional source for the task.
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.CycleTask;
CycleTask.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: Configuration ID. |
attrEnable | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Enable: Specifies whether to enable the task. |
attrFirstDateStr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute FirstDateStr: The first time when the task is performed. |
attrIntervalPeriod | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute IntervalPeriod: The interval at which the task is run. |
attrParam | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute Param: The additional information. |
attrPeriodUnit | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute PeriodUnit: The unit of the scan interval. |
attrTargetEndTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TargetEndTime: The time when the task ends. |
attrTargetStartTime | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TargetStartTime: The time when the task is started. |
attrTaskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TaskName: The task name. |
attrTaskType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Attribute TaskType: The type of the task. |
props | CycleTaskProps | 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: Configuration ID.
attrEnableRequired
public java.lang.Object getAttrEnable();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Enable: Specifies whether to enable the task.
attrFirstDateStrRequired
public java.lang.Object getAttrFirstDateStr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute FirstDateStr: The first time when the task is performed.
attrIntervalPeriodRequired
public java.lang.Object getAttrIntervalPeriod();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute IntervalPeriod: The interval at which the task is run.
attrParamRequired
public java.lang.Object getAttrParam();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute Param: The additional information.
attrPeriodUnitRequired
public java.lang.Object getAttrPeriodUnit();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute PeriodUnit: The unit of the scan interval.
attrTargetEndTimeRequired
public java.lang.Object getAttrTargetEndTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TargetEndTime: The time when the task ends.
Unit: hours.
attrTargetStartTimeRequired
public java.lang.Object getAttrTargetStartTime();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TargetStartTime: The time when the task is started.
Unit: hours.
attrTaskNameRequired
public java.lang.Object getAttrTaskName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TaskName: The task name.
attrTaskTypeRequired
public java.lang.Object getAttrTaskType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Attribute TaskType: The type of the task.
propsRequired
public CycleTaskProps getProps();
- Type: CycleTaskProps