edit-icon download-icon

ALIYUN::RDS::DBInstanceParameterGroup

Last Updated: Jun 13, 2018

The ALIYUN::RDS::DBInstanceParameterGroup type is used to modify the database parameter list.

Syntax

  1. {
  2. "Type" : "ALIYUN::RDS::DBInstanceParameterGroup",
  3. "Properties" : {
  4. "DBInstanceId" : String,
  5. "Parameters" : String,
  6. "Forcerestart" : Boolean
  7. }
  8. }

Properties

Name Type Required Update allowed Description Constraint
DBInstanceId string Yes No Database instance ID. N/A
Parameters list Yes No Parameters. A JSON string of parameters and their values. For example,{“auto_increment_increment”:”1”,”character_set_client”:”utf8”}.
Forcerestart string No No Whether to force a restart of the database instance. Option values: true and false. Default value: false.

Return values

Fn::GetAtt

None.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "Database": {
  5. "Type": "ALIYUN::RDS::DBInstance",
  6. "Properties": {
  7. "Engine":"MySQL",
  8. "EngineVersion":"5.6",
  9. "DBInstanceClass":"rds.mys2.small",
  10. "DBInstanceStorage":"10",
  11. "DBInstanceNetType":"Intranet",
  12. "SecurityIPList": "0.0.0.0/0"
  13. }
  14. },
  15. "DatabaseConfig": {
  16. "Type": "ALIYUN::RDS::DBInstanceParameterGroup",
  17. "Properties": {
  18. "DBInstanceId": { "Ref" : "Database" },
  19. "Parameters": [
  20. {
  21. "Key": "auto_increment_increment",
  22. "Value": "xxx"
  23. }
  24. ]
  25. }
  26. }
  27. },
  28. "Outputs": {
  29. "DBInstanceId": {
  30. "Value" : {"Fn::GetAtt": ["Database", "DBInstanceId"]}
  31. },
  32. }
  33. }
Thank you! We've received your feedback.