ALIYUN::RDS::DBInstanceParameterGroup is used to modify the parameters of an ApsaraDB RDS instance.

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
DBInstanceId String Yes No The ID of the instance. N/A
Parameters List Yes Yes The parameters of the instance. For more information, see Parameters properties.
Forcerestart String No Yes Specifies whether to forcibly restart the instance. Valid values:
  • true: The system forcibly restarts the instance.
  • false: The system does not forcibly restart the instance. This is the default value.

Parameters syntax

"Parameters": [
  {
    "Key": String,
    "Value": String
  }
]  

Parameters properties

PropertyTypeRequiredEditableDescriptionConstraint
KeyStringYesNoThe name of the parameter. N/A
ValueStringYesNoThe value of the parameter. N/A

Response parameters

Fn::GetAtt

N/A

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      DBInstanceId:
        Type: String
        AssociationProperty: ALIYUN::RDS::Instance::InstanceId
    Resources:
      DBInstanceParameterGroup:
        Type: ALIYUN::RDS::DBInstanceParameterGroup
        Properties:
          Parameters:
            - Key: back_log
              Value: '3000'
            - Key: wait_timeout
              Value: '86400'
          DBInstanceId:
            Ref: DBInstanceId
          Forcerestart: 'false'
  • JSONformat

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "DBInstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Instance::InstanceId"
        }
      },
      "Resources": {
        "DBInstanceParameterGroup": {
          "Type": "ALIYUN::RDS::DBInstanceParameterGroup",
          "Properties": {
            "Parameters": [
              {
                "Key": "back_log",
                "Value": "3000"
              },
              {
                "Key": "wait_timeout",
                "Value": "86400"
              }
            ],
            "DBInstanceId": {
              "Ref": "DBInstanceId"
            },
            "Forcerestart": "false"
          }
        }
      }
    }