DATASOURCE::FNF::Schedule类型用于获取单个定时调度详情。
语法
{
"Type": "DATASOURCE::FNF::Schedule",
"Properties": {
"FlowName": String,
"ScheduleName": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
FlowName | String | 是 | 是 | 定时调度绑定的流程名称。 | 该名称在同一地域内唯一,创建后不可修改。要求如下:
|
ScheduleName | String | 是 | 是 | 定时调度的名称。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Description:定时调度描述。
CreateTime:定时调度的创建时间。
LastModifiedTime:定时调度最近一次的更改时间。
Payload:定时调度的触发消息。
CronExpression:Cron表达式。
ScheduleId:定时调度ID。
ScheduleName:定时调度的名称。
示例
YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
FlowName:
Type: String
Description:
en: |-
The name of the flow that is associated with the time-based schedule. The name must be unique within the region and cannot be modified after the time-based schedule is created. The name must meet the following conventions:
The name can contain letters, digits, underscores (_), and hyphens (-).
The name must start with a letter or an underscore (_).
The name is case-sensitive.
The name must be 1 to 128 characters in length.
Required: true
ScheduleName:
Type: String
Description:
en: |-
The name of the time-based schedule. The name must meet the following conventions:
The name can contain letters, digits, underscores (_), and hyphens (-).
The name must start with a letter or an underscore (_).
The name is case-sensitive.
The name must be 1 to 128 characters in length.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::FNF::Schedule
Properties:
FlowName:
Ref: FlowName
ScheduleName:
Ref: ScheduleName
Outputs:
Description:
Description: The description of the time-based schedule to be created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
CreateTime:
Description: The time when the time-based schedule was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
LastModifiedTime:
Description: The time when the time-based schedule was last updated.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LastModifiedTime
Payload:
Description: The trigger message of the time-based schedule to be created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Payload
CronExpression:
Description: The CRON expression of the time-based schedule to be created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CronExpression
ScheduleId:
Description: The ID of the time-based schedule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScheduleId
ScheduleName:
Description: The name of the time-based schedule to be created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScheduleName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"FlowName": {
"Type": "String",
"Description": {
"en": "The name of the flow that is associated with the time-based schedule. The name must be unique within the region and cannot be modified after the time-based schedule is created. The name must meet the following conventions:\nThe name can contain letters, digits, underscores (_), and hyphens (-).\nThe name must start with a letter or an underscore (_).\nThe name is case-sensitive.\nThe name must be 1 to 128 characters in length."
},
"Required": true
},
"ScheduleName": {
"Type": "String",
"Description": {
"en": "The name of the time-based schedule. The name must meet the following conventions:\nThe name can contain letters, digits, underscores (_), and hyphens (-).\nThe name must start with a letter or an underscore (_).\nThe name is case-sensitive.\nThe name must be 1 to 128 characters in length."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::FNF::Schedule",
"Properties": {
"FlowName": {
"Ref": "FlowName"
},
"ScheduleName": {
"Ref": "ScheduleName"
}
}
}
},
"Outputs": {
"Description": {
"Description": "The description of the time-based schedule to be created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"CreateTime": {
"Description": "The time when the time-based schedule was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"LastModifiedTime": {
"Description": "The time when the time-based schedule was last updated.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LastModifiedTime"
]
}
},
"Payload": {
"Description": "The trigger message of the time-based schedule to be created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Payload"
]
}
},
"CronExpression": {
"Description": "The CRON expression of the time-based schedule to be created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CronExpression"
]
}
},
"ScheduleId": {
"Description": "The ID of the time-based schedule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScheduleId"
]
}
},
"ScheduleName": {
"Description": "The name of the time-based schedule to be created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScheduleName"
]
}
}
}
}
该文章对您有帮助吗?
- 本页导读
- 语法
- 属性
- 返回值
- 示例