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

语法

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

属性

属性名称 类型 必须 允许更新 描述 约束
Definition String 创建的流程的定义,遵循FDL语法标准。 无。
RoleArn String 可选参数,流程执行所需的资源描述符信息,用于在任务执行时FnF进行assumerole。 无。
Description String 创建流程的描述。 无。
RequestId String 您这次请求的指定RequestID。如果不指定,系统会帮您随机生成。 无。
Name String 创建的流程名称。该名称在账户下唯一。 无。

返回值

Fn::GetAtt

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

示例

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Flow": {
      "Type": "ALIYUN::FNF::Flow",
      "Properties": {
        "Definition": {
          "Ref": "Definition"
        },
        "RoleArn": {
          "Ref": "RoleArn"
        },
        "Description": {
          "Ref": "Description"
        },
        "Name": {
          "Ref": "Name"
        },
        "RequestId": {
          "Ref": "RequestId"
        }
      }
    }
  },
  "Parameters": {
    "Definition": {
      "Type": "String",
      "Description": "The definition of the created flow following the FDL syntax standard."
    },
    "RoleArn": {
      "Type": "String",
      "Description": "Optional parameter, the resource descriptor information required for the execution of the flow, used to perform the assume role during FnF execution."
    },
    "Description": {
      "Type": "String",
      "Description": "Create a description of the flow."
    },
    "Name": {
      "Type": "String",
      "Description": "The name of the flow created. This name is unique under the account."
    },
    "RequestId": {
      "Type": "String",
      "Description": "The specified Request ID for this request. If not specified, our system will help you generate a random one."
    }
  },
  "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"
        ]
      }
    }
  }
}