ALIYUN::FNF::Schedule

更新时间:
复制 MD 格式

The ALIYUN::FNF::Schedule resource creates a timed schedule.

Syntax

{
  "Type": "ALIYUN::FNF::Schedule",
  "Properties": {
    "Description": String,
    "FlowName": String,
    "Enable": Boolean,
    "Payload": String,
    "CronExpression": String,
    "ScheduleName": String
  }
}

Properties

Property nameTypeRequiredUpdates allowedDescriptionConstraints
DescriptionStringNoYesThe description of the timed schedule.None
FlowNameStringYesNoThe name of the workflow that is attached to the timed schedule.None
EnableBooleanNoYesSpecifies whether to enable the timed schedule.Valid values:
  • true
  • false
PayloadStringNoYesThe message that is passed to the workflow when the timed schedule is triggered.The value must be in the JSON format. For example: "{\"key\": \"value\"}".
CronExpressionStringYesYesThe cron expression.None
ScheduleNameStringYesNoThe name of the timed schedule.None

Return values

Fn::GetAtt

  • FlowName: The name of the attached workflow.
  • ScheduleId: The ID of the schedule.
  • ScheduleName: The name of the schedule.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      Schedule:
        Type: ALIYUN::FNF::Schedule
        Properties:
          FlowName: TestFlow
          Enable: false
          Payload: '{"key": "value"}'
          CronExpression: 0 0 10 1 * ?
          ScheduleName: TestSchedule
    Outputs: {}
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "Schedule": {
          "Type": "ALIYUN::FNF::Schedule",
          "Properties": {
            "FlowName": "TestFlow",
            "Enable": false,
            "Payload": "{\"key\": \"value\"}",
            "CronExpression": "0 0 10 1 * ?",
            "ScheduleName": "TestSchedule"
          }
        }
      },
      "Outputs": {
      }
    }