The ALIYUN::ESA::ScheduledPreloadExecution resource type creates a plan to schedule and execute preload tasks in batches.
Syntax
{
"Type": "ALIYUN::ESA::ScheduledPreloadExecution",
"Properties": {
"Interval": Integer,
"SliceLen": Integer,
"ScheduledPreloadJobId": String,
"EndTime": String,
"StartTime": String
}
}
Properties
|
Parameter |
Type |
Required |
Updatable |
Description |
Constraint |
|
Interval |
Integer |
Yes |
Yes |
The interval between batch executions. |
Unit: seconds. |
|
ScheduledPreloadJobId |
String |
Yes |
No |
The ID of the preload task. |
None |
|
SliceLen |
Integer |
Yes |
Yes |
The number of URLs preloaded in each batch. |
None |
|
EndTime |
String |
No |
Yes |
The end time of the preload plan. |
None |
|
StartTime |
String |
No |
Yes |
The start time of the preload plan. |
None |
Return values
Fn::GetAtt
-
ScheduledPreloadExecutionId: The ID of the preload plan.
-
SliceLen: The number of URLs preloaded in each batch.
-
EndTime: The end time of the preload plan.
-
StartTime: The start time of the preload plan.
-
ScheduledPreloadJobId: The ID of the preload task.
-
Interval: The interval between batch executions. Unit: seconds.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SliceLen:
Type: Number
Description:
en: The number of URLs preloaded in each batch.
Required: true
ScheduledPreloadJobId:
Type: String
Description:
en: The ID of the preload task.
Required: true
Interval:
Type: Number
Description:
en: 'The interval between batch executions. Unit: seconds.'
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ESA::ScheduledPreloadExecution
Properties:
SliceLen:
Ref: SliceLen
ScheduledPreloadJobId:
Ref: ScheduledPreloadJobId
Interval:
Ref: Interval
Outputs:
ScheduledPreloadExecutionId:
Description: The ID of the preload plan.
Value:
Fn::GetAtt:
- ExtensionResource
- ScheduledPreloadExecutionId
SliceLen:
Description: The number of URLs preloaded in each batch.
Value:
Fn::GetAtt:
- ExtensionResource
- SliceLen
EndTime:
Description: The end time of the preload plan.
Value:
Fn::GetAtt:
- ExtensionResource
- EndTime
StartTime:
Description: The start time of the preload plan.
Value:
Fn::GetAtt:
- ExtensionResource
- StartTime
ScheduledPreloadJobId:
Description: The ID of the preload task.
Value:
Fn::GetAtt:
- ExtensionResource
- ScheduledPreloadJobId
Interval:
Description: 'The interval between batch executions. Unit: seconds.'
Value:
Fn::GetAtt:
- ExtensionResource
- Interval
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SliceLen": {
"Type": "Number",
"Description": {
"en": "The number of URLs preloaded in each batch."
},
"Required": true
},
"ScheduledPreloadJobId": {
"Type": "String",
"Description": {
"en": "The ID of the preload task."
},
"Required": true
},
"Interval": {
"Type": "Number",
"Description": {
"en": "The interval between batch executions. Unit: seconds."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ESA::ScheduledPreloadExecution",
"Properties": {
"SliceLen": {
"Ref": "SliceLen"
},
"ScheduledPreloadJobId": {
"Ref": "ScheduledPreloadJobId"
},
"Interval": {
"Ref": "Interval"
}
}
}
},
"Outputs": {
"ScheduledPreloadExecutionId": {
"Description": "The ID of the preload plan.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ScheduledPreloadExecutionId"
]
}
},
"SliceLen": {
"Description": "The number of URLs preloaded in each batch.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SliceLen"
]
}
},
"EndTime": {
"Description": "The end time of the preload plan.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EndTime"
]
}
},
"StartTime": {
"Description": "The start time of the preload plan.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StartTime"
]
}
},
"ScheduledPreloadJobId": {
"Description": "The ID of the preload task.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ScheduledPreloadJobId"
]
}
},
"Interval": {
"Description": "The interval between batch executions. Unit: seconds.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Interval"
]
}
}
}
}