aws-sdk-s3 1.38.0 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9667fdb5526d5fcfbdba9376b61f1752ce7029a4
4
- data.tar.gz: a6493282bdcbb96b091bebfd397568006c71c227
3
+ metadata.gz: c4e549f99d7169e35721702a3cecad80e1f0602d
4
+ data.tar.gz: 3696bbf01c8b400dc6dc24594a37d668b15e8bbd
5
5
  SHA512:
6
- metadata.gz: ba8f8b4ae6e22ecfeee918c86e16880ee111fae8ba48b33fd2bc54fb3403e2c58d2f17f7255030f600bf63ab4f737bba9bf105224483f76e04e0320d7a4def99
7
- data.tar.gz: c6708d9b0cf2b182b1b34b146fcab6e0d0df658661767720eb7bbd18ee62eada569b1e5d3d03fd2a365951d0b8a4b2740565ddf5479d21083faea5db34d967b6
6
+ metadata.gz: 8af5a6facef4413bb613b713055ca5bdc80d48a7e904de101502df85b0f24bfad29e00c0c71987549b564d5bb89ad491598e05c3f1444bf66b88a6cb3c4f7325
7
+ data.tar.gz: b1fad2f912620bb285b970cba09588a3658a00d3454eb29cd9bd787431e8f83c255ac6df8735de0e61b5fbf4f586eafeb0c75ff79de8b22c3ccfb6b40a4f1026
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-s3/event_streams'
63
63
  # @service
64
64
  module Aws::S3
65
65
 
66
- GEM_VERSION = '1.38.0'
66
+ GEM_VERSION = '1.39.0'
67
67
 
68
68
  end
@@ -746,33 +746,33 @@ module Aws::S3
746
746
  # * {Types::CreateBucketOutput#location #location} => String
747
747
  #
748
748
  #
749
- # @example Example: To create a bucket in a specific region
749
+ # @example Example: To create a bucket
750
750
  #
751
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
751
+ # # The following example creates a bucket.
752
752
  #
753
753
  # resp = client.create_bucket({
754
754
  # bucket: "examplebucket",
755
- # create_bucket_configuration: {
756
- # location_constraint: "eu-west-1",
757
- # },
758
755
  # })
759
756
  #
760
757
  # resp.to_h outputs the following:
761
758
  # {
762
- # location: "http://examplebucket.s3.amazonaws.com/",
759
+ # location: "/examplebucket",
763
760
  # }
764
761
  #
765
- # @example Example: To create a bucket
762
+ # @example Example: To create a bucket in a specific region
766
763
  #
767
- # # The following example creates a bucket.
764
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
768
765
  #
769
766
  # resp = client.create_bucket({
770
767
  # bucket: "examplebucket",
768
+ # create_bucket_configuration: {
769
+ # location_constraint: "eu-west-1",
770
+ # },
771
771
  # })
772
772
  #
773
773
  # resp.to_h outputs the following:
774
774
  # {
775
- # location: "/examplebucket",
775
+ # location: "http://examplebucket.s3.amazonaws.com/",
776
776
  # }
777
777
  #
778
778
  # @example Request syntax with placeholder values
@@ -1357,15 +1357,6 @@ module Aws::S3
1357
1357
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
1358
1358
  #
1359
1359
  #
1360
- # @example Example: To delete an object (from a non-versioned bucket)
1361
- #
1362
- # # The following example deletes an object from a non-versioned bucket.
1363
- #
1364
- # resp = client.delete_object({
1365
- # bucket: "ExampleBucket",
1366
- # key: "HappyFace.jpg",
1367
- # })
1368
- #
1369
1360
  # @example Example: To delete an object
1370
1361
  #
1371
1362
  # # The following example deletes an object from an S3 bucket.
@@ -1379,6 +1370,15 @@ module Aws::S3
1379
1370
  # {
1380
1371
  # }
1381
1372
  #
1373
+ # @example Example: To delete an object (from a non-versioned bucket)
1374
+ #
1375
+ # # The following example deletes an object from a non-versioned bucket.
1376
+ #
1377
+ # resp = client.delete_object({
1378
+ # bucket: "ExampleBucket",
1379
+ # key: "HappyFace.jpg",
1380
+ # })
1381
+ #
1382
1382
  # @example Request syntax with placeholder values
1383
1383
  #
1384
1384
  # resp = client.delete_object({
@@ -1419,35 +1419,35 @@ module Aws::S3
1419
1419
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
1420
1420
  #
1421
1421
  #
1422
- # @example Example: To remove tag set from an object version
1422
+ # @example Example: To remove tag set from an object
1423
1423
  #
1424
- # # The following example removes tag set associated with the specified object version. The request specifies both the
1425
- # # object key and object version.
1424
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
1425
+ # # operation removes tag set from the latest object version.
1426
1426
  #
1427
1427
  # resp = client.delete_object_tagging({
1428
1428
  # bucket: "examplebucket",
1429
1429
  # key: "HappyFace.jpg",
1430
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
1431
1430
  # })
1432
1431
  #
1433
1432
  # resp.to_h outputs the following:
1434
1433
  # {
1435
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
1434
+ # version_id: "null",
1436
1435
  # }
1437
1436
  #
1438
- # @example Example: To remove tag set from an object
1437
+ # @example Example: To remove tag set from an object version
1439
1438
  #
1440
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
1441
- # # operation removes tag set from the latest object version.
1439
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
1440
+ # # object key and object version.
1442
1441
  #
1443
1442
  # resp = client.delete_object_tagging({
1444
1443
  # bucket: "examplebucket",
1445
1444
  # key: "HappyFace.jpg",
1445
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
1446
1446
  # })
1447
1447
  #
1448
1448
  # resp.to_h outputs the following:
1449
1449
  # {
1450
- # version_id: "null",
1450
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
1451
1451
  # }
1452
1452
  #
1453
1453
  # @example Request syntax with placeholder values
@@ -2762,49 +2762,49 @@ module Aws::S3
2762
2762
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
2763
2763
  #
2764
2764
  #
2765
- # @example Example: To retrieve an object
2765
+ # @example Example: To retrieve a byte range of an object
2766
2766
  #
2767
- # # The following example retrieves an object for an S3 bucket.
2767
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
2768
+ # # specific byte range.
2768
2769
  #
2769
2770
  # resp = client.get_object({
2770
2771
  # bucket: "examplebucket",
2771
- # key: "HappyFace.jpg",
2772
+ # key: "SampleFile.txt",
2773
+ # range: "bytes=0-9",
2772
2774
  # })
2773
2775
  #
2774
2776
  # resp.to_h outputs the following:
2775
2777
  # {
2776
2778
  # accept_ranges: "bytes",
2777
- # content_length: 3191,
2778
- # content_type: "image/jpeg",
2779
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
2780
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
2779
+ # content_length: 10,
2780
+ # content_range: "bytes 0-9/43",
2781
+ # content_type: "text/plain",
2782
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
2783
+ # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
2781
2784
  # metadata: {
2782
2785
  # },
2783
- # tag_count: 2,
2784
2786
  # version_id: "null",
2785
2787
  # }
2786
2788
  #
2787
- # @example Example: To retrieve a byte range of an object
2789
+ # @example Example: To retrieve an object
2788
2790
  #
2789
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
2790
- # # specific byte range.
2791
+ # # The following example retrieves an object for an S3 bucket.
2791
2792
  #
2792
2793
  # resp = client.get_object({
2793
2794
  # bucket: "examplebucket",
2794
- # key: "SampleFile.txt",
2795
- # range: "bytes=0-9",
2795
+ # key: "HappyFace.jpg",
2796
2796
  # })
2797
2797
  #
2798
2798
  # resp.to_h outputs the following:
2799
2799
  # {
2800
2800
  # accept_ranges: "bytes",
2801
- # content_length: 10,
2802
- # content_range: "bytes 0-9/43",
2803
- # content_type: "text/plain",
2804
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
2805
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
2801
+ # content_length: 3191,
2802
+ # content_type: "image/jpeg",
2803
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
2804
+ # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
2806
2805
  # metadata: {
2807
2806
  # },
2807
+ # tag_count: 2,
2808
2808
  # version_id: "null",
2809
2809
  # }
2810
2810
  #
@@ -3151,49 +3151,49 @@ module Aws::S3
3151
3151
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
3152
3152
  #
3153
3153
  #
3154
- # @example Example: To retrieve tag set of a specific object version
3154
+ # @example Example: To retrieve tag set of an object
3155
3155
  #
3156
- # # The following example retrieves tag set of an object. The request specifies object version.
3156
+ # # The following example retrieves tag set of an object.
3157
3157
  #
3158
3158
  # resp = client.get_object_tagging({
3159
3159
  # bucket: "examplebucket",
3160
- # key: "exampleobject",
3161
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3160
+ # key: "HappyFace.jpg",
3162
3161
  # })
3163
3162
  #
3164
3163
  # resp.to_h outputs the following:
3165
3164
  # {
3166
3165
  # tag_set: [
3167
3166
  # {
3168
- # key: "Key1",
3169
- # value: "Value1",
3167
+ # key: "Key4",
3168
+ # value: "Value4",
3169
+ # },
3170
+ # {
3171
+ # key: "Key3",
3172
+ # value: "Value3",
3170
3173
  # },
3171
3174
  # ],
3172
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3175
+ # version_id: "null",
3173
3176
  # }
3174
3177
  #
3175
- # @example Example: To retrieve tag set of an object
3178
+ # @example Example: To retrieve tag set of a specific object version
3176
3179
  #
3177
- # # The following example retrieves tag set of an object.
3180
+ # # The following example retrieves tag set of an object. The request specifies object version.
3178
3181
  #
3179
3182
  # resp = client.get_object_tagging({
3180
3183
  # bucket: "examplebucket",
3181
- # key: "HappyFace.jpg",
3184
+ # key: "exampleobject",
3185
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3182
3186
  # })
3183
3187
  #
3184
3188
  # resp.to_h outputs the following:
3185
3189
  # {
3186
3190
  # tag_set: [
3187
3191
  # {
3188
- # key: "Key4",
3189
- # value: "Value4",
3190
- # },
3191
- # {
3192
- # key: "Key3",
3193
- # value: "Value3",
3192
+ # key: "Key1",
3193
+ # value: "Value1",
3194
3194
  # },
3195
3195
  # ],
3196
- # version_id: "null",
3196
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3197
3197
  # }
3198
3198
  #
3199
3199
  # @example Request syntax with placeholder values
@@ -3780,97 +3780,97 @@ module Aws::S3
3780
3780
  # * {Types::ListMultipartUploadsOutput#encoding_type #encoding_type} => String
3781
3781
  #
3782
3782
  #
3783
- # @example Example: To list in-progress multipart uploads on a bucket
3783
+ # @example Example: List next set of multipart uploads when previous result is truncated
3784
3784
  #
3785
- # # The following example lists in-progress multipart uploads on a specific bucket.
3785
+ # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
3786
+ # # setup of multipart uploads.
3786
3787
  #
3787
3788
  # resp = client.list_multipart_uploads({
3788
3789
  # bucket: "examplebucket",
3790
+ # key_marker: "nextkeyfrompreviousresponse",
3791
+ # max_uploads: 2,
3792
+ # upload_id_marker: "valuefrompreviousresponse",
3789
3793
  # })
3790
3794
  #
3791
3795
  # resp.to_h outputs the following:
3792
3796
  # {
3797
+ # bucket: "acl1",
3798
+ # is_truncated: true,
3799
+ # key_marker: "",
3800
+ # max_uploads: 2,
3801
+ # next_key_marker: "someobjectkey",
3802
+ # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
3803
+ # upload_id_marker: "",
3793
3804
  # uploads: [
3794
3805
  # {
3795
3806
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
3796
3807
  # initiator: {
3797
- # display_name: "display-name",
3808
+ # display_name: "ownder-display-name",
3798
3809
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3799
3810
  # },
3800
3811
  # key: "JavaFile",
3801
3812
  # owner: {
3802
- # display_name: "display-name",
3803
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3813
+ # display_name: "mohanataws",
3814
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3804
3815
  # },
3805
3816
  # storage_class: "STANDARD",
3806
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
3817
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
3807
3818
  # },
3808
3819
  # {
3809
3820
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
3810
3821
  # initiator: {
3811
- # display_name: "display-name",
3822
+ # display_name: "ownder-display-name",
3812
3823
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3813
3824
  # },
3814
3825
  # key: "JavaFile",
3815
3826
  # owner: {
3816
- # display_name: "display-name",
3827
+ # display_name: "ownder-display-name",
3817
3828
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3818
3829
  # },
3819
3830
  # storage_class: "STANDARD",
3820
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
3831
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
3821
3832
  # },
3822
3833
  # ],
3823
3834
  # }
3824
3835
  #
3825
- # @example Example: List next set of multipart uploads when previous result is truncated
3836
+ # @example Example: To list in-progress multipart uploads on a bucket
3826
3837
  #
3827
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
3828
- # # setup of multipart uploads.
3838
+ # # The following example lists in-progress multipart uploads on a specific bucket.
3829
3839
  #
3830
3840
  # resp = client.list_multipart_uploads({
3831
3841
  # bucket: "examplebucket",
3832
- # key_marker: "nextkeyfrompreviousresponse",
3833
- # max_uploads: 2,
3834
- # upload_id_marker: "valuefrompreviousresponse",
3835
3842
  # })
3836
3843
  #
3837
3844
  # resp.to_h outputs the following:
3838
3845
  # {
3839
- # bucket: "acl1",
3840
- # is_truncated: true,
3841
- # key_marker: "",
3842
- # max_uploads: 2,
3843
- # next_key_marker: "someobjectkey",
3844
- # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
3845
- # upload_id_marker: "",
3846
3846
  # uploads: [
3847
3847
  # {
3848
3848
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
3849
3849
  # initiator: {
3850
- # display_name: "ownder-display-name",
3850
+ # display_name: "display-name",
3851
3851
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3852
3852
  # },
3853
3853
  # key: "JavaFile",
3854
3854
  # owner: {
3855
- # display_name: "mohanataws",
3856
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3855
+ # display_name: "display-name",
3856
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3857
3857
  # },
3858
3858
  # storage_class: "STANDARD",
3859
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
3859
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
3860
3860
  # },
3861
3861
  # {
3862
3862
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
3863
3863
  # initiator: {
3864
- # display_name: "ownder-display-name",
3864
+ # display_name: "display-name",
3865
3865
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3866
3866
  # },
3867
3867
  # key: "JavaFile",
3868
3868
  # owner: {
3869
- # display_name: "ownder-display-name",
3869
+ # display_name: "display-name",
3870
3870
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
3871
3871
  # },
3872
3872
  # storage_class: "STANDARD",
3873
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
3873
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
3874
3874
  # },
3875
3875
  # ],
3876
3876
  # }
@@ -5285,6 +5285,8 @@ module Aws::S3
5285
5285
  # A container for replication rules. You can add up to 1,000 rules. The
5286
5286
  # maximum size of a replication configuration is 2 MB.
5287
5287
  #
5288
+ # @option params [String] :token
5289
+ #
5288
5290
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5289
5291
  #
5290
5292
  #
@@ -5360,6 +5362,7 @@ module Aws::S3
5360
5362
  # },
5361
5363
  # ],
5362
5364
  # },
5365
+ # token: "ObjectLockToken",
5363
5366
  # })
5364
5367
  #
5365
5368
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplication AWS API Documentation
@@ -5717,40 +5720,24 @@ module Aws::S3
5717
5720
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
5718
5721
  #
5719
5722
  #
5720
- # @example Example: To upload an object and specify optional tags
5721
- #
5722
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
5723
- # # S3 returns version ID of the newly created object.
5724
- #
5725
- # resp = client.put_object({
5726
- # body: "c:\\HappyFace.jpg",
5727
- # bucket: "examplebucket",
5728
- # key: "HappyFace.jpg",
5729
- # tagging: "key1=value1&key2=value2",
5730
- # })
5731
- #
5732
- # resp.to_h outputs the following:
5733
- # {
5734
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5735
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
5736
- # }
5737
- #
5738
- # @example Example: To upload an object and specify canned ACL.
5723
+ # @example Example: To upload an object and specify server-side encryption and object tags
5739
5724
  #
5740
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
5741
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
5725
+ # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
5726
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
5742
5727
  #
5743
5728
  # resp = client.put_object({
5744
- # acl: "authenticated-read",
5745
5729
  # body: "filetoupload",
5746
5730
  # bucket: "examplebucket",
5747
5731
  # key: "exampleobject",
5732
+ # server_side_encryption: "AES256",
5733
+ # tagging: "key1=value1&key2=value2",
5748
5734
  # })
5749
5735
  #
5750
5736
  # resp.to_h outputs the following:
5751
5737
  # {
5752
5738
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5753
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
5739
+ # server_side_encryption: "AES256",
5740
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
5754
5741
  # }
5755
5742
  #
5756
5743
  # @example Example: To create an object.
@@ -5769,24 +5756,22 @@ module Aws::S3
5769
5756
  # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
5770
5757
  # }
5771
5758
  #
5772
- # @example Example: To upload an object (specify optional headers)
5759
+ # @example Example: To upload an object and specify canned ACL.
5773
5760
  #
5774
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
5775
- # # storage class and use server-side encryption.
5761
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
5762
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
5776
5763
  #
5777
5764
  # resp = client.put_object({
5778
- # body: "HappyFace.jpg",
5765
+ # acl: "authenticated-read",
5766
+ # body: "filetoupload",
5779
5767
  # bucket: "examplebucket",
5780
- # key: "HappyFace.jpg",
5781
- # server_side_encryption: "AES256",
5782
- # storage_class: "STANDARD_IA",
5768
+ # key: "exampleobject",
5783
5769
  # })
5784
5770
  #
5785
5771
  # resp.to_h outputs the following:
5786
5772
  # {
5787
5773
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5788
- # server_side_encryption: "AES256",
5789
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
5774
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
5790
5775
  # }
5791
5776
  #
5792
5777
  # @example Example: To upload an object
@@ -5827,24 +5812,42 @@ module Aws::S3
5827
5812
  # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
5828
5813
  # }
5829
5814
  #
5830
- # @example Example: To upload an object and specify server-side encryption and object tags
5815
+ # @example Example: To upload an object (specify optional headers)
5831
5816
  #
5832
- # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
5833
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
5817
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
5818
+ # # storage class and use server-side encryption.
5834
5819
  #
5835
5820
  # resp = client.put_object({
5836
- # body: "filetoupload",
5821
+ # body: "HappyFace.jpg",
5837
5822
  # bucket: "examplebucket",
5838
- # key: "exampleobject",
5823
+ # key: "HappyFace.jpg",
5839
5824
  # server_side_encryption: "AES256",
5840
- # tagging: "key1=value1&key2=value2",
5825
+ # storage_class: "STANDARD_IA",
5841
5826
  # })
5842
5827
  #
5843
5828
  # resp.to_h outputs the following:
5844
5829
  # {
5845
5830
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5846
5831
  # server_side_encryption: "AES256",
5847
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
5832
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
5833
+ # }
5834
+ #
5835
+ # @example Example: To upload an object and specify optional tags
5836
+ #
5837
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
5838
+ # # S3 returns version ID of the newly created object.
5839
+ #
5840
+ # resp = client.put_object({
5841
+ # body: "c:\\HappyFace.jpg",
5842
+ # bucket: "examplebucket",
5843
+ # key: "HappyFace.jpg",
5844
+ # tagging: "key1=value1&key2=value2",
5845
+ # })
5846
+ #
5847
+ # resp.to_h outputs the following:
5848
+ # {
5849
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5850
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
5848
5851
  # }
5849
5852
  #
5850
5853
  # @example Streaming a file from disk
@@ -6946,45 +6949,45 @@ module Aws::S3
6946
6949
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
6947
6950
  #
6948
6951
  #
6949
- # @example Example: To upload a part by copying byte range from an existing object as data source
6952
+ # @example Example: To upload a part by copying data from an existing object as data source
6950
6953
  #
6951
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
6952
- # # data source.
6954
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
6953
6955
  #
6954
6956
  # resp = client.upload_part_copy({
6955
6957
  # bucket: "examplebucket",
6956
6958
  # copy_source: "/bucketname/sourceobjectkey",
6957
- # copy_source_range: "bytes=1-100000",
6958
6959
  # key: "examplelargeobject",
6959
- # part_number: 2,
6960
+ # part_number: 1,
6960
6961
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
6961
6962
  # })
6962
6963
  #
6963
6964
  # resp.to_h outputs the following:
6964
6965
  # {
6965
6966
  # copy_part_result: {
6966
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
6967
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
6967
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
6968
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
6968
6969
  # },
6969
6970
  # }
6970
6971
  #
6971
- # @example Example: To upload a part by copying data from an existing object as data source
6972
+ # @example Example: To upload a part by copying byte range from an existing object as data source
6972
6973
  #
6973
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
6974
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
6975
+ # # data source.
6974
6976
  #
6975
6977
  # resp = client.upload_part_copy({
6976
6978
  # bucket: "examplebucket",
6977
6979
  # copy_source: "/bucketname/sourceobjectkey",
6980
+ # copy_source_range: "bytes=1-100000",
6978
6981
  # key: "examplelargeobject",
6979
- # part_number: 1,
6982
+ # part_number: 2,
6980
6983
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
6981
6984
  # })
6982
6985
  #
6983
6986
  # resp.to_h outputs the following:
6984
6987
  # {
6985
6988
  # copy_part_result: {
6986
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
6987
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
6989
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
6990
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
6988
6991
  # },
6989
6992
  # }
6990
6993
  #
@@ -7043,7 +7046,7 @@ module Aws::S3
7043
7046
  params: params,
7044
7047
  config: config)
7045
7048
  context[:gem_name] = 'aws-sdk-s3'
7046
- context[:gem_version] = '1.38.0'
7049
+ context[:gem_version] = '1.39.0'
7047
7050
  Seahorse::Client::Request.new(handlers, context)
7048
7051
  end
7049
7052
 
@@ -1719,6 +1719,7 @@ module Aws::S3
1719
1719
  PutBucketReplicationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket"))
1720
1720
  PutBucketReplicationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
1721
1721
  PutBucketReplicationRequest.add_member(:replication_configuration, Shapes::ShapeRef.new(shape: ReplicationConfiguration, required: true, location_name: "ReplicationConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
1722
+ PutBucketReplicationRequest.add_member(:token, Shapes::ShapeRef.new(shape: ObjectLockToken, location: "header", location_name: "x-amz-bucket-object-lock-token"))
1722
1723
  PutBucketReplicationRequest.struct_class = Types::PutBucketReplicationRequest
1723
1724
  PutBucketReplicationRequest[:payload] = :replication_configuration
1724
1725
  PutBucketReplicationRequest[:payload_member] = PutBucketReplicationRequest.member(:replication_configuration)
@@ -5770,7 +5770,7 @@ module Aws::S3
5770
5770
  #
5771
5771
  #
5772
5772
  #
5773
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html
5773
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations
5774
5774
  # @return [Integer]
5775
5775
  #
5776
5776
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionExpiration AWS API Documentation
@@ -7173,6 +7173,7 @@ module Aws::S3
7173
7173
  # },
7174
7174
  # ],
7175
7175
  # },
7176
+ # token: "ObjectLockToken",
7176
7177
  # }
7177
7178
  #
7178
7179
  # @!attribute [rw] bucket
@@ -7186,12 +7187,16 @@ module Aws::S3
7186
7187
  # The maximum size of a replication configuration is 2 MB.
7187
7188
  # @return [Types::ReplicationConfiguration]
7188
7189
  #
7190
+ # @!attribute [rw] token
7191
+ # @return [String]
7192
+ #
7189
7193
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplicationRequest AWS API Documentation
7190
7194
  #
7191
7195
  class PutBucketReplicationRequest < Struct.new(
7192
7196
  :bucket,
7193
7197
  :content_md5,
7194
- :replication_configuration)
7198
+ :replication_configuration,
7199
+ :token)
7195
7200
  include Aws::Structure
7196
7201
  end
7197
7202
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.0
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: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms