aws-sdk-core 2.0.21 → 2.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apis/EC2.api.json +4 -1
- data/apis/EC2.resources.json +1 -1
- data/apis/IAM.paginators.json +6 -0
- data/lib/aws-sdk-core/plugins/request_signer.rb +1 -1
- data/lib/aws-sdk-core/s3/presigner.rb +10 -2
- data/lib/aws-sdk-core/sqs.rb +0 -1
- data/lib/aws-sdk-core/version.rb +1 -1
- metadata +2 -3
- data/apis/SQS.resources.json +0 -232
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d0128d2d6580daf0b63017f7d0a98fabfb17bc2
|
4
|
+
data.tar.gz: 4991ead5885cf003f9e1b3970f41406d8b1bd95a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaddabd3242cce641127251081de9d8e1488cdd4e5c4f506610d09f0da7d372368a76e879c9e0f939a82220cb19452154c8c1eae48782693cbe1adb973330c72
|
7
|
+
data.tar.gz: ea0362d3dbedde1aaf61dea2c387076783efe98fa3c3535ceb1f2a73d67af6be7120363b96b67a0b1a9e2744bbd82859dc85ebe4ede21df9093baac1a474e21e
|
data/apis/EC2.api.json
CHANGED
data/apis/EC2.resources.json
CHANGED
data/apis/IAM.paginators.json
CHANGED
@@ -114,6 +114,12 @@
|
|
114
114
|
"more_results": "IsTruncated",
|
115
115
|
"limit_key": "MaxItems",
|
116
116
|
"result_key": "VirtualMFADevices"
|
117
|
+
},
|
118
|
+
"GetAccountAuthorizationDetails": {
|
119
|
+
"input_token": "Marker",
|
120
|
+
"output_token": "Marker",
|
121
|
+
"more_results": "IsTruncated",
|
122
|
+
"limit_key": "MaxItems"
|
117
123
|
}
|
118
124
|
}
|
119
125
|
}
|
@@ -17,7 +17,7 @@ module Aws
|
|
17
17
|
# @seahorse.client.option [String] :access_key_id Used to set credentials
|
18
18
|
# statically.
|
19
19
|
#
|
20
|
-
# @seahorse.client.option [String] :
|
20
|
+
# @seahorse.client.option [String] :secret_access_key Used to set
|
21
21
|
# credentials statically.
|
22
22
|
#
|
23
23
|
# @seahorse.client.option [String] :session_token Used to set credentials
|
@@ -28,16 +28,24 @@ module Aws
|
|
28
28
|
# @option params [Integer] :expires_in (900) The number of seconds
|
29
29
|
# before the presigned URL expires. Defaults to 15 minutes.
|
30
30
|
#
|
31
|
+
# @option params [Boolean] :secure (true) When `false`, a HTTP URL
|
32
|
+
# is returned instead of the default HTTPS URL.
|
33
|
+
#
|
31
34
|
# @raise [ArgumentError] Raises an ArgumentError if `:expires_in`
|
32
35
|
# exceeds one week.
|
33
36
|
#
|
34
37
|
def presigned_url(method, params = {})
|
38
|
+
expires_in = params.delete(:expires_in) || FIFTEEN_MINUTES
|
39
|
+
scheme = params.delete(:secure) == false ? 'http' : 'https'
|
40
|
+
|
35
41
|
request = @client.build_request(method, params)
|
36
42
|
request.handle(PresignHandler, step: :sign, priority: 99)
|
37
|
-
expires_in = params.delete(:expires_in) || FIFTEEN_MINUTES
|
38
43
|
validate_expires_in_header(expires_in)
|
39
44
|
request.context[:presigned_expires_in] = expires_in
|
40
|
-
|
45
|
+
|
46
|
+
url = URI.parse(request.send_request.data)
|
47
|
+
url.scheme = scheme
|
48
|
+
url.to_s
|
41
49
|
end
|
42
50
|
|
43
51
|
private
|
data/lib/aws-sdk-core/sqs.rb
CHANGED
data/lib/aws-sdk-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -161,7 +161,6 @@ files:
|
|
161
161
|
- apis/SNS.resources.json
|
162
162
|
- apis/SQS.api.json
|
163
163
|
- apis/SQS.paginators.json
|
164
|
-
- apis/SQS.resources.json
|
165
164
|
- apis/STS.api.json
|
166
165
|
- apis/SWF.api.json
|
167
166
|
- apis/SWF.paginators.json
|
data/apis/SQS.resources.json
DELETED
@@ -1,232 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"service": {
|
3
|
-
"actions": {
|
4
|
-
"CreateQueue": {
|
5
|
-
"request": { "operation": "CreateQueue" },
|
6
|
-
"resource": {
|
7
|
-
"type": "Queue",
|
8
|
-
"identifiers": [
|
9
|
-
{ "target": "Url", "source": "response", "path": "QueueUrl" }
|
10
|
-
]
|
11
|
-
}
|
12
|
-
},
|
13
|
-
"GetQueueByName": {
|
14
|
-
"request": { "operation": "GetQueueUrl" },
|
15
|
-
"resource": {
|
16
|
-
"type": "Queue",
|
17
|
-
"identifiers": [
|
18
|
-
{ "target": "Url", "source": "response", "path": "QueueUrl" }
|
19
|
-
]
|
20
|
-
}
|
21
|
-
}
|
22
|
-
},
|
23
|
-
"has": {
|
24
|
-
"Queue": {
|
25
|
-
"resource": {
|
26
|
-
"type": "Queue",
|
27
|
-
"identifiers": [
|
28
|
-
{ "target": "Url", "source": "input" }
|
29
|
-
]
|
30
|
-
}
|
31
|
-
}
|
32
|
-
},
|
33
|
-
"hasMany": {
|
34
|
-
"Queues": {
|
35
|
-
"request": { "operation": "ListQueues" },
|
36
|
-
"resource": {
|
37
|
-
"type": "Queue",
|
38
|
-
"identifiers": [
|
39
|
-
{ "target": "Url", "source": "response", "path": "QueueUrls[]" }
|
40
|
-
]
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
44
|
-
},
|
45
|
-
"resources": {
|
46
|
-
"Message": {
|
47
|
-
"identifiers": [
|
48
|
-
{ "name": "QueueUrl" },
|
49
|
-
{
|
50
|
-
"name": "ReceiptHandle",
|
51
|
-
"memberName": "ReceiptHandle"
|
52
|
-
}
|
53
|
-
],
|
54
|
-
"shape": "Message",
|
55
|
-
"actions": {
|
56
|
-
"ChangeVisibility": {
|
57
|
-
"request": {
|
58
|
-
"operation": "ChangeMessageVisibility",
|
59
|
-
"params": [
|
60
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "QueueUrl" },
|
61
|
-
{ "target": "ReceiptHandle", "source": "identifier", "name": "ReceiptHandle" }
|
62
|
-
]
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"Delete": {
|
66
|
-
"request": {
|
67
|
-
"operation": "DeleteMessage",
|
68
|
-
"params": [
|
69
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "QueueUrl" },
|
70
|
-
{ "target": "ReceiptHandle", "source": "identifier", "name": "ReceiptHandle" }
|
71
|
-
]
|
72
|
-
}
|
73
|
-
}
|
74
|
-
},
|
75
|
-
"batchActions": {
|
76
|
-
"Delete": {
|
77
|
-
"request": {
|
78
|
-
"operation": "DeleteMessageBatch",
|
79
|
-
"params": [
|
80
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "QueueUrl" },
|
81
|
-
{ "target": "Entries[*].Id", "source": "data", "path": "MessageId" },
|
82
|
-
{ "target": "Entries[*].ReceiptHandle", "source": "identifier", "name": "ReceiptHandle" }
|
83
|
-
]
|
84
|
-
}
|
85
|
-
}
|
86
|
-
},
|
87
|
-
"has": {
|
88
|
-
"Queue": {
|
89
|
-
"resource": {
|
90
|
-
"type": "Queue",
|
91
|
-
"identifiers": [
|
92
|
-
{ "target": "Url", "source": "identifier", "name": "QueueUrl" }
|
93
|
-
]
|
94
|
-
}
|
95
|
-
}
|
96
|
-
}
|
97
|
-
},
|
98
|
-
"Queue": {
|
99
|
-
"identifiers": [
|
100
|
-
{ "name": "Url" }
|
101
|
-
],
|
102
|
-
"shape": "GetQueueAttributesResult",
|
103
|
-
"load": {
|
104
|
-
"request": {
|
105
|
-
"operation": "GetQueueAttributes",
|
106
|
-
"params": [
|
107
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" },
|
108
|
-
{ "target": "AttributeNames[]", "source": "string", "value": "All" }
|
109
|
-
]
|
110
|
-
},
|
111
|
-
"path": "@"
|
112
|
-
},
|
113
|
-
"actions": {
|
114
|
-
"AddPermission": {
|
115
|
-
"request": {
|
116
|
-
"operation": "AddPermission",
|
117
|
-
"params": [
|
118
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
119
|
-
]
|
120
|
-
}
|
121
|
-
},
|
122
|
-
"ChangeMessageVisibilityBatch": {
|
123
|
-
"request": {
|
124
|
-
"operation": "ChangeMessageVisibilityBatch",
|
125
|
-
"params": [
|
126
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
127
|
-
]
|
128
|
-
}
|
129
|
-
},
|
130
|
-
"Delete": {
|
131
|
-
"request": {
|
132
|
-
"operation": "DeleteQueue",
|
133
|
-
"params": [
|
134
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
135
|
-
]
|
136
|
-
}
|
137
|
-
},
|
138
|
-
"DeleteMessages": {
|
139
|
-
"request": {
|
140
|
-
"operation": "DeleteMessageBatch",
|
141
|
-
"params": [
|
142
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
143
|
-
]
|
144
|
-
}
|
145
|
-
},
|
146
|
-
"Purge": {
|
147
|
-
"request": {
|
148
|
-
"operation": "PurgeQueue",
|
149
|
-
"params": [
|
150
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
151
|
-
]
|
152
|
-
}
|
153
|
-
},
|
154
|
-
"ReceiveMessages": {
|
155
|
-
"request": {
|
156
|
-
"operation": "ReceiveMessage",
|
157
|
-
"params": [
|
158
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
159
|
-
]
|
160
|
-
},
|
161
|
-
"resource": {
|
162
|
-
"type": "Message",
|
163
|
-
"identifiers": [
|
164
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" },
|
165
|
-
{ "target": "ReceiptHandle", "source": "response", "path": "Messages[].ReceiptHandle" }
|
166
|
-
],
|
167
|
-
"path": "Messages[]"
|
168
|
-
}
|
169
|
-
},
|
170
|
-
"RemovePermission": {
|
171
|
-
"request": {
|
172
|
-
"operation": "RemovePermission",
|
173
|
-
"params": [
|
174
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
175
|
-
]
|
176
|
-
}
|
177
|
-
},
|
178
|
-
"SendMessage": {
|
179
|
-
"request": {
|
180
|
-
"operation": "SendMessage",
|
181
|
-
"params": [
|
182
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
183
|
-
]
|
184
|
-
}
|
185
|
-
},
|
186
|
-
"SendMessages": {
|
187
|
-
"request": {
|
188
|
-
"operation": "SendMessageBatch",
|
189
|
-
"params": [
|
190
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
191
|
-
]
|
192
|
-
}
|
193
|
-
},
|
194
|
-
"SetAttributes": {
|
195
|
-
"request": {
|
196
|
-
"operation": "SetQueueAttributes",
|
197
|
-
"params": [
|
198
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
199
|
-
]
|
200
|
-
}
|
201
|
-
}
|
202
|
-
},
|
203
|
-
"has": {
|
204
|
-
"Message": {
|
205
|
-
"resource": {
|
206
|
-
"type": "Message",
|
207
|
-
"identifiers": [
|
208
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" },
|
209
|
-
{ "target": "ReceiptHandle", "source": "input" }
|
210
|
-
]
|
211
|
-
}
|
212
|
-
}
|
213
|
-
},
|
214
|
-
"hasMany": {
|
215
|
-
"DeadLetterSourceQueues": {
|
216
|
-
"request": {
|
217
|
-
"operation": "ListDeadLetterSourceQueues",
|
218
|
-
"params": [
|
219
|
-
{ "target": "QueueUrl", "source": "identifier", "name": "Url" }
|
220
|
-
]
|
221
|
-
},
|
222
|
-
"resource": {
|
223
|
-
"type": "Queue",
|
224
|
-
"identifiers": [
|
225
|
-
{ "target": "Url", "source": "response", "path": "QueueUrls[]" }
|
226
|
-
]
|
227
|
-
}
|
228
|
-
}
|
229
|
-
}
|
230
|
-
}
|
231
|
-
}
|
232
|
-
}
|