aws-sdk-core 2.0.0.rc8 → 2.0.0.rc9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/apis/DynamoDB-2012-08-10.json +1 -0
  3. data/apis/EC2-2014-05-01.json +15232 -0
  4. data/apis/ElasticBeanstalk-2010-12-01.json +17 -0
  5. data/apis/OpsWorks-2013-02-18.json +215 -0
  6. data/apis/Redshift-2012-12-01.json +72 -0
  7. data/apis/S3-2006-03-01.json +271 -15
  8. data/apis/SNS-2010-03-31.json +27 -0
  9. data/apis/source/ec2-2014-05-01.json +20662 -0
  10. data/apis/source/ec2-2014-05-01.paginators.json +112 -0
  11. data/apis/source/ec2-2014-05-01.waiters.json +146 -0
  12. data/apis/source/elasticbeanstalk-2010-12-01.json +26 -0
  13. data/apis/source/opsworks-2013-02-18.json +383 -8
  14. data/apis/source/redshift-2012-12-01.json +187 -60
  15. data/apis/source/s3-2006-03-01.json +372 -21
  16. data/apis/source/sns-2010-03-31.json +83 -36
  17. data/features/s3/objects.feature +10 -0
  18. data/features/s3/step_definitions.rb +33 -1
  19. data/features/step_definitions.rb +2 -1
  20. data/lib/aws.rb +3 -0
  21. data/lib/aws/api/service_translators/ec2.rb +11 -0
  22. data/lib/aws/api/service_translators/s3.rb +1 -0
  23. data/lib/aws/credential_provider_chain.rb +1 -2
  24. data/lib/aws/error_handler.rb +2 -1
  25. data/lib/aws/plugins/ec2_copy_encrypted_snapshot.rb +86 -0
  26. data/lib/aws/plugins/s3_md5s.rb +11 -8
  27. data/lib/aws/plugins/s3_sse_cpk.rb +42 -0
  28. data/lib/aws/query/builder.rb +4 -0
  29. data/lib/aws/query/param.rb +1 -1
  30. data/lib/aws/signers/base.rb +2 -0
  31. data/lib/aws/signers/s3.rb +0 -1
  32. data/lib/aws/signers/v4.rb +73 -22
  33. data/lib/aws/version.rb +1 -1
  34. data/spec/aws/operations_spec.rb +19 -15
  35. data/spec/aws/plugins/s3_md5s_spec.rb +84 -0
  36. data/spec/aws/query/builder_spec.rb +40 -0
  37. data/spec/aws/query/param_spec.rb +5 -0
  38. data/spec/aws/s3_spec.rb +27 -0
  39. data/spec/aws/signers/v4_spec.rb +1 -1
  40. data/spec/fixtures/operations/s3/412_response_head.yml +10 -0
  41. data/spec/spec_helper.rb +7 -0
  42. data/vendor/seahorse/lib/seahorse/client/handler_list.rb +3 -2
  43. data/vendor/seahorse/lib/seahorse/client/http/headers.rb +4 -0
  44. data/vendor/seahorse/lib/seahorse/client/net_http/handler.rb +1 -0
  45. data/vendor/seahorse/lib/seahorse/client/plugins/operation_methods.rb +4 -2
  46. data/vendor/seahorse/spec/seahorse/client/handler_list_spec.rb +2 -13
  47. metadata +15 -2
@@ -36,7 +36,8 @@
36
36
  "Aws::Plugins::S3GetBucketLocationFix",
37
37
  "Aws::Plugins::S3Md5s",
38
38
  "Aws::Plugins::S3Redirects",
39
- "Aws::Plugins::S3LocationConstraint"
39
+ "Aws::Plugins::S3LocationConstraint",
40
+ "Aws::Plugins::S3SseCpk"
40
41
  ],
41
42
  "operations": {
42
43
  "abort_multipart_upload": {
@@ -302,6 +303,36 @@
302
303
  "type": "string",
303
304
  "location": "header",
304
305
  "serialized_name": "x-amz-website-redirect-location"
306
+ },
307
+ "sse_customer_algorithm": {
308
+ "type": "string",
309
+ "location": "header",
310
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
311
+ },
312
+ "sse_customer_key": {
313
+ "type": "string",
314
+ "location": "header",
315
+ "serialized_name": "x-amz-server-side-encryption-customer-key"
316
+ },
317
+ "sse_customer_key_md5": {
318
+ "type": "string",
319
+ "location": "header",
320
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
321
+ },
322
+ "copy_source_sse_customer_algorithm": {
323
+ "type": "string",
324
+ "location": "header",
325
+ "serialized_name": "x-amz-copy-source-server-side-encryption-customer-algorithm"
326
+ },
327
+ "copy_source_sse_customer_key": {
328
+ "type": "string",
329
+ "location": "header",
330
+ "serialized_name": "x-amz-copy-source-server-side-encryption-customer-key"
331
+ },
332
+ "copy_source_sse_customer_key_md5": {
333
+ "type": "string",
334
+ "location": "header",
335
+ "serialized_name": "x-amz-copy-source-server-side-encryption-customer-key-MD5"
305
336
  }
306
337
  }
307
338
  },
@@ -339,6 +370,16 @@
339
370
  "enum": [
340
371
  "AES256"
341
372
  ]
373
+ },
374
+ "sse_customer_algorithm": {
375
+ "type": "string",
376
+ "location": "header",
377
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
378
+ },
379
+ "sse_customer_key_md5": {
380
+ "type": "string",
381
+ "location": "header",
382
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
342
383
  }
343
384
  },
344
385
  "payload": "copy_object_result"
@@ -542,6 +583,21 @@
542
583
  "type": "string",
543
584
  "location": "header",
544
585
  "serialized_name": "x-amz-website-redirect-location"
586
+ },
587
+ "sse_customer_algorithm": {
588
+ "type": "string",
589
+ "location": "header",
590
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
591
+ },
592
+ "sse_customer_key": {
593
+ "type": "string",
594
+ "location": "header",
595
+ "serialized_name": "x-amz-server-side-encryption-customer-key"
596
+ },
597
+ "sse_customer_key_md5": {
598
+ "type": "string",
599
+ "location": "header",
600
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
545
601
  }
546
602
  }
547
603
  },
@@ -567,6 +623,16 @@
567
623
  "enum": [
568
624
  "AES256"
569
625
  ]
626
+ },
627
+ "sse_customer_algorithm": {
628
+ "type": "string",
629
+ "location": "header",
630
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
631
+ },
632
+ "sse_customer_key_md5": {
633
+ "type": "string",
634
+ "location": "header",
635
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
570
636
  }
571
637
  }
572
638
  }
@@ -1037,12 +1103,37 @@
1037
1103
  "type": "string",
1038
1104
  "serialized_name": "StorageClass",
1039
1105
  "enum": [
1040
- "STANDARD",
1041
- "REDUCED_REDUNDANCY",
1042
1106
  "GLACIER"
1043
1107
  ]
1044
1108
  }
1045
1109
  }
1110
+ },
1111
+ "noncurrent_version_transition": {
1112
+ "type": "structure",
1113
+ "serialized_name": "NoncurrentVersionTransition",
1114
+ "members": {
1115
+ "noncurrent_days": {
1116
+ "type": "integer",
1117
+ "serialized_name": "NoncurrentDays"
1118
+ },
1119
+ "storage_class": {
1120
+ "type": "string",
1121
+ "serialized_name": "StorageClass",
1122
+ "enum": [
1123
+ "GLACIER"
1124
+ ]
1125
+ }
1126
+ }
1127
+ },
1128
+ "noncurrent_version_expiration": {
1129
+ "type": "structure",
1130
+ "serialized_name": "NoncurrentVersionExpiration",
1131
+ "members": {
1132
+ "noncurrent_days": {
1133
+ "type": "integer",
1134
+ "serialized_name": "NoncurrentDays"
1135
+ }
1136
+ }
1046
1137
  }
1047
1138
  }
1048
1139
  }
@@ -1331,7 +1422,7 @@
1331
1422
  },
1332
1423
  "mfa_delete": {
1333
1424
  "type": "string",
1334
- "serialized_name": "MFADelete",
1425
+ "serialized_name": "MfaDelete",
1335
1426
  "enum": [
1336
1427
  "Enabled",
1337
1428
  "Disabled"
@@ -1521,6 +1612,21 @@
1521
1612
  "version_id": {
1522
1613
  "type": "string",
1523
1614
  "location": "uri"
1615
+ },
1616
+ "sse_customer_algorithm": {
1617
+ "type": "string",
1618
+ "location": "header",
1619
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
1620
+ },
1621
+ "sse_customer_key": {
1622
+ "type": "string",
1623
+ "location": "header",
1624
+ "serialized_name": "x-amz-server-side-encryption-customer-key"
1625
+ },
1626
+ "sse_customer_key_md5": {
1627
+ "type": "string",
1628
+ "location": "header",
1629
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
1524
1630
  }
1525
1631
  }
1526
1632
  },
@@ -1629,6 +1735,16 @@
1629
1735
  "members": {
1630
1736
  "type": "string"
1631
1737
  }
1738
+ },
1739
+ "sse_customer_algorithm": {
1740
+ "type": "string",
1741
+ "location": "header",
1742
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
1743
+ },
1744
+ "sse_customer_key_md5": {
1745
+ "type": "string",
1746
+ "location": "header",
1747
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
1632
1748
  }
1633
1749
  },
1634
1750
  "payload": "body"
@@ -1826,6 +1942,21 @@
1826
1942
  "version_id": {
1827
1943
  "type": "string",
1828
1944
  "location": "uri"
1945
+ },
1946
+ "sse_customer_algorithm": {
1947
+ "type": "string",
1948
+ "location": "header",
1949
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
1950
+ },
1951
+ "sse_customer_key": {
1952
+ "type": "string",
1953
+ "location": "header",
1954
+ "serialized_name": "x-amz-server-side-encryption-customer-key"
1955
+ },
1956
+ "sse_customer_key_md5": {
1957
+ "type": "string",
1958
+ "location": "header",
1959
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
1829
1960
  }
1830
1961
  }
1831
1962
  },
@@ -1930,6 +2061,16 @@
1930
2061
  "members": {
1931
2062
  "type": "string"
1932
2063
  }
2064
+ },
2065
+ "sse_customer_algorithm": {
2066
+ "type": "string",
2067
+ "location": "header",
2068
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
2069
+ },
2070
+ "sse_customer_key_md5": {
2071
+ "type": "string",
2072
+ "location": "header",
2073
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
1933
2074
  }
1934
2075
  }
1935
2076
  }
@@ -2084,8 +2225,7 @@
2084
2225
  "serialized_name": "StorageClass",
2085
2226
  "enum": [
2086
2227
  "STANDARD",
2087
- "REDUCED_REDUNDANCY",
2088
- "GLACIER"
2228
+ "REDUCED_REDUNDANCY"
2089
2229
  ]
2090
2230
  },
2091
2231
  "owner": {
@@ -2233,9 +2373,7 @@
2233
2373
  "type": "string",
2234
2374
  "serialized_name": "StorageClass",
2235
2375
  "enum": [
2236
- "STANDARD",
2237
- "REDUCED_REDUNDANCY",
2238
- "GLACIER"
2376
+ "STANDARD"
2239
2377
  ]
2240
2378
  },
2241
2379
  "key": {
@@ -2617,8 +2755,7 @@
2617
2755
  "serialized_name": "StorageClass",
2618
2756
  "enum": [
2619
2757
  "STANDARD",
2620
- "REDUCED_REDUNDANCY",
2621
- "GLACIER"
2758
+ "REDUCED_REDUNDANCY"
2622
2759
  ]
2623
2760
  }
2624
2761
  }
@@ -2914,12 +3051,37 @@
2914
3051
  "type": "string",
2915
3052
  "serialized_name": "StorageClass",
2916
3053
  "enum": [
2917
- "STANDARD",
2918
- "REDUCED_REDUNDANCY",
2919
3054
  "GLACIER"
2920
3055
  ]
2921
3056
  }
2922
3057
  }
3058
+ },
3059
+ "noncurrent_version_transition": {
3060
+ "type": "structure",
3061
+ "serialized_name": "NoncurrentVersionTransition",
3062
+ "members": {
3063
+ "noncurrent_days": {
3064
+ "type": "integer",
3065
+ "serialized_name": "NoncurrentDays"
3066
+ },
3067
+ "storage_class": {
3068
+ "type": "string",
3069
+ "serialized_name": "StorageClass",
3070
+ "enum": [
3071
+ "GLACIER"
3072
+ ]
3073
+ }
3074
+ }
3075
+ },
3076
+ "noncurrent_version_expiration": {
3077
+ "type": "structure",
3078
+ "serialized_name": "NoncurrentVersionExpiration",
3079
+ "members": {
3080
+ "noncurrent_days": {
3081
+ "type": "integer",
3082
+ "serialized_name": "NoncurrentDays"
3083
+ }
3084
+ }
2923
3085
  }
2924
3086
  }
2925
3087
  }
@@ -3235,7 +3397,7 @@
3235
3397
  "members": {
3236
3398
  "mfa_delete": {
3237
3399
  "type": "string",
3238
- "serialized_name": "MFADelete",
3400
+ "serialized_name": "MfaDelete",
3239
3401
  "enum": [
3240
3402
  "Enabled",
3241
3403
  "Disabled"
@@ -3511,6 +3673,21 @@
3511
3673
  "type": "string",
3512
3674
  "location": "header",
3513
3675
  "serialized_name": "x-amz-website-redirect-location"
3676
+ },
3677
+ "sse_customer_algorithm": {
3678
+ "type": "string",
3679
+ "location": "header",
3680
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
3681
+ },
3682
+ "sse_customer_key": {
3683
+ "type": "string",
3684
+ "location": "header",
3685
+ "serialized_name": "x-amz-server-side-encryption-customer-key"
3686
+ },
3687
+ "sse_customer_key_md5": {
3688
+ "type": "string",
3689
+ "location": "header",
3690
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
3514
3691
  }
3515
3692
  },
3516
3693
  "payload": "body"
@@ -3540,6 +3717,16 @@
3540
3717
  "type": "string",
3541
3718
  "location": "header",
3542
3719
  "serialized_name": "x-amz-version-id"
3720
+ },
3721
+ "sse_customer_algorithm": {
3722
+ "type": "string",
3723
+ "location": "header",
3724
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
3725
+ },
3726
+ "sse_customer_key_md5": {
3727
+ "type": "string",
3728
+ "location": "header",
3729
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
3543
3730
  }
3544
3731
  }
3545
3732
  }
@@ -3694,7 +3881,7 @@
3694
3881
  "restore_object": {
3695
3882
  "name": "RestoreObject",
3696
3883
  "http_method": "POST",
3697
- "http_path": "/{bucket}/{key}?restore",
3884
+ "http_path": "/{bucket}/{key}?restore&versionId={version_id}",
3698
3885
  "input": {
3699
3886
  "type": "input",
3700
3887
  "members": {
@@ -3708,6 +3895,10 @@
3708
3895
  "required": true,
3709
3896
  "location": "uri"
3710
3897
  },
3898
+ "version_id": {
3899
+ "type": "string",
3900
+ "location": "uri"
3901
+ },
3711
3902
  "restore_request": {
3712
3903
  "type": "structure",
3713
3904
  "serialized_name": "RestoreRequest",
@@ -3769,6 +3960,21 @@
3769
3960
  "type": "string",
3770
3961
  "required": true,
3771
3962
  "location": "uri"
3963
+ },
3964
+ "sse_customer_algorithm": {
3965
+ "type": "string",
3966
+ "location": "header",
3967
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
3968
+ },
3969
+ "sse_customer_key": {
3970
+ "type": "string",
3971
+ "location": "header",
3972
+ "serialized_name": "x-amz-server-side-encryption-customer-key"
3973
+ },
3974
+ "sse_customer_key_md5": {
3975
+ "type": "string",
3976
+ "location": "header",
3977
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
3772
3978
  }
3773
3979
  },
3774
3980
  "payload": "body"
@@ -3788,6 +3994,16 @@
3788
3994
  "type": "string",
3789
3995
  "location": "header",
3790
3996
  "serialized_name": "ETag"
3997
+ },
3998
+ "sse_customer_algorithm": {
3999
+ "type": "string",
4000
+ "location": "header",
4001
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
4002
+ },
4003
+ "sse_customer_key_md5": {
4004
+ "type": "string",
4005
+ "location": "header",
4006
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
3791
4007
  }
3792
4008
  }
3793
4009
  }
@@ -3849,6 +4065,36 @@
3849
4065
  "type": "string",
3850
4066
  "required": true,
3851
4067
  "location": "uri"
4068
+ },
4069
+ "sse_customer_algorithm": {
4070
+ "type": "string",
4071
+ "location": "header",
4072
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
4073
+ },
4074
+ "sse_customer_key": {
4075
+ "type": "string",
4076
+ "location": "header",
4077
+ "serialized_name": "x-amz-server-side-encryption-customer-key"
4078
+ },
4079
+ "sse_customer_key_md5": {
4080
+ "type": "string",
4081
+ "location": "header",
4082
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
4083
+ },
4084
+ "copy_source_sse_customer_algorithm": {
4085
+ "type": "string",
4086
+ "location": "header",
4087
+ "serialized_name": "x-amz-copy-source-server-side-encryption-customer-algorithm"
4088
+ },
4089
+ "copy_source_sse_customer_key": {
4090
+ "type": "string",
4091
+ "location": "header",
4092
+ "serialized_name": "x-amz-copy-source-server-side-encryption-customer-key"
4093
+ },
4094
+ "copy_source_sse_customer_key_md5": {
4095
+ "type": "string",
4096
+ "location": "header",
4097
+ "serialized_name": "x-amz-copy-source-server-side-encryption-customer-key-MD5"
3852
4098
  }
3853
4099
  }
3854
4100
  },
@@ -3881,6 +4127,16 @@
3881
4127
  "enum": [
3882
4128
  "AES256"
3883
4129
  ]
4130
+ },
4131
+ "sse_customer_algorithm": {
4132
+ "type": "string",
4133
+ "location": "header",
4134
+ "serialized_name": "x-amz-server-side-encryption-customer-algorithm"
4135
+ },
4136
+ "sse_customer_key_md5": {
4137
+ "type": "string",
4138
+ "location": "header",
4139
+ "serialized_name": "x-amz-server-side-encryption-customer-key-MD5"
3884
4140
  }
3885
4141
  },
3886
4142
  "payload": "copy_part_result"
@@ -716,6 +716,33 @@
716
716
  "message_structure": {
717
717
  "type": "string",
718
718
  "serialized_name": "MessageStructure"
719
+ },
720
+ "message_attributes": {
721
+ "type": "map",
722
+ "serialized_name": "MessageAttributes",
723
+ "keys": {
724
+ "type": "string",
725
+ "serialized_name": "Name"
726
+ },
727
+ "members": {
728
+ "type": "structure",
729
+ "serialized_name": "Value",
730
+ "members": {
731
+ "data_type": {
732
+ "type": "string",
733
+ "required": true,
734
+ "serialized_name": "DataType"
735
+ },
736
+ "string_value": {
737
+ "type": "string",
738
+ "serialized_name": "StringValue"
739
+ },
740
+ "binary_value": {
741
+ "type": "blob",
742
+ "serialized_name": "BinaryValue"
743
+ }
744
+ }
745
+ }
719
746
  }
720
747
  }
721
748
  },