ALIYUN::FNF::Flow is used to call the CreateFlow operation to create a flow.

Syntax

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

Properties

Name Type Required Editable Description Validity
Definition String Yes Yes The definition of the flow. It must comply with the FDL syntax. None.
RoleArn String No Yes Optional. The Alibaba Cloud Resource Name (ARN) of the specified RAM role that Function Flow (FnF) uses to assume the role while executing a flow. None.
Description String Yes Yes The description of the flow. None.
RequestId String No Yes The ID of the request. If this parameter is not specified, the system generates a random value for it. None.
Name String Yes No The name of the flow. The name must be unique in an Alibaba Cloud account. None.

Response parameters

Fn::GetAtt

  • CreatedTime: the time when the flow was created.
  • LastModifiedTime: the time when the flow was last modified.
  • Id: the unique ID of the flow.

Examples

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