aws-sdk-s3 1.114.0 → 1.119.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +1 -1
  5. data/lib/aws-sdk-s3/client.rb +169 -152
  6. data/lib/aws-sdk-s3/client_api.rb +189 -189
  7. data/lib/aws-sdk-s3/customizations/bucket.rb +20 -46
  8. data/lib/aws-sdk-s3/customizations/object.rb +4 -1
  9. data/lib/aws-sdk-s3/endpoint_parameters.rb +142 -0
  10. data/lib/aws-sdk-s3/endpoint_provider.rb +733 -0
  11. data/lib/aws-sdk-s3/endpoints.rb +2149 -0
  12. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +36 -10
  13. data/lib/aws-sdk-s3/object_multipart_copier.rb +11 -5
  14. data/lib/aws-sdk-s3/plugins/accelerate.rb +3 -50
  15. data/lib/aws-sdk-s3/plugins/arn.rb +0 -184
  16. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +3 -39
  17. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +1 -6
  18. data/lib/aws-sdk-s3/plugins/dualstack.rb +1 -49
  19. data/lib/aws-sdk-s3/plugins/endpoints.rb +262 -0
  20. data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +2 -1
  21. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +0 -29
  22. data/lib/aws-sdk-s3/plugins/s3_signer.rb +27 -123
  23. data/lib/aws-sdk-s3/presigned_post.rb +9 -16
  24. data/lib/aws-sdk-s3/presigner.rb +20 -33
  25. data/lib/aws-sdk-s3/resource.rb +1 -1
  26. data/lib/aws-sdk-s3/types.rb +0 -3636
  27. data/lib/aws-sdk-s3.rb +5 -1
  28. metadata +8 -9
  29. data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -69
  30. data/lib/aws-sdk-s3/arn/multi_region_access_point_arn.rb +0 -68
  31. data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +0 -69
  32. data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -74
  33. data/lib/aws-sdk-s3/plugins/object_lambda_endpoint.rb +0 -25
@@ -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
  #
@@ -1697,7 +1714,7 @@ module Aws::S3
1697
1714
  # acl: "private", # accepts private, public-read, public-read-write, authenticated-read
1698
1715
  # bucket: "BucketName", # required
1699
1716
  # create_bucket_configuration: {
1700
- # location_constraint: "af-south-1", # accepts af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-southeast-1, ap-southeast-2, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-north-1, eu-south-1, eu-west-1, eu-west-2, eu-west-3, me-south-1, sa-east-1, us-east-2, us-gov-east-1, us-gov-west-1, us-west-1, us-west-2
1717
+ # location_constraint: "af-south-1", # accepts af-south-1, ap-east-1, ap-northeast-1, ap-northeast-2, ap-northeast-3, ap-south-1, ap-southeast-1, ap-southeast-2, ap-southeast-3, ca-central-1, cn-north-1, cn-northwest-1, EU, eu-central-1, eu-north-1, eu-south-1, eu-west-1, eu-west-2, eu-west-3, me-south-1, sa-east-1, us-east-2, us-gov-east-1, us-gov-west-1, us-west-1, us-west-2
1701
1718
  # },
1702
1719
  # grant_full_control: "GrantFullControl",
1703
1720
  # grant_read: "GrantRead",
@@ -3109,6 +3126,15 @@ module Aws::S3
3109
3126
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
3110
3127
  #
3111
3128
  #
3129
+ # @example Example: To delete an object (from a non-versioned bucket)
3130
+ #
3131
+ # # The following example deletes an object from a non-versioned bucket.
3132
+ #
3133
+ # resp = client.delete_object({
3134
+ # bucket: "ExampleBucket",
3135
+ # key: "HappyFace.jpg",
3136
+ # })
3137
+ #
3112
3138
  # @example Example: To delete an object
3113
3139
  #
3114
3140
  # # The following example deletes an object from an S3 bucket.
@@ -3122,15 +3148,6 @@ module Aws::S3
3122
3148
  # {
3123
3149
  # }
3124
3150
  #
3125
- # @example Example: To delete an object (from a non-versioned bucket)
3126
- #
3127
- # # The following example deletes an object from a non-versioned bucket.
3128
- #
3129
- # resp = client.delete_object({
3130
- # bucket: "ExampleBucket",
3131
- # key: "HappyFace.jpg",
3132
- # })
3133
- #
3134
3151
  # @example Request syntax with placeholder values
3135
3152
  #
3136
3153
  # resp = client.delete_object({
@@ -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 version
3243
+ # @example Example: To remove tag set from an object
3227
3244
  #
3228
- # # The following example removes tag set associated with the specified object version. The request specifies both the
3229
- # # object key and object version.
3245
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3246
+ # # operation removes tag set from the latest object version.
3230
3247
  #
3231
3248
  # resp = client.delete_object_tagging({
3232
3249
  # bucket: "examplebucket",
3233
3250
  # key: "HappyFace.jpg",
3234
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3235
3251
  # })
3236
3252
  #
3237
3253
  # resp.to_h outputs the following:
3238
3254
  # {
3239
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3255
+ # version_id: "null",
3240
3256
  # }
3241
3257
  #
3242
- # @example Example: To remove tag set from an object
3258
+ # @example Example: To remove tag set from an object version
3243
3259
  #
3244
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3245
- # # operation removes tag set from the latest object version.
3260
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
3261
+ # # object key and object version.
3246
3262
  #
3247
3263
  # resp = client.delete_object_tagging({
3248
3264
  # bucket: "examplebucket",
3249
3265
  # key: "HappyFace.jpg",
3266
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3250
3267
  # })
3251
3268
  #
3252
3269
  # resp.to_h outputs the following:
3253
3270
  # {
3254
- # version_id: "null",
3271
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3255
3272
  # }
3256
3273
  #
3257
3274
  # @example Request syntax with placeholder values
@@ -3410,22 +3427,20 @@ module Aws::S3
3410
3427
  # * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
3411
3428
  #
3412
3429
  #
3413
- # @example Example: To delete multiple object versions from a versioned bucket
3430
+ # @example Example: To delete multiple objects from a versioned bucket
3414
3431
  #
3415
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3416
- # # versions and returns the key and versions of deleted objects in the response.
3432
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3433
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3417
3434
  #
3418
3435
  # resp = client.delete_objects({
3419
3436
  # bucket: "examplebucket",
3420
3437
  # delete: {
3421
3438
  # objects: [
3422
3439
  # {
3423
- # key: "HappyFace.jpg",
3424
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3440
+ # key: "objectkey1",
3425
3441
  # },
3426
3442
  # {
3427
- # key: "HappyFace.jpg",
3428
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3443
+ # key: "objectkey2",
3429
3444
  # },
3430
3445
  # ],
3431
3446
  # quiet: false,
@@ -3436,30 +3451,34 @@ module Aws::S3
3436
3451
  # {
3437
3452
  # deleted: [
3438
3453
  # {
3439
- # key: "HappyFace.jpg",
3440
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3454
+ # delete_marker: true,
3455
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3456
+ # key: "objectkey1",
3441
3457
  # },
3442
3458
  # {
3443
- # key: "HappyFace.jpg",
3444
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3459
+ # delete_marker: true,
3460
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3461
+ # key: "objectkey2",
3445
3462
  # },
3446
3463
  # ],
3447
3464
  # }
3448
3465
  #
3449
- # @example Example: To delete multiple objects from a versioned bucket
3466
+ # @example Example: To delete multiple object versions from a versioned bucket
3450
3467
  #
3451
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3452
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3468
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3469
+ # # versions and returns the key and versions of deleted objects in the response.
3453
3470
  #
3454
3471
  # resp = client.delete_objects({
3455
3472
  # bucket: "examplebucket",
3456
3473
  # delete: {
3457
3474
  # objects: [
3458
3475
  # {
3459
- # key: "objectkey1",
3476
+ # key: "HappyFace.jpg",
3477
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3460
3478
  # },
3461
3479
  # {
3462
- # key: "objectkey2",
3480
+ # key: "HappyFace.jpg",
3481
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3463
3482
  # },
3464
3483
  # ],
3465
3484
  # quiet: false,
@@ -3470,14 +3489,12 @@ module Aws::S3
3470
3489
  # {
3471
3490
  # deleted: [
3472
3491
  # {
3473
- # delete_marker: true,
3474
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3475
- # key: "objectkey1",
3492
+ # key: "HappyFace.jpg",
3493
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3476
3494
  # },
3477
3495
  # {
3478
- # delete_marker: true,
3479
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3480
- # key: "objectkey2",
3496
+ # key: "HappyFace.jpg",
3497
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3481
3498
  # },
3482
3499
  # ],
3483
3500
  # }
@@ -4418,7 +4435,7 @@ module Aws::S3
4418
4435
  #
4419
4436
  # @example Response structure
4420
4437
  #
4421
- # resp.location_constraint #=> String, one of "af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-north-1", "cn-northwest-1", "EU", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-2", "us-gov-east-1", "us-gov-west-1", "us-west-1", "us-west-2"
4438
+ # resp.location_constraint #=> String, one of "af-south-1", "ap-east-1", "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ap-southeast-3", "ca-central-1", "cn-north-1", "cn-northwest-1", "EU", "eu-central-1", "eu-north-1", "eu-south-1", "eu-west-1", "eu-west-2", "eu-west-3", "me-south-1", "sa-east-1", "us-east-2", "us-gov-east-1", "us-gov-west-1", "us-west-1", "us-west-2"
4422
4439
  #
4423
4440
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocation AWS API Documentation
4424
4441
  #
@@ -5701,49 +5718,49 @@ module Aws::S3
5701
5718
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
5702
5719
  #
5703
5720
  #
5704
- # @example Example: To retrieve an object
5721
+ # @example Example: To retrieve a byte range of an object
5705
5722
  #
5706
- # # The following example retrieves an object for an S3 bucket.
5723
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5724
+ # # specific byte range.
5707
5725
  #
5708
5726
  # resp = client.get_object({
5709
5727
  # bucket: "examplebucket",
5710
- # key: "HappyFace.jpg",
5728
+ # key: "SampleFile.txt",
5729
+ # range: "bytes=0-9",
5711
5730
  # })
5712
5731
  #
5713
5732
  # resp.to_h outputs the following:
5714
5733
  # {
5715
5734
  # accept_ranges: "bytes",
5716
- # content_length: 3191,
5717
- # content_type: "image/jpeg",
5718
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5719
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5735
+ # content_length: 10,
5736
+ # content_range: "bytes 0-9/43",
5737
+ # content_type: "text/plain",
5738
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5739
+ # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5720
5740
  # metadata: {
5721
5741
  # },
5722
- # tag_count: 2,
5723
5742
  # version_id: "null",
5724
5743
  # }
5725
5744
  #
5726
- # @example Example: To retrieve a byte range of an object
5745
+ # @example Example: To retrieve an object
5727
5746
  #
5728
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5729
- # # specific byte range.
5747
+ # # The following example retrieves an object for an S3 bucket.
5730
5748
  #
5731
5749
  # resp = client.get_object({
5732
5750
  # bucket: "examplebucket",
5733
- # key: "SampleFile.txt",
5734
- # range: "bytes=0-9",
5751
+ # key: "HappyFace.jpg",
5735
5752
  # })
5736
5753
  #
5737
5754
  # resp.to_h outputs the following:
5738
5755
  # {
5739
5756
  # accept_ranges: "bytes",
5740
- # content_length: 10,
5741
- # content_range: "bytes 0-9/43",
5742
- # content_type: "text/plain",
5743
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5744
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5757
+ # content_length: 3191,
5758
+ # content_type: "image/jpeg",
5759
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5760
+ # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5745
5761
  # metadata: {
5746
5762
  # },
5763
+ # tag_count: 2,
5747
5764
  # version_id: "null",
5748
5765
  # }
5749
5766
  #
@@ -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 an object
6602
+ # @example Example: To retrieve tag set of a specific object version
6586
6603
  #
6587
- # # The following example retrieves tag set of an object.
6604
+ # # The following example retrieves tag set of an object. The request specifies object version.
6588
6605
  #
6589
6606
  # resp = client.get_object_tagging({
6590
6607
  # bucket: "examplebucket",
6591
- # key: "HappyFace.jpg",
6608
+ # key: "exampleobject",
6609
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6592
6610
  # })
6593
6611
  #
6594
6612
  # resp.to_h outputs the following:
6595
6613
  # {
6596
6614
  # tag_set: [
6597
6615
  # {
6598
- # key: "Key4",
6599
- # value: "Value4",
6600
- # },
6601
- # {
6602
- # key: "Key3",
6603
- # value: "Value3",
6616
+ # key: "Key1",
6617
+ # value: "Value1",
6604
6618
  # },
6605
6619
  # ],
6606
- # version_id: "null",
6620
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6607
6621
  # }
6608
6622
  #
6609
- # @example Example: To retrieve tag set of a specific object version
6623
+ # @example Example: To retrieve tag set of an object
6610
6624
  #
6611
- # # The following example retrieves tag set of an object. The request specifies object version.
6625
+ # # The following example retrieves tag set of an object.
6612
6626
  #
6613
6627
  # resp = client.get_object_tagging({
6614
6628
  # bucket: "examplebucket",
6615
- # key: "exampleobject",
6616
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6629
+ # key: "HappyFace.jpg",
6617
6630
  # })
6618
6631
  #
6619
6632
  # resp.to_h outputs the following:
6620
6633
  # {
6621
6634
  # tag_set: [
6622
6635
  # {
6623
- # key: "Key1",
6624
- # value: "Value1",
6636
+ # key: "Key4",
6637
+ # value: "Value4",
6638
+ # },
6639
+ # {
6640
+ # key: "Key3",
6641
+ # value: "Value3",
6625
6642
  # },
6626
6643
  # ],
6627
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6644
+ # version_id: "null",
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: List next set of multipart uploads when previous result is truncated
7837
+ # @example Example: To list in-progress multipart uploads on a bucket
7821
7838
  #
7822
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7823
- # # setup of multipart uploads.
7839
+ # # The following example lists in-progress multipart uploads on a specific bucket.
7824
7840
  #
7825
7841
  # resp = client.list_multipart_uploads({
7826
7842
  # bucket: "examplebucket",
7827
- # key_marker: "nextkeyfrompreviousresponse",
7828
- # max_uploads: 2,
7829
- # upload_id_marker: "valuefrompreviousresponse",
7830
7843
  # })
7831
7844
  #
7832
7845
  # resp.to_h outputs the following:
7833
7846
  # {
7834
- # bucket: "acl1",
7835
- # is_truncated: true,
7836
- # key_marker: "",
7837
- # max_uploads: 2,
7838
- # next_key_marker: "someobjectkey",
7839
- # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7840
- # upload_id_marker: "",
7841
7847
  # uploads: [
7842
7848
  # {
7843
7849
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7844
7850
  # initiator: {
7845
- # display_name: "ownder-display-name",
7851
+ # display_name: "display-name",
7846
7852
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7847
7853
  # },
7848
7854
  # key: "JavaFile",
7849
7855
  # owner: {
7850
- # display_name: "mohanataws",
7851
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7856
+ # display_name: "display-name",
7857
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7852
7858
  # },
7853
7859
  # storage_class: "STANDARD",
7854
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7860
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7855
7861
  # },
7856
7862
  # {
7857
7863
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7858
7864
  # initiator: {
7859
- # display_name: "ownder-display-name",
7865
+ # display_name: "display-name",
7860
7866
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7861
7867
  # },
7862
7868
  # key: "JavaFile",
7863
7869
  # owner: {
7864
- # display_name: "ownder-display-name",
7870
+ # display_name: "display-name",
7865
7871
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7866
7872
  # },
7867
7873
  # storage_class: "STANDARD",
7868
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7874
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7869
7875
  # },
7870
7876
  # ],
7871
7877
  # }
7872
7878
  #
7873
- # @example Example: To list in-progress multipart uploads on a bucket
7879
+ # @example Example: List next set of multipart uploads when previous result is truncated
7874
7880
  #
7875
- # # The following example lists in-progress multipart uploads on a specific bucket.
7881
+ # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7882
+ # # setup of multipart uploads.
7876
7883
  #
7877
7884
  # resp = client.list_multipart_uploads({
7878
7885
  # bucket: "examplebucket",
7886
+ # key_marker: "nextkeyfrompreviousresponse",
7887
+ # max_uploads: 2,
7888
+ # upload_id_marker: "valuefrompreviousresponse",
7879
7889
  # })
7880
7890
  #
7881
7891
  # resp.to_h outputs the following:
7882
7892
  # {
7893
+ # bucket: "acl1",
7894
+ # is_truncated: true,
7895
+ # key_marker: "",
7896
+ # max_uploads: 2,
7897
+ # next_key_marker: "someobjectkey",
7898
+ # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7899
+ # 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: "display-name",
7904
+ # display_name: "ownder-display-name",
7888
7905
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7889
7906
  # },
7890
7907
  # key: "JavaFile",
7891
7908
  # owner: {
7892
- # display_name: "display-name",
7893
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7909
+ # display_name: "mohanataws",
7910
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7894
7911
  # },
7895
7912
  # storage_class: "STANDARD",
7896
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7913
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7897
7914
  # },
7898
7915
  # {
7899
7916
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7900
7917
  # initiator: {
7901
- # display_name: "display-name",
7918
+ # display_name: "ownder-display-name",
7902
7919
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7903
7920
  # },
7904
7921
  # key: "JavaFile",
7905
7922
  # owner: {
7906
- # display_name: "display-name",
7923
+ # display_name: "ownder-display-name",
7907
7924
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7908
7925
  # },
7909
7926
  # storage_class: "STANDARD",
7910
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7927
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7911
7928
  # },
7912
7929
  # ],
7913
7930
  # }
@@ -12163,22 +12180,6 @@ module Aws::S3
12163
12180
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
12164
12181
  #
12165
12182
  #
12166
- # @example Example: To create an object.
12167
- #
12168
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
12169
- #
12170
- # resp = client.put_object({
12171
- # body: "filetoupload",
12172
- # bucket: "examplebucket",
12173
- # key: "objectkey",
12174
- # })
12175
- #
12176
- # resp.to_h outputs the following:
12177
- # {
12178
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12179
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12180
- # }
12181
- #
12182
12183
  # @example Example: To upload an object
12183
12184
  #
12184
12185
  # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
@@ -12217,42 +12218,40 @@ module Aws::S3
12217
12218
  # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12218
12219
  # }
12219
12220
  #
12220
- # @example Example: To upload an object and specify optional tags
12221
+ # @example Example: To upload an object (specify optional headers)
12221
12222
  #
12222
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12223
- # # S3 returns version ID of the newly created object.
12223
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12224
+ # # storage class and use server-side encryption.
12224
12225
  #
12225
12226
  # resp = client.put_object({
12226
- # body: "c:\\HappyFace.jpg",
12227
+ # body: "HappyFace.jpg",
12227
12228
  # bucket: "examplebucket",
12228
12229
  # key: "HappyFace.jpg",
12229
- # tagging: "key1=value1&key2=value2",
12230
+ # server_side_encryption: "AES256",
12231
+ # storage_class: "STANDARD_IA",
12230
12232
  # })
12231
12233
  #
12232
12234
  # resp.to_h outputs the following:
12233
12235
  # {
12234
12236
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12235
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12237
+ # server_side_encryption: "AES256",
12238
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12236
12239
  # }
12237
12240
  #
12238
- # @example Example: To upload an object (specify optional headers)
12241
+ # @example Example: To create an object.
12239
12242
  #
12240
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12241
- # # storage class and use server-side encryption.
12243
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
12242
12244
  #
12243
12245
  # resp = client.put_object({
12244
- # body: "HappyFace.jpg",
12246
+ # body: "filetoupload",
12245
12247
  # bucket: "examplebucket",
12246
- # key: "HappyFace.jpg",
12247
- # server_side_encryption: "AES256",
12248
- # storage_class: "STANDARD_IA",
12248
+ # key: "objectkey",
12249
12249
  # })
12250
12250
  #
12251
12251
  # resp.to_h outputs the following:
12252
12252
  # {
12253
12253
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12254
- # server_side_encryption: "AES256",
12255
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12254
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12256
12255
  # }
12257
12256
  #
12258
12257
  # @example Example: To upload an object and specify server-side encryption and object tags
@@ -12275,6 +12274,24 @@ module Aws::S3
12275
12274
  # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12276
12275
  # }
12277
12276
  #
12277
+ # @example Example: To upload an object and specify optional tags
12278
+ #
12279
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12280
+ # # S3 returns version ID of the newly created object.
12281
+ #
12282
+ # resp = client.put_object({
12283
+ # body: "c:\\HappyFace.jpg",
12284
+ # bucket: "examplebucket",
12285
+ # key: "HappyFace.jpg",
12286
+ # tagging: "key1=value1&key2=value2",
12287
+ # })
12288
+ #
12289
+ # resp.to_h outputs the following:
12290
+ # {
12291
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12292
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12293
+ # }
12294
+ #
12278
12295
  # @example Example: To upload an object and specify canned ACL.
12279
12296
  #
12280
12297
  # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
@@ -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 data from an existing object as data source
14869
+ # @example Example: To upload a part by copying byte range from an existing object as data source
14853
14870
  #
14854
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
14871
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
14872
+ # # data source.
14855
14873
  #
14856
14874
  # resp = client.upload_part_copy({
14857
14875
  # bucket: "examplebucket",
14858
14876
  # copy_source: "/bucketname/sourceobjectkey",
14877
+ # copy_source_range: "bytes=1-100000",
14859
14878
  # key: "examplelargeobject",
14860
- # part_number: 1,
14879
+ # part_number: 2,
14861
14880
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
14862
14881
  # })
14863
14882
  #
14864
14883
  # resp.to_h outputs the following:
14865
14884
  # {
14866
14885
  # copy_part_result: {
14867
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
14868
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
14886
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
14887
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
14869
14888
  # },
14870
14889
  # }
14871
14890
  #
14872
- # @example Example: To upload a part by copying byte range from an existing object as data source
14891
+ # @example Example: To upload a part by copying data from an existing object as data source
14873
14892
  #
14874
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
14875
- # # data source.
14893
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
14876
14894
  #
14877
14895
  # resp = client.upload_part_copy({
14878
14896
  # bucket: "examplebucket",
14879
14897
  # copy_source: "/bucketname/sourceobjectkey",
14880
- # copy_source_range: "bytes=1-100000",
14881
14898
  # key: "examplelargeobject",
14882
- # part_number: 2,
14899
+ # part_number: 1,
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: "\"65d16d19e65a7508a51f043180edcc36\"",
14890
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
14906
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
14907
+ # last_modified: Time.parse("2016-12-29T21:24:43.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.114.0'
15357
+ context[:gem_version] = '1.119.1'
15341
15358
  Seahorse::Client::Request.new(handlers, context)
15342
15359
  end
15343
15360