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