Cria uma lista de controle de acesso (ACL) para o Application Load Balancer (ALB).
Sintaxe
{
"Type": "ALIYUN::ALB::Acl",
"Properties": {
"AclEntries": List,
"ResourceGroupId": String,
"AclName": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
AclEntries |
List |
Não |
Sim |
Entradas da ACL. |
Nenhuma. |
|
AclName |
String |
Não |
Sim |
Nome da ACL. |
O nome deve ter de 2 a 128 caracteres e pode conter letras, dígitos, pontos (.), sublinhados (_) e hifens (-). Deve começar com uma letra. |
|
ResourceGroupId |
String |
Não |
Não |
ID do grupo de recursos. |
Nenhuma. |
Sintaxe de AclEntries
"AclEntries": [
{
"Entry": String,
"Description": String
}
]
Propriedades de AclEntries
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Entry |
String |
Sim |
Não |
Bloco CIDR da entrada da ACL. |
Nenhuma. |
|
Description |
String |
Não |
Não |
Descrição da entrada da ACL. |
A descrição deve ter de 2 a 256 caracteres e pode conter letras, dígitos, vírgulas (,), pontos (.), ponto e vírgula (;), barras (/), arrobas (@), sublinhados (_) e hifens (-). |
Valores de retorno
Fn::GetAtt
AclId: ID da ACL.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AclEntries:
MaxLength: 1000
Type: Json
AclName:
Description: 'The name of the ACL. The name must be 2 to 128 characters in length,
and can contain
letters, digits, hyphens (-) and underscores (_). It must start with a letter.'
MaxLength: 128
MinLength: 2
Type: String
Resources:
Acl:
Properties:
AclEntries:
Ref: AclEntries
AclName:
Ref: AclName
Type: ALIYUN::ALB::Acl
Outputs:
AclId:
Description: The ID of the ACL.
Value:
Fn::GetAtt:
- Acl
- AclId
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AclEntries": {
"Type": "Json",
"MaxLength": 1000
},
"AclName": {
"Type": "String",
"Description": "The name of the ACL. The name must be 2 to 128 characters in length, and can contain\nletters, digits, hyphens (-) and underscores (_). It must start with a letter.",
"MinLength": 2,
"MaxLength": 128
}
},
"Resources": {
"Acl": {
"Type": "ALIYUN::ALB::Acl",
"Properties": {
"AclEntries": {
"Ref": "AclEntries"
},
"AclName": {
"Ref": "AclName"
}
}
}
},
"Outputs": {
"AclId": {
"Description": "The ID of the ACL.",
"Value": {
"Fn::GetAtt": [
"Acl",
"AclId"
]
}
}
}
}