ALIYUN::MONGODB::GlobalSecurityIPGroup

更新时间:
复制 MD 格式

ALIYUN::MONGODB::GlobalSecurityIPGroup类型用于创建全局IP白名单模板。

语法

{
  "Type": "ALIYUN::MONGODB::GlobalSecurityIPGroup",
  "Properties": {
    "GlobalIgName": String,
    "GlobalSecurityIpList": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

GlobalIgName

String

IP 白名单模板名称。

GlobalSecurityIpList

List

白名单模板中的 IP 地址。

最多支持配置1000个 IP 地址。

返回值

Fn::GetAtt

  • GlobalIgName:IP 白名单模板名称。

  • GlobalSecurityGroupId:IP 白名单模板 ID。

  • GlobalSecurityIpList:白名单模板中的 IP 地址。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  GlobalIgName:
    Description:
      en: The name of the IP whitelist template.
    Required: true
    Type: String
  GlobalSecurityIpList:
    Description:
      en: The IP address in the whitelist template.
    MaxLength: 1000
    MinLength: 1
    Required: true
    Type: Json
Resources:
  ExtensionResource:
    Properties:
      GlobalIgName:
        Ref: GlobalIgName
      GlobalSecurityIpList:
        Ref: GlobalSecurityIpList
    Type: ALIYUN::MONGODB::GlobalSecurityIPGroup
Outputs:
  GlobalIgName:
    Description: The name of the IP whitelist template.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - GlobalIgName
  GlobalSecurityGroupId:
    Description: The ID of the IP whitelist template.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - GlobalSecurityGroupId
  GlobalSecurityIpList:
    Description: The IP address in the whitelist template.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - GlobalSecurityIpList
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "GlobalIgName": {
      "Type": "String",
      "Description": {
        "en": "The name of the IP whitelist template."
      },
      "Required": true
    },
    "GlobalSecurityIpList": {
      "Type": "Json",
      "Description": {
        "en": "The IP address in the whitelist template."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 1000
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::MONGODB::GlobalSecurityIPGroup",
      "Properties": {
        "GlobalIgName": {
          "Ref": "GlobalIgName"
        },
        "GlobalSecurityIpList": {
          "Ref": "GlobalSecurityIpList"
        }
      }
    }
  },
  "Outputs": {
    "GlobalIgName": {
      "Description": "The name of the IP whitelist template.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "GlobalIgName"
        ]
      }
    },
    "GlobalSecurityGroupId": {
      "Description": "The ID of the IP whitelist template.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "GlobalSecurityGroupId"
        ]
      }
    },
    "GlobalSecurityIpList": {
      "Description": "The IP address in the whitelist template.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "GlobalSecurityIpList"
        ]
      }
    }
  }
}