aws-sdk-s3 1.118.0 → 1.119.2

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.
@@ -469,7 +469,7 @@ module Aws::S3
469
469
  # For information about permissions required to use the multipart
470
470
  # upload, see [Multipart Upload and Permissions][2].
471
471
  #
472
- # The following operations are related to `AbortMultipartUpload`\:
472
+ # The following operations are related to `AbortMultipartUpload`:
473
473
  #
474
474
  # * [CreateMultipartUpload][3]
475
475
  #
@@ -649,7 +649,7 @@ module Aws::S3
649
649
  #
650
650
  # * 404 Not Found
651
651
  #
652
- # The following operations are related to `CompleteMultipartUpload`\:
652
+ # The following operations are related to `CompleteMultipartUpload`:
653
653
  #
654
654
  # * [CreateMultipartUpload][5]
655
655
  #
@@ -1075,7 +1075,7 @@ module Aws::S3
1075
1075
  # copy of this object before you can use it as a source object for the
1076
1076
  # copy operation. For more information, see [RestoreObject][14].
1077
1077
  #
1078
- # The following operations are related to `CopyObject`\:
1078
+ # The following operations are related to `CopyObject`:
1079
1079
  #
1080
1080
  # * [PutObject][15]
1081
1081
  #
@@ -1162,7 +1162,7 @@ module Aws::S3
1162
1162
  # @option params [required, String] :copy_source
1163
1163
  # Specifies the source object for the copy operation. You specify the
1164
1164
  # value in one of two formats, depending on whether you want to access
1165
- # the source object through an [access point][1]\:
1165
+ # the source object through an [access point][1]:
1166
1166
  #
1167
1167
  # * For objects not accessed through an access point, specify the name
1168
1168
  # of the source bucket and the key of the source object, separated by
@@ -1605,7 +1605,7 @@ module Aws::S3
1605
1605
  # the `x-amz-object-ownership` header, `s3:PutBucketOwnershipControls`
1606
1606
  # permission is required.
1607
1607
  #
1608
- # The following operations are related to `CreateBucket`\:
1608
+ # The following operations are related to `CreateBucket`:
1609
1609
  #
1610
1610
  # * [PutObject][9]
1611
1611
  #
@@ -1945,7 +1945,7 @@ module Aws::S3
1945
1945
  #
1946
1946
  # `x-amz-grant-read: id="11112222333", id="444455556666" `
1947
1947
  #
1948
- # The following operations are related to `CreateMultipartUpload`\:
1948
+ # The following operations are related to `CreateMultipartUpload`:
1949
1949
  #
1950
1950
  # * [UploadPart][1]
1951
1951
  #
@@ -2317,7 +2317,7 @@ module Aws::S3
2317
2317
  # Analytics – Storage Class Analysis][3].
2318
2318
  #
2319
2319
  # The following operations are related to
2320
- # `DeleteBucketAnalyticsConfiguration`\:
2320
+ # `DeleteBucketAnalyticsConfiguration`:
2321
2321
  #
2322
2322
  # * [GetBucketAnalyticsConfiguration][4]
2323
2323
  #
@@ -2678,7 +2678,7 @@ module Aws::S3
2678
2678
  # [Monitoring Metrics with Amazon CloudWatch][3].
2679
2679
  #
2680
2680
  # The following operations are related to
2681
- # `DeleteBucketMetricsConfiguration`\:
2681
+ # `DeleteBucketMetricsConfiguration`:
2682
2682
  #
2683
2683
  # * [GetBucketMetricsConfiguration][4]
2684
2684
  #
@@ -2736,7 +2736,7 @@ module Aws::S3
2736
2736
  # Ownership][2].
2737
2737
  #
2738
2738
  # The following operations are related to
2739
- # `DeleteBucketOwnershipControls`\:
2739
+ # `DeleteBucketOwnershipControls`:
2740
2740
  #
2741
2741
  # * GetBucketOwnershipControls
2742
2742
  #
@@ -2857,7 +2857,7 @@ module Aws::S3
2857
2857
  # For information about replication configuration, see [Replication][3]
2858
2858
  # in the *Amazon S3 User Guide*.
2859
2859
  #
2860
- # The following operations are related to `DeleteBucketReplication`\:
2860
+ # The following operations are related to `DeleteBucketReplication`:
2861
2861
  #
2862
2862
  # * [PutBucketReplication][4]
2863
2863
  #
@@ -2912,7 +2912,7 @@ module Aws::S3
2912
2912
  # `s3:PutBucketTagging` action. By default, the bucket owner has this
2913
2913
  # permission and can grant this permission to others.
2914
2914
  #
2915
- # The following operations are related to `DeleteBucketTagging`\:
2915
+ # The following operations are related to `DeleteBucketTagging`:
2916
2916
  #
2917
2917
  # * [GetBucketTagging][1]
2918
2918
  #
@@ -2974,7 +2974,7 @@ module Aws::S3
2974
2974
  # For more information about hosting websites, see [Hosting Websites on
2975
2975
  # Amazon S3][1].
2976
2976
  #
2977
- # The following operations are related to `DeleteBucketWebsite`\:
2977
+ # The following operations are related to `DeleteBucketWebsite`:
2978
2978
  #
2979
2979
  # * [GetBucketWebsite][2]
2980
2980
  #
@@ -3048,7 +3048,7 @@ module Aws::S3
3048
3048
  # `s3:DeleteObject`, `s3:DeleteObjectVersion`, and
3049
3049
  # `s3:PutLifeCycleConfiguration` actions.
3050
3050
  #
3051
- # The following action is related to `DeleteObject`\:
3051
+ # The following action is related to `DeleteObject`:
3052
3052
  #
3053
3053
  # * [PutObject][4]
3054
3054
  #
@@ -3126,6 +3126,15 @@ module Aws::S3
3126
3126
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
3127
3127
  #
3128
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
+ #
3129
3138
  # @example Example: To delete an object
3130
3139
  #
3131
3140
  # # The following example deletes an object from an S3 bucket.
@@ -3139,15 +3148,6 @@ module Aws::S3
3139
3148
  # {
3140
3149
  # }
3141
3150
  #
3142
- # @example Example: To delete an object (from a non-versioned bucket)
3143
- #
3144
- # # The following example deletes an object from a non-versioned bucket.
3145
- #
3146
- # resp = client.delete_object({
3147
- # bucket: "ExampleBucket",
3148
- # key: "HappyFace.jpg",
3149
- # })
3150
- #
3151
3151
  # @example Request syntax with placeholder values
3152
3152
  #
3153
3153
  # resp = client.delete_object({
@@ -3186,7 +3186,7 @@ module Aws::S3
3186
3186
  # `s3:DeleteObjectVersionTagging` action.
3187
3187
  #
3188
3188
  # The following operations are related to
3189
- # `DeleteBucketMetricsConfiguration`\:
3189
+ # `DeleteBucketMetricsConfiguration`:
3190
3190
  #
3191
3191
  # * [PutObjectTagging][2]
3192
3192
  #
@@ -3240,35 +3240,35 @@ module Aws::S3
3240
3240
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
3241
3241
  #
3242
3242
  #
3243
- # @example Example: To remove tag set from an object version
3243
+ # @example Example: To remove tag set from an object
3244
3244
  #
3245
- # # The following example removes tag set associated with the specified object version. The request specifies both the
3246
- # # 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.
3247
3247
  #
3248
3248
  # resp = client.delete_object_tagging({
3249
3249
  # bucket: "examplebucket",
3250
3250
  # key: "HappyFace.jpg",
3251
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3252
3251
  # })
3253
3252
  #
3254
3253
  # resp.to_h outputs the following:
3255
3254
  # {
3256
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3255
+ # version_id: "null",
3257
3256
  # }
3258
3257
  #
3259
- # @example Example: To remove tag set from an object
3258
+ # @example Example: To remove tag set from an object version
3260
3259
  #
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.
3260
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
3261
+ # # object key and object version.
3263
3262
  #
3264
3263
  # resp = client.delete_object_tagging({
3265
3264
  # bucket: "examplebucket",
3266
3265
  # key: "HappyFace.jpg",
3266
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3267
3267
  # })
3268
3268
  #
3269
3269
  # resp.to_h outputs the following:
3270
3270
  # {
3271
- # version_id: "null",
3271
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3272
3272
  # }
3273
3273
  #
3274
3274
  # @example Request syntax with placeholder values
@@ -3325,7 +3325,7 @@ module Aws::S3
3325
3325
  # Delete requests. Amazon S3 uses the header value to ensure that your
3326
3326
  # request body has not been altered in transit.
3327
3327
  #
3328
- # The following operations are related to `DeleteObjects`\:
3328
+ # The following operations are related to `DeleteObjects`:
3329
3329
  #
3330
3330
  # * [CreateMultipartUpload][2]
3331
3331
  #
@@ -3427,22 +3427,20 @@ module Aws::S3
3427
3427
  # * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
3428
3428
  #
3429
3429
  #
3430
- # @example Example: To delete multiple object versions from a versioned bucket
3430
+ # @example Example: To delete multiple objects from a versioned bucket
3431
3431
  #
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.
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.
3434
3434
  #
3435
3435
  # resp = client.delete_objects({
3436
3436
  # bucket: "examplebucket",
3437
3437
  # delete: {
3438
3438
  # objects: [
3439
3439
  # {
3440
- # key: "HappyFace.jpg",
3441
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3440
+ # key: "objectkey1",
3442
3441
  # },
3443
3442
  # {
3444
- # key: "HappyFace.jpg",
3445
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3443
+ # key: "objectkey2",
3446
3444
  # },
3447
3445
  # ],
3448
3446
  # quiet: false,
@@ -3453,30 +3451,34 @@ module Aws::S3
3453
3451
  # {
3454
3452
  # deleted: [
3455
3453
  # {
3456
- # key: "HappyFace.jpg",
3457
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3454
+ # delete_marker: true,
3455
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3456
+ # key: "objectkey1",
3458
3457
  # },
3459
3458
  # {
3460
- # key: "HappyFace.jpg",
3461
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3459
+ # delete_marker: true,
3460
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3461
+ # key: "objectkey2",
3462
3462
  # },
3463
3463
  # ],
3464
3464
  # }
3465
3465
  #
3466
- # @example Example: To delete multiple objects from a versioned bucket
3466
+ # @example Example: To delete multiple object versions from a versioned bucket
3467
3467
  #
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.
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.
3470
3470
  #
3471
3471
  # resp = client.delete_objects({
3472
3472
  # bucket: "examplebucket",
3473
3473
  # delete: {
3474
3474
  # objects: [
3475
3475
  # {
3476
- # key: "objectkey1",
3476
+ # key: "HappyFace.jpg",
3477
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3477
3478
  # },
3478
3479
  # {
3479
- # key: "objectkey2",
3480
+ # key: "HappyFace.jpg",
3481
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3480
3482
  # },
3481
3483
  # ],
3482
3484
  # quiet: false,
@@ -3487,14 +3489,12 @@ module Aws::S3
3487
3489
  # {
3488
3490
  # deleted: [
3489
3491
  # {
3490
- # delete_marker: true,
3491
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3492
- # key: "objectkey1",
3492
+ # key: "HappyFace.jpg",
3493
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3493
3494
  # },
3494
3495
  # {
3495
- # delete_marker: true,
3496
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3497
- # key: "objectkey2",
3496
+ # key: "HappyFace.jpg",
3497
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3498
3498
  # },
3499
3499
  # ],
3500
3500
  # }
@@ -3549,7 +3549,7 @@ module Aws::S3
3549
3549
  # Operations][1] and [Managing Access Permissions to Your Amazon S3
3550
3550
  # Resources][2].
3551
3551
  #
3552
- # The following operations are related to `DeletePublicAccessBlock`\:
3552
+ # The following operations are related to `DeletePublicAccessBlock`:
3553
3553
  #
3554
3554
  # * [Using Amazon S3 Block Public Access][3]
3555
3555
  #
@@ -3824,7 +3824,7 @@ module Aws::S3
3824
3824
  # For more information about CORS, see [ Enabling Cross-Origin Resource
3825
3825
  # Sharing][1].
3826
3826
  #
3827
- # The following operations are related to `GetBucketCors`\:
3827
+ # The following operations are related to `GetBucketCors`:
3828
3828
  #
3829
3829
  # * [PutBucketCors][2]
3830
3830
  #
@@ -3920,7 +3920,7 @@ module Aws::S3
3920
3920
  # Related to Bucket Subresource Operations][2] and [Managing Access
3921
3921
  # Permissions to Your Amazon S3 Resources][3].
3922
3922
  #
3923
- # The following operations are related to `GetBucketEncryption`\:
3923
+ # The following operations are related to `GetBucketEncryption`:
3924
3924
  #
3925
3925
  # * [PutBucketEncryption][4]
3926
3926
  #
@@ -4064,7 +4064,7 @@ module Aws::S3
4064
4064
  # Inventory][3].
4065
4065
  #
4066
4066
  # The following operations are related to
4067
- # `GetBucketInventoryConfiguration`\:
4067
+ # `GetBucketInventoryConfiguration`:
4068
4068
  #
4069
4069
  # * [DeleteBucketInventoryConfiguration][4]
4070
4070
  #
@@ -4156,7 +4156,7 @@ module Aws::S3
4156
4156
  #
4157
4157
  # * SOAP Fault Code Prefix: Client
4158
4158
  #
4159
- # The following operations are related to `GetBucketLifecycle`\:
4159
+ # The following operations are related to `GetBucketLifecycle`:
4160
4160
  #
4161
4161
  # * [GetBucketLifecycleConfiguration][1]
4162
4162
  #
@@ -4276,7 +4276,7 @@ module Aws::S3
4276
4276
  # * SOAP Fault Code Prefix: Client
4277
4277
  #
4278
4278
  # The following operations are related to
4279
- # `GetBucketLifecycleConfiguration`\:
4279
+ # `GetBucketLifecycleConfiguration`:
4280
4280
  #
4281
4281
  # * [GetBucketLifecycle][1]
4282
4282
  #
@@ -4389,7 +4389,7 @@ module Aws::S3
4389
4389
  # To use this API against an access point, provide the alias of the
4390
4390
  # access point in place of the bucket name.
4391
4391
  #
4392
- # The following operations are related to `GetBucketLocation`\:
4392
+ # The following operations are related to `GetBucketLocation`:
4393
4393
  #
4394
4394
  # * [GetObject][2]
4395
4395
  #
@@ -4450,7 +4450,7 @@ module Aws::S3
4450
4450
  # to view and modify that status. To use GET, you must be the bucket
4451
4451
  # owner.
4452
4452
  #
4453
- # The following operations are related to `GetBucketLogging`\:
4453
+ # The following operations are related to `GetBucketLogging`:
4454
4454
  #
4455
4455
  # * [CreateBucket][1]
4456
4456
  #
@@ -4516,7 +4516,7 @@ module Aws::S3
4516
4516
  # [Monitoring Metrics with Amazon CloudWatch][3].
4517
4517
  #
4518
4518
  # The following operations are related to
4519
- # `GetBucketMetricsConfiguration`\:
4519
+ # `GetBucketMetricsConfiguration`:
4520
4520
  #
4521
4521
  # * [PutBucketMetricsConfiguration][4]
4522
4522
  #
@@ -4709,7 +4709,7 @@ module Aws::S3
4709
4709
  # Events][1]. For more information about bucket policies, see [Using
4710
4710
  # Bucket Policies][2].
4711
4711
  #
4712
- # The following action is related to `GetBucketNotification`\:
4712
+ # The following action is related to `GetBucketNotification`:
4713
4713
  #
4714
4714
  # * [PutBucketNotification][3]
4715
4715
  #
@@ -4788,7 +4788,7 @@ module Aws::S3
4788
4788
  # For information about Amazon S3 Object Ownership, see [Using Object
4789
4789
  # Ownership][2].
4790
4790
  #
4791
- # The following operations are related to `GetBucketOwnershipControls`\:
4791
+ # The following operations are related to `GetBucketOwnershipControls`:
4792
4792
  #
4793
4793
  # * PutBucketOwnershipControls
4794
4794
  #
@@ -4852,7 +4852,7 @@ module Aws::S3
4852
4852
  # For more information about bucket policies, see [Using Bucket Policies
4853
4853
  # and User Policies][1].
4854
4854
  #
4855
- # The following action is related to `GetBucketPolicy`\:
4855
+ # The following action is related to `GetBucketPolicy`:
4856
4856
  #
4857
4857
  # * [GetObject][2]
4858
4858
  #
@@ -4918,7 +4918,7 @@ module Aws::S3
4918
4918
  # For more information about when Amazon S3 considers a bucket public,
4919
4919
  # see [The Meaning of "Public"][2].
4920
4920
  #
4921
- # The following operations are related to `GetBucketPolicyStatus`\:
4921
+ # The following operations are related to `GetBucketPolicyStatus`:
4922
4922
  #
4923
4923
  # * [Using Amazon S3 Block Public Access][3]
4924
4924
  #
@@ -4992,7 +4992,7 @@ module Aws::S3
4992
4992
  # For information about `GetBucketReplication` errors, see [List of
4993
4993
  # replication-related error codes][3]
4994
4994
  #
4995
- # The following operations are related to `GetBucketReplication`\:
4995
+ # The following operations are related to `GetBucketReplication`:
4996
4996
  #
4997
4997
  # * [PutBucketReplication][4]
4998
4998
  #
@@ -5093,7 +5093,7 @@ module Aws::S3
5093
5093
  # version of the operation, you must be the bucket owner. For more
5094
5094
  # information, see [Requester Pays Buckets][1].
5095
5095
  #
5096
- # The following operations are related to `GetBucketRequestPayment`\:
5096
+ # The following operations are related to `GetBucketRequestPayment`:
5097
5097
  #
5098
5098
  # * [ListObjects][2]
5099
5099
  #
@@ -5165,7 +5165,7 @@ module Aws::S3
5165
5165
  #
5166
5166
  # ^
5167
5167
  #
5168
- # The following operations are related to `GetBucketTagging`\:
5168
+ # The following operations are related to `GetBucketTagging`:
5169
5169
  #
5170
5170
  # * [PutBucketTagging][1]
5171
5171
  #
@@ -5243,7 +5243,7 @@ module Aws::S3
5243
5243
  # owner must use an authentication device to change the versioning state
5244
5244
  # of the bucket.
5245
5245
  #
5246
- # The following operations are related to `GetBucketVersioning`\:
5246
+ # The following operations are related to `GetBucketVersioning`:
5247
5247
  #
5248
5248
  # * [GetObject][1]
5249
5249
  #
@@ -5317,7 +5317,7 @@ module Aws::S3
5317
5317
  # the website configuration by writing a bucket policy granting them the
5318
5318
  # `S3:GetBucketWebsite` permission.
5319
5319
  #
5320
- # The following operations are related to `DeleteBucketWebsite`\:
5320
+ # The following operations are related to `DeleteBucketWebsite`:
5321
5321
  #
5322
5322
  # * [DeleteBucketWebsite][2]
5323
5323
  #
@@ -5532,7 +5532,7 @@ module Aws::S3
5532
5532
  #
5533
5533
  # For more information about conditional requests, see [RFC 7232][9].
5534
5534
  #
5535
- # The following operations are related to `GetObject`\:
5535
+ # The following operations are related to `GetObject`:
5536
5536
  #
5537
5537
  # * [ListBuckets][10]
5538
5538
  #
@@ -5718,49 +5718,49 @@ module Aws::S3
5718
5718
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
5719
5719
  #
5720
5720
  #
5721
- # @example Example: To retrieve an object
5721
+ # @example Example: To retrieve a byte range of an object
5722
5722
  #
5723
- # # 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.
5724
5725
  #
5725
5726
  # resp = client.get_object({
5726
5727
  # bucket: "examplebucket",
5727
- # key: "HappyFace.jpg",
5728
+ # key: "SampleFile.txt",
5729
+ # range: "bytes=0-9",
5728
5730
  # })
5729
5731
  #
5730
5732
  # resp.to_h outputs the following:
5731
5733
  # {
5732
5734
  # accept_ranges: "bytes",
5733
- # content_length: 3191,
5734
- # content_type: "image/jpeg",
5735
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5736
- # 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"),
5737
5740
  # metadata: {
5738
5741
  # },
5739
- # tag_count: 2,
5740
5742
  # version_id: "null",
5741
5743
  # }
5742
5744
  #
5743
- # @example Example: To retrieve a byte range of an object
5745
+ # @example Example: To retrieve an object
5744
5746
  #
5745
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5746
- # # specific byte range.
5747
+ # # The following example retrieves an object for an S3 bucket.
5747
5748
  #
5748
5749
  # resp = client.get_object({
5749
5750
  # bucket: "examplebucket",
5750
- # key: "SampleFile.txt",
5751
- # range: "bytes=0-9",
5751
+ # key: "HappyFace.jpg",
5752
5752
  # })
5753
5753
  #
5754
5754
  # resp.to_h outputs the following:
5755
5755
  # {
5756
5756
  # accept_ranges: "bytes",
5757
- # content_length: 10,
5758
- # content_range: "bytes 0-9/43",
5759
- # content_type: "text/plain",
5760
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5761
- # 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"),
5762
5761
  # metadata: {
5763
5762
  # },
5763
+ # tag_count: 2,
5764
5764
  # version_id: "null",
5765
5765
  # }
5766
5766
  #
@@ -5891,7 +5891,7 @@ module Aws::S3
5891
5891
  #
5892
5892
  # </note>
5893
5893
  #
5894
- # The following operations are related to `GetObjectAcl`\:
5894
+ # The following operations are related to `GetObjectAcl`:
5895
5895
  #
5896
5896
  # * [GetObject][3]
5897
5897
  #
@@ -6088,7 +6088,7 @@ module Aws::S3
6088
6088
  #
6089
6089
  # * If both of the `If-None-Match` and `If-Modified-Since` headers are
6090
6090
  # present in the request as follows, then Amazon S3 returns the HTTP
6091
- # status code `304 Not Modified`\:
6091
+ # status code `304 Not Modified`:
6092
6092
  #
6093
6093
  # * `If-None-Match` condition evaluates to `false`.
6094
6094
  #
@@ -6114,7 +6114,7 @@ module Aws::S3
6114
6114
  # * If you don't have the `s3:ListBucket` permission, Amazon S3 returns
6115
6115
  # an HTTP status code `403 Forbidden` ("access denied") error.
6116
6116
  #
6117
- # The following actions are related to `GetObjectAttributes`\:
6117
+ # The following actions are related to `GetObjectAttributes`:
6118
6118
  #
6119
6119
  # * [GetObject][4]
6120
6120
  #
@@ -6289,7 +6289,7 @@ module Aws::S3
6289
6289
  #
6290
6290
  # This action is not supported by Amazon S3 on Outposts.
6291
6291
  #
6292
- # The following action is related to `GetObjectLegalHold`\:
6292
+ # The following action is related to `GetObjectLegalHold`:
6293
6293
  #
6294
6294
  # * [GetObjectAttributes][2]
6295
6295
  #
@@ -6372,7 +6372,7 @@ module Aws::S3
6372
6372
  # object placed in the specified bucket. For more information, see
6373
6373
  # [Locking Objects][1].
6374
6374
  #
6375
- # The following action is related to `GetObjectLockConfiguration`\:
6375
+ # The following action is related to `GetObjectLockConfiguration`:
6376
6376
  #
6377
6377
  # * [GetObjectAttributes][2]
6378
6378
  #
@@ -6435,7 +6435,7 @@ module Aws::S3
6435
6435
  #
6436
6436
  # This action is not supported by Amazon S3 on Outposts.
6437
6437
  #
6438
- # The following action is related to `GetObjectRetention`\:
6438
+ # The following action is related to `GetObjectRetention`:
6439
6439
  #
6440
6440
  # * [GetObjectAttributes][2]
6441
6441
  #
@@ -6530,7 +6530,7 @@ module Aws::S3
6530
6530
  # For information about the Amazon S3 object tagging feature, see
6531
6531
  # [Object Tagging][1].
6532
6532
  #
6533
- # The following actions are related to `GetObjectTagging`\:
6533
+ # The following actions are related to `GetObjectTagging`:
6534
6534
  #
6535
6535
  # * [DeleteObjectTagging][2]
6536
6536
  #
@@ -6599,49 +6599,49 @@ module Aws::S3
6599
6599
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array&lt;Types::Tag&gt;
6600
6600
  #
6601
6601
  #
6602
- # @example Example: To retrieve tag set of an object
6602
+ # @example Example: To retrieve tag set of a specific object version
6603
6603
  #
6604
- # # The following example retrieves tag set of an object.
6604
+ # # The following example retrieves tag set of an object. The request specifies object version.
6605
6605
  #
6606
6606
  # resp = client.get_object_tagging({
6607
6607
  # bucket: "examplebucket",
6608
- # key: "HappyFace.jpg",
6608
+ # key: "exampleobject",
6609
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6609
6610
  # })
6610
6611
  #
6611
6612
  # resp.to_h outputs the following:
6612
6613
  # {
6613
6614
  # tag_set: [
6614
6615
  # {
6615
- # key: "Key4",
6616
- # value: "Value4",
6617
- # },
6618
- # {
6619
- # key: "Key3",
6620
- # value: "Value3",
6616
+ # key: "Key1",
6617
+ # value: "Value1",
6621
6618
  # },
6622
6619
  # ],
6623
- # version_id: "null",
6620
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6624
6621
  # }
6625
6622
  #
6626
- # @example Example: To retrieve tag set of a specific object version
6623
+ # @example Example: To retrieve tag set of an object
6627
6624
  #
6628
- # # The following example retrieves tag set of an object. The request specifies object version.
6625
+ # # The following example retrieves tag set of an object.
6629
6626
  #
6630
6627
  # resp = client.get_object_tagging({
6631
6628
  # bucket: "examplebucket",
6632
- # key: "exampleobject",
6633
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6629
+ # key: "HappyFace.jpg",
6634
6630
  # })
6635
6631
  #
6636
6632
  # resp.to_h outputs the following:
6637
6633
  # {
6638
6634
  # tag_set: [
6639
6635
  # {
6640
- # key: "Key1",
6641
- # value: "Value1",
6636
+ # key: "Key4",
6637
+ # value: "Value4",
6638
+ # },
6639
+ # {
6640
+ # key: "Key3",
6641
+ # value: "Value3",
6642
6642
  # },
6643
6643
  # ],
6644
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6644
+ # version_id: "null",
6645
6645
  # }
6646
6646
  #
6647
6647
  # @example Request syntax with placeholder values
@@ -6684,7 +6684,7 @@ module Aws::S3
6684
6684
  #
6685
6685
  # This action is not supported by Amazon S3 on Outposts.
6686
6686
  #
6687
- # The following action is related to `GetObjectTorrent`\:
6687
+ # The following action is related to `GetObjectTorrent`:
6688
6688
  #
6689
6689
  # * [GetObject][2]
6690
6690
  #
@@ -6779,7 +6779,7 @@ module Aws::S3
6779
6779
  # For more information about when Amazon S3 considers a bucket or an
6780
6780
  # object public, see [The Meaning of "Public"][2].
6781
6781
  #
6782
- # The following operations are related to `GetPublicAccessBlock`\:
6782
+ # The following operations are related to `GetPublicAccessBlock`:
6783
6783
  #
6784
6784
  # * [Using Amazon S3 Block Public Access][3]
6785
6785
  #
@@ -7003,7 +7003,7 @@ module Aws::S3
7003
7003
  # * If you don’t have the `s3:ListBucket` permission, Amazon S3 returns
7004
7004
  # an HTTP status code 403 ("access denied") error.
7005
7005
  #
7006
- # The following actions are related to `HeadObject`\:
7006
+ # The following actions are related to `HeadObject`:
7007
7007
  #
7008
7008
  # * [GetObject][5]
7009
7009
  #
@@ -7272,7 +7272,7 @@ module Aws::S3
7272
7272
  # Analytics – Storage Class Analysis][3].
7273
7273
  #
7274
7274
  # The following operations are related to
7275
- # `ListBucketAnalyticsConfigurations`\:
7275
+ # `ListBucketAnalyticsConfigurations`:
7276
7276
  #
7277
7277
  # * [GetBucketAnalyticsConfiguration][4]
7278
7278
  #
@@ -7457,7 +7457,7 @@ module Aws::S3
7457
7457
  # Inventory][3]
7458
7458
  #
7459
7459
  # The following operations are related to
7460
- # `ListBucketInventoryConfigurations`\:
7460
+ # `ListBucketInventoryConfigurations`:
7461
7461
  #
7462
7462
  # * [GetBucketInventoryConfiguration][4]
7463
7463
  #
@@ -7557,7 +7557,7 @@ module Aws::S3
7557
7557
  # request metrics, see [Monitoring Metrics with Amazon CloudWatch][3].
7558
7558
  #
7559
7559
  # The following operations are related to
7560
- # `ListBucketMetricsConfigurations`\:
7560
+ # `ListBucketMetricsConfigurations`:
7561
7561
  #
7562
7562
  # * [PutBucketMetricsConfiguration][4]
7563
7563
  #
@@ -7714,7 +7714,7 @@ module Aws::S3
7714
7714
  # For information on permissions required to use the multipart upload
7715
7715
  # API, see [Multipart Upload and Permissions][2].
7716
7716
  #
7717
- # The following operations are related to `ListMultipartUploads`\:
7717
+ # The following operations are related to `ListMultipartUploads`:
7718
7718
  #
7719
7719
  # * [CreateMultipartUpload][3]
7720
7720
  #
@@ -7834,97 +7834,97 @@ module Aws::S3
7834
7834
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7835
7835
  #
7836
7836
  #
7837
- # @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
7838
7838
  #
7839
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7840
- # # setup of multipart uploads.
7839
+ # # The following example lists in-progress multipart uploads on a specific bucket.
7841
7840
  #
7842
7841
  # resp = client.list_multipart_uploads({
7843
7842
  # bucket: "examplebucket",
7844
- # key_marker: "nextkeyfrompreviousresponse",
7845
- # max_uploads: 2,
7846
- # upload_id_marker: "valuefrompreviousresponse",
7847
7843
  # })
7848
7844
  #
7849
7845
  # resp.to_h outputs the following:
7850
7846
  # {
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: "",
7858
7847
  # uploads: [
7859
7848
  # {
7860
7849
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7861
7850
  # initiator: {
7862
- # display_name: "ownder-display-name",
7851
+ # display_name: "display-name",
7863
7852
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7864
7853
  # },
7865
7854
  # key: "JavaFile",
7866
7855
  # owner: {
7867
- # display_name: "mohanataws",
7868
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7856
+ # display_name: "display-name",
7857
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7869
7858
  # },
7870
7859
  # storage_class: "STANDARD",
7871
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7860
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7872
7861
  # },
7873
7862
  # {
7874
7863
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7875
7864
  # initiator: {
7876
- # display_name: "ownder-display-name",
7865
+ # display_name: "display-name",
7877
7866
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7878
7867
  # },
7879
7868
  # key: "JavaFile",
7880
7869
  # owner: {
7881
- # display_name: "ownder-display-name",
7870
+ # display_name: "display-name",
7882
7871
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7883
7872
  # },
7884
7873
  # storage_class: "STANDARD",
7885
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7874
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7886
7875
  # },
7887
7876
  # ],
7888
7877
  # }
7889
7878
  #
7890
- # @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
7891
7880
  #
7892
- # # 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.
7893
7883
  #
7894
7884
  # resp = client.list_multipart_uploads({
7895
7885
  # bucket: "examplebucket",
7886
+ # key_marker: "nextkeyfrompreviousresponse",
7887
+ # max_uploads: 2,
7888
+ # upload_id_marker: "valuefrompreviousresponse",
7896
7889
  # })
7897
7890
  #
7898
7891
  # resp.to_h outputs the following:
7899
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: "",
7900
7900
  # uploads: [
7901
7901
  # {
7902
7902
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7903
7903
  # initiator: {
7904
- # display_name: "display-name",
7904
+ # display_name: "ownder-display-name",
7905
7905
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7906
7906
  # },
7907
7907
  # key: "JavaFile",
7908
7908
  # owner: {
7909
- # display_name: "display-name",
7910
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7909
+ # display_name: "mohanataws",
7910
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7911
7911
  # },
7912
7912
  # storage_class: "STANDARD",
7913
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7913
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7914
7914
  # },
7915
7915
  # {
7916
7916
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7917
7917
  # initiator: {
7918
- # display_name: "display-name",
7918
+ # display_name: "ownder-display-name",
7919
7919
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7920
7920
  # },
7921
7921
  # key: "JavaFile",
7922
7922
  # owner: {
7923
- # display_name: "display-name",
7923
+ # display_name: "ownder-display-name",
7924
7924
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7925
7925
  # },
7926
7926
  # storage_class: "STANDARD",
7927
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7927
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7928
7928
  # },
7929
7929
  # ],
7930
7930
  # }
@@ -7993,7 +7993,7 @@ module Aws::S3
7993
7993
  #
7994
7994
  # This action is not supported by Amazon S3 on Outposts.
7995
7995
  #
7996
- # The following operations are related to `ListObjectVersions`\:
7996
+ # The following operations are related to `ListObjectVersions`:
7997
7997
  #
7998
7998
  # * [ListObjectsV2][1]
7999
7999
  #
@@ -8184,7 +8184,7 @@ module Aws::S3
8184
8184
  # version, [ListObjectsV2][1], when developing applications. For
8185
8185
  # backward compatibility, Amazon S3 continues to support `ListObjects`.
8186
8186
  #
8187
- # The following operations are related to `ListObjects`\:
8187
+ # The following operations are related to `ListObjects`:
8188
8188
  #
8189
8189
  # * [ListObjectsV2][1]
8190
8190
  #
@@ -8387,7 +8387,7 @@ module Aws::S3
8387
8387
  #
8388
8388
  # To get a list of your buckets, see [ListBuckets][5].
8389
8389
  #
8390
- # The following operations are related to `ListObjectsV2`\:
8390
+ # The following operations are related to `ListObjectsV2`:
8391
8391
  #
8392
8392
  # * [GetObject][6]
8393
8393
  #
@@ -8596,7 +8596,7 @@ module Aws::S3
8596
8596
  # For information on permissions required to use the multipart upload
8597
8597
  # API, see [Multipart Upload and Permissions][3].
8598
8598
  #
8599
- # The following operations are related to `ListParts`\:
8599
+ # The following operations are related to `ListParts`:
8600
8600
  #
8601
8601
  # * [CreateMultipartUpload][1]
8602
8602
  #
@@ -8848,7 +8848,7 @@ module Aws::S3
8848
8848
  # Acceleration][4].
8849
8849
  #
8850
8850
  # The following operations are related to
8851
- # `PutBucketAccelerateConfiguration`\:
8851
+ # `PutBucketAccelerateConfiguration`:
8852
8852
  #
8853
8853
  # * [GetBucketAccelerateConfiguration][3]
8854
8854
  #
@@ -10090,7 +10090,7 @@ module Aws::S3
10090
10090
  # For more information about permissions, see [Managing Access
10091
10091
  # Permissions to Your Amazon S3 Resources][5].
10092
10092
  #
10093
- # The following are related to `PutBucketLifecycleConfiguration`\:
10093
+ # The following are related to `PutBucketLifecycleConfiguration`:
10094
10094
  #
10095
10095
  # * [Examples of Lifecycle Configuration][6]
10096
10096
  #
@@ -10295,7 +10295,7 @@ module Aws::S3
10295
10295
  # For more information about returning the logging status of a bucket,
10296
10296
  # see [GetBucketLogging][4].
10297
10297
  #
10298
- # The following operations are related to `PutBucketLogging`\:
10298
+ # The following operations are related to `PutBucketLogging`:
10299
10299
  #
10300
10300
  # * [PutObject][5]
10301
10301
  #
@@ -10429,7 +10429,7 @@ module Aws::S3
10429
10429
  # [Monitoring Metrics with Amazon CloudWatch][3].
10430
10430
  #
10431
10431
  # The following operations are related to
10432
- # `PutBucketMetricsConfiguration`\:
10432
+ # `PutBucketMetricsConfiguration`:
10433
10433
  #
10434
10434
  # * [DeleteBucketMetricsConfiguration][4]
10435
10435
  #
@@ -10651,7 +10651,7 @@ module Aws::S3
10651
10651
  # ID of the test notification sent to the topic.
10652
10652
  #
10653
10653
  # The following action is related to
10654
- # `PutBucketNotificationConfiguration`\:
10654
+ # `PutBucketNotificationConfiguration`:
10655
10655
  #
10656
10656
  # * [GetBucketNotificationConfiguration][3]
10657
10657
  #
@@ -10781,7 +10781,7 @@ module Aws::S3
10781
10781
  # For information about Amazon S3 Object Ownership, see [Using object
10782
10782
  # ownership][2].
10783
10783
  #
10784
- # The following operations are related to `PutBucketOwnershipControls`\:
10784
+ # The following operations are related to `PutBucketOwnershipControls`:
10785
10785
  #
10786
10786
  # * GetBucketOwnershipControls
10787
10787
  #
@@ -10856,7 +10856,7 @@ module Aws::S3
10856
10856
  #
10857
10857
  # For more information, see [Bucket policy examples][1].
10858
10858
  #
10859
- # The following operations are related to `PutBucketPolicy`\:
10859
+ # The following operations are related to `PutBucketPolicy`:
10860
10860
  #
10861
10861
  # * [CreateBucket][2]
10862
10862
  #
@@ -10999,7 +10999,7 @@ module Aws::S3
10999
10999
  #
11000
11000
  # </note>
11001
11001
  #
11002
- # The following operations are related to `PutBucketReplication`\:
11002
+ # The following operations are related to `PutBucketReplication`:
11003
11003
  #
11004
11004
  # * [GetBucketReplication][9]
11005
11005
  #
@@ -11175,7 +11175,7 @@ module Aws::S3
11175
11175
  # requesting the download will be charged for the download. For more
11176
11176
  # information, see [Requester Pays Buckets][1].
11177
11177
  #
11178
- # The following operations are related to `PutBucketRequestPayment`\:
11178
+ # The following operations are related to `PutBucketRequestPayment`:
11179
11179
  #
11180
11180
  # * [CreateBucket][2]
11181
11181
  #
@@ -11320,7 +11320,7 @@ module Aws::S3
11320
11320
  #
11321
11321
  # ^
11322
11322
  #
11323
- # The following operations are related to `PutBucketTagging`\:
11323
+ # The following operations are related to `PutBucketTagging`:
11324
11324
  #
11325
11325
  # * [GetBucketTagging][7]
11326
11326
  #
@@ -12180,22 +12180,6 @@ module Aws::S3
12180
12180
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
12181
12181
  #
12182
12182
  #
12183
- # @example Example: To create an object.
12184
- #
12185
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
12186
- #
12187
- # resp = client.put_object({
12188
- # body: "filetoupload",
12189
- # bucket: "examplebucket",
12190
- # key: "objectkey",
12191
- # })
12192
- #
12193
- # resp.to_h outputs the following:
12194
- # {
12195
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12196
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12197
- # }
12198
- #
12199
12183
  # @example Example: To upload an object
12200
12184
  #
12201
12185
  # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
@@ -12234,42 +12218,40 @@ module Aws::S3
12234
12218
  # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12235
12219
  # }
12236
12220
  #
12237
- # @example Example: To upload an object and specify optional tags
12221
+ # @example Example: To upload an object (specify optional headers)
12238
12222
  #
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.
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.
12241
12225
  #
12242
12226
  # resp = client.put_object({
12243
- # body: "c:\\HappyFace.jpg",
12227
+ # body: "HappyFace.jpg",
12244
12228
  # bucket: "examplebucket",
12245
12229
  # key: "HappyFace.jpg",
12246
- # tagging: "key1=value1&key2=value2",
12230
+ # server_side_encryption: "AES256",
12231
+ # storage_class: "STANDARD_IA",
12247
12232
  # })
12248
12233
  #
12249
12234
  # resp.to_h outputs the following:
12250
12235
  # {
12251
12236
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12252
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12237
+ # server_side_encryption: "AES256",
12238
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12253
12239
  # }
12254
12240
  #
12255
- # @example Example: To upload an object (specify optional headers)
12241
+ # @example Example: To create an object.
12256
12242
  #
12257
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12258
- # # 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.
12259
12244
  #
12260
12245
  # resp = client.put_object({
12261
- # body: "HappyFace.jpg",
12246
+ # body: "filetoupload",
12262
12247
  # bucket: "examplebucket",
12263
- # key: "HappyFace.jpg",
12264
- # server_side_encryption: "AES256",
12265
- # storage_class: "STANDARD_IA",
12248
+ # key: "objectkey",
12266
12249
  # })
12267
12250
  #
12268
12251
  # resp.to_h outputs the following:
12269
12252
  # {
12270
12253
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12271
- # server_side_encryption: "AES256",
12272
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12254
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12273
12255
  # }
12274
12256
  #
12275
12257
  # @example Example: To upload an object and specify server-side encryption and object tags
@@ -12292,6 +12274,24 @@ module Aws::S3
12292
12274
  # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12293
12275
  # }
12294
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
+ #
12295
12295
  # @example Example: To upload an object and specify canned ACL.
12296
12296
  #
12297
12297
  # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
@@ -13890,7 +13890,7 @@ module Aws::S3
13890
13890
  # The `SelectObjectContent` action does not support the following
13891
13891
  # `GetObject` functionality. For more information, see [GetObject][5].
13892
13892
  #
13893
- # * `Range`\: Although you can specify a scan range for an Amazon S3
13893
+ # * `Range`: Although you can specify a scan range for an Amazon S3
13894
13894
  # Select request (see [SelectObjectContentRequest - ScanRange][9] in
13895
13895
  # the request parameters), you cannot specify the range of bytes of an
13896
13896
  # object to return.
@@ -14608,7 +14608,7 @@ module Aws::S3
14608
14608
  # Note the following additional considerations about the request headers
14609
14609
  # `x-amz-copy-source-if-match`, `x-amz-copy-source-if-none-match`,
14610
14610
  # `x-amz-copy-source-if-unmodified-since`, and
14611
- # `x-amz-copy-source-if-modified-since`\:
14611
+ # `x-amz-copy-source-if-modified-since`:
14612
14612
  #
14613
14613
  #
14614
14614
  #
@@ -14726,7 +14726,7 @@ module Aws::S3
14726
14726
  # @option params [required, String] :copy_source
14727
14727
  # Specifies the source object for the copy operation. You specify the
14728
14728
  # value in one of two formats, depending on whether you want to access
14729
- # the source object through an [access point][1]\:
14729
+ # the source object through an [access point][1]:
14730
14730
  #
14731
14731
  # * For objects not accessed through an access point, specify the name
14732
14732
  # of the source bucket and key of the source object, separated by a
@@ -14866,45 +14866,45 @@ module Aws::S3
14866
14866
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
14867
14867
  #
14868
14868
  #
14869
- # @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
14870
14870
  #
14871
- # # 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.
14872
14873
  #
14873
14874
  # resp = client.upload_part_copy({
14874
14875
  # bucket: "examplebucket",
14875
14876
  # copy_source: "/bucketname/sourceobjectkey",
14877
+ # copy_source_range: "bytes=1-100000",
14876
14878
  # key: "examplelargeobject",
14877
- # part_number: 1,
14879
+ # part_number: 2,
14878
14880
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
14879
14881
  # })
14880
14882
  #
14881
14883
  # resp.to_h outputs the following:
14882
14884
  # {
14883
14885
  # copy_part_result: {
14884
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
14885
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
14886
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
14887
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
14886
14888
  # },
14887
14889
  # }
14888
14890
  #
14889
- # @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
14890
14892
  #
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.
14893
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
14893
14894
  #
14894
14895
  # resp = client.upload_part_copy({
14895
14896
  # bucket: "examplebucket",
14896
14897
  # copy_source: "/bucketname/sourceobjectkey",
14897
- # copy_source_range: "bytes=1-100000",
14898
14898
  # key: "examplelargeobject",
14899
- # part_number: 2,
14899
+ # part_number: 1,
14900
14900
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
14901
14901
  # })
14902
14902
  #
14903
14903
  # resp.to_h outputs the following:
14904
14904
  # {
14905
14905
  # copy_part_result: {
14906
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
14907
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
14906
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
14907
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
14908
14908
  # },
14909
14909
  # }
14910
14910
  #
@@ -15354,7 +15354,7 @@ module Aws::S3
15354
15354
  params: params,
15355
15355
  config: config)
15356
15356
  context[:gem_name] = 'aws-sdk-s3'
15357
- context[:gem_version] = '1.118.0'
15357
+ context[:gem_version] = '1.119.2'
15358
15358
  Seahorse::Client::Request.new(handlers, context)
15359
15359
  end
15360
15360