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

Resource Orchestration Service:ALIYUN::NLB::SecurityGroupAttachment

最終更新日:Mar 17, 2025

ALIYUN::NLB::SecurityGroupAttachment は、セキュリティグループをネットワークロードバランサー(NLB)インスタンスにバインドするために使用されます。

構文

{
  "Type": "ALIYUN::NLB::SecurityGroupAttachment",
  "Properties": {
    "LoadBalancerId": String,
    "SecurityGroupIds": List
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

LoadBalancerId

String

はい

いいえ

セキュリティグループをバインドする NLB インスタンスの ID です。

なし。

SecurityGroupIds

List

はい

いいえ

セキュリティグループの ID です。

最大 10 個のセキュリティグループを指定できます。

戻り値

Fn::GetAtt

なし。

  • YAML フォーマット

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      LoadBalancerId:
        Description:
          en: The ID of the network-based server load balancer instance to be bound to
            the security group.
        Type: String
      SecurityGroupIds:
        AssociationProperty: List[Parameter]
        Description:
          en: List of security group id.
        MaxLength: 10
        Type: Json
    Resources:
      SecurityGroupAttachment:
        Properties:
          LoadBalancerId:
            Ref: LoadBalancerId
          SecurityGroupIds:
            Ref: SecurityGroupIds
        Type: ALIYUN::NLB::SecurityGroupAttachment
                            
  • JSON フォーマット

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "LoadBalancerId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the network-based server load balancer instance to be bound to the security group."
          }
        },
        "SecurityGroupIds": {
          "AssociationProperty": "List[Parameter]",
          "Type": "Json",
          "Description": {
            "en": "List of security group id."
          },
          "MaxLength": 10
        }
      },
      "Resources": {
        "SecurityGroupAttachment": {
          "Type": "ALIYUN::NLB::SecurityGroupAttachment",
          "Properties": {
            "LoadBalancerId": {
              "Ref": "LoadBalancerId"
            },
            "SecurityGroupIds": {
              "Ref": "SecurityGroupIds"
            }
          }
        }
      }
    }