全部產品
Search
文件中心

:ALIYUN::FNF::Flow

更新時間:Dec 28, 2024

ALIYUN::FNF::Flow類型用於建立一個流程。

文法

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

屬性

屬性名稱

類型

必須

允許更新

描述

約束

Definition

String

建立的流程的定義,例如:version: v1beta1\ntype: flow\nsteps: \n - type: pass\n name: mypass

遵循FDL文法標準。詳情請參見基本介紹

RoleArn

String

流程執行所需的資源描述符資訊。

Description

String

建立流程的描述。

RequestId

String

請求ID。

如果不指定,系統會隨機產生。

Name

String

建立的流程名稱。

該名稱在阿里雲帳號下唯一。

長度為1~128個字元,以英文字母或底線(_)開頭,可包含英文字母、數字、底線(_)和短劃線(-)。

ExternalStorageLocation

String

外部儲存位置。

ExecutionMode

String

執行模式。

枚舉值:

  • Express:快速執行模式。

  • Standard:標準執行模式。

傳回值

Fn::GetAtt

  • CreatedTime:流程建立時間。

  • LastModifiedTime:流程最後更改時間。

  • Id:流程的唯一ID。

  • Name:流程名。

樣本

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
{
  "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"
        ]
      }
    }
  }
}