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

Resource Orchestration Service:ALIYUN::VPC::NetworkAclAssociation

最終更新日:Jan 16, 2025

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

構文

{
  "Type": "ALIYUN::VPC::NetworkAclAssociation",
  "Properties": {
    "NetworkAclId": String,
    "Resources": List
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
NetworkAclIdStringはいいいえネットワーク ACL の説明。なし
ResourcesListはいいいえネットワーク ACL に関連付けられているリソース。最大 20 個のリソースを関連付けることができます。

詳細については、Resources プロパティをご参照ください。

Resources 構文

"Resources": [
  {
    "ResourceId": String,
    "ResourceType": String
  }
]

Resources プロパティ

プロパティタイプ必須編集可能説明制約
ResourceIdStringはいいいえリソースの ID。なし
ResourceTypeStringいいえいいえリソースのタイプ。値を vSwitch に設定します。

レスポンスパラメータ

Fn::GetAtt

NetworkAclId: ネットワーク ACL の ID。

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      NetworkAclId:
        Type: String
        Description: The ID of the network ACL.
      VSwitchId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    Resources:
      NetworkAclAssociation:
        Type: ALIYUN::VPC::NetworkAclAssociation
        Properties:
          NetworkAclId:
            Ref: NetworkAclId
          Resources:
            - ResourceId:
                Ref: VSwitchId
              ResourceType: VSwitch
    Outputs:
      NetworkAclId:
        Description: The ID of the network ACL.
        Value:
          Fn::GetAtt:
            - NetworkAclAssociation
            - NetworkAclId
  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "NetworkAclId": {
          "Type": "String",
          "Description": "The ID of the network ACL."  // ネットワーク ACL の ID。
        },
        "VSwitchId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId"
        }
      },
      "Resources": {
        "NetworkAclAssociation": {
          "Type": "ALIYUN::VPC::NetworkAclAssociation",
          "Properties": {
            "NetworkAclId": {
              "Ref": "NetworkAclId"
            },
            "Resources": [
              {
                "ResourceId": {
                  "Ref": "VSwitchId"
                },
                "ResourceType": "VSwitch"
              }
            ]
          }
        }
      },
      "Outputs": {
        "NetworkAclId": {
          "Description": "The ID of the network ACL.", // ネットワーク ACL の ID。
          "Value": {
            "Fn::GetAtt": [
              "NetworkAclAssociation",
              "NetworkAclId"
            ]
          }
        }
      }
    }