Modifies the IP address whitelist of an RDS instance.
Syntax
{
"Type": "ALIYUN::RDS::DBInstanceSecurityIps",
"Properties": {
"DBInstanceId": String,
"DBInstanceIPArrayName": String,
"DBInstanceIPArrayAttribute": String
}
}
Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| DBInstanceId | String | Yes | No | The RDS instance ID. | None |
| DBInstanceIPArrayAttribute | String | Yes | Yes | The attribute of the IP address whitelist group. | Groups with the hidden attribute are not displayed in the console. |
| DBInstanceIPArrayName | String | No | No | The name of the IP whitelist group. | Only lowercase letters and underscores (_) are allowed. Default value: Default. |
Return values
Fn::GetAtt
SecurityIps: The updated IP address whitelist of the RDS instance.
Examples
-
JSONformat{ "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" ] } } } }
该文章对您有帮助吗?