DATASOURCE::SLS::Projects is used to query Log Service projects.

Properties

None.

Return values (Fn::GetAtt)

  • Projects: details of the Log Service projects.
  • ProjectNames: the names of the Log Service projects.
Property Type Description Constraint
ProjectNames List The names of the Log Service projects. None.
Projects List Details of the Log Service projects. None.
ProjectName String The name of the Log Service project. The name is globally unique in an Alibaba Cloud region. You cannot change the name after the project is created.
Status String The status of the Log Service project. Valid values:
  • Normal: The project works as expected.
  • Disable: The project is disabled.
Owner String The ID of the Alibaba Cloud account within which the Log Service project is created. None.
Description String The description of the Log Service project. None.
CreatedTime String The time when the Log Service project was created. None.
LastModifyTime String The timestamp when the Log Service project was last updated. Unit: milliseconds.

Examples

  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "Projects": {
          "Type": "DATASOURCE::SLS::Projects",
          "Properties": {}
        }
      },
      "Outputs": {
        "Projects": {
          "Description": "The list of projects.",
          "Value": {
            "Fn::GetAtt": [
              "Projects",
              "Projects"
            ]
          }
        },
        "ProjectNames": {
          "Description": "The list of project names.",
          "Value": {
            "Fn::GetAtt": [
              "Projects",
              "ProjectNames"
            ]
          }
        }
      }
    }
  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      Projects:
        Type: DATASOURCE::SLS::Projects
        Properties: {}
    Outputs:
      Projects:
        Description: The list of projects.
        Value:
          Fn::GetAtt:
            - Projects
            - Projects
      ProjectNames:
        Description: The list of project names.
        Value:
          Fn::GetAtt:
            - Projects
            - ProjectNames