lib/rds/right_rds_interface.rb
# Modify an existing DB Subnet Group.
#
#  rds.modify_db_subnet_group('kd-subnet-group', ['subnet-5259d03a', 'subnet-eb518f83'], 'hahaha!') #=>
#    {:subnets=>
#      [{:availability_zone=>
#         {:name=>"us-east-1d", :provisioned_iops_capable=>false},
#        :status=>"Active",
#        :subnet_id=>"subnet-5259d03a"},
#       {:availability_zone=>
#         {:name=>"us-east-1a", :provisioned_iops_capable=>false},
#        :status=>"Active",
#        :subnet_id=>"subnet-eb518f83"}],
#     :vpc_id=>"vpc-10518f78",
#     :status=>"Complete",
#     :description=>"hahaha!",
#     :name=>"kd-subnet-group"}
#
# P.S. http://docs.amazonwebservices.com/AmazonRDS/latest/APIReference/API_ModifyDBSubnetGroup.html
#
Modify an existing DB Subnet Group.


Modify an existing DB Subnet Group .
def modify_db_subnet_group(subnet_group_name, subnets, subnet_group_description = '')
      request_hash = { 'DBSubnetGroupName' => subnet_group_name}
      request_hash['DBSubnetGroupDescription'] = subnet_group_description unless subnet_group_description.right_blank?
      request_hash.merge!(amazonize_list('SubnetIds.member',  subnets))
      link = generate_request('ModifyDBSubnetGroup', request_hash)
      request_info(link, DescribeDBSubnetGroupsParser.new(:logger => @logger))[:subnet_groups].first
    end
def modify_db_subnet_group ( subnet_group_name , subnets , subnet_group_description = '' ) request_hash = { 'DBSubnetGroupName' => subnet_group_name } request_hash [ 'DBSubnetGroupDescription' ] = subnet_group_description unless subnet_group_description . right_blank? request_hash . merge! ( amazonize_list ( 'SubnetIds.member' , subnets ) ) link = generate_request ( 'ModifyDBSubnetGroup' , request_hash ) request_info ( link , DescribeDBSubnetGroupsParser . new ( :logger => @logger ) ) [ :subnet_groups ] . first end
Modify an existing DB Subnet Group.
Modify an existing DB Subnet Group .
subnet_group_name
<not_specific>
subnets
<not_specific>
subnet_group_description
<not_specific>