aws-sdk-core 2.0.0.rc6 → 2.0.0.rc7

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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +48 -18
  4. data/apis/AutoScaling-2011-01-01.json +14 -6
  5. data/apis/CloudFormation-2010-05-15.json +6 -6
  6. data/apis/CloudFront-2012-05-05.json +5 -6
  7. data/apis/CloudFront-2013-05-12.json +5 -6
  8. data/apis/CloudFront-2013-08-26.json +5 -6
  9. data/apis/CloudFront-2013-11-11.json +5 -6
  10. data/apis/CloudFront-2013-11-22.json +5557 -0
  11. data/apis/CloudFront-2014-01-31.json +5627 -0
  12. data/apis/CloudSearch-2011-02-01.json +136 -4
  13. data/apis/CloudSearch-2013-01-01.json +3515 -0
  14. data/apis/CloudTrail-2013-11-01.json +288 -0
  15. data/apis/CloudWatch-2010-08-01.json +6 -6
  16. data/apis/DataPipeline-2012-10-29.json +0 -1
  17. data/apis/DirectConnect-2012-10-25.json +5 -6
  18. data/apis/DynamoDB-2011-12-05.json +6 -6
  19. data/apis/DynamoDB-2012-08-10.json +307 -6
  20. data/apis/EC2-2013-06-15.json +6 -6
  21. data/apis/EC2-2013-10-01.json +6 -6
  22. data/apis/EC2-2013-10-15.json +6 -6
  23. data/apis/EC2-2014-02-01.json +15189 -0
  24. data/apis/EMR-2009-03-31.json +8 -8
  25. data/apis/ElastiCache-2012-11-15.json +6 -6
  26. data/apis/ElastiCache-2013-06-15.json +6 -6
  27. data/apis/ElastiCache-2014-03-24.json +4344 -0
  28. data/apis/ElasticBeanstalk-2010-12-01.json +6 -7
  29. data/apis/ElasticLoadBalancing-2012-06-01.json +216 -6
  30. data/apis/ElasticTranscoder-2012-09-25.json +4 -5
  31. data/apis/Glacier-2012-06-01.json +5 -5
  32. data/apis/IAM-2010-05-08.json +6 -6
  33. data/apis/ImportExport-2010-06-01.json +5 -6
  34. data/apis/Kinesis-2013-12-02.json +2 -3
  35. data/apis/OpsWorks-2013-02-18.json +149 -2
  36. data/apis/RDS-2013-01-10.json +6 -6
  37. data/apis/RDS-2013-02-12.json +6 -6
  38. data/apis/RDS-2013-05-15.json +6 -6
  39. data/apis/RDS-2013-09-09.json +6 -6
  40. data/apis/Redshift-2012-12-01.json +64 -5
  41. data/apis/Route53-2012-12-12.json +5 -6
  42. data/apis/Route53-2013-04-01.json +37 -6
  43. data/apis/S3-2006-03-01.json +8 -7
  44. data/apis/SDB-2009-04-15.json +5 -6
  45. data/apis/SES-2010-12-01.json +0 -1
  46. data/apis/SNS-2010-03-31.json +6 -6
  47. data/apis/SQS-2012-11-05.json +154 -6
  48. data/apis/STS-2011-06-15.json +14 -6
  49. data/apis/SWF-2012-01-25.json +6 -6
  50. data/apis/StorageGateway-2012-06-30.json +16 -16
  51. data/apis/StorageGateway-2013-06-30.json +21 -21
  52. data/apis/Support-2013-04-15.json +0 -1
  53. data/apis/configuration/endpoints.json +258 -154
  54. data/apis/source/autoscaling-2011-01-01.json +19 -19
  55. data/apis/source/cloudformation-2010-05-15.json +17 -17
  56. data/apis/source/cloudfront-2013-11-22.json +8898 -0
  57. data/apis/source/cloudfront-2013-11-22.paginators.json +32 -0
  58. data/apis/source/cloudfront-2013-11-22.waiters.json +29 -0
  59. data/apis/source/cloudfront-2014-01-31.json +8975 -0
  60. data/apis/source/cloudfront-2014-01-31.normal.json +2905 -0
  61. data/apis/source/cloudfront-2014-01-31.paginators.json +32 -0
  62. data/apis/source/cloudfront-2014-01-31.waiters.json +29 -0
  63. data/apis/source/cloudsearch-2011-02-01.json +286 -8
  64. data/apis/source/cloudsearch-2013-01-01.json +5547 -0
  65. data/apis/source/cloudsearch-2013-01-01.paginators.json +20 -0
  66. data/apis/source/cloudtrail-2013-11-01.json +539 -0
  67. data/apis/source/cloudtrail-2013-11-01.paginators.json +7 -0
  68. data/apis/source/dynamodb-2011-12-05.json +19 -0
  69. data/apis/source/dynamodb-2012-08-10.json +415 -2
  70. data/apis/source/ec2-2014-02-01.json +20576 -0
  71. data/apis/source/ec2-2014-02-01.paginators.json +126 -0
  72. data/apis/source/ec2-2014-02-01.waiters.json +146 -0
  73. data/apis/source/elasticache-2014-03-24.json +6463 -0
  74. data/apis/source/elasticache-2014-03-24.paginators.json +70 -0
  75. data/apis/source/elasticloadbalancing-2012-06-01.json +455 -164
  76. data/apis/source/elasticloadbalancing-2012-06-01.normal.json +2107 -0
  77. data/apis/source/kinesis-2013-12-02.json +5 -5
  78. data/apis/source/kinesis-2013-12-02.normal.json +761 -0
  79. data/apis/source/kinesis-2013-12-02.paginators.json +6 -6
  80. data/apis/source/opsworks-2013-02-18.json +242 -39
  81. data/apis/source/opsworks-2013-02-18.paginators.json +3 -0
  82. data/apis/source/redshift-2012-12-01.json +180 -91
  83. data/apis/source/route53-2013-04-01.json +68 -4
  84. data/apis/source/sqs-2012-11-05.json +237 -7
  85. data/apis/source/sts-2011-06-15.json +18 -2
  86. data/bin/aws.rb +7 -7
  87. data/doc-src/plugins/apis.rb +1 -1
  88. data/features/cloudtrail/client.feature +17 -0
  89. data/features/cloudtrail/step_definitions.rb +6 -0
  90. data/features/datapipeline/client.feature +1 -1
  91. data/lib/aws.rb +21 -5
  92. data/lib/aws/api/service_translators/s3.rb +1 -0
  93. data/lib/aws/api/translator.rb +1 -2
  94. data/lib/aws/credential_provider_chain.rb +62 -0
  95. data/lib/aws/credentials.rb +4 -1
  96. data/lib/aws/errors.rb +4 -0
  97. data/lib/aws/plugins/credentials.rb +24 -31
  98. data/lib/aws/plugins/s3_location_constraint.rb +38 -0
  99. data/lib/aws/shared_credentials.rb +105 -0
  100. data/lib/aws/structure.rb +1 -0
  101. data/lib/aws/util.rb +18 -19
  102. data/lib/aws/version.rb +1 -1
  103. data/spec/aws/credentials_spec.rb +8 -0
  104. data/spec/aws/plugins/credentials_spec.rb +71 -15
  105. data/spec/aws/plugins/s3_location_constraint_spec.rb +48 -0
  106. data/spec/aws/shared_credentials_spec.rb +68 -0
  107. data/spec/aws/util_spec.rb +107 -0
  108. data/spec/aws_spec.rb +6 -0
  109. data/spec/fixtures/credentials/mock_shared_credentials +14 -0
  110. data/spec/fixtures/operations/s3/create_bucket_with_implied_location_constraint.yml +23 -0
  111. data/spec/spec_helper.rb +4 -0
  112. data/tasks/test.rake +10 -7
  113. data/vendor/seahorse/lib/seahorse/client/param_converter.rb +2 -2
  114. metadata +43 -3
  115. data/lib/aws/plugins/instance_profile_credentials.rb +0 -14
@@ -0,0 +1,23 @@
1
+ config:
2
+ region: us-west-1
3
+ operation: create_bucket
4
+ params:
5
+ :bucket: 'bucket-name'
6
+ :acl: public-read
7
+ request:
8
+ host: bucket-name.s3-us-west-1.amazonaws.com
9
+ method: PUT
10
+ path: /
11
+ headers:
12
+ X-Amz-Acl: public-read
13
+ body: |
14
+ <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
15
+ <LocationConstraint>us-west-1</LocationConstraint>
16
+ </CreateBucketConfiguration>
17
+ response:
18
+ status_code: 200
19
+ headers:
20
+ Location: /us-west-1
21
+ body: ''
22
+ data:
23
+ :location: /us-west-1
@@ -7,6 +7,10 @@ require 'yaml'
7
7
  require_relative '../vendor/seahorse/spec/spec_helper'
8
8
 
9
9
  # prevent env from leaking state into tests
10
+ ENV.delete('AWS_REGION')
11
+ ENV.delete('AWS_PROFILE')
12
+ ENV.delete('AWS_ACCESS_KEY')
13
+ ENV.delete('AWS_SECRET_KEY')
10
14
  %w(AWS AMAZON).each do |prefix|
11
15
  ENV.delete("#{prefix}_ACCESS_KEY_ID")
12
16
  ENV.delete("#{prefix}_SECRET_ACCESS_KEY")
@@ -1,22 +1,25 @@
1
1
  require 'rspec/core/rake_task'
2
- require 'cucumber/rake/task'
3
2
 
4
3
  namespace :test do
5
-
6
4
  desc "Runs unit tests"
7
5
  RSpec::Core::RakeTask.new(:unit) do |t|
8
6
  t.pattern = "spec"
9
7
  end
8
+ end
9
+
10
+ desc 'Runs unit tests'
11
+ task :test => ['test:unit']
10
12
 
11
- Cucumber::Rake::Task.new(:integration) do |t|
13
+ begin
14
+ require 'cucumber/rake/task'
15
+ Cucumber::Rake::Task.new(:'test:integration') do |t|
12
16
  t.cucumber_opts = "features"
13
17
  end
14
-
18
+ desc 'Runs unit and integration tests'
19
+ task :test => ['test:integration']
20
+ rescue LoadError
15
21
  end
16
22
 
17
- desc 'Runs unit and integration tests'
18
- task :test => ['test:unit', 'test:integration']
19
-
20
23
  desc 'Generates a coverage report'
21
24
  task :coverage do
22
25
  ENV['COVERAGE'] = 'true'
@@ -142,12 +142,12 @@ module Seahorse
142
142
 
143
143
  add(StructureShape, Hash) { |h| h.dup }
144
144
  add(StructureShape, Struct) do |s|
145
- s.members.inject({}) {|h,k| h[k] = s[k]; h }
145
+ s.members.each.with_object({}) {|k,h| h[k] = s[k] }
146
146
  end
147
147
 
148
148
  add(MapShape, Hash) { |h| h.dup }
149
149
  add(MapShape, Struct) do |s|
150
- s.members.inject({}) {|h,k| h[k] = s[k]; h }
150
+ s.members.each.with_object({}) {|k,h| h[k] = s[k] }
151
151
  end
152
152
 
153
153
  add(ListShape, Array) { |a| a.dup }
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.0.rc6
4
+ version: 2.0.0.rc7
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-02-05 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -87,7 +87,11 @@ files:
87
87
  - apis/CloudFront-2013-05-12.json
88
88
  - apis/CloudFront-2013-08-26.json
89
89
  - apis/CloudFront-2013-11-11.json
90
+ - apis/CloudFront-2013-11-22.json
91
+ - apis/CloudFront-2014-01-31.json
90
92
  - apis/CloudSearch-2011-02-01.json
93
+ - apis/CloudSearch-2013-01-01.json
94
+ - apis/CloudTrail-2013-11-01.json
91
95
  - apis/CloudWatch-2010-08-01.json
92
96
  - apis/DataPipeline-2012-10-29.json
93
97
  - apis/DirectConnect-2012-10-25.json
@@ -96,9 +100,11 @@ files:
96
100
  - apis/EC2-2013-06-15.json
97
101
  - apis/EC2-2013-10-01.json
98
102
  - apis/EC2-2013-10-15.json
103
+ - apis/EC2-2014-02-01.json
99
104
  - apis/EMR-2009-03-31.json
100
105
  - apis/ElastiCache-2012-11-15.json
101
106
  - apis/ElastiCache-2013-06-15.json
107
+ - apis/ElastiCache-2014-03-24.json
102
108
  - apis/ElasticBeanstalk-2010-12-01.json
103
109
  - apis/ElasticLoadBalancing-2012-06-01.json
104
110
  - apis/ElasticTranscoder-2012-09-25.json
@@ -138,8 +144,19 @@ files:
138
144
  - apis/source/cloudfront-2013-11-11.json
139
145
  - apis/source/cloudfront-2013-11-11.paginators.json
140
146
  - apis/source/cloudfront-2013-11-11.waiters.json
147
+ - apis/source/cloudfront-2013-11-22.json
148
+ - apis/source/cloudfront-2013-11-22.paginators.json
149
+ - apis/source/cloudfront-2013-11-22.waiters.json
150
+ - apis/source/cloudfront-2014-01-31.json
151
+ - apis/source/cloudfront-2014-01-31.normal.json
152
+ - apis/source/cloudfront-2014-01-31.paginators.json
153
+ - apis/source/cloudfront-2014-01-31.waiters.json
141
154
  - apis/source/cloudsearch-2011-02-01.json
142
155
  - apis/source/cloudsearch-2011-02-01.paginators.json
156
+ - apis/source/cloudsearch-2013-01-01.json
157
+ - apis/source/cloudsearch-2013-01-01.paginators.json
158
+ - apis/source/cloudtrail-2013-11-01.json
159
+ - apis/source/cloudtrail-2013-11-01.paginators.json
143
160
  - apis/source/datapipeline-2012-10-29.json
144
161
  - apis/source/datapipeline-2012-10-29.paginators.json
145
162
  - apis/source/directconnect-2012-10-25.json
@@ -159,13 +176,19 @@ files:
159
176
  - apis/source/ec2-2013-10-15.json
160
177
  - apis/source/ec2-2013-10-15.paginators.json
161
178
  - apis/source/ec2-2013-10-15.waiters.json
179
+ - apis/source/ec2-2014-02-01.json
180
+ - apis/source/ec2-2014-02-01.paginators.json
181
+ - apis/source/ec2-2014-02-01.waiters.json
162
182
  - apis/source/elasticache-2012-11-15.json
163
183
  - apis/source/elasticache-2012-11-15.paginators.json
164
184
  - apis/source/elasticache-2013-06-15.json
165
185
  - apis/source/elasticache-2013-06-15.paginators.json
186
+ - apis/source/elasticache-2014-03-24.json
187
+ - apis/source/elasticache-2014-03-24.paginators.json
166
188
  - apis/source/elasticbeanstalk-2010-12-01.json
167
189
  - apis/source/elasticbeanstalk-2010-12-01.paginators.json
168
190
  - apis/source/elasticloadbalancing-2012-06-01.json
191
+ - apis/source/elasticloadbalancing-2012-06-01.normal.json
169
192
  - apis/source/elasticloadbalancing-2012-06-01.paginators.json
170
193
  - apis/source/elasticmapreduce-2009-03-31.json
171
194
  - apis/source/elasticmapreduce-2009-03-31.paginators.json
@@ -181,6 +204,7 @@ files:
181
204
  - apis/source/importexport-2010-06-01.json
182
205
  - apis/source/importexport-2010-06-01.paginators.json
183
206
  - apis/source/kinesis-2013-12-02.json
207
+ - apis/source/kinesis-2013-12-02.normal.json
184
208
  - apis/source/kinesis-2013-12-02.paginators.json
185
209
  - apis/source/monitoring-2010-08-01.json
186
210
  - apis/source/monitoring-2010-08-01.paginators.json
@@ -240,6 +264,8 @@ files:
240
264
  - features/cloudfront/step_definitions.rb
241
265
  - features/cloudsearch/client.feature
242
266
  - features/cloudsearch/step_definitions.rb
267
+ - features/cloudtrail/client.feature
268
+ - features/cloudtrail/step_definitions.rb
243
269
  - features/cloudwatch/client.feature
244
270
  - features/cloudwatch/step_definitions.rb
245
271
  - features/datapipeline/client.feature
@@ -318,6 +344,7 @@ files:
318
344
  - lib/aws/api/shape_translator.rb
319
345
  - lib/aws/api/translator.rb
320
346
  - lib/aws/api/visitor.rb
347
+ - lib/aws/credential_provider_chain.rb
321
348
  - lib/aws/credentials.rb
322
349
  - lib/aws/error_handler.rb
323
350
  - lib/aws/errors.rb
@@ -333,7 +360,6 @@ files:
333
360
  - lib/aws/plugins/glacier_api_version.rb
334
361
  - lib/aws/plugins/glacier_checksums.rb
335
362
  - lib/aws/plugins/global_configuration.rb
336
- - lib/aws/plugins/instance_profile_credentials.rb
337
363
  - lib/aws/plugins/json_protocol.rb
338
364
  - lib/aws/plugins/json_rpc_headers.rb
339
365
  - lib/aws/plugins/query_protocol.rb
@@ -343,6 +369,7 @@ files:
343
369
  - lib/aws/plugins/s3_bucket_dns.rb
344
370
  - lib/aws/plugins/s3_complete_multipart_upload_fix.rb
345
371
  - lib/aws/plugins/s3_get_bucket_location_fix.rb
372
+ - lib/aws/plugins/s3_location_constraint.rb
346
373
  - lib/aws/plugins/s3_md5s.rb
347
374
  - lib/aws/plugins/s3_redirects.rb
348
375
  - lib/aws/plugins/s3_regional_endpoint.rb
@@ -361,6 +388,7 @@ files:
361
388
  - lib/aws/request_handler.rb
362
389
  - lib/aws/response_handler.rb
363
390
  - lib/aws/service.rb
391
+ - lib/aws/shared_credentials.rb
364
392
  - lib/aws/signers/base.rb
365
393
  - lib/aws/signers/handler.rb
366
394
  - lib/aws/signers/s3.rb
@@ -388,18 +416,22 @@ files:
388
416
  - spec/aws/plugins/global_configuration_spec.rb
389
417
  - spec/aws/plugins/region_endpoint_spec.rb
390
418
  - spec/aws/plugins/retry_errors_spec.rb
419
+ - spec/aws/plugins/s3_location_constraint_spec.rb
391
420
  - spec/aws/plugins/signature_v4_spec.rb
392
421
  - spec/aws/plugins/sqs_queue_urls_spec.rb
393
422
  - spec/aws/query/builder_spec.rb
394
423
  - spec/aws/query/param_list_spec.rb
395
424
  - spec/aws/query/param_spec.rb
396
425
  - spec/aws/service_spec.rb
426
+ - spec/aws/shared_credentials_spec.rb
397
427
  - spec/aws/signers/v4_spec.rb
398
428
  - spec/aws/structure_spec.rb
429
+ - spec/aws/util_spec.rb
399
430
  - spec/aws/xml/builder_spec.rb
400
431
  - spec/aws/xml/parser_spec.rb
401
432
  - spec/aws_spec.rb
402
433
  - spec/fixtures/api/swf.json
434
+ - spec/fixtures/credentials/mock_shared_credentials
403
435
  - spec/fixtures/operations/cloudfront/list_distributions.yml
404
436
  - spec/fixtures/operations/cloudfront/max_items.yml
405
437
  - spec/fixtures/operations/dynamodb/error_parsing.yml
@@ -417,6 +449,7 @@ files:
417
449
  - spec/fixtures/operations/s3/404_response.yml
418
450
  - spec/fixtures/operations/s3/comlete_multipart_upload_error.yml
419
451
  - spec/fixtures/operations/s3/content_type_header.yml
452
+ - spec/fixtures/operations/s3/create_bucket_with_implied_location_constraint.yml
420
453
  - spec/fixtures/operations/s3/create_bucket_with_location_constraint.yml
421
454
  - spec/fixtures/operations/s3/create_bucket_without_location_constraint.yml
422
455
  - spec/fixtures/operations/s3/delete_objects.yml
@@ -570,6 +603,8 @@ test_files:
570
603
  - features/cloudfront/step_definitions.rb
571
604
  - features/cloudsearch/client.feature
572
605
  - features/cloudsearch/step_definitions.rb
606
+ - features/cloudtrail/client.feature
607
+ - features/cloudtrail/step_definitions.rb
573
608
  - features/cloudwatch/client.feature
574
609
  - features/cloudwatch/step_definitions.rb
575
610
  - features/datapipeline/client.feature
@@ -640,18 +675,22 @@ test_files:
640
675
  - spec/aws/plugins/global_configuration_spec.rb
641
676
  - spec/aws/plugins/region_endpoint_spec.rb
642
677
  - spec/aws/plugins/retry_errors_spec.rb
678
+ - spec/aws/plugins/s3_location_constraint_spec.rb
643
679
  - spec/aws/plugins/signature_v4_spec.rb
644
680
  - spec/aws/plugins/sqs_queue_urls_spec.rb
645
681
  - spec/aws/query/builder_spec.rb
646
682
  - spec/aws/query/param_list_spec.rb
647
683
  - spec/aws/query/param_spec.rb
648
684
  - spec/aws/service_spec.rb
685
+ - spec/aws/shared_credentials_spec.rb
649
686
  - spec/aws/signers/v4_spec.rb
650
687
  - spec/aws/structure_spec.rb
688
+ - spec/aws/util_spec.rb
651
689
  - spec/aws/xml/builder_spec.rb
652
690
  - spec/aws/xml/parser_spec.rb
653
691
  - spec/aws_spec.rb
654
692
  - spec/fixtures/api/swf.json
693
+ - spec/fixtures/credentials/mock_shared_credentials
655
694
  - spec/fixtures/operations/cloudfront/list_distributions.yml
656
695
  - spec/fixtures/operations/cloudfront/max_items.yml
657
696
  - spec/fixtures/operations/dynamodb/error_parsing.yml
@@ -669,6 +708,7 @@ test_files:
669
708
  - spec/fixtures/operations/s3/404_response.yml
670
709
  - spec/fixtures/operations/s3/comlete_multipart_upload_error.yml
671
710
  - spec/fixtures/operations/s3/content_type_header.yml
711
+ - spec/fixtures/operations/s3/create_bucket_with_implied_location_constraint.yml
672
712
  - spec/fixtures/operations/s3/create_bucket_with_location_constraint.yml
673
713
  - spec/fixtures/operations/s3/create_bucket_without_location_constraint.yml
674
714
  - spec/fixtures/operations/s3/delete_objects.yml
@@ -1,14 +0,0 @@
1
- module Aws
2
- module Plugins
3
- # Adds support for loading access credentials from the EC2 instance
4
- # metada service.
5
- class InstanceProfileCredentials < Seahorse::Client::Plugin
6
-
7
- option(:credentials) do
8
- credentials = Aws::InstanceProfileCredentials.new
9
- credentials.set? ? credentials : nil
10
- end
11
-
12
- end
13
- end
14
- end