DATASOURCE::FNF::Flow

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

DATASOURCE::FNF::Flow类型用于查询单个流程信息。

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

FlowName

String

流程名称。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • FlowId:流程的唯一ID。

  • Type:流程类型。

  • Description:流程描述。

  • FlowName:流程名称。

  • CreateTime:流程创建时间。

  • Definition:流程定义。

  • LastModifiedTime:流程最后更改时间。

  • RoleArn:流程执行所需资源描述符信息。

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  FlowName:
    Type: String
    Description:
      en: The name of the flow. The name must be unique within a region for the same Alibaba Cloud account.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::FNF::Flow
    Properties:
      FlowName:
        Ref: FlowName
Outputs:
  FlowId:
    Description: The unique ID of the flow.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - FlowId
  Type:
    Description: The type of the flow. Valid values are FDL or DEFAULT.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Type
  Description:
    Description: The description of the flow.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  FlowName:
    Description: The name of the flow. The name must be unique within a region for the same Alibaba Cloud account.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - FlowName
  CreateTime:
    Description: The time when the flow was created.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CreateTime
  Definition:
    Description: The flow definition, which follows the flow definition language (FDL) syntax standard. Considering compatibility, the system supports the two flow definition specifications.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Definition
  LastModifiedTime:
    Description: The time when the flow was last modified.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LastModifiedTime
  RoleArn:
    Description: The Alibaba Cloud resource name (ARN) of the authorized role on which the execution of the flow relies. During the execution of the flow, CloudFlow assumes the role to call API operations of relevant services.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - RoleArn
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "FlowName": {
      "Type": "String",
      "Description": {
        "en": "The name of the flow. The name must be unique within a region for the same Alibaba Cloud account."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::FNF::Flow",
      "Properties": {
        "FlowName": {
          "Ref": "FlowName"
        }
      }
    }
  },
  "Outputs": {
    "FlowId": {
      "Description": "The unique ID of the flow.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FlowId"
        ]
      }
    },
    "Type": {
      "Description": "The type of the flow. Valid values are FDL or DEFAULT.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Type"
        ]
      }
    },
    "Description": {
      "Description": "The description of the flow.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "FlowName": {
      "Description": "The name of the flow. The name must be unique within a region for the same Alibaba Cloud account.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FlowName"
        ]
      }
    },
    "CreateTime": {
      "Description": "The time when the flow was created.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "Definition": {
      "Description": "The flow definition, which follows the flow definition language (FDL) syntax standard. Considering compatibility, the system supports the two flow definition specifications.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Definition"
        ]
      }
    },
    "LastModifiedTime": {
      "Description": "The time when the flow was last modified.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LastModifiedTime"
        ]
      }
    },
    "RoleArn": {
      "Description": "The Alibaba Cloud resource name (ARN) of the authorized role on which the execution of the flow relies. During the execution of the flow, CloudFlow assumes the role to call API operations of relevant services.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RoleArn"
        ]
      }
    }
  }
}
                        
  • 本页导读
  • 语法
  • 属性
  • 返回值
  • 示例