ALIYUN::ESA::ScheduledPreloadExecution
更新时间:
复制 MD 格式
ALIYUN::ESA::ScheduledPreloadExecution类型用于制定批量新增定时预热任务的计划。
语法
{
"Type": "ALIYUN::ESA::ScheduledPreloadExecution",
"Properties": {
"Interval": Integer,
"SliceLen": Integer,
"ScheduledPreloadJobId": String,
"EndTime": String,
"StartTime": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
Interval |
Integer |
是 |
是 |
每批次执行之间的时间间隔。 |
单位:秒。 |
|
ScheduledPreloadJobId |
String |
是 |
否 |
预取任务的ID。 |
无 |
|
SliceLen |
Integer |
是 |
是 |
每批次预取的URL数量。 |
无 |
|
EndTime |
String |
否 |
是 |
预取计划的结束时间。 |
无 |
|
StartTime |
String |
否 |
是 |
预取计划的开始时间。 |
无 |
返回值
Fn::GetAtt
-
ScheduledPreloadExecutionId:预取计划的ID。
-
SliceLen:每批次预取的URL数量。
-
EndTime:预取计划的结束时间。
-
StartTime:预取计划的开始时间。
-
ScheduledPreloadJobId:预取任务的ID。
-
Interval:每批次执行之间的时间间隔。单位:秒。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
SliceLen:
Type: Number
Description:
en: The number of URLs prefetched in each batch.
Required: true
ScheduledPreloadJobId:
Type: String
Description:
en: The ID of the prefetch task.
Required: true
Interval:
Type: Number
Description:
en: 'The time interval between each batch execution. 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 prefetch plan.
Value:
Fn::GetAtt:
- ExtensionResource
- ScheduledPreloadExecutionId
SliceLen:
Description: The number of URLs prefetched in each batch.
Value:
Fn::GetAtt:
- ExtensionResource
- SliceLen
EndTime:
Description: The end time of the prefetch plan.
Value:
Fn::GetAtt:
- ExtensionResource
- EndTime
StartTime:
Description: The start time of the prefetch plan.
Value:
Fn::GetAtt:
- ExtensionResource
- StartTime
ScheduledPreloadJobId:
Description: The ID of the prefetch task.
Value:
Fn::GetAtt:
- ExtensionResource
- ScheduledPreloadJobId
Interval:
Description: 'The time interval between each batch execution. Unit: seconds.'
Value:
Fn::GetAtt:
- ExtensionResource
- Interval
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"SliceLen": {
"Type": "Number",
"Description": {
"en": "The number of URLs prefetched in each batch."
},
"Required": true
},
"ScheduledPreloadJobId": {
"Type": "String",
"Description": {
"en": "The ID of the prefetch task."
},
"Required": true
},
"Interval": {
"Type": "Number",
"Description": {
"en": "The time interval between each batch execution. 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 prefetch plan.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ScheduledPreloadExecutionId"
]
}
},
"SliceLen": {
"Description": "The number of URLs prefetched in each batch.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"SliceLen"
]
}
},
"EndTime": {
"Description": "The end time of the prefetch plan.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EndTime"
]
}
},
"StartTime": {
"Description": "The start time of the prefetch plan.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StartTime"
]
}
},
"ScheduledPreloadJobId": {
"Description": "The ID of the prefetch task.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ScheduledPreloadJobId"
]
}
},
"Interval": {
"Description": "The time interval between each batch execution. Unit: seconds.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Interval"
]
}
}
}
}
该文章对您有帮助吗?