1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
module Fog
module AWS
class RDS
class Real
require 'fog/aws/parsers/rds/modify_db_subnet_group.rb'
# Creates a db subnet group
# http://docs.aws.amazon.com/AmazonRDS/2012-01-15/APIReference/API_ModifyDBSubnetGroup.html
# ==== Parameters
# * DBSubnetGroupName <~String> - The name for the DB Subnet Group. This value is stored as a lowercase string. Must contain no more than 255 alphanumeric characters or hyphens. Must not be "Default".
# * SubnetIds <~Array> - The EC2 Subnet IDs for the DB Subnet Group.
# * DBSubnetGroupDescription <~String> - The description for the DB Subnet Group
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
def modify_db_subnet_group(name, subnet_ids, description = nil)
params = { 'Action' => 'ModifyDBSubnetGroup',
'DBSubnetGroupName' => name,
'DBSubnetGroupDescription' => description,
:parser => Fog::Parsers::AWS::RDS::ModifyDBSubnetGroup.new }
params.merge!(Fog::AWS.indexed_param("SubnetIds.member", Array(subnet_ids)))
request(params)
end
end
end
end
end
|