1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Support VPC security group modifictions for RDS

This commit is contained in:
Mike Marion 2014-03-03 15:39:52 -06:00
parent 41072e9f7d
commit 53fc540950

View file

@ -24,6 +24,7 @@ module Fog
# * MultiAZ <~Boolean> Specifies if the DB Instance is a Multi-AZ deployment
# * PreferredBackupWindow <~String> The daily time range during which automated backups are created if automated backups are enabled
# * PreferredMaintenanceWindow <~String> The weekly time range (in UTC) during which system maintenance can occur, which may result in an outage
# * VpcSecurityGroups <~Array> A list of VPC Security Group IDs to authorize on this DB instance
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
@ -33,6 +34,10 @@ module Fog
options.merge!(Fog::AWS.indexed_param('DBSecurityGroups.member.%d', [*security_groups]))
end
if vpc_security_groups = options.delete('VpcSecurityGroups')
options.merge!(Fog::AWS.indexed_param('VpcSecurityGroupIds.member.%d', [*vpc_security_groups]))
end
request({
'Action' => 'ModifyDBInstance',
'DBInstanceIdentifier' => db_name,