aws-sdk-core 2.1.29 → 2.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/apis/cloudformation/2010-05-15/waiters-2.json +12 -0
- data/apis/kms/2014-11-01/api-2.json +475 -6
- data/apis/s3/2006-03-01/api-2.json +14 -0
- data/lib/aws-sdk-core.rb +1 -1
- data/lib/aws-sdk-core/api/customizations.rb +8 -0
- data/lib/aws-sdk-core/assume_role_credentials.rb +25 -4
- data/lib/aws-sdk-core/log/formatter.rb +1 -1
- data/lib/aws-sdk-core/plugins/ec2_copy_encrypted_snapshot.rb +7 -8
- data/lib/aws-sdk-core/plugins/stub_responses.rb +0 -2
- data/lib/aws-sdk-core/rest/request/endpoint.rb +1 -1
- data/lib/aws-sdk-core/s3/presigner.rb +4 -2
- data/lib/aws-sdk-core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7d8cb4090e4540174e0cebe44bb119b18a53062
|
4
|
+
data.tar.gz: 967f9f5b25cec1c66cc561280ae8fedfea27da7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13e3639beacc6dad6c11dac0133159bdc0d069dd226afec0ad9b855468c6e4be578e9b4f59bc485d2c75207bcdf40207eb23e06d4415df4bb35d0175c025cd76
|
7
|
+
data.tar.gz: 5868d5e1fc4b048425d95c8b90fd1236188f751c42f1fcf646a34099d84af7269db80d2f54d3ad3a1c40fc233664611e60cb9f63e0f8c3162feb9f6894cae143
|
@@ -18,6 +18,18 @@
|
|
18
18
|
"matcher": "pathAny",
|
19
19
|
"state": "failure",
|
20
20
|
"argument": "Stacks[].StackStatus"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"expected": "ROLLBACK_COMPLETE",
|
24
|
+
"matcher": "pathAny",
|
25
|
+
"state": "failure",
|
26
|
+
"argument": "Stacks[].StackStatus"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"expected": "ROLLBACK_FAILED",
|
30
|
+
"matcher": "pathAny",
|
31
|
+
"state": "failure",
|
32
|
+
"argument": "Stacks[].StackStatus"
|
21
33
|
}
|
22
34
|
]
|
23
35
|
},
|
@@ -11,6 +11,61 @@
|
|
11
11
|
"protocol":"json"
|
12
12
|
},
|
13
13
|
"operations":{
|
14
|
+
"CancelKeyDeletion":{
|
15
|
+
"name":"CancelKeyDeletion",
|
16
|
+
"http":{
|
17
|
+
"method":"POST",
|
18
|
+
"requestUri":"/"
|
19
|
+
},
|
20
|
+
"input":{"shape":"CancelKeyDeletionRequest"},
|
21
|
+
"output":{"shape":"CancelKeyDeletionResponse"},
|
22
|
+
"errors":[
|
23
|
+
{
|
24
|
+
"shape":"NotFoundException",
|
25
|
+
"error":{
|
26
|
+
"code":"NotFound",
|
27
|
+
"httpStatusCode":404,
|
28
|
+
"senderFault":true
|
29
|
+
},
|
30
|
+
"exception":true
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"shape":"InvalidArnException",
|
34
|
+
"error":{
|
35
|
+
"code":"InvalidArn",
|
36
|
+
"httpStatusCode":400,
|
37
|
+
"senderFault":true
|
38
|
+
},
|
39
|
+
"exception":true
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"shape":"DependencyTimeoutException",
|
43
|
+
"error":{
|
44
|
+
"code":"DependencyTimeout",
|
45
|
+
"httpStatusCode":503
|
46
|
+
},
|
47
|
+
"exception":true,
|
48
|
+
"fault":true
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"shape":"KMSInternalException",
|
52
|
+
"error":{
|
53
|
+
"code":"KMSInternal",
|
54
|
+
"httpStatusCode":500
|
55
|
+
},
|
56
|
+
"exception":true
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"shape":"KMSInvalidStateException",
|
60
|
+
"error":{
|
61
|
+
"code":"KMSInvalidStateException",
|
62
|
+
"httpStatusCode":409,
|
63
|
+
"senderFault":true
|
64
|
+
},
|
65
|
+
"exception":true
|
66
|
+
}
|
67
|
+
]
|
68
|
+
},
|
14
69
|
"CreateAlias":{
|
15
70
|
"name":"CreateAlias",
|
16
71
|
"http":{
|
@@ -71,6 +126,15 @@
|
|
71
126
|
"senderFault":true
|
72
127
|
},
|
73
128
|
"exception":true
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"shape":"KMSInvalidStateException",
|
132
|
+
"error":{
|
133
|
+
"code":"KMSInvalidStateException",
|
134
|
+
"httpStatusCode":409,
|
135
|
+
"senderFault":true
|
136
|
+
},
|
137
|
+
"exception":true
|
74
138
|
}
|
75
139
|
]
|
76
140
|
},
|
@@ -144,6 +208,15 @@
|
|
144
208
|
"senderFault":true
|
145
209
|
},
|
146
210
|
"exception":true
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"shape":"KMSInvalidStateException",
|
214
|
+
"error":{
|
215
|
+
"code":"KMSInvalidStateException",
|
216
|
+
"httpStatusCode":409,
|
217
|
+
"senderFault":true
|
218
|
+
},
|
219
|
+
"exception":true
|
147
220
|
}
|
148
221
|
]
|
149
222
|
},
|
@@ -281,6 +354,15 @@
|
|
281
354
|
"httpStatusCode":500
|
282
355
|
},
|
283
356
|
"exception":true
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"shape":"KMSInvalidStateException",
|
360
|
+
"error":{
|
361
|
+
"code":"KMSInvalidStateException",
|
362
|
+
"httpStatusCode":409,
|
363
|
+
"senderFault":true
|
364
|
+
},
|
365
|
+
"exception":true
|
284
366
|
}
|
285
367
|
]
|
286
368
|
},
|
@@ -317,6 +399,15 @@
|
|
317
399
|
"httpStatusCode":500
|
318
400
|
},
|
319
401
|
"exception":true
|
402
|
+
},
|
403
|
+
{
|
404
|
+
"shape":"KMSInvalidStateException",
|
405
|
+
"error":{
|
406
|
+
"code":"KMSInvalidStateException",
|
407
|
+
"httpStatusCode":409,
|
408
|
+
"senderFault":true
|
409
|
+
},
|
410
|
+
"exception":true
|
320
411
|
}
|
321
412
|
]
|
322
413
|
},
|
@@ -408,6 +499,15 @@
|
|
408
499
|
"httpStatusCode":500
|
409
500
|
},
|
410
501
|
"exception":true
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"shape":"KMSInvalidStateException",
|
505
|
+
"error":{
|
506
|
+
"code":"KMSInvalidStateException",
|
507
|
+
"httpStatusCode":409,
|
508
|
+
"senderFault":true
|
509
|
+
},
|
510
|
+
"exception":true
|
411
511
|
}
|
412
512
|
]
|
413
513
|
},
|
@@ -462,6 +562,15 @@
|
|
462
562
|
"httpStatusCode":500
|
463
563
|
},
|
464
564
|
"exception":true
|
565
|
+
},
|
566
|
+
{
|
567
|
+
"shape":"KMSInvalidStateException",
|
568
|
+
"error":{
|
569
|
+
"code":"KMSInvalidStateException",
|
570
|
+
"httpStatusCode":409,
|
571
|
+
"senderFault":true
|
572
|
+
},
|
573
|
+
"exception":true
|
465
574
|
}
|
466
575
|
]
|
467
576
|
},
|
@@ -516,6 +625,15 @@
|
|
516
625
|
"senderFault":true
|
517
626
|
},
|
518
627
|
"exception":true
|
628
|
+
},
|
629
|
+
{
|
630
|
+
"shape":"KMSInvalidStateException",
|
631
|
+
"error":{
|
632
|
+
"code":"KMSInvalidStateException",
|
633
|
+
"httpStatusCode":409,
|
634
|
+
"senderFault":true
|
635
|
+
},
|
636
|
+
"exception":true
|
519
637
|
}
|
520
638
|
]
|
521
639
|
},
|
@@ -570,6 +688,15 @@
|
|
570
688
|
"httpStatusCode":500
|
571
689
|
},
|
572
690
|
"exception":true
|
691
|
+
},
|
692
|
+
{
|
693
|
+
"shape":"KMSInvalidStateException",
|
694
|
+
"error":{
|
695
|
+
"code":"KMSInvalidStateException",
|
696
|
+
"httpStatusCode":409,
|
697
|
+
"senderFault":true
|
698
|
+
},
|
699
|
+
"exception":true
|
573
700
|
}
|
574
701
|
]
|
575
702
|
},
|
@@ -643,6 +770,15 @@
|
|
643
770
|
"httpStatusCode":500
|
644
771
|
},
|
645
772
|
"exception":true
|
773
|
+
},
|
774
|
+
{
|
775
|
+
"shape":"KMSInvalidStateException",
|
776
|
+
"error":{
|
777
|
+
"code":"KMSInvalidStateException",
|
778
|
+
"httpStatusCode":409,
|
779
|
+
"senderFault":true
|
780
|
+
},
|
781
|
+
"exception":true
|
646
782
|
}
|
647
783
|
]
|
648
784
|
},
|
@@ -716,6 +852,15 @@
|
|
716
852
|
"httpStatusCode":500
|
717
853
|
},
|
718
854
|
"exception":true
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"shape":"KMSInvalidStateException",
|
858
|
+
"error":{
|
859
|
+
"code":"KMSInvalidStateException",
|
860
|
+
"httpStatusCode":409,
|
861
|
+
"senderFault":true
|
862
|
+
},
|
863
|
+
"exception":true
|
719
864
|
}
|
720
865
|
]
|
721
866
|
},
|
@@ -789,6 +934,15 @@
|
|
789
934
|
"httpStatusCode":500
|
790
935
|
},
|
791
936
|
"exception":true
|
937
|
+
},
|
938
|
+
{
|
939
|
+
"shape":"KMSInvalidStateException",
|
940
|
+
"error":{
|
941
|
+
"code":"KMSInvalidStateException",
|
942
|
+
"httpStatusCode":409,
|
943
|
+
"senderFault":true
|
944
|
+
},
|
945
|
+
"exception":true
|
792
946
|
}
|
793
947
|
]
|
794
948
|
},
|
@@ -863,6 +1017,15 @@
|
|
863
1017
|
"httpStatusCode":500
|
864
1018
|
},
|
865
1019
|
"exception":true
|
1020
|
+
},
|
1021
|
+
{
|
1022
|
+
"shape":"KMSInvalidStateException",
|
1023
|
+
"error":{
|
1024
|
+
"code":"KMSInvalidStateException",
|
1025
|
+
"httpStatusCode":409,
|
1026
|
+
"senderFault":true
|
1027
|
+
},
|
1028
|
+
"exception":true
|
866
1029
|
}
|
867
1030
|
]
|
868
1031
|
},
|
@@ -909,6 +1072,15 @@
|
|
909
1072
|
"httpStatusCode":500
|
910
1073
|
},
|
911
1074
|
"exception":true
|
1075
|
+
},
|
1076
|
+
{
|
1077
|
+
"shape":"KMSInvalidStateException",
|
1078
|
+
"error":{
|
1079
|
+
"code":"KMSInvalidStateException",
|
1080
|
+
"httpStatusCode":409,
|
1081
|
+
"senderFault":true
|
1082
|
+
},
|
1083
|
+
"exception":true
|
912
1084
|
}
|
913
1085
|
]
|
914
1086
|
},
|
@@ -958,6 +1130,15 @@
|
|
958
1130
|
"input":{"shape":"ListGrantsRequest"},
|
959
1131
|
"output":{"shape":"ListGrantsResponse"},
|
960
1132
|
"errors":[
|
1133
|
+
{
|
1134
|
+
"shape":"NotFoundException",
|
1135
|
+
"error":{
|
1136
|
+
"code":"NotFound",
|
1137
|
+
"httpStatusCode":404,
|
1138
|
+
"senderFault":true
|
1139
|
+
},
|
1140
|
+
"exception":true
|
1141
|
+
},
|
961
1142
|
{
|
962
1143
|
"shape":"DependencyTimeoutException",
|
963
1144
|
"error":{
|
@@ -992,6 +1173,15 @@
|
|
992
1173
|
"httpStatusCode":500
|
993
1174
|
},
|
994
1175
|
"exception":true
|
1176
|
+
},
|
1177
|
+
{
|
1178
|
+
"shape":"KMSInvalidStateException",
|
1179
|
+
"error":{
|
1180
|
+
"code":"KMSInvalidStateException",
|
1181
|
+
"httpStatusCode":409,
|
1182
|
+
"senderFault":true
|
1183
|
+
},
|
1184
|
+
"exception":true
|
995
1185
|
}
|
996
1186
|
]
|
997
1187
|
},
|
@@ -1038,6 +1228,15 @@
|
|
1038
1228
|
"httpStatusCode":500
|
1039
1229
|
},
|
1040
1230
|
"exception":true
|
1231
|
+
},
|
1232
|
+
{
|
1233
|
+
"shape":"KMSInvalidStateException",
|
1234
|
+
"error":{
|
1235
|
+
"code":"KMSInvalidStateException",
|
1236
|
+
"httpStatusCode":409,
|
1237
|
+
"senderFault":true
|
1238
|
+
},
|
1239
|
+
"exception":true
|
1041
1240
|
}
|
1042
1241
|
]
|
1043
1242
|
},
|
@@ -1069,6 +1268,61 @@
|
|
1069
1268
|
}
|
1070
1269
|
]
|
1071
1270
|
},
|
1271
|
+
"ListRetirableGrants":{
|
1272
|
+
"name":"ListRetirableGrants",
|
1273
|
+
"http":{
|
1274
|
+
"method":"POST",
|
1275
|
+
"requestUri":"/"
|
1276
|
+
},
|
1277
|
+
"input":{"shape":"ListRetirableGrantsRequest"},
|
1278
|
+
"output":{"shape":"ListGrantsResponse"},
|
1279
|
+
"errors":[
|
1280
|
+
{
|
1281
|
+
"shape":"DependencyTimeoutException",
|
1282
|
+
"error":{
|
1283
|
+
"code":"DependencyTimeout",
|
1284
|
+
"httpStatusCode":503
|
1285
|
+
},
|
1286
|
+
"exception":true,
|
1287
|
+
"fault":true
|
1288
|
+
},
|
1289
|
+
{
|
1290
|
+
"shape":"InvalidMarkerException",
|
1291
|
+
"error":{
|
1292
|
+
"code":"InvalidMarker",
|
1293
|
+
"httpStatusCode":400,
|
1294
|
+
"senderFault":true
|
1295
|
+
},
|
1296
|
+
"exception":true
|
1297
|
+
},
|
1298
|
+
{
|
1299
|
+
"shape":"InvalidArnException",
|
1300
|
+
"error":{
|
1301
|
+
"code":"InvalidArn",
|
1302
|
+
"httpStatusCode":400,
|
1303
|
+
"senderFault":true
|
1304
|
+
},
|
1305
|
+
"exception":true
|
1306
|
+
},
|
1307
|
+
{
|
1308
|
+
"shape":"NotFoundException",
|
1309
|
+
"error":{
|
1310
|
+
"code":"NotFound",
|
1311
|
+
"httpStatusCode":404,
|
1312
|
+
"senderFault":true
|
1313
|
+
},
|
1314
|
+
"exception":true
|
1315
|
+
},
|
1316
|
+
{
|
1317
|
+
"shape":"KMSInternalException",
|
1318
|
+
"error":{
|
1319
|
+
"code":"KMSInternal",
|
1320
|
+
"httpStatusCode":500
|
1321
|
+
},
|
1322
|
+
"exception":true
|
1323
|
+
}
|
1324
|
+
]
|
1325
|
+
},
|
1072
1326
|
"PutKeyPolicy":{
|
1073
1327
|
"name":"PutKeyPolicy",
|
1074
1328
|
"http":{
|
@@ -1147,6 +1401,15 @@
|
|
1147
1401
|
"senderFault":true
|
1148
1402
|
},
|
1149
1403
|
"exception":true
|
1404
|
+
},
|
1405
|
+
{
|
1406
|
+
"shape":"KMSInvalidStateException",
|
1407
|
+
"error":{
|
1408
|
+
"code":"KMSInvalidStateException",
|
1409
|
+
"httpStatusCode":409,
|
1410
|
+
"senderFault":true
|
1411
|
+
},
|
1412
|
+
"exception":true
|
1150
1413
|
}
|
1151
1414
|
]
|
1152
1415
|
},
|
@@ -1229,6 +1492,15 @@
|
|
1229
1492
|
"httpStatusCode":500
|
1230
1493
|
},
|
1231
1494
|
"exception":true
|
1495
|
+
},
|
1496
|
+
{
|
1497
|
+
"shape":"KMSInvalidStateException",
|
1498
|
+
"error":{
|
1499
|
+
"code":"KMSInvalidStateException",
|
1500
|
+
"httpStatusCode":409,
|
1501
|
+
"senderFault":true
|
1502
|
+
},
|
1503
|
+
"exception":true
|
1232
1504
|
}
|
1233
1505
|
]
|
1234
1506
|
},
|
@@ -1249,6 +1521,15 @@
|
|
1249
1521
|
},
|
1250
1522
|
"exception":true
|
1251
1523
|
},
|
1524
|
+
{
|
1525
|
+
"shape":"InvalidGrantIdException",
|
1526
|
+
"error":{
|
1527
|
+
"code":"InvalidGrantId",
|
1528
|
+
"httpStatusCode":400,
|
1529
|
+
"senderFault":true
|
1530
|
+
},
|
1531
|
+
"exception":true
|
1532
|
+
},
|
1252
1533
|
{
|
1253
1534
|
"shape":"NotFoundException",
|
1254
1535
|
"error":{
|
@@ -1274,6 +1555,15 @@
|
|
1274
1555
|
"httpStatusCode":500
|
1275
1556
|
},
|
1276
1557
|
"exception":true
|
1558
|
+
},
|
1559
|
+
{
|
1560
|
+
"shape":"KMSInvalidStateException",
|
1561
|
+
"error":{
|
1562
|
+
"code":"KMSInvalidStateException",
|
1563
|
+
"httpStatusCode":409,
|
1564
|
+
"senderFault":true
|
1565
|
+
},
|
1566
|
+
"exception":true
|
1277
1567
|
}
|
1278
1568
|
]
|
1279
1569
|
},
|
@@ -1312,6 +1602,70 @@
|
|
1312
1602
|
},
|
1313
1603
|
"exception":true
|
1314
1604
|
},
|
1605
|
+
{
|
1606
|
+
"shape":"InvalidGrantIdException",
|
1607
|
+
"error":{
|
1608
|
+
"code":"InvalidGrantId",
|
1609
|
+
"httpStatusCode":400,
|
1610
|
+
"senderFault":true
|
1611
|
+
},
|
1612
|
+
"exception":true
|
1613
|
+
},
|
1614
|
+
{
|
1615
|
+
"shape":"KMSInternalException",
|
1616
|
+
"error":{
|
1617
|
+
"code":"KMSInternal",
|
1618
|
+
"httpStatusCode":500
|
1619
|
+
},
|
1620
|
+
"exception":true
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
"shape":"KMSInvalidStateException",
|
1624
|
+
"error":{
|
1625
|
+
"code":"KMSInvalidStateException",
|
1626
|
+
"httpStatusCode":409,
|
1627
|
+
"senderFault":true
|
1628
|
+
},
|
1629
|
+
"exception":true
|
1630
|
+
}
|
1631
|
+
]
|
1632
|
+
},
|
1633
|
+
"ScheduleKeyDeletion":{
|
1634
|
+
"name":"ScheduleKeyDeletion",
|
1635
|
+
"http":{
|
1636
|
+
"method":"POST",
|
1637
|
+
"requestUri":"/"
|
1638
|
+
},
|
1639
|
+
"input":{"shape":"ScheduleKeyDeletionRequest"},
|
1640
|
+
"output":{"shape":"ScheduleKeyDeletionResponse"},
|
1641
|
+
"errors":[
|
1642
|
+
{
|
1643
|
+
"shape":"NotFoundException",
|
1644
|
+
"error":{
|
1645
|
+
"code":"NotFound",
|
1646
|
+
"httpStatusCode":404,
|
1647
|
+
"senderFault":true
|
1648
|
+
},
|
1649
|
+
"exception":true
|
1650
|
+
},
|
1651
|
+
{
|
1652
|
+
"shape":"InvalidArnException",
|
1653
|
+
"error":{
|
1654
|
+
"code":"InvalidArn",
|
1655
|
+
"httpStatusCode":400,
|
1656
|
+
"senderFault":true
|
1657
|
+
},
|
1658
|
+
"exception":true
|
1659
|
+
},
|
1660
|
+
{
|
1661
|
+
"shape":"DependencyTimeoutException",
|
1662
|
+
"error":{
|
1663
|
+
"code":"DependencyTimeout",
|
1664
|
+
"httpStatusCode":503
|
1665
|
+
},
|
1666
|
+
"exception":true,
|
1667
|
+
"fault":true
|
1668
|
+
},
|
1315
1669
|
{
|
1316
1670
|
"shape":"KMSInternalException",
|
1317
1671
|
"error":{
|
@@ -1319,6 +1673,15 @@
|
|
1319
1673
|
"httpStatusCode":500
|
1320
1674
|
},
|
1321
1675
|
"exception":true
|
1676
|
+
},
|
1677
|
+
{
|
1678
|
+
"shape":"KMSInvalidStateException",
|
1679
|
+
"error":{
|
1680
|
+
"code":"KMSInvalidStateException",
|
1681
|
+
"httpStatusCode":409,
|
1682
|
+
"senderFault":true
|
1683
|
+
},
|
1684
|
+
"exception":true
|
1322
1685
|
}
|
1323
1686
|
]
|
1324
1687
|
},
|
@@ -1355,6 +1718,15 @@
|
|
1355
1718
|
"httpStatusCode":500
|
1356
1719
|
},
|
1357
1720
|
"exception":true
|
1721
|
+
},
|
1722
|
+
{
|
1723
|
+
"shape":"KMSInvalidStateException",
|
1724
|
+
"error":{
|
1725
|
+
"code":"KMSInvalidStateException",
|
1726
|
+
"httpStatusCode":409,
|
1727
|
+
"senderFault":true
|
1728
|
+
},
|
1729
|
+
"exception":true
|
1358
1730
|
}
|
1359
1731
|
]
|
1360
1732
|
},
|
@@ -1400,6 +1772,15 @@
|
|
1400
1772
|
"httpStatusCode":500
|
1401
1773
|
},
|
1402
1774
|
"exception":true
|
1775
|
+
},
|
1776
|
+
{
|
1777
|
+
"shape":"KMSInvalidStateException",
|
1778
|
+
"error":{
|
1779
|
+
"code":"KMSInvalidStateException",
|
1780
|
+
"httpStatusCode":409,
|
1781
|
+
"senderFault":true
|
1782
|
+
},
|
1783
|
+
"exception":true
|
1403
1784
|
}
|
1404
1785
|
]
|
1405
1786
|
}
|
@@ -1442,6 +1823,19 @@
|
|
1442
1823
|
"max":2048
|
1443
1824
|
},
|
1444
1825
|
"BooleanType":{"type":"boolean"},
|
1826
|
+
"CancelKeyDeletionRequest":{
|
1827
|
+
"type":"structure",
|
1828
|
+
"required":["KeyId"],
|
1829
|
+
"members":{
|
1830
|
+
"KeyId":{"shape":"KeyIdType"}
|
1831
|
+
}
|
1832
|
+
},
|
1833
|
+
"CancelKeyDeletionResponse":{
|
1834
|
+
"type":"structure",
|
1835
|
+
"members":{
|
1836
|
+
"KeyId":{"shape":"KeyIdType"}
|
1837
|
+
}
|
1838
|
+
},
|
1445
1839
|
"CiphertextType":{
|
1446
1840
|
"type":"blob",
|
1447
1841
|
"min":1,
|
@@ -1470,7 +1864,8 @@
|
|
1470
1864
|
"RetiringPrincipal":{"shape":"PrincipalIdType"},
|
1471
1865
|
"Operations":{"shape":"GrantOperationList"},
|
1472
1866
|
"Constraints":{"shape":"GrantConstraints"},
|
1473
|
-
"GrantTokens":{"shape":"GrantTokenList"}
|
1867
|
+
"GrantTokens":{"shape":"GrantTokenList"},
|
1868
|
+
"Name":{"shape":"GrantNameType"}
|
1474
1869
|
}
|
1475
1870
|
},
|
1476
1871
|
"CreateGrantResponse":{
|
@@ -1541,7 +1936,8 @@
|
|
1541
1936
|
"type":"structure",
|
1542
1937
|
"required":["KeyId"],
|
1543
1938
|
"members":{
|
1544
|
-
"KeyId":{"shape":"KeyIdType"}
|
1939
|
+
"KeyId":{"shape":"KeyIdType"},
|
1940
|
+
"GrantTokens":{"shape":"GrantTokenList"}
|
1545
1941
|
}
|
1546
1942
|
},
|
1547
1943
|
"DescribeKeyResponse":{
|
@@ -1721,7 +2117,10 @@
|
|
1721
2117
|
"GrantListEntry":{
|
1722
2118
|
"type":"structure",
|
1723
2119
|
"members":{
|
2120
|
+
"KeyId":{"shape":"KeyIdType"},
|
1724
2121
|
"GrantId":{"shape":"GrantIdType"},
|
2122
|
+
"Name":{"shape":"GrantNameType"},
|
2123
|
+
"CreationDate":{"shape":"DateType"},
|
1725
2124
|
"GranteePrincipal":{"shape":"PrincipalIdType"},
|
1726
2125
|
"RetiringPrincipal":{"shape":"PrincipalIdType"},
|
1727
2126
|
"IssuingAccount":{"shape":"PrincipalIdType"},
|
@@ -1729,6 +2128,12 @@
|
|
1729
2128
|
"Constraints":{"shape":"GrantConstraints"}
|
1730
2129
|
}
|
1731
2130
|
},
|
2131
|
+
"GrantNameType":{
|
2132
|
+
"type":"string",
|
2133
|
+
"min":1,
|
2134
|
+
"max":256,
|
2135
|
+
"pattern":"^[a-zA-Z0-9:/_-]+$"
|
2136
|
+
},
|
1732
2137
|
"GrantOperation":{
|
1733
2138
|
"type":"string",
|
1734
2139
|
"enum":[
|
@@ -1739,7 +2144,8 @@
|
|
1739
2144
|
"ReEncryptFrom",
|
1740
2145
|
"ReEncryptTo",
|
1741
2146
|
"CreateGrant",
|
1742
|
-
"RetireGrant"
|
2147
|
+
"RetireGrant",
|
2148
|
+
"DescribeKey"
|
1743
2149
|
]
|
1744
2150
|
},
|
1745
2151
|
"GrantOperationList":{
|
@@ -1793,6 +2199,18 @@
|
|
1793
2199
|
},
|
1794
2200
|
"exception":true
|
1795
2201
|
},
|
2202
|
+
"InvalidGrantIdException":{
|
2203
|
+
"type":"structure",
|
2204
|
+
"members":{
|
2205
|
+
"message":{"shape":"ErrorMessageType"}
|
2206
|
+
},
|
2207
|
+
"error":{
|
2208
|
+
"code":"InvalidGrantId",
|
2209
|
+
"httpStatusCode":400,
|
2210
|
+
"senderFault":true
|
2211
|
+
},
|
2212
|
+
"exception":true
|
2213
|
+
},
|
1796
2214
|
"InvalidGrantTokenException":{
|
1797
2215
|
"type":"structure",
|
1798
2216
|
"members":{
|
@@ -1840,6 +2258,18 @@
|
|
1840
2258
|
},
|
1841
2259
|
"exception":true
|
1842
2260
|
},
|
2261
|
+
"KMSInvalidStateException":{
|
2262
|
+
"type":"structure",
|
2263
|
+
"members":{
|
2264
|
+
"message":{"shape":"ErrorMessageType"}
|
2265
|
+
},
|
2266
|
+
"error":{
|
2267
|
+
"code":"KMSInvalidStateException",
|
2268
|
+
"httpStatusCode":409,
|
2269
|
+
"senderFault":true
|
2270
|
+
},
|
2271
|
+
"exception":true
|
2272
|
+
},
|
1843
2273
|
"KeyIdType":{
|
1844
2274
|
"type":"string",
|
1845
2275
|
"min":1,
|
@@ -1866,9 +2296,19 @@
|
|
1866
2296
|
"CreationDate":{"shape":"DateType"},
|
1867
2297
|
"Enabled":{"shape":"BooleanType"},
|
1868
2298
|
"Description":{"shape":"DescriptionType"},
|
1869
|
-
"KeyUsage":{"shape":"KeyUsageType"}
|
2299
|
+
"KeyUsage":{"shape":"KeyUsageType"},
|
2300
|
+
"KeyState":{"shape":"KeyState"},
|
2301
|
+
"DeletionDate":{"shape":"DateType"}
|
1870
2302
|
}
|
1871
2303
|
},
|
2304
|
+
"KeyState":{
|
2305
|
+
"type":"string",
|
2306
|
+
"enum":[
|
2307
|
+
"Enabled",
|
2308
|
+
"Disabled",
|
2309
|
+
"PendingDeletion"
|
2310
|
+
]
|
2311
|
+
},
|
1872
2312
|
"KeyUnavailableException":{
|
1873
2313
|
"type":"structure",
|
1874
2314
|
"members":{
|
@@ -1921,9 +2361,9 @@
|
|
1921
2361
|
"type":"structure",
|
1922
2362
|
"required":["KeyId"],
|
1923
2363
|
"members":{
|
1924
|
-
"KeyId":{"shape":"KeyIdType"},
|
1925
2364
|
"Limit":{"shape":"LimitType"},
|
1926
|
-
"Marker":{"shape":"MarkerType"}
|
2365
|
+
"Marker":{"shape":"MarkerType"},
|
2366
|
+
"KeyId":{"shape":"KeyIdType"}
|
1927
2367
|
}
|
1928
2368
|
},
|
1929
2369
|
"ListGrantsResponse":{
|
@@ -1966,6 +2406,15 @@
|
|
1966
2406
|
"Truncated":{"shape":"BooleanType"}
|
1967
2407
|
}
|
1968
2408
|
},
|
2409
|
+
"ListRetirableGrantsRequest":{
|
2410
|
+
"type":"structure",
|
2411
|
+
"required":["RetiringPrincipal"],
|
2412
|
+
"members":{
|
2413
|
+
"Limit":{"shape":"LimitType"},
|
2414
|
+
"Marker":{"shape":"MarkerType"},
|
2415
|
+
"RetiringPrincipal":{"shape":"PrincipalIdType"}
|
2416
|
+
}
|
2417
|
+
},
|
1969
2418
|
"MalformedPolicyDocumentException":{
|
1970
2419
|
"type":"structure",
|
1971
2420
|
"members":{
|
@@ -2001,6 +2450,11 @@
|
|
2001
2450
|
"min":1,
|
2002
2451
|
"max":1024
|
2003
2452
|
},
|
2453
|
+
"PendingWindowInDaysType":{
|
2454
|
+
"type":"integer",
|
2455
|
+
"min":1,
|
2456
|
+
"max":365
|
2457
|
+
},
|
2004
2458
|
"PlaintextType":{
|
2005
2459
|
"type":"blob",
|
2006
2460
|
"min":1,
|
@@ -2082,6 +2536,21 @@
|
|
2082
2536
|
"GrantId":{"shape":"GrantIdType"}
|
2083
2537
|
}
|
2084
2538
|
},
|
2539
|
+
"ScheduleKeyDeletionRequest":{
|
2540
|
+
"type":"structure",
|
2541
|
+
"required":["KeyId"],
|
2542
|
+
"members":{
|
2543
|
+
"KeyId":{"shape":"KeyIdType"},
|
2544
|
+
"PendingWindowInDays":{"shape":"PendingWindowInDaysType"}
|
2545
|
+
}
|
2546
|
+
},
|
2547
|
+
"ScheduleKeyDeletionResponse":{
|
2548
|
+
"type":"structure",
|
2549
|
+
"members":{
|
2550
|
+
"KeyId":{"shape":"KeyIdType"},
|
2551
|
+
"DeletionDate":{"shape":"DateType"}
|
2552
|
+
}
|
2553
|
+
},
|
2085
2554
|
"UnsupportedOperationException":{
|
2086
2555
|
"type":"structure",
|
2087
2556
|
"members":{
|
@@ -954,6 +954,11 @@
|
|
954
954
|
"location":"header",
|
955
955
|
"locationName":"x-amz-copy-source-version-id"
|
956
956
|
},
|
957
|
+
"VersionId":{
|
958
|
+
"shape":"ObjectVersionId",
|
959
|
+
"location":"header",
|
960
|
+
"locationName":"x-amz-version-id"
|
961
|
+
},
|
957
962
|
"ServerSideEncryption":{
|
958
963
|
"shape":"ServerSideEncryption",
|
959
964
|
"location":"header",
|
@@ -4299,6 +4304,11 @@
|
|
4299
4304
|
"location":"querystring",
|
4300
4305
|
"locationName":"uploadId"
|
4301
4306
|
},
|
4307
|
+
"ServerSideEncryption":{
|
4308
|
+
"shape":"UploadPartRequestServerSideEncryption",
|
4309
|
+
"location":"header",
|
4310
|
+
"locationName":"x-amz-server-side-encryption"
|
4311
|
+
},
|
4302
4312
|
"SSECustomerAlgorithm":{
|
4303
4313
|
"shape":"SSECustomerAlgorithm",
|
4304
4314
|
"location":"header",
|
@@ -4322,6 +4332,10 @@
|
|
4322
4332
|
},
|
4323
4333
|
"payload":"Body"
|
4324
4334
|
},
|
4335
|
+
"UploadPartRequestServerSideEncryption":{
|
4336
|
+
"type":"string",
|
4337
|
+
"enum":["AES256"]
|
4338
|
+
},
|
4325
4339
|
"Value":{"type":"string"},
|
4326
4340
|
"VersionIdMarker":{"type":"string"},
|
4327
4341
|
"VersioningConfiguration":{
|
data/lib/aws-sdk-core.rb
CHANGED
@@ -300,7 +300,7 @@ module Aws
|
|
300
300
|
# want to load with the `:services` option. All services not named
|
301
301
|
# will continue to autoload as normal.
|
302
302
|
#
|
303
|
-
# Aws.
|
303
|
+
# Aws.eager_autoload!(services: %w(S3 EC2))
|
304
304
|
#
|
305
305
|
# @return [void]
|
306
306
|
def eager_autoload!(options = {})
|
@@ -60,6 +60,14 @@ module Aws
|
|
60
60
|
Aws::Plugins::DynamoDBCRC32Validation
|
61
61
|
))
|
62
62
|
|
63
|
+
api('ec2') do |api|
|
64
|
+
if ENV['DOCSTRINGS']
|
65
|
+
members = api['shapes']['CopySnapshotRequest']['members']
|
66
|
+
members.delete('DestinationRegion')
|
67
|
+
members.delete('PresignedUrl')
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
63
71
|
plugins('ec2', add: %w(
|
64
72
|
Aws::Plugins::EC2CopyEncryptedSnapshot
|
65
73
|
))
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'set'
|
2
|
+
|
1
3
|
module Aws
|
2
4
|
|
3
5
|
# An auto-refreshing credential provider that works by assuming
|
@@ -23,10 +25,18 @@ module Aws
|
|
23
25
|
# @option options [String] :policy
|
24
26
|
# @option options [Integer] :duration_seconds
|
25
27
|
# @option options [String] :external_id
|
26
|
-
# @option
|
28
|
+
# @option options [STS::Client] :client
|
27
29
|
def initialize(options = {})
|
28
|
-
|
29
|
-
@
|
30
|
+
client_opts = {}
|
31
|
+
@assume_role_params = {}
|
32
|
+
options.each_pair do |key, value|
|
33
|
+
if self.class.assume_role_options.include?(key)
|
34
|
+
@assume_role_params[key] = value
|
35
|
+
else
|
36
|
+
client_opts[key] = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
@client = client_opts[:client] || STS::Client.new(client_opts)
|
30
40
|
super
|
31
41
|
end
|
32
42
|
|
@@ -36,7 +46,7 @@ module Aws
|
|
36
46
|
private
|
37
47
|
|
38
48
|
def refresh
|
39
|
-
c = @client.assume_role(@
|
49
|
+
c = @client.assume_role(@assume_role_params).credentials
|
40
50
|
@credentials = Credentials.new(
|
41
51
|
c.access_key_id,
|
42
52
|
c.secret_access_key,
|
@@ -45,5 +55,16 @@ module Aws
|
|
45
55
|
@expiration = c.expiration
|
46
56
|
end
|
47
57
|
|
58
|
+
class << self
|
59
|
+
|
60
|
+
# @api private
|
61
|
+
def assume_role_options
|
62
|
+
@aro ||= begin
|
63
|
+
input = STS::Client.api.operation(:assume_role).input
|
64
|
+
Set.new(input.shape.member_names)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
48
69
|
end
|
49
70
|
end
|
@@ -30,7 +30,7 @@ module Aws
|
|
30
30
|
#
|
31
31
|
# * `:request_params` - The user provided request parameters. Long
|
32
32
|
# strings are truncated/summarized if they exceed the
|
33
|
-
#
|
33
|
+
# `:max_string_size`. Other objects are inspected.
|
34
34
|
#
|
35
35
|
# * `:time` - The total time in seconds spent on the
|
36
36
|
# request. This includes client side time spent building
|
@@ -15,10 +15,8 @@ module Aws
|
|
15
15
|
|
16
16
|
def call(context)
|
17
17
|
params = context.params
|
18
|
-
|
19
|
-
|
20
|
-
params[:presigned_url] = presigned_url(context.client, params)
|
21
|
-
end
|
18
|
+
params[:destination_region] = context.config.region
|
19
|
+
params[:presigned_url] = presigned_url(context.client, params)
|
22
20
|
@handler.call(context)
|
23
21
|
end
|
24
22
|
|
@@ -27,14 +25,15 @@ module Aws
|
|
27
25
|
def presigned_url(client, params)
|
28
26
|
client = source_region_client(client, params)
|
29
27
|
client.handle(PresignHandler, step: :build, priority: 0)
|
28
|
+
client.handlers.remove(Handler)
|
30
29
|
client.copy_snapshot(params).data # presigned url
|
31
30
|
end
|
32
31
|
|
33
32
|
def source_region_client(client, params)
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
33
|
+
EC2::Client.new({
|
34
|
+
region: params[:source_region] || 'region',
|
35
|
+
credentials: client.config.credentials,
|
36
|
+
})
|
38
37
|
end
|
39
38
|
|
40
39
|
end
|
@@ -32,7 +32,7 @@ module Aws
|
|
32
32
|
# is returned instead of the default HTTPS URL.
|
33
33
|
#
|
34
34
|
# @option params [Boolean] :virtual_host (false) When `true`, the
|
35
|
-
#
|
35
|
+
# bucket name will be used as the hostname. This will cause
|
36
36
|
# the returned URL to be 'http' and not 'https'.
|
37
37
|
#
|
38
38
|
# @raise [ArgumentError] Raises an ArgumentError if `:expires_in`
|
@@ -78,7 +78,9 @@ module Aws
|
|
78
78
|
req.handle do |context|
|
79
79
|
uri = context.http_request.endpoint
|
80
80
|
uri.host = context.params[:bucket]
|
81
|
-
uri.path
|
81
|
+
uri.path.sub!("/#{context.params[:bucket]}", '')
|
82
|
+
uri.scheme = 'http'
|
83
|
+
uri.port = 80
|
82
84
|
@handler.call(context)
|
83
85
|
end
|
84
86
|
end
|
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.1.
|
4
|
+
version: 2.1.30
|
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-10-
|
11
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -418,7 +418,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
418
418
|
version: '0'
|
419
419
|
requirements: []
|
420
420
|
rubyforge_project:
|
421
|
-
rubygems_version: 2.
|
421
|
+
rubygems_version: 2.4.6
|
422
422
|
signing_key:
|
423
423
|
specification_version: 4
|
424
424
|
summary: AWS SDK for Ruby - Core
|