Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::EDAS::SwimmingLane

Última atualização: Jun 27, 2026

Cria uma swimming lane no Enterprise Distributed Application Service (EDAS).

Sintaxe

{
  "Type": "ALIYUN::EDAS::SwimmingLane",
  "Properties": {
    "EntryRules": List,
    "GroupId": Integer,
    "LogicalRegionId": String,
    "Name": String,
    "Tag": String,
    "AppInfos": List,
    "EnableRules": Boolean
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Atualizável

Descrição

Restrições

EntryRules

List

Sim

Sim

Condições de limitação de tráfego.

Exemplo:

[{"priority":1,"path":"/traffic","condition":"AND","restItems":[{"type":"header","name":"testheader","value":"testvalue","cond":"==","operator":"rawvalue"}]}]

GroupId

Integer

Sim

Não

ID do grupo da swimming lane.

Nenhuma

LogicalRegionId

String

Sim

Não

ID da região do namespace personalizado.

Formato: physical Region:customNamespaceIdentifier, por exemplo, cn-hangzhou:test.

Name

String

Sim

Sim

Nome da swimming lane.

Nenhuma

Tag

String

Sim

Sim

Tag da swimming lane.

Nenhuma

AppInfos

List

Não

Sim

Aplicações associadas à swimming lane.

Exemplo:

[{"priority":1,"path":"/traffic","condition":"AND","restItems":[{"type":"header","name":"testheader","value":"testvalue","cond":"==","operator":"rawvalue"}]}]

EnableRules

Boolean

Não

Sim

Indica se as regras de limitação estão ativadas.

Nenhuma

Valores de retorno

Fn::GetAtt

LaneId: ID da swimming lane.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  LogicalRegionId:
    Type: String
    Description:
      en: 'The RegionId of the logical region. Format: `physicalRegion:customNamespaceIdentifier`.'
    Required: true
  EntryRules:
    AssociationPropertyMetadata: {}
    AssociationProperty: List[Parameters]
    Type: Json
    Description:
      en: The entry rules of the swimming lane.
    Required: true
  Tag:
    Type: String
    Description:
      en: The tag of the swimming lane.
    Required: true
  Name:
    Type: String
    Description:
      en: The name of the swimming lane.
    Required: true
  GroupId:
    Type: Number
    Description:
      en: The group ID of the swimming lane.
    Required: true
Resources:
  SwimmingLane:
    Type: ALIYUN::EDAS::SwimmingLane
    Properties:
      LogicalRegionId:
        Ref: LogicalRegionId
      EntryRules:
        Ref: EntryRules
      Tag:
        Ref: Tag
      Name:
        Ref: Name
      GroupId:
        Ref: GroupId
Outputs:
  LaneId:
    Description: The ID of the swimming lane.
    Value:
      Fn::GetAtt:
        - SwimmingLane
        - LaneId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "LogicalRegionId": {
      "Type": "String",
      "Description": {
        "en": "The RegionId of the logical region. Format: `physicalRegion:customNamespaceIdentifier`."
      },
      "Required": true
    },
    "EntryRules": {
      "AssociationPropertyMetadata": {},
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "en": "The entry rules of the swimming lane."
      },
      "Required": true
    },
    "Tag": {
      "Type": "String",
      "Description": {
        "en": "The tag of the swimming lane."
      },
      "Required": true
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the swimming lane."
      },
      "Required": true
    },
    "GroupId": {
      "Type": "Number",
      "Description": {
        "en": "The group ID of the swimming lane."
      },
      "Required": true
    }
  },
  "Resources": {
    "SwimmingLane": {
      "Type": "ALIYUN::EDAS::SwimmingLane",
      "Properties": {
        "LogicalRegionId": {
          "Ref": "LogicalRegionId"
        },
        "EntryRules": {
          "Ref": "EntryRules"
        },
        "Tag": {
          "Ref": "Tag"
        },
        "Name": {
          "Ref": "Name"
        },
        "GroupId": {
          "Ref": "GroupId"
        }
      }
    }
  },
  "Outputs": {
    "LaneId": {
      "Description": "The ID of the swimming lane.",
      "Value": {
        "Fn::GetAtt": [
          "SwimmingLane",
          "LaneId"
        ]
      }
    }
  }
}