All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::EMR::FlowProjects

Last Updated:Nov 26, 2024

DATASOURCE::EMR::FlowProjects is used to query projects.

Syntax

{
  "Type": "DATASOURCE::EMR::FlowProjects",
  "Properties": {
    "FlowProjectName": String,
    "FlowProjectId": String,
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

FlowProjectName

String

No

Yes

The project name.

None.

FlowProjectId

String

No

Yes

The project ID.

You can call the ListFlowProject operation to query the project ID.

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

Return values

Fn::GetAtt

  • FlowProjects: details of the projects.

  • FlowProjectIds: the IDs of the projects.

Property

Type

Description

Constraint

FlowProjectIds

List

The IDs of the projects.

None.

FlowProjects

List

Details of the projects.

None.

FlowProjectId

String

The project ID.

None.

UserId

String

The ID of the Alibaba Cloud account.

None.

FlowProjectName

String

The project name.

None.

GmtModified

String

The modification time.

None.

CreateTime

String

The creation time.

None.

Description

String

The description of the project.

None.

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "FlowProjectId": {
      "Type": "String",
      "Description": "The first ID of the resource"
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::EMR::FlowProjects",
      "Properties": {
        "FlowProjectId": {
          "Ref": "FlowProjectId"
        }
      }
    }
  },
  "Outputs": {
    "FlowProjects": {
      "Description": "The list of flow projects.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FlowProjects"
        ]
      }
    },
    "FlowProjectIds": {
      "Description": "The list of flow project IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "FlowProjectIds"
        ]
      }
    }
  }
}
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  FlowProjectId:
    Description: The first ID of the resource
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      FlowProjectId:
        Ref: FlowProjectId
    Type: DATASOURCE::EMR::FlowProjects
Outputs:
  FlowProjectIds:
    Description: The list of flow project IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - FlowProjectIds
  FlowProjects:
    Description: The list of flow projects.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - FlowProjects