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.
- data/History.md +12 -0
- data/README.md +26 -26
- data/lib/{aws → simple_aws}/api.rb +4 -4
- data/lib/{aws → simple_aws}/auto_scaling.rb +6 -6
- data/lib/{aws → simple_aws}/call_types/action_param.rb +8 -8
- data/lib/{aws → simple_aws}/cloud_formation.rb +6 -6
- data/lib/{aws → simple_aws}/cloud_front.rb +17 -17
- data/lib/{aws → simple_aws}/cloud_watch.rb +6 -6
- data/lib/{aws → simple_aws}/core/connection.rb +4 -4
- data/lib/{aws → simple_aws}/core/request.rb +2 -2
- data/lib/{aws → simple_aws}/core/response.rb +4 -4
- data/lib/{aws → simple_aws}/core/util.rb +1 -1
- data/lib/{aws → simple_aws}/ec2.rb +6 -6
- data/lib/{aws → simple_aws}/elasti_cache.rb +6 -6
- data/lib/{aws → simple_aws}/elastic_beanstalk.rb +6 -6
- data/lib/{aws → simple_aws}/elb.rb +6 -6
- data/lib/{aws → simple_aws}/iam.rb +6 -6
- data/lib/{aws → simple_aws}/import_export.rb +6 -6
- data/lib/{aws → simple_aws}/map_reduce.rb +6 -6
- data/lib/{aws → simple_aws}/mechanical_turk.rb +5 -5
- data/lib/{aws → simple_aws}/rds.rb +6 -6
- data/lib/{aws → simple_aws}/s3.rb +15 -15
- data/lib/{aws → simple_aws}/ses.rb +6 -6
- data/lib/{aws → simple_aws}/signing/version2.rb +1 -1
- data/lib/{aws → simple_aws}/signing/version3.rb +1 -1
- data/lib/{aws → simple_aws}/sns.rb +6 -6
- data/lib/{aws → simple_aws}/sqs.rb +8 -8
- data/samples/cloud_front.rb +2 -2
- data/samples/ec2.rb +2 -2
- data/samples/elb.rb +2 -2
- data/samples/iam.rb +2 -2
- data/samples/s3.rb +2 -2
- data/samples/s3_batch_download.rb +2 -2
- data/samples/sqs.rb +2 -2
- data/samples/turk.rb +2 -2
- data/simple_aws.gemspec +1 -1
- data/test/{aws → simple_aws}/api_test.rb +3 -3
- data/test/{aws → simple_aws}/auto_scaling_test.rb +5 -5
- data/test/{aws → simple_aws}/call_types/action_param_test.rb +7 -7
- data/test/{aws → simple_aws}/cloud_formation_test.rb +5 -5
- data/test/{aws → simple_aws}/cloud_front_test.rb +11 -11
- data/test/{aws → simple_aws}/cloud_watch_test.rb +5 -5
- data/test/{aws → simple_aws}/core/connection_test.rb +16 -16
- data/test/{aws → simple_aws}/core/request_test.rb +3 -3
- data/test/{aws → simple_aws}/core/response_test.rb +23 -23
- data/test/{aws → simple_aws}/core/util_test.rb +7 -7
- data/test/{aws → simple_aws}/ec2_test.rb +5 -5
- data/test/{aws → simple_aws}/elasti_cache_test.rb +5 -5
- data/test/{aws → simple_aws}/elastic_beanstalk_test.rb +5 -5
- data/test/{aws → simple_aws}/elb_test.rb +5 -5
- data/test/{aws → simple_aws}/iam_test.rb +5 -5
- data/test/{aws → simple_aws}/import_export_test.rb +6 -6
- data/test/{aws → simple_aws}/map_reduce_test.rb +5 -5
- data/test/{aws → simple_aws}/mechanical_turk_test.rb +6 -6
- data/test/{aws → simple_aws}/rds_test.rb +5 -5
- data/test/{aws → simple_aws}/s3_test.rb +14 -14
- data/test/{aws → simple_aws}/ses.rb +6 -6
- data/test/{aws → simple_aws}/signing/version2_test.rb +8 -8
- data/test/{aws → simple_aws}/signing/version3.rb +8 -8
- data/test/{aws → simple_aws}/sns_test.rb +5 -5
- data/test/{aws → simple_aws}/sqs.rb +7 -7
- metadata +82 -81
data/History.md
ADDED
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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
|
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.
|
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.
|
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
|
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
|
-
* {
|
105
|
-
* {
|
106
|
-
* {
|
107
|
-
* {
|
108
|
-
* {
|
109
|
-
* {
|
110
|
-
* {
|
111
|
-
* {
|
112
|
-
* {
|
113
|
-
* {
|
114
|
-
* {
|
115
|
-
* {
|
116
|
-
* {
|
117
|
-
* {
|
118
|
-
* {
|
119
|
-
* {
|
120
|
-
* {
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/core/util'
|
2
|
+
require 'simple_aws/core/connection'
|
3
|
+
require 'simple_aws/core/request'
|
4
4
|
|
5
|
-
module
|
5
|
+
module SimpleAWS
|
6
6
|
|
7
7
|
##
|
8
8
|
# Base class for all endpoint handler classes.
|
@@ -1,8 +1,8 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/core/util'
|
2
|
+
require 'simple_aws/core/request'
|
3
|
+
require 'simple_aws/core/connection'
|
4
4
|
|
5
|
-
module
|
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 {
|
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 =
|
26
|
-
request.params["Action"] =
|
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 =
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/core/util'
|
3
3
|
|
4
|
-
module
|
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
|
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 [
|
72
|
+
# @return [SimpleAWS::Response] The results of the request
|
73
73
|
#
|
74
|
-
# @raise [
|
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 [
|
86
|
+
# @return [SimpleAWS::Response] The results of the request
|
87
87
|
#
|
88
|
-
# @raise [
|
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 [
|
100
|
+
# @return [SimpleAWS::Response] The results of the request
|
101
101
|
#
|
102
|
-
# @raise [
|
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 [
|
114
|
+
# @return [SimpleAWS::Response] The results of the request
|
115
115
|
#
|
116
|
-
# @raise [
|
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 [
|
129
|
+
# @return [SimpleAWS::Response] The results of the request
|
130
130
|
#
|
131
|
-
# @raise [
|
131
|
+
# @raise [SimpleAWS::UnsuccessfulResponse, SimpleAWS::UnknownErrorResponse] on response errors
|
132
132
|
##
|
133
133
|
def call(method, path, options = {})
|
134
|
-
request =
|
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 =
|
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 =
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
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
|
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
|
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
|
-
|
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
|
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/
|
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 '
|
1
|
+
require 'simple_aws/core/util'
|
2
2
|
|
3
|
-
module
|
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 =
|
137
|
-
upper_base_aws_name =
|
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,8 +1,8 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
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 '
|
2
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
3
|
|
4
|
-
module
|
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
|
19
|
-
# @see
|
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 '
|
2
|
-
require '
|
3
|
-
require '
|
1
|
+
require 'simple_aws/api'
|
2
|
+
require 'simple_aws/call_types/action_param'
|
3
|
+
require 'simple_aws/signing/version2'
|
4
4
|
|
5
|
-
module
|
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
|
16
|
-
# @see
|
15
|
+
# @see SimpleAWS::CallTypes::ActionParam Calling rules
|
16
|
+
# @see SimpleAWS::Response Response handling
|
17
17
|
##
|
18
18
|
class RDS < API
|
19
19
|
endpoint "rds"
|