ALIYUN::RDS::DBInstanceParameterGroup is used to modify the parameter list of an ApsaraDB for RDS instance.

Syntax

{
  "Type": "ALIYUN::RDS::DBInstanceParameterGroup",
  "Properties": {
    "Forcerestart": String,
    "DBInstanceId": String,
    "Parameters": List
  }
}

Properties

Name Type Required Editable Description Validity
DBInstanceId String Yes No The ID of the ApsaraDB for RDS instance. None
Parameters List Yes No The parameters in JSON format and their values. The parameter values must be of the string type. Example: {"auto_increment_increment":"1","character_set_client":"utf8"}.
Forcerestart String No No Specifies whether to force a restart of the ApsaraDB for RDS instance. Valid values: true and false. Default value: false.

Response parameters

Fn::GetAtt

None

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Database": {
      "Type": "ALIYUN::RDS::DBInstance",
      "Properties": {
        "Engine": "MySQL",
        "EngineVersion": "5.6",
        "DBInstanceClass": "rds.mys2.small",
        "DBInstanceStorage": "10",
        "DBInstanceNetType": "Intranet",
        "SecurityIPList": "0.0.0.0/0"
      }
    },
    "DatabaseConfig": {
      "Type": "ALIYUN::RDS::DBInstanceParameterGroup",
      "Properties": {
        "DBInstanceId": {
          "Ref": "Database"
        },
        "Parameters": [
          {
            "Key": "auto_increment_increment",
            "Value": "xxx"
          }
        ]
      }
    }
  },
  "Outputs": {
    "DBInstanceId": {
      "Value": {
        "Fn::GetAtt": [
          "Database",
          "DBInstanceId"
        ]
      }
    }
  }
}