ALIYUN::FNF::Flow類型用於建立一個流程。
文法
{
"Type": "ALIYUN::FNF::Flow",
"Properties": {
"Definition": String,
"RoleArn": String,
"Description": String,
"RequestId": String,
"Name": String,
"ExternalStorageLocation": String,
"ExecutionMode": String
}
}屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Definition | String | 是 | 是 | 建立的流程的定義,例如: | 遵循FDL文法標準。詳情請參見基本介紹。 |
RoleArn | String | 否 | 是 | 流程執行所需的資源描述符資訊。 | 無 |
Description | String | 否 | 是 | 建立流程的描述。 | 無 |
RequestId | String | 否 | 是 | 請求ID。 | 如果不指定,系統會隨機產生。 |
Name | String | 是 | 否 | 建立的流程名稱。 | 該名稱在阿里雲帳號下唯一。 長度為1~128個字元,以英文字母或底線(_)開頭,可包含英文字母、數字、底線(_)和短劃線(-)。 |
ExternalStorageLocation | String | 否 | 否 | 外部儲存位置。 | 無 |
ExecutionMode | String | 否 | 否 | 執行模式。 | 枚舉值:
|
傳回值
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"
]
}
}
}
}