amazon-ec2 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/amazon-ec2.gemspec +1 -1
- data/lib/AWS/RDS/rds.rb +5 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.12
|
data/amazon-ec2.gemspec
CHANGED
data/lib/AWS/RDS/rds.rb
CHANGED
@@ -347,12 +347,15 @@ module AWS
|
|
347
347
|
# @option options [String] :db_security_groups are the list of db security groups to associate with the instance (nil)
|
348
348
|
# @option options [String] :availability_zone is the availability_zone to create the instance in (nil)
|
349
349
|
# @option options [String] :preferred_maintenance_window in format: ddd:hh24:mi-ddd:hh24:mi (nil)
|
350
|
-
# @option options [String] :
|
350
|
+
# @option options [String] :backup_retention_period is the number of days which automated backups are retained (1)
|
351
351
|
# @option options [String] :preferred_backup_window is the daily time range for which automated backups are created
|
352
352
|
#
|
353
353
|
def modify_db_instance( options = {})
|
354
354
|
raise ArgumentError, "No :db_instance_identifier provided" if options.does_not_have?(:db_instance_identifier)
|
355
355
|
|
356
|
+
# handle a former argument that was misspelled
|
357
|
+
raise ArgumentError, "Perhaps you meant :backup_retention_period" if options.has?(:backend_retention_period)
|
358
|
+
|
356
359
|
params = {}
|
357
360
|
params['DBInstanceIdentifier'] = options[:db_instance_identifier]
|
358
361
|
|
@@ -367,7 +370,7 @@ module AWS
|
|
367
370
|
params["DBSecurityGroups"] = options[:db_security_groups] if options.has?(:db_security_groups)
|
368
371
|
params["AvailabilityZone"] = options[:availability_zone] if options.has?(:availability_zone)
|
369
372
|
params["PreferredMaintenanceWindow"] = options[:preferred_maintenance_window] if options.has?(:preferred_maintenance_window)
|
370
|
-
params["BackupRetentionPeriod"] = options[:
|
373
|
+
params["BackupRetentionPeriod"] = options[:backup_retention_period].to_s if options.has?(:backup_retention_period)
|
371
374
|
params["PreferredBackupWindow"] = options[:preferred_backup_window] if options.has?(:preferred_backup_window)
|
372
375
|
|
373
376
|
return response_generator(:action => "ModifyDBInstance", :params => params)
|