DATASOURCE::FNF::Schedule

更新时间:2025-03-31 01:42:06

DATASOURCE::FNF::Schedule类型用于获取单个定时调度详情。

语法

{
  "Type": "DATASOURCE::FNF::Schedule",
  "Properties": {
    "FlowName": String,
    "ScheduleName": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

FlowName

String

定时调度绑定的流程名称。

该名称在同一地域内唯一,创建后不可修改。要求如下:

  • 支持英文字符(a~z)或(A~Z)、数字(0~9)、下划线(_)和短划线(-)。

  • 首字母必须为英文字母(a~z)、(A~Z)或下划线(_)。

  • 区分大小写。

  • 长度为1~128个字符。

ScheduleName

String

定时调度的名称。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

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"
        ]
      }
    }
  }
}
                        
  • 本页导读
  • 语法
  • 属性
  • 返回值
  • 示例