aws-sdk-core 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/apis/CognitoIdentity.api.json +273 -4
- data/lib/aws-sdk-core/endpoint_provider.rb +2 -2
- data/lib/aws-sdk-core/errors.rb +1 -1
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +3 -1
- data/lib/aws-sdk-core/signers/v4.rb +16 -2
- data/lib/aws-sdk-core/version.rb +1 -1
- data/lib/seahorse/client/base.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 095a9cf0ab8ce8b2d557d82cf246cc112d147bb9
|
4
|
+
data.tar.gz: 1d25a79ad4192d181988f1e0a6afeda1711ed5b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebb815c6c334e6a04b43ef2de7a9d03277de84ac45f0ad6e645a85f8419ce5f57c5451861e1de0d8c71eef34f5ac4df2d70f7b42fd671d038ba920d6e7a71b3e
|
7
|
+
data.tar.gz: b444dd58b8fa3f6f79299c4a8b06da6a9ddf413bbbb27362d114778ef642b65a9374b9f854bc1788975dc38c0efc846e53137e5fb461b8f21ed5735257596156
|
@@ -208,6 +208,52 @@
|
|
208
208
|
}
|
209
209
|
]
|
210
210
|
},
|
211
|
+
"GetOpenIdTokenForDeveloperIdentity":{
|
212
|
+
"name":"GetOpenIdTokenForDeveloperIdentity",
|
213
|
+
"http":{
|
214
|
+
"method":"POST",
|
215
|
+
"requestUri":"/"
|
216
|
+
},
|
217
|
+
"input":{"shape":"GetOpenIdTokenForDeveloperIdentityInput"},
|
218
|
+
"output":{"shape":"GetOpenIdTokenForDeveloperIdentityResponse"},
|
219
|
+
"errors":[
|
220
|
+
{
|
221
|
+
"shape":"InvalidParameterException",
|
222
|
+
"error":{"httpStatusCode":400},
|
223
|
+
"exception":true
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"shape":"ResourceNotFoundException",
|
227
|
+
"error":{"httpStatusCode":404},
|
228
|
+
"exception":true
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"shape":"NotAuthorizedException",
|
232
|
+
"error":{"httpStatusCode":403},
|
233
|
+
"exception":true
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"shape":"ResourceConflictException",
|
237
|
+
"error":{"httpStatusCode":409},
|
238
|
+
"exception":true
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"shape":"TooManyRequestsException",
|
242
|
+
"error":{"httpStatusCode":429},
|
243
|
+
"exception":true
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"shape":"InternalErrorException",
|
247
|
+
"exception":true,
|
248
|
+
"fault":true
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"shape":"DeveloperUserAlreadyRegisteredException",
|
252
|
+
"error":{"httpStatusCode":400},
|
253
|
+
"exception":true
|
254
|
+
}
|
255
|
+
]
|
256
|
+
},
|
211
257
|
"ListIdentities":{
|
212
258
|
"name":"ListIdentities",
|
213
259
|
"http":{
|
@@ -275,6 +321,128 @@
|
|
275
321
|
}
|
276
322
|
]
|
277
323
|
},
|
324
|
+
"LookupDeveloperIdentity":{
|
325
|
+
"name":"LookupDeveloperIdentity",
|
326
|
+
"http":{
|
327
|
+
"method":"POST",
|
328
|
+
"requestUri":"/"
|
329
|
+
},
|
330
|
+
"input":{"shape":"LookupDeveloperIdentityInput"},
|
331
|
+
"output":{"shape":"LookupDeveloperIdentityResponse"},
|
332
|
+
"errors":[
|
333
|
+
{
|
334
|
+
"shape":"InvalidParameterException",
|
335
|
+
"error":{"httpStatusCode":400},
|
336
|
+
"exception":true
|
337
|
+
},
|
338
|
+
{
|
339
|
+
"shape":"ResourceNotFoundException",
|
340
|
+
"error":{"httpStatusCode":404},
|
341
|
+
"exception":true
|
342
|
+
},
|
343
|
+
{
|
344
|
+
"shape":"NotAuthorizedException",
|
345
|
+
"error":{"httpStatusCode":403},
|
346
|
+
"exception":true
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"shape":"ResourceConflictException",
|
350
|
+
"error":{"httpStatusCode":409},
|
351
|
+
"exception":true
|
352
|
+
},
|
353
|
+
{
|
354
|
+
"shape":"TooManyRequestsException",
|
355
|
+
"error":{"httpStatusCode":429},
|
356
|
+
"exception":true
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"shape":"InternalErrorException",
|
360
|
+
"exception":true,
|
361
|
+
"fault":true
|
362
|
+
}
|
363
|
+
]
|
364
|
+
},
|
365
|
+
"MergeDeveloperIdentities":{
|
366
|
+
"name":"MergeDeveloperIdentities",
|
367
|
+
"http":{
|
368
|
+
"method":"POST",
|
369
|
+
"requestUri":"/"
|
370
|
+
},
|
371
|
+
"input":{"shape":"MergeDeveloperIdentitiesInput"},
|
372
|
+
"output":{"shape":"MergeDeveloperIdentitiesResponse"},
|
373
|
+
"errors":[
|
374
|
+
{
|
375
|
+
"shape":"InvalidParameterException",
|
376
|
+
"error":{"httpStatusCode":400},
|
377
|
+
"exception":true
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"shape":"ResourceNotFoundException",
|
381
|
+
"error":{"httpStatusCode":404},
|
382
|
+
"exception":true
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"shape":"NotAuthorizedException",
|
386
|
+
"error":{"httpStatusCode":403},
|
387
|
+
"exception":true
|
388
|
+
},
|
389
|
+
{
|
390
|
+
"shape":"ResourceConflictException",
|
391
|
+
"error":{"httpStatusCode":409},
|
392
|
+
"exception":true
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"shape":"TooManyRequestsException",
|
396
|
+
"error":{"httpStatusCode":429},
|
397
|
+
"exception":true
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"shape":"InternalErrorException",
|
401
|
+
"exception":true,
|
402
|
+
"fault":true
|
403
|
+
}
|
404
|
+
]
|
405
|
+
},
|
406
|
+
"UnlinkDeveloperIdentity":{
|
407
|
+
"name":"UnlinkDeveloperIdentity",
|
408
|
+
"http":{
|
409
|
+
"method":"POST",
|
410
|
+
"requestUri":"/"
|
411
|
+
},
|
412
|
+
"input":{"shape":"UnlinkDeveloperIdentityInput"},
|
413
|
+
"errors":[
|
414
|
+
{
|
415
|
+
"shape":"InvalidParameterException",
|
416
|
+
"error":{"httpStatusCode":400},
|
417
|
+
"exception":true
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"shape":"ResourceNotFoundException",
|
421
|
+
"error":{"httpStatusCode":404},
|
422
|
+
"exception":true
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"shape":"NotAuthorizedException",
|
426
|
+
"error":{"httpStatusCode":403},
|
427
|
+
"exception":true
|
428
|
+
},
|
429
|
+
{
|
430
|
+
"shape":"ResourceConflictException",
|
431
|
+
"error":{"httpStatusCode":409},
|
432
|
+
"exception":true
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"shape":"TooManyRequestsException",
|
436
|
+
"error":{"httpStatusCode":429},
|
437
|
+
"exception":true
|
438
|
+
},
|
439
|
+
{
|
440
|
+
"shape":"InternalErrorException",
|
441
|
+
"exception":true,
|
442
|
+
"fault":true
|
443
|
+
}
|
444
|
+
]
|
445
|
+
},
|
278
446
|
"UnlinkIdentity":{
|
279
447
|
"name":"UnlinkIdentity",
|
280
448
|
"http":{
|
@@ -373,7 +541,8 @@
|
|
373
541
|
"members":{
|
374
542
|
"IdentityPoolName":{"shape":"IdentityPoolName"},
|
375
543
|
"AllowUnauthenticatedIdentities":{"shape":"IdentityPoolUnauthenticated"},
|
376
|
-
"SupportedLoginProviders":{"shape":"IdentityProviders"}
|
544
|
+
"SupportedLoginProviders":{"shape":"IdentityProviders"},
|
545
|
+
"DeveloperProviderName":{"shape":"DeveloperProviderName"}
|
377
546
|
}
|
378
547
|
},
|
379
548
|
"DeleteIdentityPoolInput":{
|
@@ -390,6 +559,25 @@
|
|
390
559
|
"IdentityPoolId":{"shape":"IdentityPoolId"}
|
391
560
|
}
|
392
561
|
},
|
562
|
+
"DeveloperProviderName":{
|
563
|
+
"type":"string",
|
564
|
+
"min":1,
|
565
|
+
"max":128,
|
566
|
+
"pattern":"[\\w._-]+"
|
567
|
+
},
|
568
|
+
"DeveloperUserAlreadyRegisteredException":{
|
569
|
+
"type":"structure",
|
570
|
+
"members":{
|
571
|
+
"message":{"shape":"String"}
|
572
|
+
},
|
573
|
+
"error":{"httpStatusCode":400},
|
574
|
+
"exception":true
|
575
|
+
},
|
576
|
+
"DeveloperUserIdentifier":{"type":"string"},
|
577
|
+
"DeveloperUserIdentifierList":{
|
578
|
+
"type":"list",
|
579
|
+
"member":{"shape":"DeveloperUserIdentifier"}
|
580
|
+
},
|
393
581
|
"GetIdInput":{
|
394
582
|
"type":"structure",
|
395
583
|
"required":[
|
@@ -408,6 +596,26 @@
|
|
408
596
|
"IdentityId":{"shape":"IdentityId"}
|
409
597
|
}
|
410
598
|
},
|
599
|
+
"GetOpenIdTokenForDeveloperIdentityInput":{
|
600
|
+
"type":"structure",
|
601
|
+
"required":[
|
602
|
+
"IdentityPoolId",
|
603
|
+
"Logins"
|
604
|
+
],
|
605
|
+
"members":{
|
606
|
+
"IdentityPoolId":{"shape":"IdentityPoolId"},
|
607
|
+
"IdentityId":{"shape":"IdentityId"},
|
608
|
+
"Logins":{"shape":"LoginsMap"},
|
609
|
+
"TokenDuration":{"shape":"TokenDuration"}
|
610
|
+
}
|
611
|
+
},
|
612
|
+
"GetOpenIdTokenForDeveloperIdentityResponse":{
|
613
|
+
"type":"structure",
|
614
|
+
"members":{
|
615
|
+
"IdentityId":{"shape":"IdentityId"},
|
616
|
+
"Token":{"shape":"OIDCToken"}
|
617
|
+
}
|
618
|
+
},
|
411
619
|
"GetOpenIdTokenInput":{
|
412
620
|
"type":"structure",
|
413
621
|
"required":["IdentityId"],
|
@@ -451,7 +659,8 @@
|
|
451
659
|
"IdentityPoolId":{"shape":"IdentityPoolId"},
|
452
660
|
"IdentityPoolName":{"shape":"IdentityPoolName"},
|
453
661
|
"AllowUnauthenticatedIdentities":{"shape":"IdentityPoolUnauthenticated"},
|
454
|
-
"SupportedLoginProviders":{"shape":"IdentityProviders"}
|
662
|
+
"SupportedLoginProviders":{"shape":"IdentityProviders"},
|
663
|
+
"DeveloperProviderName":{"shape":"DeveloperProviderName"}
|
455
664
|
}
|
456
665
|
},
|
457
666
|
"IdentityPoolId":{
|
@@ -500,7 +709,7 @@
|
|
500
709
|
"type":"map",
|
501
710
|
"key":{"shape":"IdentityProviderName"},
|
502
711
|
"value":{"shape":"IdentityProviderId"},
|
503
|
-
"max":
|
712
|
+
"max":10
|
504
713
|
},
|
505
714
|
"InternalErrorException":{
|
506
715
|
"type":"structure",
|
@@ -569,7 +778,47 @@
|
|
569
778
|
"type":"map",
|
570
779
|
"key":{"shape":"IdentityProviderName"},
|
571
780
|
"value":{"shape":"IdentityProviderToken"},
|
572
|
-
"max":
|
781
|
+
"max":10
|
782
|
+
},
|
783
|
+
"LookupDeveloperIdentityInput":{
|
784
|
+
"type":"structure",
|
785
|
+
"required":["IdentityPoolId"],
|
786
|
+
"members":{
|
787
|
+
"IdentityPoolId":{"shape":"IdentityPoolId"},
|
788
|
+
"IdentityId":{"shape":"IdentityId"},
|
789
|
+
"DeveloperUserIdentifier":{"shape":"DeveloperUserIdentifier"},
|
790
|
+
"MaxResults":{"shape":"QueryLimit"},
|
791
|
+
"NextToken":{"shape":"PaginationKey"}
|
792
|
+
}
|
793
|
+
},
|
794
|
+
"LookupDeveloperIdentityResponse":{
|
795
|
+
"type":"structure",
|
796
|
+
"members":{
|
797
|
+
"IdentityId":{"shape":"IdentityId"},
|
798
|
+
"DeveloperUserIdentifierList":{"shape":"DeveloperUserIdentifierList"},
|
799
|
+
"NextToken":{"shape":"PaginationKey"}
|
800
|
+
}
|
801
|
+
},
|
802
|
+
"MergeDeveloperIdentitiesInput":{
|
803
|
+
"type":"structure",
|
804
|
+
"required":[
|
805
|
+
"SourceUserIdentifier",
|
806
|
+
"DestinationUserIdentifier",
|
807
|
+
"DeveloperProviderName",
|
808
|
+
"IdentityPoolId"
|
809
|
+
],
|
810
|
+
"members":{
|
811
|
+
"SourceUserIdentifier":{"shape":"DeveloperUserIdentifier"},
|
812
|
+
"DestinationUserIdentifier":{"shape":"DeveloperUserIdentifier"},
|
813
|
+
"DeveloperProviderName":{"shape":"DeveloperProviderName"},
|
814
|
+
"IdentityPoolId":{"shape":"IdentityPoolId"}
|
815
|
+
}
|
816
|
+
},
|
817
|
+
"MergeDeveloperIdentitiesResponse":{
|
818
|
+
"type":"structure",
|
819
|
+
"members":{
|
820
|
+
"IdentityId":{"shape":"IdentityId"}
|
821
|
+
}
|
573
822
|
},
|
574
823
|
"NotAuthorizedException":{
|
575
824
|
"type":"structure",
|
@@ -606,6 +855,11 @@
|
|
606
855
|
"exception":true
|
607
856
|
},
|
608
857
|
"String":{"type":"string"},
|
858
|
+
"TokenDuration":{
|
859
|
+
"type":"long",
|
860
|
+
"min":1,
|
861
|
+
"max":86400
|
862
|
+
},
|
609
863
|
"TooManyRequestsException":{
|
610
864
|
"type":"structure",
|
611
865
|
"members":{
|
@@ -614,6 +868,21 @@
|
|
614
868
|
"error":{"httpStatusCode":429},
|
615
869
|
"exception":true
|
616
870
|
},
|
871
|
+
"UnlinkDeveloperIdentityInput":{
|
872
|
+
"type":"structure",
|
873
|
+
"required":[
|
874
|
+
"IdentityId",
|
875
|
+
"IdentityPoolId",
|
876
|
+
"DeveloperProviderName",
|
877
|
+
"DeveloperUserIdentifier"
|
878
|
+
],
|
879
|
+
"members":{
|
880
|
+
"IdentityId":{"shape":"IdentityId"},
|
881
|
+
"IdentityPoolId":{"shape":"IdentityPoolId"},
|
882
|
+
"DeveloperProviderName":{"shape":"DeveloperProviderName"},
|
883
|
+
"DeveloperUserIdentifier":{"shape":"DeveloperUserIdentifier"}
|
884
|
+
}
|
885
|
+
},
|
617
886
|
"UnlinkIdentityInput":{
|
618
887
|
"type":"structure",
|
619
888
|
"required":[
|
@@ -12,7 +12,7 @@ module Aws
|
|
12
12
|
# @option options [required, String] :service
|
13
13
|
# @option options [required, String] :region
|
14
14
|
# @option options [required, String] :scheme
|
15
|
-
# @return [
|
15
|
+
# @return [String,nil]
|
16
16
|
def resolve(options)
|
17
17
|
@rules.each do |rule_group|
|
18
18
|
if region_matches?(rule_group, options)
|
@@ -23,7 +23,7 @@ module Aws
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
26
|
-
|
26
|
+
nil
|
27
27
|
end
|
28
28
|
|
29
29
|
# @option options [required, String] :pattern The endpoint pattern with
|
data/lib/aws-sdk-core/errors.rb
CHANGED
@@ -43,7 +43,7 @@ module Aws
|
|
43
43
|
class MissingCredentialsError < RuntimeError; end
|
44
44
|
|
45
45
|
# Raised when a {Service} is constructed and region is not specified.
|
46
|
-
class MissingRegionError <
|
46
|
+
class MissingRegionError < ArgumentError; end
|
47
47
|
|
48
48
|
# This module is mixed into another module, providing dynamic
|
49
49
|
# error classes. Error classes all inherit from {ServiceError}.
|
@@ -29,7 +29,9 @@ module Aws
|
|
29
29
|
|
30
30
|
def after_initialize(client)
|
31
31
|
if client.config.region.nil? or client.config.region == ''
|
32
|
-
|
32
|
+
msg = "missing region; use :region option or "
|
33
|
+
msg << "export region name to ENV['AWS_REGION']"
|
34
|
+
raise Errors::MissingRegionError, msg
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
@@ -142,8 +142,22 @@ module Aws
|
|
142
142
|
def normalized_querystring(querystring)
|
143
143
|
params = querystring.split('&')
|
144
144
|
params = params.map { |p| p.match(/=/) ? p : p + '=' }
|
145
|
-
|
146
|
-
|
145
|
+
# We have to sort by param name and preserve order of params that
|
146
|
+
# have the same name. Default sort <=> in JRuby will swap members
|
147
|
+
# occasionally when <=> is 0 (considered still sorted), but this
|
148
|
+
# causes our normalized query string to not match the sent querystring.
|
149
|
+
# When names match, we then sort by their original order
|
150
|
+
params = params.each.with_index.sort do |a, b|
|
151
|
+
a, a_offset = a
|
152
|
+
a_name = a.split('=')[0]
|
153
|
+
b, b_offset = b
|
154
|
+
b_name = b.split('=')[0]
|
155
|
+
if a_name == b_name
|
156
|
+
a_offset <=> b_offset
|
157
|
+
else
|
158
|
+
a_name <=> b_name
|
159
|
+
end
|
160
|
+
end.map(&:first).join('&')
|
147
161
|
end
|
148
162
|
|
149
163
|
def signed_headers(request)
|
data/lib/aws-sdk-core/version.rb
CHANGED
data/lib/seahorse/client/base.rb
CHANGED
@@ -111,7 +111,7 @@ module Seahorse
|
|
111
111
|
|
112
112
|
# Gives each plugin the opportunity to modify this client.
|
113
113
|
def after_initialize(plugins)
|
114
|
-
plugins.each do |plugin|
|
114
|
+
plugins.reverse.each do |plugin|
|
115
115
|
plugin.after_initialize(self) if plugin.respond_to?(:after_initialize)
|
116
116
|
end
|
117
117
|
end
|
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.1
|
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: 2014-09-
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|