すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::ENS::NetworkAclAssociation

最終更新日:Mar 17, 2025

ALIYUN::ENS::NetworkAclAssociation は、ネットワークアクセス制御リスト(ACL)をネットワークに関連付けるために使用されます。

構文

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

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

NetworkAclId

String

はい

いいえ

ACL ID。

なし。

NetworkIds

List

はい

いいえ

ネットワーク ACL に関連付けるネットワークの ID。

最大 30 個のネットワーク ID を指定できます。

戻り値

Fn::GetAtt

NetworkAclId: ACL ID。

YAML 形式

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

JSON 形式

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