aws-sdk-s3 1.115.0 → 1.117.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
  SHA256:
3
- metadata.gz: 8f6bcf037d303611c499b18e346918dfa94632af0e0f2170ddea71b04022b646
4
- data.tar.gz: 87619f8106356f34e070a7215bbd81de9e58ac3a3d7a586b5f93064eb1989d2d
3
+ metadata.gz: 2c57bd85c31e9145cb81fb6ed6d55a6ae00c9a2d13362c24c9d7c7c86c43e9cb
4
+ data.tar.gz: ffffe9d8d0c276a4d59b0b96d17217c66e5c61a0ee0f2471abcbf9adf9672837
5
5
  SHA512:
6
- metadata.gz: 0f218e976873fed04027aa60f9b946f02e0329d6e9f375f2024072744b372070966dec41dd9386e9c69da1875e575c8b481f47584e84e16561e18f669d3ae020
7
- data.tar.gz: '08d983381937f557e2b7b3159bd8d7bfce48cc80962c9319d81f2a6032ecb7a7e95fe0af3b140d0ef3db6d2023ebca0c880a8b2337c40bcd459cadc67599d595'
6
+ metadata.gz: 885a47f8868cd2b0bd9399dcbf42e3a4f162768040a2ebbd1e3dacf7d1be85508d9c3812a28798db85cc0736cc6a1f83df2f59e4d2e57ebc4a9ad2cfba53b03c
7
+ data.tar.gz: a18ad0a87a455c14be004e2c1f4a225e5014c69351b2c86ed228622f650876a7a67ec2ccba6b735f77fb0e42fb20e25f57cea96a89f3e23964f4d687cffe8405
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.117.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Apply checksums to MultipartStreamUploader (#2769).
10
+
11
+ 1.116.0 (2022-10-21)
12
+ ------------------
13
+
14
+ * Feature - S3 on Outposts launches support for automatic bucket-style alias. You can use the automatic access point alias instead of an access point ARN for any object-level operation in an Outposts bucket.
15
+
4
16
  1.115.0 (2022-10-19)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.115.0
1
+ 1.117.0
@@ -30,6 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
33
34
  require 'aws-sdk-core/plugins/protocols/rest_xml.rb'
34
35
  require 'aws-sdk-s3/plugins/accelerate.rb'
35
36
  require 'aws-sdk-s3/plugins/arn.rb'
@@ -42,7 +43,6 @@ require 'aws-sdk-s3/plugins/http_200_errors.rb'
42
43
  require 'aws-sdk-s3/plugins/iad_regional_endpoint.rb'
43
44
  require 'aws-sdk-s3/plugins/location_constraint.rb'
44
45
  require 'aws-sdk-s3/plugins/md5s.rb'
45
- require 'aws-sdk-s3/plugins/object_lambda_endpoint.rb'
46
46
  require 'aws-sdk-s3/plugins/redirects.rb'
47
47
  require 'aws-sdk-s3/plugins/s3_host_id.rb'
48
48
  require 'aws-sdk-s3/plugins/s3_signer.rb'
@@ -98,6 +98,7 @@ module Aws::S3
98
98
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
99
99
  add_plugin(Aws::Plugins::DefaultsMode)
100
100
  add_plugin(Aws::Plugins::RecursionDetection)
101
+ add_plugin(Aws::Plugins::Sign)
101
102
  add_plugin(Aws::Plugins::Protocols::RestXml)
102
103
  add_plugin(Aws::S3::Plugins::Accelerate)
103
104
  add_plugin(Aws::S3::Plugins::ARN)
@@ -110,7 +111,6 @@ module Aws::S3
110
111
  add_plugin(Aws::S3::Plugins::IADRegionalEndpoint)
111
112
  add_plugin(Aws::S3::Plugins::LocationConstraint)
112
113
  add_plugin(Aws::S3::Plugins::Md5s)
113
- add_plugin(Aws::S3::Plugins::ObjectLambdaEndpoint)
114
114
  add_plugin(Aws::S3::Plugins::Redirects)
115
115
  add_plugin(Aws::S3::Plugins::S3HostId)
116
116
  add_plugin(Aws::S3::Plugins::S3Signer)
@@ -119,6 +119,7 @@ module Aws::S3
119
119
  add_plugin(Aws::S3::Plugins::UrlEncodedKeys)
120
120
  add_plugin(Aws::S3::Plugins::SkipWholeMultipartGetChecksums)
121
121
  add_plugin(Aws::Plugins::EventStreamConfiguration)
122
+ add_plugin(Aws::S3::Plugins::Endpoints)
122
123
 
123
124
  # @overload initialize(options)
124
125
  # @param [Hash] options
@@ -368,6 +369,19 @@ module Aws::S3
368
369
  # ** Please note ** When response stubbing is enabled, no HTTP
369
370
  # requests are made, and retries are disabled.
370
371
  #
372
+ # @option options [Aws::TokenProvider] :token_provider
373
+ # A Bearer Token Provider. This can be an instance of any one of the
374
+ # following classes:
375
+ #
376
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
377
+ # tokens.
378
+ #
379
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
380
+ # access token generated from `aws login`.
381
+ #
382
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
383
+ # will be used to search for tokens configured for your profile in shared configuration files.
384
+ #
371
385
  # @option options [Boolean] :use_accelerate_endpoint (false)
372
386
  # When set to `true`, accelerated bucket endpoints will be used
373
387
  # for all object operations. You must first enable accelerate for
@@ -386,6 +400,9 @@ module Aws::S3
386
400
  # When `true`, request parameters are validated before
387
401
  # sending the request.
388
402
  #
403
+ # @option options [Aws::S3::EndpointProvider] :endpoint_provider
404
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::S3::EndpointParameters`
405
+ #
389
406
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
390
407
  # requests through. Formatted like 'http://proxy.com:123'.
391
408
  #
@@ -3223,35 +3240,35 @@ module Aws::S3
3223
3240
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
3224
3241
  #
3225
3242
  #
3226
- # @example Example: To remove tag set from an object
3243
+ # @example Example: To remove tag set from an object version
3227
3244
  #
3228
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3229
- # # operation removes tag set from the latest object version.
3245
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
3246
+ # # object key and object version.
3230
3247
  #
3231
3248
  # resp = client.delete_object_tagging({
3232
3249
  # bucket: "examplebucket",
3233
3250
  # key: "HappyFace.jpg",
3251
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3234
3252
  # })
3235
3253
  #
3236
3254
  # resp.to_h outputs the following:
3237
3255
  # {
3238
- # version_id: "null",
3256
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3239
3257
  # }
3240
3258
  #
3241
- # @example Example: To remove tag set from an object version
3259
+ # @example Example: To remove tag set from an object
3242
3260
  #
3243
- # # The following example removes tag set associated with the specified object version. The request specifies both the
3244
- # # object key and object version.
3261
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3262
+ # # operation removes tag set from the latest object version.
3245
3263
  #
3246
3264
  # resp = client.delete_object_tagging({
3247
3265
  # bucket: "examplebucket",
3248
3266
  # key: "HappyFace.jpg",
3249
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3250
3267
  # })
3251
3268
  #
3252
3269
  # resp.to_h outputs the following:
3253
3270
  # {
3254
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3271
+ # version_id: "null",
3255
3272
  # }
3256
3273
  #
3257
3274
  # @example Request syntax with placeholder values
@@ -3410,20 +3427,22 @@ module Aws::S3
3410
3427
  # * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
3411
3428
  #
3412
3429
  #
3413
- # @example Example: To delete multiple objects from a versioned bucket
3430
+ # @example Example: To delete multiple object versions from a versioned bucket
3414
3431
  #
3415
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3416
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3432
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3433
+ # # versions and returns the key and versions of deleted objects in the response.
3417
3434
  #
3418
3435
  # resp = client.delete_objects({
3419
3436
  # bucket: "examplebucket",
3420
3437
  # delete: {
3421
3438
  # objects: [
3422
3439
  # {
3423
- # key: "objectkey1",
3440
+ # key: "HappyFace.jpg",
3441
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3424
3442
  # },
3425
3443
  # {
3426
- # key: "objectkey2",
3444
+ # key: "HappyFace.jpg",
3445
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3427
3446
  # },
3428
3447
  # ],
3429
3448
  # quiet: false,
@@ -3434,34 +3453,30 @@ module Aws::S3
3434
3453
  # {
3435
3454
  # deleted: [
3436
3455
  # {
3437
- # delete_marker: true,
3438
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3439
- # key: "objectkey1",
3456
+ # key: "HappyFace.jpg",
3457
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3440
3458
  # },
3441
3459
  # {
3442
- # delete_marker: true,
3443
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3444
- # key: "objectkey2",
3460
+ # key: "HappyFace.jpg",
3461
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3445
3462
  # },
3446
3463
  # ],
3447
3464
  # }
3448
3465
  #
3449
- # @example Example: To delete multiple object versions from a versioned bucket
3466
+ # @example Example: To delete multiple objects from a versioned bucket
3450
3467
  #
3451
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3452
- # # versions and returns the key and versions of deleted objects in the response.
3468
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3469
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3453
3470
  #
3454
3471
  # resp = client.delete_objects({
3455
3472
  # bucket: "examplebucket",
3456
3473
  # delete: {
3457
3474
  # objects: [
3458
3475
  # {
3459
- # key: "HappyFace.jpg",
3460
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3476
+ # key: "objectkey1",
3461
3477
  # },
3462
3478
  # {
3463
- # key: "HappyFace.jpg",
3464
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3479
+ # key: "objectkey2",
3465
3480
  # },
3466
3481
  # ],
3467
3482
  # quiet: false,
@@ -3472,12 +3487,14 @@ module Aws::S3
3472
3487
  # {
3473
3488
  # deleted: [
3474
3489
  # {
3475
- # key: "HappyFace.jpg",
3476
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3490
+ # delete_marker: true,
3491
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3492
+ # key: "objectkey1",
3477
3493
  # },
3478
3494
  # {
3479
- # key: "HappyFace.jpg",
3480
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3495
+ # delete_marker: true,
3496
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3497
+ # key: "objectkey2",
3481
3498
  # },
3482
3499
  # ],
3483
3500
  # }
@@ -6582,49 +6599,49 @@ module Aws::S3
6582
6599
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
6583
6600
  #
6584
6601
  #
6585
- # @example Example: To retrieve tag set of a specific object version
6602
+ # @example Example: To retrieve tag set of an object
6586
6603
  #
6587
- # # The following example retrieves tag set of an object. The request specifies object version.
6604
+ # # The following example retrieves tag set of an object.
6588
6605
  #
6589
6606
  # resp = client.get_object_tagging({
6590
6607
  # bucket: "examplebucket",
6591
- # key: "exampleobject",
6592
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6608
+ # key: "HappyFace.jpg",
6593
6609
  # })
6594
6610
  #
6595
6611
  # resp.to_h outputs the following:
6596
6612
  # {
6597
6613
  # tag_set: [
6598
6614
  # {
6599
- # key: "Key1",
6600
- # value: "Value1",
6615
+ # key: "Key4",
6616
+ # value: "Value4",
6617
+ # },
6618
+ # {
6619
+ # key: "Key3",
6620
+ # value: "Value3",
6601
6621
  # },
6602
6622
  # ],
6603
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6623
+ # version_id: "null",
6604
6624
  # }
6605
6625
  #
6606
- # @example Example: To retrieve tag set of an object
6626
+ # @example Example: To retrieve tag set of a specific object version
6607
6627
  #
6608
- # # The following example retrieves tag set of an object.
6628
+ # # The following example retrieves tag set of an object. The request specifies object version.
6609
6629
  #
6610
6630
  # resp = client.get_object_tagging({
6611
6631
  # bucket: "examplebucket",
6612
- # key: "HappyFace.jpg",
6632
+ # key: "exampleobject",
6633
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6613
6634
  # })
6614
6635
  #
6615
6636
  # resp.to_h outputs the following:
6616
6637
  # {
6617
6638
  # tag_set: [
6618
6639
  # {
6619
- # key: "Key4",
6620
- # value: "Value4",
6621
- # },
6622
- # {
6623
- # key: "Key3",
6624
- # value: "Value3",
6640
+ # key: "Key1",
6641
+ # value: "Value1",
6625
6642
  # },
6626
6643
  # ],
6627
- # version_id: "null",
6644
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6628
6645
  # }
6629
6646
  #
6630
6647
  # @example Request syntax with placeholder values
@@ -7817,97 +7834,97 @@ module Aws::S3
7817
7834
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7818
7835
  #
7819
7836
  #
7820
- # @example Example: To list in-progress multipart uploads on a bucket
7837
+ # @example Example: List next set of multipart uploads when previous result is truncated
7821
7838
  #
7822
- # # The following example lists in-progress multipart uploads on a specific bucket.
7839
+ # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7840
+ # # setup of multipart uploads.
7823
7841
  #
7824
7842
  # resp = client.list_multipart_uploads({
7825
7843
  # bucket: "examplebucket",
7844
+ # key_marker: "nextkeyfrompreviousresponse",
7845
+ # max_uploads: 2,
7846
+ # upload_id_marker: "valuefrompreviousresponse",
7826
7847
  # })
7827
7848
  #
7828
7849
  # resp.to_h outputs the following:
7829
7850
  # {
7851
+ # bucket: "acl1",
7852
+ # is_truncated: true,
7853
+ # key_marker: "",
7854
+ # max_uploads: 2,
7855
+ # next_key_marker: "someobjectkey",
7856
+ # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7857
+ # upload_id_marker: "",
7830
7858
  # uploads: [
7831
7859
  # {
7832
7860
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7833
7861
  # initiator: {
7834
- # display_name: "display-name",
7862
+ # display_name: "ownder-display-name",
7835
7863
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7836
7864
  # },
7837
7865
  # key: "JavaFile",
7838
7866
  # owner: {
7839
- # display_name: "display-name",
7840
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7867
+ # display_name: "mohanataws",
7868
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7841
7869
  # },
7842
7870
  # storage_class: "STANDARD",
7843
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7871
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7844
7872
  # },
7845
7873
  # {
7846
7874
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7847
7875
  # initiator: {
7848
- # display_name: "display-name",
7876
+ # display_name: "ownder-display-name",
7849
7877
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7850
7878
  # },
7851
7879
  # key: "JavaFile",
7852
7880
  # owner: {
7853
- # display_name: "display-name",
7881
+ # display_name: "ownder-display-name",
7854
7882
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7855
7883
  # },
7856
7884
  # storage_class: "STANDARD",
7857
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7885
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7858
7886
  # },
7859
7887
  # ],
7860
7888
  # }
7861
7889
  #
7862
- # @example Example: List next set of multipart uploads when previous result is truncated
7890
+ # @example Example: To list in-progress multipart uploads on a bucket
7863
7891
  #
7864
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7865
- # # setup of multipart uploads.
7892
+ # # The following example lists in-progress multipart uploads on a specific bucket.
7866
7893
  #
7867
7894
  # resp = client.list_multipart_uploads({
7868
7895
  # bucket: "examplebucket",
7869
- # key_marker: "nextkeyfrompreviousresponse",
7870
- # max_uploads: 2,
7871
- # upload_id_marker: "valuefrompreviousresponse",
7872
7896
  # })
7873
7897
  #
7874
7898
  # resp.to_h outputs the following:
7875
7899
  # {
7876
- # bucket: "acl1",
7877
- # is_truncated: true,
7878
- # key_marker: "",
7879
- # max_uploads: 2,
7880
- # next_key_marker: "someobjectkey",
7881
- # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7882
- # upload_id_marker: "",
7883
7900
  # uploads: [
7884
7901
  # {
7885
7902
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7886
7903
  # initiator: {
7887
- # display_name: "ownder-display-name",
7904
+ # display_name: "display-name",
7888
7905
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7889
7906
  # },
7890
7907
  # key: "JavaFile",
7891
7908
  # owner: {
7892
- # display_name: "mohanataws",
7893
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7909
+ # display_name: "display-name",
7910
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7894
7911
  # },
7895
7912
  # storage_class: "STANDARD",
7896
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7913
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7897
7914
  # },
7898
7915
  # {
7899
7916
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7900
7917
  # initiator: {
7901
- # display_name: "ownder-display-name",
7918
+ # display_name: "display-name",
7902
7919
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7903
7920
  # },
7904
7921
  # key: "JavaFile",
7905
7922
  # owner: {
7906
- # display_name: "ownder-display-name",
7923
+ # display_name: "display-name",
7907
7924
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7908
7925
  # },
7909
7926
  # storage_class: "STANDARD",
7910
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7927
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7911
7928
  # },
7912
7929
  # ],
7913
7930
  # }
@@ -12163,22 +12180,20 @@ module Aws::S3
12163
12180
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
12164
12181
  #
12165
12182
  #
12166
- # @example Example: To upload an object and specify optional tags
12183
+ # @example Example: To create an object.
12167
12184
  #
12168
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12169
- # # S3 returns version ID of the newly created object.
12185
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
12170
12186
  #
12171
12187
  # resp = client.put_object({
12172
- # body: "c:\\HappyFace.jpg",
12188
+ # body: "filetoupload",
12173
12189
  # bucket: "examplebucket",
12174
- # key: "HappyFace.jpg",
12175
- # tagging: "key1=value1&key2=value2",
12190
+ # key: "objectkey",
12176
12191
  # })
12177
12192
  #
12178
12193
  # resp.to_h outputs the following:
12179
12194
  # {
12180
12195
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12181
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12196
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12182
12197
  # }
12183
12198
  #
12184
12199
  # @example Example: To upload an object
@@ -12198,45 +12213,43 @@ module Aws::S3
12198
12213
  # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
12199
12214
  # }
12200
12215
  #
12201
- # @example Example: To upload an object and specify server-side encryption and object tags
12216
+ # @example Example: To upload object and specify user-defined metadata
12202
12217
  #
12203
- # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
12204
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12218
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12219
+ # # enabled, S3 returns version ID in response.
12205
12220
  #
12206
12221
  # resp = client.put_object({
12207
12222
  # body: "filetoupload",
12208
12223
  # bucket: "examplebucket",
12209
12224
  # key: "exampleobject",
12210
- # server_side_encryption: "AES256",
12211
- # tagging: "key1=value1&key2=value2",
12225
+ # metadata: {
12226
+ # "metadata1" => "value1",
12227
+ # "metadata2" => "value2",
12228
+ # },
12212
12229
  # })
12213
12230
  #
12214
12231
  # resp.to_h outputs the following:
12215
12232
  # {
12216
12233
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12217
- # server_side_encryption: "AES256",
12218
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12234
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12219
12235
  # }
12220
12236
  #
12221
- # @example Example: To upload object and specify user-defined metadata
12237
+ # @example Example: To upload an object and specify optional tags
12222
12238
  #
12223
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12224
- # # enabled, S3 returns version ID in response.
12239
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12240
+ # # S3 returns version ID of the newly created object.
12225
12241
  #
12226
12242
  # resp = client.put_object({
12227
- # body: "filetoupload",
12243
+ # body: "c:\\HappyFace.jpg",
12228
12244
  # bucket: "examplebucket",
12229
- # key: "exampleobject",
12230
- # metadata: {
12231
- # "metadata1" => "value1",
12232
- # "metadata2" => "value2",
12233
- # },
12245
+ # key: "HappyFace.jpg",
12246
+ # tagging: "key1=value1&key2=value2",
12234
12247
  # })
12235
12248
  #
12236
12249
  # resp.to_h outputs the following:
12237
12250
  # {
12238
12251
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12239
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12252
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12240
12253
  # }
12241
12254
  #
12242
12255
  # @example Example: To upload an object (specify optional headers)
@@ -12259,38 +12272,42 @@ module Aws::S3
12259
12272
  # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12260
12273
  # }
12261
12274
  #
12262
- # @example Example: To upload an object and specify canned ACL.
12275
+ # @example Example: To upload an object and specify server-side encryption and object tags
12263
12276
  #
12264
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
12265
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
12277
+ # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
12278
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12266
12279
  #
12267
12280
  # resp = client.put_object({
12268
- # acl: "authenticated-read",
12269
12281
  # body: "filetoupload",
12270
12282
  # bucket: "examplebucket",
12271
12283
  # key: "exampleobject",
12284
+ # server_side_encryption: "AES256",
12285
+ # tagging: "key1=value1&key2=value2",
12272
12286
  # })
12273
12287
  #
12274
12288
  # resp.to_h outputs the following:
12275
12289
  # {
12276
12290
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12277
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
12291
+ # server_side_encryption: "AES256",
12292
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12278
12293
  # }
12279
12294
  #
12280
- # @example Example: To create an object.
12295
+ # @example Example: To upload an object and specify canned ACL.
12281
12296
  #
12282
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
12297
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
12298
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
12283
12299
  #
12284
12300
  # resp = client.put_object({
12301
+ # acl: "authenticated-read",
12285
12302
  # body: "filetoupload",
12286
12303
  # bucket: "examplebucket",
12287
- # key: "objectkey",
12304
+ # key: "exampleobject",
12288
12305
  # })
12289
12306
  #
12290
12307
  # resp.to_h outputs the following:
12291
12308
  # {
12292
12309
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12293
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12310
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
12294
12311
  # }
12295
12312
  #
12296
12313
  # @example Streaming a file from disk
@@ -14849,45 +14866,45 @@ module Aws::S3
14849
14866
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
14850
14867
  #
14851
14868
  #
14852
- # @example Example: To upload a part by copying byte range from an existing object as data source
14869
+ # @example Example: To upload a part by copying data from an existing object as data source
14853
14870
  #
14854
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
14855
- # # data source.
14871
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
14856
14872
  #
14857
14873
  # resp = client.upload_part_copy({
14858
14874
  # bucket: "examplebucket",
14859
14875
  # copy_source: "/bucketname/sourceobjectkey",
14860
- # copy_source_range: "bytes=1-100000",
14861
14876
  # key: "examplelargeobject",
14862
- # part_number: 2,
14877
+ # part_number: 1,
14863
14878
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
14864
14879
  # })
14865
14880
  #
14866
14881
  # resp.to_h outputs the following:
14867
14882
  # {
14868
14883
  # copy_part_result: {
14869
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
14870
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
14884
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
14885
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
14871
14886
  # },
14872
14887
  # }
14873
14888
  #
14874
- # @example Example: To upload a part by copying data from an existing object as data source
14889
+ # @example Example: To upload a part by copying byte range from an existing object as data source
14875
14890
  #
14876
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
14891
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
14892
+ # # data source.
14877
14893
  #
14878
14894
  # resp = client.upload_part_copy({
14879
14895
  # bucket: "examplebucket",
14880
14896
  # copy_source: "/bucketname/sourceobjectkey",
14897
+ # copy_source_range: "bytes=1-100000",
14881
14898
  # key: "examplelargeobject",
14882
- # part_number: 1,
14899
+ # part_number: 2,
14883
14900
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
14884
14901
  # })
14885
14902
  #
14886
14903
  # resp.to_h outputs the following:
14887
14904
  # {
14888
14905
  # copy_part_result: {
14889
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
14890
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
14906
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
14907
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
14891
14908
  # },
14892
14909
  # }
14893
14910
  #
@@ -15337,7 +15354,7 @@ module Aws::S3
15337
15354
  params: params,
15338
15355
  config: config)
15339
15356
  context[:gem_name] = 'aws-sdk-s3'
15340
- context[:gem_version] = '1.115.0'
15357
+ context[:gem_version] = '1.117.0'
15341
15358
  Seahorse::Client::Request.new(handlers, context)
15342
15359
  end
15343
15360