ALIYUN::RDS::DBInstanceSecurityIps类型用于修改实例访问白名单。

语法

{
  "Type": "ALIYUN::RDS::DBInstanceSecurityIps",
  "Properties": {
    "DBInstanceId": String,
    "DBInstanceIPArrayName": String,
    "DBInstanceIPArrayAttribute": String
  }
}

属性

属性名称类型必须允许更新描述约束
DBInstanceId String 实例ID
DBInstanceIPArrayAttribute String IP白名单分组的属性值。控制台不显示带有 hidden标签的分组。
DBInstanceIPArrayName String IP白名单分组的名字只支持小写字母和下划线(_)。 默认为 Default 分组。

返回值

Fn::GetAtt

SecurityIps:修改后的实例访问白名单。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RDSInstance:
        Type: String
        AssociationProperty: ALIYUN::RDS::Instance::InstanceId
    Resources:
      DBInstanceSecurityIps:
        Type: ALIYUN::RDS::DBInstanceSecurityIps
        Properties:
          DBInstanceId:
            Ref: RDSInstance
          DBInstanceIPArrayAttribute: 0.0.0.0/0
    Outputs:
      SecurityIps:
        Description: The security ips of selected database instance.
        Value:
          Fn::GetAtt:
            - DBInstanceSecurityIps
            - SecurityIps
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RDSInstance": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Instance::InstanceId"
        }
      },
      "Resources": {
        "DBInstanceSecurityIps": {
          "Type": "ALIYUN::RDS::DBInstanceSecurityIps",
          "Properties": {
            "DBInstanceId": {
              "Ref": "RDSInstance"
            },
            "DBInstanceIPArrayAttribute": "0.0.0.0/0"
          }
        }
      },
      "Outputs": {
        "SecurityIps": {
          "Description": "The security ips of selected database instance.",
          "Value": {
            "Fn::GetAtt": [
              "DBInstanceSecurityIps",
              "SecurityIps"
            ]
          }
        }
      }
    }