ALIYUN::FNF::Flow类型用于创建一个流程。

语法

{
  "Type": "ALIYUN::FNF::Flow",
  "Properties": {
    "Definition": String,
    "RoleArn": String,
    "Description": String,
    "RequestId": String,
    "Name": String
  }
}

属性

属性名称类型必须允许更新描述约束
DefinitionString创建的流程的定义,例如:version: v1beta1\ntype: flow\nsteps: \n - type: pass\n name: mypass遵循FDL语法标准。详情请参见基本介绍
RoleArnString流程执行所需的资源描述符信息。
DescriptionString创建流程的描述。
RequestIdString请求ID。如果不指定,系统会随机生成。
NameString创建的流程名称。该名称在阿里云账号下唯一。

长度为1~128个字符,以英文字母或下划线(_)开头,可包含英文字母、数字、下划线(_)和短划线(-)。

返回值

Fn::GetAtt

  • CreatedTime:流程创建时间。
  • LastModifiedTime:流程最后更改时间。
  • Id:流程的唯一ID。
  • Name:流程名。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      Flow:
        Type: ALIYUN::FNF::Flow
        Properties:
          Name: ros-test
          Definition: ros-test
    Outputs:
      CreatedTime:
        Description: Flow creation time.
        Value:
          Fn::GetAtt:
            - Flow
            - CreatedTime
      LastModifiedTime:
        Description: The most recently modified time of the flow.
        Value:
          Fn::GetAtt:
            - Flow
            - LastModifiedTime
      Id:
        Description: The unique ID of the flow.
        Value:
          Fn::GetAtt:
            - Flow
            - Id
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "Flow": {
          "Type": "ALIYUN::FNF::Flow",
          "Properties": {
            "Name": "ros-test",
            "Definition": "ros-test"
          }
        }
      },
      "Outputs": {
        "CreatedTime": {
          "Description": "Flow creation time.",
          "Value": {
            "Fn::GetAtt": [
              "Flow",
              "CreatedTime"
            ]
          }
        },
        "LastModifiedTime": {
          "Description": "The most recently modified time of the flow.",
          "Value": {
            "Fn::GetAtt": [
              "Flow",
              "LastModifiedTime"
            ]
          }
        },
        "Id": {
          "Description": "The unique ID of the flow.",
          "Value": {
            "Fn::GetAtt": [
              "Flow",
              "Id"
            ]
          }
        }
      }
    }