simple_aws 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/History.md +12 -0
  2. data/README.md +26 -26
  3. data/lib/{aws → simple_aws}/api.rb +4 -4
  4. data/lib/{aws → simple_aws}/auto_scaling.rb +6 -6
  5. data/lib/{aws → simple_aws}/call_types/action_param.rb +8 -8
  6. data/lib/{aws → simple_aws}/cloud_formation.rb +6 -6
  7. data/lib/{aws → simple_aws}/cloud_front.rb +17 -17
  8. data/lib/{aws → simple_aws}/cloud_watch.rb +6 -6
  9. data/lib/{aws → simple_aws}/core/connection.rb +4 -4
  10. data/lib/{aws → simple_aws}/core/request.rb +2 -2
  11. data/lib/{aws → simple_aws}/core/response.rb +4 -4
  12. data/lib/{aws → simple_aws}/core/util.rb +1 -1
  13. data/lib/{aws → simple_aws}/ec2.rb +6 -6
  14. data/lib/{aws → simple_aws}/elasti_cache.rb +6 -6
  15. data/lib/{aws → simple_aws}/elastic_beanstalk.rb +6 -6
  16. data/lib/{aws → simple_aws}/elb.rb +6 -6
  17. data/lib/{aws → simple_aws}/iam.rb +6 -6
  18. data/lib/{aws → simple_aws}/import_export.rb +6 -6
  19. data/lib/{aws → simple_aws}/map_reduce.rb +6 -6
  20. data/lib/{aws → simple_aws}/mechanical_turk.rb +5 -5
  21. data/lib/{aws → simple_aws}/rds.rb +6 -6
  22. data/lib/{aws → simple_aws}/s3.rb +15 -15
  23. data/lib/{aws → simple_aws}/ses.rb +6 -6
  24. data/lib/{aws → simple_aws}/signing/version2.rb +1 -1
  25. data/lib/{aws → simple_aws}/signing/version3.rb +1 -1
  26. data/lib/{aws → simple_aws}/sns.rb +6 -6
  27. data/lib/{aws → simple_aws}/sqs.rb +8 -8
  28. data/samples/cloud_front.rb +2 -2
  29. data/samples/ec2.rb +2 -2
  30. data/samples/elb.rb +2 -2
  31. data/samples/iam.rb +2 -2
  32. data/samples/s3.rb +2 -2
  33. data/samples/s3_batch_download.rb +2 -2
  34. data/samples/sqs.rb +2 -2
  35. data/samples/turk.rb +2 -2
  36. data/simple_aws.gemspec +1 -1
  37. data/test/{aws → simple_aws}/api_test.rb +3 -3
  38. data/test/{aws → simple_aws}/auto_scaling_test.rb +5 -5
  39. data/test/{aws → simple_aws}/call_types/action_param_test.rb +7 -7
  40. data/test/{aws → simple_aws}/cloud_formation_test.rb +5 -5
  41. data/test/{aws → simple_aws}/cloud_front_test.rb +11 -11
  42. data/test/{aws → simple_aws}/cloud_watch_test.rb +5 -5
  43. data/test/{aws → simple_aws}/core/connection_test.rb +16 -16
  44. data/test/{aws → simple_aws}/core/request_test.rb +3 -3
  45. data/test/{aws → simple_aws}/core/response_test.rb +23 -23
  46. data/test/{aws → simple_aws}/core/util_test.rb +7 -7
  47. data/test/{aws → simple_aws}/ec2_test.rb +5 -5
  48. data/test/{aws → simple_aws}/elasti_cache_test.rb +5 -5
  49. data/test/{aws → simple_aws}/elastic_beanstalk_test.rb +5 -5
  50. data/test/{aws → simple_aws}/elb_test.rb +5 -5
  51. data/test/{aws → simple_aws}/iam_test.rb +5 -5
  52. data/test/{aws → simple_aws}/import_export_test.rb +6 -6
  53. data/test/{aws → simple_aws}/map_reduce_test.rb +5 -5
  54. data/test/{aws → simple_aws}/mechanical_turk_test.rb +6 -6
  55. data/test/{aws → simple_aws}/rds_test.rb +5 -5
  56. data/test/{aws → simple_aws}/s3_test.rb +14 -14
  57. data/test/{aws → simple_aws}/ses.rb +6 -6
  58. data/test/{aws → simple_aws}/signing/version2_test.rb +8 -8
  59. data/test/{aws → simple_aws}/signing/version3.rb +8 -8
  60. data/test/{aws → simple_aws}/sns_test.rb +5 -5
  61. data/test/{aws → simple_aws}/sqs.rb +7 -7
  62. metadata +82 -81
data/History.md ADDED
@@ -0,0 +1,12 @@
1
+ SimpleAWS Changelog
2
+ ===================
3
+
4
+ 1.1
5
+ ---
6
+
7
+ * Change AWS:: to SimpleAWS:: and require 'aws/...' to require 'simple_aws/...'
8
+
9
+ 1.0
10
+ ---
11
+
12
+ * Initial release!
data/README.md CHANGED
@@ -33,14 +33,14 @@ It's well know that AWS has its share of warts and wtfs. SimpleAWS doesn't try t
33
33
  First of all, calling actions are implemented as ruby methods, handled through mainly through `method_missing` (S3 and CloudFront are the two current exceptions). You can call the AWS actions by AWSName or by ruby_name, they both work:
34
34
 
35
35
  ``` ruby
36
- ec2 = AWS::EC2.new key, secret
36
+ ec2 = SimpleAWS::EC2.new key, secret
37
37
  ec2.describe_instances
38
38
  ```
39
39
 
40
40
  or
41
41
 
42
42
  ``` ruby
43
- ec2 = AWS::EC2.new key, secret
43
+ ec2 = SimpleAWS::EC2.new key, secret
44
44
  ec2.DescribeInstances
45
45
  ```
46
46
 
@@ -53,7 +53,7 @@ Adding parameters to your method calls follows similar rules, with some Quality
53
53
  You can't get simpler than just using the names of the parameters as defined in the AWS docs:
54
54
 
55
55
  ``` ruby
56
- ec2 = AWS::EC2.new key, secret
56
+ ec2 = SimpleAWS::EC2.new key, secret
57
57
  ec2.describe_instances({
58
58
  "Filter.1.Name" => "instance-state-name",
59
59
  "Filter.1.Value.1" => "running"
@@ -66,7 +66,7 @@ ec2.describe_instances({
66
66
  Ruby Arrays will automatically be built into the "Key.n" format you see in the AWS docs:
67
67
 
68
68
  ``` ruby
69
- ec2 = AWS::EC2.new key, secret
69
+ ec2 = SimpleAWS::EC2.new key, secret
70
70
  ec2.describe_instances({
71
71
  "Filter.1.Name" => "instance-state-name",
72
72
  "Filter.1.Value" => ["running", "pending"]
@@ -78,7 +78,7 @@ ec2.describe_instances({
78
78
  You can take this the next step and use a Ruby Hash to make this even cleaner:
79
79
 
80
80
  ``` ruby
81
- ec2 = AWS::EC2.new key, secret
81
+ ec2 = SimpleAWS::EC2.new key, secret
82
82
  ec2.describe_instances({
83
83
  "Filter" => [
84
84
  {"Name" => "instance-state-name", "Value" => ["running", "pending"]}
@@ -88,36 +88,36 @@ ec2.describe_instances({
88
88
 
89
89
  ### Response Parsing
90
90
 
91
- All requests return an AWS::Response object which does a few cleanup tasks on the resulting XML to make it easier to query and to hide some of the worst warts an XML body tends to have.
91
+ All requests return an SimpleAWS::Response object which does a few cleanup tasks on the resulting XML to make it easier to query and to hide some of the worst warts an XML body tends to have.
92
92
 
93
- First of all, wherever AWS returns a list of items, they often get wrapped up in an `<item>` or `<member>` wrapper tag. AWS::Response gets rid of those tags and gives you a flat array to work with.
93
+ First of all, wherever AWS returns a list of items, they often get wrapped up in an `<item>` or `<member>` wrapper tag. SimpleAWS::Response gets rid of those tags and gives you a flat array to work with.
94
94
 
95
- Second, the resulting XML can have one or two wrapper objects that do nothing but encapsulate the information you're interested in. AWS::Response also jumps past these wrapper objects so you have direct access to the data in the response.
95
+ Second, the resulting XML can have one or two wrapper objects that do nothing but encapsulate the information you're interested in. SimpleAWS::Response also jumps past these wrapper objects so you have direct access to the data in the response.
96
96
 
97
- All response objects are infinitely deep queryable via methods or Hash access. See the samples, tests, and AWS::Response for more details and examples of usage. At all times you can easily inspect the current Response object for the entire response body, or just the rest of the body at the current depth level.
97
+ All response objects are infinitely deep queryable via methods or Hash access. See the samples, tests, and SimpleAWS::Response for more details and examples of usage. At all times you can easily inspect the current Response object for the entire response body, or just the rest of the body at the current depth level.
98
98
 
99
99
  Implemented APIs
100
100
  ----------------
101
101
 
102
102
  These are the Amazon APIs that SimpleAWS currently handles:
103
103
 
104
- * {AWS::S3 S3}
105
- * {AWS::EC2 EC2}
106
- * {AWS::ELB ELB}
107
- * {AWS::IAM IAM}
108
- * {AWS::MapReduce MapReduce}
109
- * {AWS::AutoScaling Auto Scaling}
110
- * {AWS::RDS RDS}
111
- * {AWS::ElastiCache ElastiCache}
112
- * {AWS::ElasticBeanstalk Elastic Beanstalk}
113
- * {AWS::CloudFormation CloudFormation}
114
- * {AWS::SNS SNS}
115
- * {AWS::CloudWatch CloudWatch}
116
- * {AWS::ImportExport ImportExport}
117
- * {AWS::MechanicalTurk MechanicalTurk}
118
- * {AWS::SQS SQS}
119
- * {AWS::SES SES}
120
- * {AWS::CloudFront CloudFront}
104
+ * {SimpleAWS::S3 S3}
105
+ * {SimpleAWS::EC2 EC2}
106
+ * {SimpleAWS::ELB ELB}
107
+ * {SimpleAWS::IAM IAM}
108
+ * {SimpleAWS::MapReduce MapReduce}
109
+ * {SimpleAWS::AutoScaling Auto Scaling}
110
+ * {SimpleAWS::RDS RDS}
111
+ * {SimpleAWS::ElastiCache ElastiCache}
112
+ * {SimpleAWS::ElasticBeanstalk Elastic Beanstalk}
113
+ * {SimpleAWS::CloudFormation CloudFormation}
114
+ * {SimpleAWS::SNS SNS}
115
+ * {SimpleAWS::CloudWatch CloudWatch}
116
+ * {SimpleAWS::ImportExport ImportExport}
117
+ * {SimpleAWS::MechanicalTurk MechanicalTurk}
118
+ * {SimpleAWS::SQS SQS}
119
+ * {SimpleAWS::SES SES}
120
+ * {SimpleAWS::CloudFront CloudFront}
121
121
 
122
122
  Not Currently Implemented
123
123
  -------------------------
@@ -1,8 +1,8 @@
1
- require 'aws/core/util'
2
- require 'aws/core/connection'
3
- require 'aws/core/request'
1
+ require 'simple_aws/core/util'
2
+ require 'simple_aws/core/connection'
3
+ require 'simple_aws/core/request'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Base class for all endpoint handler classes.
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon Auto Scaling
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class AutoScaling < API
19
19
  endpoint "autoscaling"
@@ -1,8 +1,8 @@
1
- require 'aws/core/util'
2
- require 'aws/core/request'
3
- require 'aws/core/connection'
1
+ require 'simple_aws/core/util'
2
+ require 'simple_aws/core/request'
3
+ require 'simple_aws/core/connection'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
  module CallTypes
7
7
 
8
8
  ##
@@ -14,7 +14,7 @@ module AWS
14
14
  # with either the Ruby-fied name, or the full CamelCase name, and pass in
15
15
  # options required as the parameters.
16
16
  #
17
- # All responses will be wrapped up in an {AWS::Response AWS::Response} object.
17
+ # All responses will be wrapped up in an {SimpleAWS::Response SimpleAWS::Response} object.
18
18
  ##
19
19
  module ActionParam
20
20
  ##
@@ -22,8 +22,8 @@ module AWS
22
22
  # actions and return the results
23
23
  ##
24
24
  def method_missing(name, *args)
25
- request = AWS::Request.new :post, self.uri, "/"
26
- request.params["Action"] = AWS::Util.camelcase(name.to_s)
25
+ request = SimpleAWS::Request.new :post, self.uri, "/"
26
+ request.params["Action"] = SimpleAWS::Util.camelcase(name.to_s)
27
27
 
28
28
  if args.any? && args.first.is_a?(Hash)
29
29
  insert_params_from request, args.first
@@ -35,7 +35,7 @@ module AWS
35
35
  protected
36
36
 
37
37
  def send_request(request)
38
- connection = AWS::Connection.new
38
+ connection = SimpleAWS::Connection.new
39
39
  connection.call finish_and_sign_request(request)
40
40
  end
41
41
 
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's CloudFormation
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class CloudFormation < API
19
19
  endpoint "cloudformation"
@@ -1,7 +1,7 @@
1
- require 'aws/api'
2
- require 'aws/core/util'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/core/util'
3
3
 
4
- module AWS
4
+ module SimpleAWS
5
5
 
6
6
  ##
7
7
  # Amazon's CloudFront
@@ -52,7 +52,7 @@ module AWS
52
52
  #
53
53
  # cloud_front.post "/distribution", :body => raw_body_xml
54
54
  #
55
- # All responses are wrapped in an AWS::Response object.
55
+ # All responses are wrapped in an SimpleAWS::Response object.
56
56
  ##
57
57
  class CloudFront < API
58
58
  endpoint "cloudfront"
@@ -69,9 +69,9 @@ module AWS
69
69
  # @param path [String] The path of the resource at hand
70
70
  # @param options [Hash] Options as defined above
71
71
  #
72
- # @return [AWS::Response] The results of the request
72
+ # @return [SimpleAWS::Response] The results of the request
73
73
  #
74
- # @raise [AWS::UnsuccessfulResponse, AWS::UnknownErrorResponse] on response errors
74
+ # @raise [SimpleAWS::UnsuccessfulResponse, SimpleAWS::UnknownErrorResponse] on response errors
75
75
  ##
76
76
  def get(path, options = {})
77
77
  call :get, path, options
@@ -83,9 +83,9 @@ module AWS
83
83
  # @param path [String] The path of the resource at hand
84
84
  # @param options [Hash] Options as defined above
85
85
  #
86
- # @return [AWS::Response] The results of the request
86
+ # @return [SimpleAWS::Response] The results of the request
87
87
  #
88
- # @raise [AWS::UnsuccessfulResponse, AWS::UnknownErrorResponse] on response errors
88
+ # @raise [SimpleAWS::UnsuccessfulResponse, SimpleAWS::UnknownErrorResponse] on response errors
89
89
  ##
90
90
  def post(path, options = {})
91
91
  call :post, path, options
@@ -97,9 +97,9 @@ module AWS
97
97
  # @param path [String] The path of the resource at hand
98
98
  # @param options [Hash] Options as defined above
99
99
  #
100
- # @return [AWS::Response] The results of the request
100
+ # @return [SimpleAWS::Response] The results of the request
101
101
  #
102
- # @raise [AWS::UnsuccessfulResponse, AWS::UnknownErrorResponse] on response errors
102
+ # @raise [SimpleAWS::UnsuccessfulResponse, SimpleAWS::UnknownErrorResponse] on response errors
103
103
  ##
104
104
  def put(path, options = {})
105
105
  call :put, path, options
@@ -111,9 +111,9 @@ module AWS
111
111
  # @param path [String] The path of the resource at hand
112
112
  # @param options [Hash] Options as defined above
113
113
  #
114
- # @return [AWS::Response] The results of the request
114
+ # @return [SimpleAWS::Response] The results of the request
115
115
  #
116
- # @raise [AWS::UnsuccessfulResponse, AWS::UnknownErrorResponse] on response errors
116
+ # @raise [SimpleAWS::UnsuccessfulResponse, SimpleAWS::UnknownErrorResponse] on response errors
117
117
  ##
118
118
  def delete(path, options = {})
119
119
  call :delete, path, options
@@ -126,12 +126,12 @@ module AWS
126
126
  # @param path [String] The path of the resource at hand
127
127
  # @param options [Hash] Options as defined above
128
128
  #
129
- # @return [AWS::Response] The results of the request
129
+ # @return [SimpleAWS::Response] The results of the request
130
130
  #
131
- # @raise [AWS::UnsuccessfulResponse, AWS::UnknownErrorResponse] on response errors
131
+ # @raise [SimpleAWS::UnsuccessfulResponse, SimpleAWS::UnknownErrorResponse] on response errors
132
132
  ##
133
133
  def call(method, path, options = {})
134
- request = AWS::Request.new method, self.uri, "/#{self.version}#{path}"
134
+ request = SimpleAWS::Request.new method, self.uri, "/#{self.version}#{path}"
135
135
 
136
136
  (options[:params] || {}).each do |k, v|
137
137
  request.params[k] = v
@@ -145,13 +145,13 @@ module AWS
145
145
  raise ":xml must be a Hash" unless xml.is_a?(Hash)
146
146
 
147
147
  namespace = "http://cloudfront.amazonaws.com/doc/#{self.version}"
148
- request.body = AWS::Util.build_xml_from xml, namespace
148
+ request.body = SimpleAWS::Util.build_xml_from xml, namespace
149
149
  request.headers["Content-Type"] = "text/xml"
150
150
  else
151
151
  request.body = options[:body]
152
152
  end
153
153
 
154
- connection = AWS::Connection.new
154
+ connection = SimpleAWS::Connection.new
155
155
  connection.call finish_and_sign_request(request)
156
156
  end
157
157
 
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Cloud Watch
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class CloudWatch < API
19
19
  endpoint "monitoring"
@@ -1,7 +1,7 @@
1
1
  require 'httparty'
2
2
  require 'openssl'
3
3
 
4
- require 'aws/core/response'
4
+ require 'simple_aws/core/response'
5
5
 
6
6
  ##
7
7
  # Monkey-patch body_stream usage into HTTParty
@@ -27,7 +27,7 @@ module HTTParty
27
27
  end
28
28
  end
29
29
 
30
- module AWS
30
+ module SimpleAWS
31
31
 
32
32
  ##
33
33
  # Custom response parser to handle the various craziness of the AWS API
@@ -55,11 +55,11 @@ module AWS
55
55
  class Connection
56
56
 
57
57
  ##
58
- # Send an AWS::Request to AWS proper, returning an AWS::Response.
58
+ # Send an SimpleAWS::Request to AWS proper, returning an SimpleAWS::Response.
59
59
  # Will raise if the request has an error
60
60
  ##
61
61
  def call(request)
62
- AWS::Response.new(
62
+ SimpleAWS::Response.new(
63
63
  HTTP.send(request.method,
64
64
  request.uri,
65
65
  :query => request.params,
@@ -1,4 +1,4 @@
1
- module AWS
1
+ module SimpleAWS
2
2
 
3
3
  ##
4
4
  # Defines all request information needed to run a request against an AWS API
@@ -44,7 +44,7 @@ module AWS
44
44
  # specified in the API, and the values must be Hashes, Arrays, or serializable
45
45
  # values like Fixnum, Boolean, or String.
46
46
  #
47
- # A more detailed example can be found in test/aws/request_test.rb where you'll
47
+ # A more detailed example can be found in test/simple_aws/request_test.rb where you'll
48
48
  # see how to use many levels of nesting to build your AWS request.
49
49
  ##
50
50
  class Request
@@ -1,6 +1,6 @@
1
- require 'aws/core/util'
1
+ require 'simple_aws/core/util'
2
2
 
3
- module AWS
3
+ module SimpleAWS
4
4
 
5
5
  class UnsuccessfulResponse < RuntimeError
6
6
  attr_reader :code
@@ -133,8 +133,8 @@ module AWS
133
133
  def key_matching(name)
134
134
  return nil if @local_root.is_a? Array
135
135
 
136
- lower_base_aws_name = AWS::Util.camelcase name.to_s, :lower
137
- upper_base_aws_name = AWS::Util.camelcase name.to_s
136
+ lower_base_aws_name = SimpleAWS::Util.camelcase name.to_s, :lower
137
+ upper_base_aws_name = SimpleAWS::Util.camelcase name.to_s
138
138
 
139
139
  keys = @local_root.keys
140
140
 
@@ -1,6 +1,6 @@
1
1
  require 'nokogiri'
2
2
 
3
- module AWS
3
+ module SimpleAWS
4
4
  ##
5
5
  # Collection of helper methods used in the library
6
6
  ##
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Elastic Computing Cloud
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class EC2 < API
19
19
  endpoint "ec2"
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's ElastiCache
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class ElastiCache < API
19
19
  endpoint "elasticache"
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Elastic Beanstalk
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class ElasticBeanstalk < API
19
19
  endpoint "elasticbeanstalk"
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Elastic Load Balancing API
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class ELB < API
19
19
  endpoint "elasticloadbalancing"
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Identity and Access Management
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class IAM < API
19
19
  endpoint "iam"
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Import / Export
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS.
13
13
  # This API does not support region specifiers.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class ImportExport < API
19
19
  endpoint "importexport"
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Elastic MapReduce
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class MapReduce < API
19
19
  endpoint "elasticmapreduce"
@@ -1,7 +1,7 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
3
 
4
- module AWS
4
+ module SimpleAWS
5
5
 
6
6
  ##
7
7
  # Amazon's Mechanical Turk
@@ -15,8 +15,8 @@ module AWS
15
15
  # For a more fleshed out object API for interacting with MechanicalTurk, you should
16
16
  # give rturk a try here: https://github.com/mdp/rturk
17
17
  #
18
- # @see AWS::CallTypes::ActionParam Calling rules
19
- # @see AWS::Response Response handling
18
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
19
+ # @see SimpleAWS::Response Response handling
20
20
  ##
21
21
  class MechanicalTurk < API
22
22
  endpoint "mechanicalturk"
@@ -1,8 +1,8 @@
1
- require 'aws/api'
2
- require 'aws/call_types/action_param'
3
- require 'aws/signing/version2'
1
+ require 'simple_aws/api'
2
+ require 'simple_aws/call_types/action_param'
3
+ require 'simple_aws/signing/version2'
4
4
 
5
- module AWS
5
+ module SimpleAWS
6
6
 
7
7
  ##
8
8
  # Amazon's Relational Database Service
@@ -12,8 +12,8 @@ module AWS
12
12
  # All requests are POST and always through HTTPS. Use the third parameter to
13
13
  # #initialize if you need to talk to a region other than us-east-1.
14
14
  #
15
- # @see AWS::CallTypes::ActionParam Calling rules
16
- # @see AWS::Response Response handling
15
+ # @see SimpleAWS::CallTypes::ActionParam Calling rules
16
+ # @see SimpleAWS::Response Response handling
17
17
  ##
18
18
  class RDS < API
19
19
  endpoint "rds"