ALIYUN::ClickHouse::EnterpriseDBClusterSecurityIP

更新时间:
复制为 MD 格式

ALIYUN::ClickHouse::EnterpriseDBClusterSecurityIP类型用于变更集群白名单设置。

语法

{
  "Type": "ALIYUN::ClickHouse::EnterpriseDBClusterSecurityIP",
  "Properties": {
    "DbInstanceId": String,
    "GroupName": String,
    "SecurityIpList": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DbInstanceId

String

集群ID。

GroupName

String

要修改的白名单名称。

SecurityIpList

String

白名单中的IP地址和CIDR地址块。

返回值

Fn::GetAtt

  • GroupName:要修改的白名单名称。

  • SecurityIpList:白名单中的IP地址和CIDR地址块。

  • SecurityIpType:IP地址类型。

  • WhitelistNetType:白名单的网络类型。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  GroupName:
    Type: String
    Description:
      en: The name of the whitelist whose settings you want to modify.
      zh: 要修改的白名单名称。
    Required: true
  SecurityIpList:
    Type: String
    Description:
      en: The IP addresses and CIDR blocks in the whitelist.
      zh: 白名单中的IP地址和CIDR地址块。
    Required: true
  DbInstanceId:
    Type: String
    Description:
      en: The cluster ID.
      zh: 集群ID。
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ClickHouse::EnterpriseDBClusterSecurityIP
    Properties:
      GroupName:
        Ref: GroupName
      SecurityIpList:
        Ref: SecurityIpList
      DbInstanceId:
        Ref: DbInstanceId
Outputs:
  GroupName:
    Description:
      en: The name of the whitelist whose settings you want to modify.
      zh: 要修改的白名单名称。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - GroupName
  SecurityIpList:
    Description:
      en: The IP addresses and CIDR blocks in the whitelist.
      zh: 白名单中的IP地址和CIDR地址块。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SecurityIpList
  SecurityIpType:
    Description:
      en: The type of IP address.
      zh: IP地址类型。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SecurityIpType
  WhitelistNetType:
    Description:
      en: The network type of the whitelist.
      zh: 白名单的网络类型。
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - WhitelistNetType
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "GroupName": {
      "Type": "String",
      "Description": {
        "en": "The name of the whitelist whose settings you want to modify.",
        "zh": "要修改的白名单名称。"
      },
      "Required": true
    },
    "SecurityIpList": {
      "Type": "String",
      "Description": {
        "en": "The IP addresses and CIDR blocks in the whitelist.",
        "zh": "白名单中的IP地址和CIDR地址块。"
      },
      "Required": true
    },
    "DbInstanceId": {
      "Type": "String",
      "Description": {
        "en": "The cluster ID.",
        "zh": "集群ID。"
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ClickHouse::EnterpriseDBClusterSecurityIP",
      "Properties": {
        "GroupName": {
          "Ref": "GroupName"
        },
        "SecurityIpList": {
          "Ref": "SecurityIpList"
        },
        "DbInstanceId": {
          "Ref": "DbInstanceId"
        }
      }
    }
  },
  "Outputs": {
    "GroupName": {
      "Description": {
        "en": "The name of the whitelist whose settings you want to modify.",
        "zh": "要修改的白名单名称。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "GroupName"
        ]
      }
    },
    "SecurityIpList": {
      "Description": {
        "en": "The IP addresses and CIDR blocks in the whitelist.",
        "zh": "白名单中的IP地址和CIDR地址块。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SecurityIpList"
        ]
      }
    },
    "SecurityIpType": {
      "Description": {
        "en": "The type of IP address.",
        "zh": "IP地址类型。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SecurityIpType"
        ]
      }
    },
    "WhitelistNetType": {
      "Description": {
        "en": "The network type of the whitelist.",
        "zh": "白名单的网络类型。"
      },
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "WhitelistNetType"
        ]
      }
    }
  }
}