日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ALIYUN::ENS::InstanceSecurityGroupAttachment

ALIYUN::ENS::InstanceSecurityGroupAttachment類型用于將一臺ENS實例加入到指定的安全組。

語法

{
  "Type": "ALIYUN::ENS::InstanceSecurityGroupAttachment",
  "Properties": {
    "InstanceId": String,
    "SecurityGroupId": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

InstanceId

String

實例ID。

SecurityGroupId

String

安全組ID。

返回值

Fn::GetAtt

  • InstanceId:實例ID。

  • SecurityGroupId:安全組ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      InstanceId:
        Description:
          en: Instance ID.
        Required: false
        Type: String
      SecurityGroupId:
        AssociationProperty: ALIYUN::ECS::SecurityGroup::SecurityGroupId
        AssociationPropertyMetadata:
          VpcId: ${VpcId}
        Description:
          en: Security group ID.
        Required: true
        Type: String
    Resources:
      ExtensionResource:
        Properties:
          InstanceId:
            Ref: InstanceId
          SecurityGroupId:
            Ref: SecurityGroupId
        Type: ALIYUN::ENS::InstanceSecurityGroupAttachment
    Outputs:
      InstanceId:
        Description: Instance ID.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - InstanceId
      SecurityGroupId:
        Description: Security group ID.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - SecurityGroupId
                            
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstanceId": {
          "Type": "String",
          "Description": {
            "en": "Instance ID."
          },
          "Required": false
        },
        "SecurityGroupId": {
          "AssociationPropertyMetadata": {
            "VpcId": "${VpcId}"
          },
          "AssociationProperty": "ALIYUN::ECS::SecurityGroup::SecurityGroupId",
          "Type": "String",
          "Description": {
            "en": "Security group ID."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::ENS::InstanceSecurityGroupAttachment",
          "Properties": {
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "SecurityGroupId": {
              "Ref": "SecurityGroupId"
            }
          }
        }
      },
      "Outputs": {
        "InstanceId": {
          "Description": "Instance ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "InstanceId"
            ]
          }
        },
        "SecurityGroupId": {
          "Description": "Security group ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "SecurityGroupId"
            ]
          }
        }
      }
    }