全部产品
Search
文档中心

Resource Orchestration Service:ALIYUN::ALB::Acl

更新时间:Jun 26, 2025

ALIYUN::ALB::Acl digunakan untuk membuat daftar kontrol akses (ACL).

Sintaksis

{
  "Type": "ALIYUN::ALB::Acl",
  "Properties": {
    "AclEntries": List,
    "ResourceGroupId": String,
    "AclName": String
  }
}

Properti

Properti

Tipe

Diperlukan

Dapat Diedit

Deskripsi

Kendala

AclEntries

List

Tidak

Ya

Konfigurasi entri ACL.

Tidak ada.

AclName

String

Tidak

Ya

Nama ACL.

Nama harus memiliki panjang 2 hingga 128 karakter dan dapat berisi huruf, angka, titik (.), garis bawah (_), dan tanda hubung (-). Nama harus dimulai dengan huruf.

ResourceGroupId

String

Tidak

Tidak

ID grup sumber daya.

Tidak ada.

Sintaksis AclEntries

"AclEntries": [
  {
    "Entry": String,
    "Description": String
  }
]

Properti AclEntries

Properti

Tipe

Diperlukan

Dapat Diedit

Deskripsi

Kendala

Entry

String

Ya

Tidak

Blok CIDR dari entri ACL.

Tidak ada.

Description

String

Tidak

Tidak

Deskripsi dari entri ACL.

Deskripsi harus memiliki panjang 2 hingga 256 karakter dan dapat berisi huruf, angka, koma (,), titik (.), titik koma (;), garis miring (/), simbol at (@), garis bawah (_), dan tanda hubung (-).

Nilai pengembalian

Fn::GetAtt

AclId: ID ACL.

Contoh

Format YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AclEntries:
    MaxLength: 1000
    Type: Json
  AclName:
    Description: 'Nama ACL. Nama harus memiliki panjang 2 hingga 128 karakter, dan dapat berisi

      huruf, angka, tanda hubung (-) dan garis bawah (_). Harus dimulai dengan huruf.'
    MaxLength: 128
    MinLength: 2
    Type: String
Resources:
  Acl:
    Properties:
      AclEntries:
        Ref: AclEntries
      AclName:
        Ref: AclName
    Type: ALIYUN::ALB::Acl
Outputs:
  AclId:
    Description: ID ACL.
    Value:
      Fn::GetAtt:
      - Acl
      - AclId

Format JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AclEntries": {
      "Type": "Json",
      "MaxLength": 1000
    },
    "AclName": {
      "Type": "String",
      "Description": "Nama ACL. Nama harus memiliki panjang 2 hingga 128 karakter, dan dapat berisi\nhuruf, angka, tanda hubung (-) dan garis bawah (_). Harus dimulai dengan huruf.",
      "MinLength": 2,
      "MaxLength": 128
    }
  },
  "Resources": {
    "Acl": {
      "Type": "ALIYUN::ALB::Acl",
      "Properties": {
        "AclEntries": {
          "Ref": "AclEntries"
        },
        "AclName": {
          "Ref": "AclName"
        }
      }
    }
  },
  "Outputs": {
    "AclId": {
      "Description": "ID ACL.",
      "Value": {
        "Fn::GetAtt": [
          "Acl",
          "AclId"
        ]
      }
    }
  }
}