ALIYUN::FNF::Flow is used to create a flow.

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
DefinitionStringYesYesThe definition of the flow. Example: version: v1beta1\ntype: flow\nsteps: \n - type: pass\n name: mypass.It must comply with the FDL syntax. For more information, see Overview.
RoleArnStringNoYesThe Alibaba Cloud Resource Name (ARN) of the specified RAM role that Function Flow (FnF) assumes when it executes the flow.None
DescriptionStringNoYesThe description of the flow.None
RequestIdStringNoYesThe ID of the request.If this parameter is not specified, the system generates a random value for it.
NameStringYesNoThe name of the flow.The name must be unique in an Alibaba Cloud account.

The name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter or underscore (_).

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.
  • Name: the name of the flow.

Examples

  • YAMLformat

    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
  • JSONformat

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