forked from aws/aws-sdk-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
4950 lines (3933 loc) · 213 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2013-07-25 Trevor Rowe <[email protected]>
* features/cloud_front/step_definitions/client.rb: Fixed broken
AWS::CloudFront integration tests.
* lib/aws/cloud_front/request.rb: Updated CloudFront to use signature v4
Fixes #317
2013-07-24 Trevor Rowe <[email protected]>
* README.md: Removed GitHub style code blocks from README, they were causing
issues in the YARD documentation.
* ChangeLog, lib/aws/version.rb: Bump version to 1.14.0
* doc-src/OpsWorks/V20130218.yml,
lib/aws/api_config/OpsWorks-2013-02-18.yml: Updated AWS::OpsWorks::Client to
latest API version.
* doc-src/templates/default/layout/html/footer.erb: Fix SiteCatalyst link
* lib/aws/dynamo_db/client.rb: Added back missing zlib statement.
2013-07-23 Landon Clark <[email protected]>
* lib/aws/ec2/tag_collection.rb: Fixed example for creating a tag collection
for an ec2 instance.
* .yardopts, doc-src/CloudSearch/V20110201.yml,
doc-src/CloudWatch/V20100801.yml, doc-src/DataPipeline/V20121029.yml,
doc-src/DynamoDB/V20111205.yml, doc-src/DynamoDB/V20120810.yml,
doc-src/EC2/V20130201.yml, doc-src/ELB/V20120601.yml,
doc-src/EMR/V20090331.yml, doc-src/ElastiCache/V20121115.yml,
doc-src/IAM/V20100508.yml, doc-src/OpsWorks/V20130218.yml,
doc-src/RDS/V20130515.yml, doc-src/Redshift/V20121201.yml,
doc-src/Route53/V20121212.yml, doc-src/SNS/V20100331.yml,
doc-src/SQS/V20121105.yml, doc-src/STS/V20110615.yml,
doc-src/SimpleDB/V20090415.yml, doc-src/SimpleEmailService/V20101201.yml,
doc-src/SimpleWorkflow/V20120125.yml: Moved API doc src from client classes
into YAML files.
* lib/aws/api_config/SNS-2010-03-31.yml,
lib/aws/api_config/SimpleWorkflow-2012-01-25.yml: Updated SWF and SNS api
configurations.
2013-07-22 Trevor Rowe <[email protected]>
* doc-src/AutoScaling/V20110101.yml, doc-src/CloudFormation/V20100515.yml,
doc-src/CloudFront/V20130512.yml, doc-src/CloudSearch/V20110201.yml,
doc-src/CloudWatch/V20100801.yml, doc-src/DataPipeline/V20121029.yml,
doc-src/DirectConnect/V20121025.yml, doc-src/DynamoDB/V20111205.yml,
doc-src/DynamoDB/V20120810.yml, doc-src/EC2/V20130201.yml,
doc-src/ELB/V20120601.yml, doc-src/EMR/V20090331.yml,
doc-src/ElastiCache/V20121115.yml, doc-src/ElasticBeanstalk/V20101201.yml,
doc-src/ElasticTranscoder/V20120925.yml, doc-src/Glacier/V20120601.yml,
doc-src/OpsWorks/V20130218.yml, doc-src/RDS/V20130515.yml,
doc-src/Redshift/V20121201.yml, doc-src/Route53/V20121212.yml,
doc-src/SNS/V20100331.yml, doc-src/SQS/V20121105.yml,
doc-src/SimpleDB/V20090415.yml, doc-src/SimpleEmailService/V20101201.yml,
doc-src/SimpleWorkflow/V20120125.yml, doc-src/StorageGateway/V20120630.yml,
doc-src/Support/V20130415.yml: Fixed faultly formatting of api docs.
* lib/aws/dynamo_db/client_v2.rb: Replaces @api private with @deprecated for
AWS::DynamoDB::ClientV2.
* lib/aws/dynamo_db.rb, lib/aws/dynamo_db/client.rb,
lib/aws/dynamo_db/client_base.rb: Removed the no-longer-needed
DynamoDB::ClientBase class.
* .yardopts, doc-src/AutoScaling/V20110101.yml,
doc-src/CloudFormation/V20100515.yml, doc-src/CloudFront/V20130512.yml,
doc-src/CloudSearch/V20110201.yml, doc-src/CloudWatch/V20100801.yml,
doc-src/DataPipeline/V20121029.yml, doc-src/DirectConnect/V20121025.yml,
doc-src/DynamoDB/V20111205.yml, doc-src/DynamoDB/V20120810.yml,
doc-src/EC2/V20130201.yml, doc-src/ELB/V20120601.yml,
doc-src/EMR/V20090331.yml, doc-src/ElastiCache/V20121115.yml,
doc-src/ElasticBeanstalk/V20101201.yml,
doc-src/ElasticTranscoder/V20120925.yml, doc-src/Glacier/V20120601.yml,
doc-src/IAM/V20100508.yml, doc-src/ImportExport/V20100601.yml,
doc-src/OpsWorks/V20130218.yml, doc-src/RDS/V20130515.yml,
doc-src/Redshift/V20121201.yml, doc-src/Route53/V20121212.yml,
doc-src/SNS/V20100331.yml, doc-src/SQS/V20121105.yml,
doc-src/STS/V20110615.yml, doc-src/SimpleDB/V20090415.yml,
doc-src/SimpleEmailService/V20101201.yml,
doc-src/SimpleWorkflow/V20120125.yml, doc-src/StorageGateway/V20120630.yml,
doc-src/Support/V20130415.yml, doc-src/api_docs_plugin.rb: Moved Client
class API documentation into yaml files inside doc-src.
These are now applied to the client classes as well as the parent Client
class.
* lib/aws/sns/message.rb: Minor yard doc tag fix.
2013-07-19 Trevor Rowe <[email protected]>
* lib/aws/auto_scaling/client.rb, lib/aws/cloud_formation/client.rb,
lib/aws/cloud_front/client.rb, lib/aws/cloud_search/client.rb,
lib/aws/cloud_watch/client.rb, lib/aws/data_pipeline/client.rb,
lib/aws/direct_connect/client.rb, lib/aws/ec2/client.rb,
lib/aws/elastic_beanstalk/client.rb, lib/aws/elastic_transcoder/client.rb,
lib/aws/elasticache/client.rb, lib/aws/elb/client.rb, lib/aws/emr/client.rb,
lib/aws/glacier/client.rb, lib/aws/iam/client.rb,
lib/aws/import_export/client.rb, lib/aws/ops_works/client.rb,
lib/aws/rds/client.rb, lib/aws/redshift/client.rb,
lib/aws/route_53/client.rb, lib/aws/simple_db/client.rb,
lib/aws/simple_email_service/client.rb, lib/aws/simple_workflow/client.rb,
lib/aws/sns/client.rb, lib/aws/sqs/client.rb,
lib/aws/storage_gateway/client.rb, lib/aws/sts/client.rb,
lib/aws/support/client.rb: Removed static API documentation from client
classes.
* .yardopts, Gemfile: Configured yard to use rdiscount instead of redcarpet.
* features/ec2/reserved_instances.feature,
features/ec2/step_definitions/reserved_instances.rb,
lib/aws/ec2/reserved_instances_offering_collection.rb: Added support for
paging Amazon EC2 reserved instances offerings.
2013-07-18 Alex Wood <[email protected]>
* ChangeLog, lib/aws/version.rb: Bump version to 1.13.0
* lib/aws/api_config/Redshift-2012-12-01.yml, lib/aws/redshift/client.rb:
Updated AWS::Redshift::Client to latest API version.
2013-07-15 Trevor Rowe <[email protected]>
* spec/shared/aws_client_examples.rb: Disabed aync test.
* lib/aws/s3/client.rb, spec/aws/s3/client_spec.rb:
AWS::S3::Client#put_bucket_website now omits empty routing rules.
This resolves an issue where passing `:routing_rules => []` to the
client would result in an error returned from Amazon S3. S3 does
not accept `<RoutingRules/>`.
Fixes #308
* lib/aws/core.rb: Update documentation for AWS.memoize.
AWS.memoize documentation incorrectly stated that memoize was
only supported for EC2, when in fact it is supported for classes
which inherit from Resource.
* README.md: Updated list of supported API versions in the README.
2013-07-11 Alex Wood <[email protected]>
* lib/aws/api_config/STS-2011-06-15.yml, lib/aws/sts/client.rb: Added
AWS::STS::Client#decode_authorization_message
2013-07-10 Loren Segal <[email protected]>
* tasks/docs.rake: Update docs.rake
* .travis.yml: Ignore some Gemfile groups in Travis tests.
* lib/aws/simple_email_service/identity.rb: Fix typo in
SimpleEmailService::Identity
* lib/aws/route_53/hosted_zone.rb, lib/aws/route_53/resource_record_set.rb:
resource_identifiers should be protected
* lib/aws/cloud_front/client.rb: Bumped CloudFront API client.
* spec/aws/rds/client_spec.rb: Updated RDS client spec for the new api
version.
* lib/aws/rds/client.rb: Bumped EC2 API version in the client class.
* lib/aws/api_config/RDS-2013-02-12.yml,
lib/aws/api_config/RDS-2013-05-15.yml, lib/aws/rds/client.rb: Updated
AWS::RDS::Client to the latest API version.
* lib/aws/api_config/CloudFront-2012-07-01.yml,
lib/aws/api_config/CloudFront-2013-05-12.yml, lib/aws/cloud_front/client.rb:
Updated to the 2013-05-12 API version for AWS::CloudFront::Client.
* lib/aws/dynamo_db/client.rb: Removed duplicate code from DynamoDB::Client.
* features/record/hash_model.feature: Fixed an integration test for
AWS::Record::HashModel.
* lib/aws/record/abstract_base.rb, lib/aws/record/hash_model.rb,
lib/aws/record/model.rb: Moved one other reference for id out of record
abstract base.
* lib/aws/record/abstract_base.rb, lib/aws/record/attributes.rb,
spec/aws/record/model/instance_methods_spec.rb,
spec/shared/record/instance_examples.rb: AWS::Record now accepts default
values set via a proc.
By using a Proc, you can ensure every record has a different default value.
For example:
class Book < AWS::Record::HashModel
string_attr :isbn, :default_value => lambda {
UUIDTools::UUID.random_create }
end
* lib/aws/record/abstract_base.rb, lib/aws/record/hash_model.rb,
lib/aws/record/validator.rb,
spec/aws/record/hash_model/class_methods_spec.rb: AWS::Record::HashModel now
accepts mutable hash keys.
The default behavior for a class extending `AWS::Record::HashModel` is to
have a managed `#id` attribute. This attribute is auto-generated before
creation. It is set to a random UUID.
You can now override this behavior with the `:hash_key` option. When you do
this,
the HashModel's hash key will no longer be managed (no default values).
* lib/aws/record/abstract_base.rb, lib/aws/record/model.rb: Moved the static
#id attribute logic from AWS::Record::AbstractBase into Model.
In order to allow a dynamic hash key, we don't want the extra baggage of
a fixed attribute name.
2013-07-09 Trevor Rowe <[email protected]>
* lib/aws/auto_scaling/client.rb, lib/aws/cloud_formation/client.rb,
lib/aws/cloud_front/client.rb, lib/aws/cloud_search/client.rb,
lib/aws/cloud_watch/client.rb, lib/aws/core/client.rb,
lib/aws/data_pipeline/client.rb, lib/aws/direct_connect/client.rb,
lib/aws/ec2/client.rb, lib/aws/elastic_beanstalk/client.rb,
lib/aws/elastic_transcoder/client.rb, lib/aws/elasticache/client.rb,
lib/aws/elb/client.rb, lib/aws/emr/client.rb, lib/aws/glacier/client.rb,
lib/aws/iam/client.rb, lib/aws/import_export/client.rb,
lib/aws/ops_works/client.rb, lib/aws/rds/client.rb,
lib/aws/redshift/client.rb, lib/aws/route_53/client.rb,
lib/aws/s3/client.rb, lib/aws/simple_db/client.rb,
lib/aws/simple_email_service/client.rb, lib/aws/simple_workflow/client.rb,
lib/aws/sns/client.rb, lib/aws/sqs/client.rb,
lib/aws/storage_gateway/client.rb, lib/aws/sts/client.rb,
lib/aws/support/client.rb, spec/aws/core/client_spec.rb,
spec/aws/ec2/client/xml_spec.rb: Minimal refactor so services support
versioned clients.
* lib/aws/core/client.rb: Moved logic for versioned clients from
AWS::DynamoDB::Client to AWS::Core::Client.
* lib/aws/record/hash_model.rb,
spec/aws/record/hash_model/class_methods_spec.rb:
AWS::Record::HashModel.create_table now observes the assignable hash key.
This was previously hard-coded to 'id', it now uses the specified
hash key:
class Book < AWS::Record::HashModel
string_attr :isbn, :hash_key => true
end
Book.create_table(10, 5) # table hash key becomes 'isbn'
* spec/aws/core/credential_providers_spec.rb: Fix bug in
CredentialFileProvider test.
* lib/aws/core/credential_providers.rb,
spec/aws/core/credential_providers_spec.rb: Implements
AWS::Core::CredentialProviders::CredentialFileProvider
* spec/aws/core/region_collection_spec.rb: Fix tests for 1.8.7 syntax
* lib/aws/core/region_collection.rb,
spec/aws/core/region_collection_spec.rb: Refinements to proxies in region
collection.
Additionally, fixed the URI usage within load_data to
support ports.
Fixes #300
* lib/aws/core/region_collection.rb: Add proxy support to AWS regions
enumeration.
region_collection.rb did not attempt to use proxies even when
specified in the AWS config. This change adds a proxy check,
and uses a proxy when available.
* lib/aws/dynamo_db/client.rb: Udpated documentation reference to the
DynamoDB constructor.
* bin/aws-rb: Now joining execute options for aws-rb
* bin/aws-rb: Passing the -e flag to aws-rb now defaults quiet mode.
* lib/aws/core/credential_providers.rb,
spec/aws/core/credential_providers_spec.rb, spec/mock-credential-file.txt:
Read credentials from AWS_CREDENTIAL_FILE environment variable.
* bin/aws-rb: Added a -e option to aws-rb.
You can now execute commands using aws-rb. Passing commands
with the -e option will prevent the REPL from launching and will
exit instead. You can pass multiple -e options.
aws-rb -q -e "puts AWS.s3.buckets.map(&:name)"
The script above would put the name of each bucket to STDOUT and
then exit. The -q flag (quiet) disables logging.
2013-07-08 Alex Wood <[email protected]>
* lib/aws/s3/presigned_post.rb: Remove unnecessary field name
transformation.
In my previous change, forgot the removal of one field name
function call. This was inconsistent but didn't break tests.
Cleaning that up with this change.
* ChangeLog, lib/aws/version.rb: Bump version to 1.12.0
* lib/aws/sns/originators/from_auto_scaling.rb,
spec/aws/sns/originators/from_auto_scaling_spec.rb: Fixed the copyright
dates in two files.
* lib/aws/api_config/ElasticTranscoder-2012-09-25.yml,
lib/aws/elastic_transcoder/client.rb: Added support for watermarks to
AWS::ElasticTranscoder::Client.
2013-07-03 Alex Wood <[email protected]>
* lib/aws/s3/presigned_post.rb: Minor adjustment to previous presigned post
change.
Had integration test regressions regarding some option types.
This change addresses that regression.
* lib/aws/s3/presigned_post.rb, spec/aws/s3/presigned_post_spec.rb: Allow
arbitrary options for presigned post.
Presigned Posts to S3 previously hard coded a set of allowable
parameters, this change permits users to send arbitrary params
which are then passed on to S3.
Resolves #250
* lib/aws/core.rb, lib/aws/core/region.rb, tasks/docs.rake: Updated
documentation for service helpers.
* lib/aws/core.rb, lib/aws/core/configuration.rb, lib/aws/core/region.rb,
tasks/docs.rake: Renamed helper methods for AWS::SimpleEmailService and
AWS::SimpleWorkflow.
To be consistent with other services that use the official service
abbreviation,
the helper methods on `AWS` and `AWS::Core::Region` now use the short names
for
`AWS::SimpleEmailService` and `AWS::SimpleWorkflow`.
# new methods
AWS.ses
AWS.swf
AWS.regions['us-west-2'].ses
AWS.regions['us-west-2'].swf
# deprecated methods
AWS.simple_email_service
AWS.simple_workflow
AWS.regions['us-west-2'].simple_email_service
AWS.regions['us-west-2'].simple_workflow
Additionally global configuration options use the short name.
AWS.config(:ses => {...})
AWS.config(:swf => {...})
* lib/aws/core/configuration.rb, spec/aws/core/client_spec.rb: You can now
specify endpoint, region and port per service via AWS.config(:svc => { ...
})
You can specify global options per service now using the new configuration
options.
Example:
AWS.config(:s3 => { :region => 'us-west-2' })
AWS::S3.new.config.s3_region
#=> 'us-west-2'
* lib/aws/core/configuration.rb, spec/aws/config_spec.rb: Each service now
hash a top-level configuration entry.
Each service now has a config option, for example:
AWS.config.s3
#=> {}
You can specify the value like any other configuration option:
AWS.config(:s3 => { 'abc' => 'xyz' })
These values are not yet used anywhere. They will eventually
be merged with the root level configuration options when building
a client.
* lib/aws/route_53/resource_record_set.rb: Don't nuke attributes on
ResourceRecordSet update
Previously, if you were not changing the name, type, or set identifier, they
would be destructively removed from the ResourceRecordSet on update.
* lib/aws/route_53/resource_record_set.rb: Add failover and health check
attributes
* features/sns/message.feature, features/sqs/step_definitions/messages.rb:
Added integration tests for AWS::SNS::Message#authentic?
References #61
* spec/aws/sns/message_spec.rb: Made the pending test for
AWS::SNS::Message#authentic? pass.
References #61
* lib/aws/sns/message.rb: AWS::SNS::Message now uses Net::HTTP instead of
HTTParty.
HTTParty is no longer a dependency of the SDK.
References #61
* lib/aws/s3/encryption_utils.rb: Minor changes to address feedback in #259.
* lib/aws/core/http/net_http_handler.rb,
spec/aws/core/http/net_http_handler_spec.rb: Disable retries as soon as any
data has been yielded
* spec/require_test_3.rb: Replaced usage of === with == when checking for
nil.
* lib/aws/core.rb: Updated the documentation for eager_autoload! to a void
return.
2013-07-05 Trevor Rowe <[email protected]>
* lib/aws/dynamo_db/client.rb, spec/aws/dynamo_db/client_versions_spec.rb:
You can now configure a global default API version.
If you want to specify the default API version, you can do so
using AWS.config:
# normally defaults to 2011-12-05
AWS::DynamoDB::Client.new
#=> AWS::DyanmoDB::Client::V20111205
AWS.config(:dynamo_db => { :api_version => '2012-08-10')
# now defaults to 2012-08-10
AWS::DynamoDB::Client.new
#=> AWS::DyanmoDB::Client::V20120810
* lib/aws/dynamo_db/client.rb, spec/aws/dynamo_db/client_versions_spec.rb:
Fixed an issue constructing clients from their versioned class.
* lib/aws/dynamo_db/client.rb: Documented the DynamoDB client with
instructions on using the :api_version option.
* lib/aws/dynamo_db/client.rb, lib/aws/dynamo_db/client/v20111205.rb,
lib/aws/dynamo_db/client/v20120810.rb: Added documentation to the versioned
DynamoDB::Clients.
* lib/aws/core/client.rb, lib/aws/dynamo_db/client.rb,
lib/aws/dynamo_db/client/v20111205.rb,
lib/aws/dynamo_db/client/v20120810.rb, lib/aws/dynamo_db/client_base.rb,
lib/aws/dynamo_db/client_v2.rb, spec/aws/dynamo_db/client_versions_spec.rb:
AWS::DynamoDB::Client now supports both Amazon DynamoDB API versions.
`AWS::DynamoDB::ClientV2` is now deprecated. Instead of using this class,
you can
construct a client of a specific version like so:
ddb = AWS::DynamoDB::Client.new(:api_version => '2012-08-10')
Constructing a client without an API version returns a client of the oldest
version. This ensures existing users of AWS::DynamoDB::Client will not
experience
runtime errors from the differences.
This works by turning AWS::DynamoDB::Client.new into a factory method. It
returns
an instance of Client::V20111005 or Client::V20120810 based on the
:api_version
option.
* spec/aws/config_spec.rb, spec/aws/core/client_spec.rb,
spec/aws/core/region_spec.rb: Updated specs to use the new AWS::SERVICES
format.
* lib/aws/dynamo_db/client.rb, lib/aws/dynamo_db/client_v2.rb: Updated
client API documentation for both Amazon DynamoDB clients.
* lib/aws/dynamo_db/client.rb: Added whitespace in client documentation to
ensure nested lists render correctly.
2013-07-06 Vann-Campbell <[email protected]>
* lib/aws/record/hash_model.rb, spec/aws/record/hash_model_spec.rb: Fix bug
with hash_key
* lib/aws/record/hash_model.rb: Allow setting hash_key
When creating the dynamo_db_table instance the hash_key defaults to id.
This patch allows assigning a string attribute as the id.
* spec/aws/record/hash_model_spec.rb: Allow setting hash_key to values other
than id
2013-07-04 Tung Nguyen <[email protected]>
* lib/aws/core.rb: add AWS.reset_memoization method
* lib/aws/sns/message.rb, spec/aws/sns/message_spec.rb:
AWS::SNS::Message#authentic? no longer flattens errors.
Errors raised when trying to validate the SNS message were
getting replaced with a generic message and a StandardError.
If it fails 3 times, the original error will now raise through.
* lib/aws/sns/message.rb: Resolved an issue with AWS::SNS::Mesage and Ruby
versions < 2.0.
2013-06-27 Gustav Munkby <[email protected]>
* spec/aws/core/http/net_http_handler_spec.rb: Pending specs for more
reasonable streaming behaviour
Previously, errors in subsequent chunks were caught and then the whole
request was retried, yielding (possibly) repeated chunks to the
read_block, without any indication (in the block) of this being done.
The outer client method would also not report any errors for a consumer
to check.
* spec/aws/core/http/net_http_handler_spec.rb: Add specs for streaming http
responses
2013-07-02 Trevor Rowe <[email protected]>
* spec/aws_spec.rb: Updated unit tests to not rely on return value from
`eager_autoload!`.
* Gemfile: Use HTTPS when talking to rubygems.org.
* lib/aws/route_53/change_batch.rb: Expose failover + health check id in
ChangeRequest
* lib/aws/core.rb, spec/require_test_3.rb: Reverted the return value from
AWS.eager_autoload!
* lib/aws/iam/virtual_mfa_device.rb,
spec/aws/iam/virtual_mfa_device_spec.rb: Resolved an issue with
AWS::IAM::VirtualMFADevice#enable.
Passing in string values for a code like '099999' were raising
runtime errors from sprintf. This change prevents string values
from getting passed through sprintf. Added a test to cover this
behavior.
Fixes #288
* lib/aws/core/http/net_http_handler.rb,
spec/aws/core/http/net_http_handler_spec.rb: Capture OpenSSL errors, to
allow retry for those as well
2013-07-01 Katie Zhu <[email protected]>
* samples/sqs/get_queue_list.rb: Adds simple example to list SQS queues.
* samples/sqs/add_queue_message.rb: Fixes LoadError. Properly load AWS
config.
* lib/aws/cloud_watch/metric_collection.rb,
spec/aws/cloud_watch/metric_collection_spec.rb: Fixed issue with
AWS::CloudWatch::MetricCollection#with_dimensions.
Dimensions were getting lost before being passed to #filter.
Added specs for this feature as well.
Fixes #286.
2013-06-28 Bob Potter <[email protected]>
* lib/aws/core/http/curb_handler.rb: Curb Performance: Use an array of
strings instead of a StringIO object.
* lib/aws/core/http/curb_handler.rb: Remove Request#proxy_uri references
from CurbHandler. #proxy_uri is no longer defined on Request
2013-06-26 Gustav Munkby <[email protected]>
* lib/aws/core/http/net_http_handler.rb: Change HTTP handler to whitelist
network errors
Instead of (dangerously) whitelisting errors to reraise, this changes
the HTTP handler to explicitly list the raised exceptions for which the
exceptions should be swallowed.
Fundamentally, this changes handling of unknown errors (such as any Java
error in JRuby) to not be swallowed.
* lib/aws/simple_email_service.rb, spec/aws/simple_email_service_spec.rb:
Added test for setting message id on raw messages.
When calling `AWS::SimpleEmailService#send_raw_message` with an
object that responds to `#message_id=`, then the message ID
from the SES response will be set on the raw message.
Added a missing test and corrected the `#responds_to?` check.
Fixes #261
2013-06-25 Trevor Rowe <[email protected]>
* lib/aws/core.rb, spec/aws_spec.rb, spec/fixtures/autoload_target.rb,
spec/fixtures/nested_autoload_target.rb, spec/require_test_3.rb: Removed the
need to specify modules by crawling all constants when eager autoloading.
* lib/aws/core.rb, spec/require_test_3.rb, tasks/rspec.rake:
AWS.eager_autoload! now autolaods all of AWS::Core.
Fixes #279
2013-06-24 Trevor Rowe <[email protected]>
* features/extra/common.rb: Running integration tests without a config now
marks affected tests as pending.
Previously these would fail with an unhelpful message. They now are skipped
as pending with a message about what test configuration option needs to
be set.
* lib/aws/core/configuration.rb: doc typo
2013-06-21 Alex Wood <[email protected]>
* lib/aws/auto_scaling/group.rb: Fix missing attribute for
termination_options
* features/auto_scaling/step_definitions/groups.rb,
features/ec2/snapshots.feature, features/ec2/volume_attributes.feature,
features/ec2/volumes.feature, features/ec2/zones.feature,
features/elb/availability_zones.feature,
features/elb/load_balancers.feature,
features/elb/step_definitions/load_balancers.rb: Make Cucumber tests work
for users unable to use us-east-1a
Some AWS users cannot access the AZ us-east-1a, making them
unable to run our full Cucumber test suite. This change
removes us-east-1a from the Cucumber integration tests, replacing
with us-east-1b or other AZs as appropriate.
* features/auto_scaling/step_definitions/groups.rb,
lib/aws/auto_scaling/group_options.rb,
spec/aws/auto_scaling/group_collection_spec.rb: Add termination_options to
Auto Scaling group creation.
Adds the optional parameter :termination_options to
AWS::AutoScaling::GroupCollection "create" method.
Includes documentation of the parameter, integration
tests, and a spec test.
Fixes #275
2013-06-19 Trevor Rowe <[email protected]>
* lib/aws/s3/client.rb, spec/aws/s3/client_spec.rb: AWS::S3::Client now
retries 400 RequestTimeout errors.
* lib/aws/core/configuration.rb, spec/aws/config_spec.rb: Reduced
:http_idle_timeout default from 60 to 5 seconds.
* features/s3/high_level/objects.feature,
features/s3/high_level/step_definitions/objects.rb,
lib/aws/s3/object_collection.rb, spec/aws/s3/object_collection_spec.rb,
spec/shared/s3/paginated_collection_examples.rb: Fixed issue with pagination
in S3.
The next_markers method in object_collection.rb for S3 did not reference the
"next_marker" property, causing issues when the contents.last value was
missing.
Added Cucumber/RSpec tests to cover this case, added a check for next_marker
to object_collection.rb, and refactored the marker selection logic to be
more
readable.
Fixes #247
2013-06-18 Trevor Rowe <[email protected]>
* ChangeLog, lib/aws/version.rb: Bump version to 1.11.3
* spec/aws/sns/request_spec.rb: Removed v2 specs from SNS client, now using
v4 signer.
* lib/aws/sns/request.rb: Moved the SNS client from sigv2 to sigv4.
2013-06-14 Trevor Rowe <[email protected]>
* spec/aws/s3/access_control_list_spec.rb,
spec/aws/s3/presigned_post_spec.rb, spec/spec_helper.rb, tasks/rspec.rake:
Added a task to run each spec file in its own process.
Updated a few specs that were failing when run directly.
* spec/require_test_1.rb, spec/require_test_2.rb, tasks/rspec.rake: Added
addition tests around loading the SDK.
Because the SDK uses autoload, it is necessary to run these
tests in separate processes.
* lib/aws/ec2/instance.rb, spec/aws/ec2/instance_spec.rb: Resolved an issue
with AWS::EC2::Instance#console_output
When the output xml element is missing from the response to
GetConsoleOutput then this method was raising an error. This
now returns +nil+ indicating the output is not available.
Fixes #272
2013-06-12 Trevor Rowe <[email protected]>
* aws-sdk.gemspec, bin/aws-rb, bin/aws-sdk-repl: Renamed the aws-sdk-repl to
aws-rb.
* Renamed the script
* Updated the gem specification executables
* Renamed the ENV prefix from AWS_SDK_REPL to AWSRB
* bin/aws-sdk-repl: Changed the usage banner to match the (current)
executable name.
* bin/aws-sdk-repl: Modified the repl include and require options.
* Now requiring the aws-sdk gem after the $LOAD_PATH
has been amended. This allows the user to point
the repl to a different version of the SDK.
* Now requiring any files specified via -r. This happens
after the SDK has been loaded and configured. This
alows the required library to make use of the SDK.
* bin/aws-sdk-repl: Corrected spelling error in comment.
* .gitignore, Gemfile, aws-sdk.gemspec, bin/aws-sdk-repl: Added a basic repl
executable as aws-sdk-repl.
This repl will default to pry when available, but will
fall back to irb when not available. It accepts a number
of runtime configuration options and defaults can be exported
to ENV.
By default client requests are logged (in color). A quick
example:
aws-sdk-repl
AWS> s3.buckets['aws-sdk'].objects['key'].content_length
[AWS S3 200 0.875184 0 retries]
head_object(:bucket_name=>"aws-sdk",:key=>"key")
=> 5242881
You can use all methods of the AWS module directly when using Pry.
2013-06-10 Trevor Rowe <[email protected]>
* lib/aws/auto_scaling/client.rb, lib/aws/cloud_formation/client.rb,
lib/aws/cloud_front/client.rb, lib/aws/cloud_search/client.rb,
lib/aws/cloud_watch/client.rb, lib/aws/data_pipeline/client.rb,
lib/aws/direct_connect/client.rb, lib/aws/ec2/client.rb,
lib/aws/elastic_beanstalk/client.rb, lib/aws/elastic_transcoder/client.rb,
lib/aws/elasticache/client.rb, lib/aws/elb/client.rb, lib/aws/emr/client.rb,
lib/aws/glacier/client.rb, lib/aws/iam/client.rb,
lib/aws/import_export/client.rb, lib/aws/ops_works/client.rb,
lib/aws/rds/client.rb, lib/aws/redshift/client.rb,
lib/aws/route_53/client.rb, lib/aws/simple_db/client.rb,
lib/aws/simple_email_service/client.rb, lib/aws/simple_workflow/client.rb,
lib/aws/sns/client.rb, lib/aws/sqs/client.rb,
lib/aws/storage_gateway/client.rb, lib/aws/sts/client.rb,
lib/aws/support/client.rb: Reformatted client API documentation to fix
rendered html for nested params.
2013-06-11 Trevor Rowe <[email protected]>
* lib/aws/s3/s3_object.rb: Removed incorrect documentation about SSE and
Amazon S3.
Fixes #269
* spec/aws/s3/client_spec.rb: Fix indentation.
* lib/aws/s3/client.rb, spec/aws/s3/client_spec.rb: Resolved an issue with
errors with empty response bodies.
When the response body was the empty string, instead of nil, we would not
properly map to helpful error types. This change fixes the empty string
case.
Fixes #260
2013-06-09 Trevor Rowe <[email protected]>
* ChangeLog, lib/aws/version.rb: Bump version to 1.11.2
2013-06-08 Trevor Rowe <[email protected]>
* aws-sdk.gemspec: Updated nokogiri dependency (< 1.6) so we can continue to
support Ruby 1.8.7
* ChangeLog, lib/aws/version.rb: Bump version to 1.11.1
2013-06-07 Lane LaRue <[email protected]>
* lib/aws/sqs/queue.rb: update dcos on max message delay
2013-06-06 James Smith <[email protected]>
* lib/aws/simple_email_service.rb: Make sure raw_message responds to
message_id before setting it
2013-06-04 James Smith <[email protected]>
* lib/aws/simple_email_service.rb: Add compatibility with deliver!
* lib/aws/simple_email_service.rb: Add suffix to message_id
* lib/aws/simple_email_service.rb: Add the AWS-generated message_id to the
ruby message object
2013-06-01 Kevin Butler <[email protected]>
* spec/aws/s3/s3_object_encrypt_spec.rb: Cleaned up encryption keys in the
tests so there are no warning when running tests
* lib/aws/s3/encryption_utils.rb, spec/aws/s3/s3_object_encrypt_spec.rb:
Added warning when calling EncryptionUtils.encrypt with data longer than
keylength
2013-05-30 Trevor Rowe <[email protected]>
* spec/aws/core/http/net_http_handler_spec.rb: Fixed unit test for the net
http handler.
* features/dynamo_db/step_definitions/crc32.rb,
lib/aws/core/http/net_http_handler.rb: Resolved issue with crc32 checks and
Ruby 2.0.0
Fixes #243
* lib/aws/core/configuration.rb: The ":region" attribute is a bit out of
place, as
none of the other attributes are referred to by
symbol. I've corrected this.
* lib/aws/dynamo_db/item_collection.rb,
spec/aws/dynamo_db/item_collection_spec.rb:
AWS::DynamoDB::ItemCollection#query now accepts :attributes_to_get.
Fixes #252
2013-05-29 Eron Hennessey <[email protected]>
* lib/aws/simple_workflow/activity_task.rb: Added documentation for
ActivityTask#respond
2013-05-28 Trevor Rowe <[email protected]>
* ChangeLog, lib/aws/version.rb: Bump version to 1.11.0
* lib/aws/ec2/instance_collection.rb: Fix example for instance collection to
correspond documentation
2013-05-24 Trevor Rowe <[email protected]>
* lib/aws/core/option_grammar.rb: Fixed a spelling error.
2013-05-23 Trevor Rowe <[email protected]>
* features/cloud_search/client.feature,
features/cloud_search/step_definitions/client.rb,
features/cloud_search/step_definitions/cloud_search.rb,
features/sqs/queues.feature, features/sqs/step_definitions/queues.rb,
lib/aws/api_config/SQS-2012-11-05.yml, lib/aws/core/option_grammar.rb: Added
support for non-flattened maps for query requests.
* features/direct_connect/client.feature: Removed a superfluous tag.
2013-05-16 Trevor Rowe <[email protected]>
* lib/aws/rds/request.rb: Moved AWS::RDS to signature version 4.
2013-05-15 Trevor Rowe <[email protected]>
* ChangeLog, lib/aws/version.rb: Bump version to 1.10.0
* lib/aws/api_config/ElasticTranscoder-2012-09-25.yml,
lib/aws/elastic_transcoder/client.rb: AWS Elastic Transcoder update.
2013-05-14 Trevor Rowe <[email protected]>
* lib/aws/api_config/OpsWorks-2013-02-18.yml, lib/aws/ops_works/client.rb:
Added support for ELBs to AWS::OpsWorks::Client
* lib/aws/api_config/STS-2011-06-15.yml, lib/aws/sts/client.rb: Add
AWS::STS::Client#assume_role_with_web_identity
* lib/aws/api_config/DynamoDB-2012-08-10.yml,
lib/aws/dynamo_db/client_v2.rb: Added parallel scan to
AWS::DynamoDB::Client#scan
* features/s3/high_level/multipart_copy.feature: Reformatted whitespace in
test scenario.
* features/s3/high_level/multipart_copy.feature,
features/s3/high_level/step_definitions/multipart_copy.rb: Renamed a test
step definition for clarity.
* features/s3/high_level/multipart_copy.feature,
features/s3/high_level/step_definitions/multipart_copy.rb,
lib/aws/s3/s3_object.rb: Added integration tests for multipart copy.
References #187
* lib/aws/api_config/EC2-2013-02-01.yml: Fixed an issue in
RequestSpotInstances
Fixes #248
2013-05-13 Trevor Rowe <[email protected]>
* lib/aws/core.rb: Fixed an issue with service-specific configuration
options.
Resolved an issue where service-specific configuration options
where not getting defined until the service class was autoloaded.
For example:
require 'aws-sdk'
AWS.config(:dynamo_db_crc_32_check => false) # oops, wont apply
AWS::DynamoDB # autoload dynamo db service interface
AWS.config(:dynamo_db_crc_32_check => false) # now it works
All service configurations are loaded up front now.
References #243
* features/s3/high_level/step_definitions/urls.rb,
features/s3/high_level/urls.feature, lib/aws/s3/s3_object.rb: Added support
for :content_type and :content_md5 to AWS:S3::S3Object#url_for.
The S3 signature requries the content-md5 and content-type headers to be
signed. The #url_for helper method previously did not accept these two
values and therefore was only good for requests where these values
were not specified.
You can now specify them like so:
s3.buckets['bucket-name'].objects['key'].url_for(:write, {
# both of these are optional
:content_type => 'text/plain',
:content_md5 => '...',
})
Fixes #207
* lib/aws/ec2/security_group.rb: Fixed documentation typo.
2013-05-09 Trevor Rowe <[email protected]>
* lib/aws/core/configuration.rb, spec/aws/core/configuration_spec.rb,
spec/spec_helper.rb: Added support for configuring region via
ENV['AWS_REGION'].
* lib/aws/s3/client.rb: Removed documentation for deprecated interface for
AWS::S3::Client#put_object.
* lib/aws/ec2.rb, lib/aws/ec2/instance.rb, lib/aws/s3.rb,
lib/aws/s3/s3_object.rb: Updated documentation examples to open files in
binary mode.
2013-05-07 Trevor Rowe <[email protected]>
* lib/aws/s3/multipart_upload.rb, lib/aws/s3/uploaded_part.rb,
lib/aws/s3/uploaded_part_collection.rb,
spec/aws/s3/multipart_upload_spec.rb,
spec/aws/s3/uploaded_part_collection_spec.rb: Fixed an issue multipart
uploads to S3 > 5GB.
Resolved an issue where `AWS::S3::MultipartUpload#complete` would only
send the first 1k parts in the request to complete the upload. This
only happened when the `:remote_parts` flag was set.
* lib/aws/dynamo_db/client_v2.rb: Reverted changed to DynamoDBV2 client.
* lib/aws/ec2/instance.rb: Added documentation for
AWS::EC2::Instance#source_dest_check.
* lib/aws/auto_scaling/client.rb, lib/aws/cloud_formation/client.rb,
lib/aws/cloud_front/client.rb, lib/aws/cloud_search/client.rb,
lib/aws/cloud_watch/client.rb, lib/aws/data_pipeline/client.rb,
lib/aws/direct_connect/client.rb, lib/aws/dynamo_db/client.rb,
lib/aws/dynamo_db/client_v2.rb, lib/aws/ec2/client.rb,
lib/aws/elastic_beanstalk/client.rb, lib/aws/elastic_transcoder/client.rb,
lib/aws/elasticache/client.rb, lib/aws/elb/client.rb, lib/aws/emr/client.rb,
lib/aws/glacier/client.rb, lib/aws/iam/client.rb,