File: subnets.rb

package info (click to toggle)
ruby-amazon-ec2 0.9.17-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,232 kB
  • sloc: ruby: 4,659; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module AWS
  module EC2
    class Base < AWS::Base

      # The DescribeSubnets operation returns information about subnets available for use by the user
      # making the request. Selected subnets may be specified or the list may be left empty if information for
      # all registered subnets is required.
      #
      # @option options [Array] :subnet_id ([])
      #
      def describe_subnets( options = {} )
        options = { :subnet_id => [] }.merge(options)
        params = pathlist("SubnetId", options[:subnet_id] )
        return response_generator(:action => "DescribeSubnets", :params => params)
      end

    end
  end
end