現時此頁面僅用英語顯示,繁體中文內容正在準備中。感謝您的耐心等待。

ALIYUN::ENS::NetworkAclAssociation

更新時間:2024-05-29 02:00

ALIYUN::ENS::NetworkAclAssociation is used to associate a network access control list (ACL) with networks.

Syntax

{
  "Type": "ALIYUN::ENS::NetworkAclAssociation",
  "Properties": {
    "NetworkAclId": String,
    "NetworkIds": List
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Property

Type

Required

Editable

Description

Constraint

NetworkAclId

String

Yes

No

The ACL ID.

None.

NetworkIds

List

Yes

No

The IDs of the networks that you want to associate with the network ACL.

You can specify up to 30 network IDs.

Return values

Fn::GetAtt

NetworkAclId: the ACL ID.

Examples

YAML format
JSON format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  NetworkAclId:
    Type: String
    Description:
      en: The ID of the network ACL.
    Required: true
  NetworkIds:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: The network id which you want to associate the network ACL.
    Required: true
    MinLength: 1
    MaxLength: 30
Resources:
  NetworkAclAssociation:
    Type: ALIYUN::ENS::NetworkAclAssociation
    Properties:
      NetworkAclId:
        Ref: NetworkAclId
      NetworkIds:
        Ref: NetworkIds
Outputs:
  NetworkAclId:
    Description: The network acl id to associate.
    Value:
      Fn::GetAtt:
        - NetworkAclAssociation
        - NetworkAclId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NetworkAclId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the network ACL."
      },
      "Required": true
    },
    "NetworkIds": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The network id which you want to associate the network ACL."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 30
    }
  },
  "Resources": {
    "NetworkAclAssociation": {
      "Type": "ALIYUN::ENS::NetworkAclAssociation",
      "Properties": {
        "NetworkAclId": {
          "Ref": "NetworkAclId"
        },
        "NetworkIds": {
          "Ref": "NetworkIds"
        }
      }
    }
  },
  "Outputs": {
    "NetworkAclId": {
      "Description": "The network acl id to associate.",
      "Value": {
        "Fn::GetAtt": [
          "NetworkAclAssociation",
          "NetworkAclId"
        ]
      }
    }
  }
}
                        
  • 本頁導讀 (1, T)
  • Syntax
  • Properties
  • Return values
  • Examples
文檔反饋
phone 聯絡我們

立即和Alibaba Cloud在線服務人員進行交談,獲取您想了解的產品信息以及最新折扣。

alicare alicarealicarealicare