aws-sdk-s3 1.133.0 → 1.134.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: 04f11cfde483787571492064565bb589b16323f4bb7f33f5a7507b993f6cead3
4
- data.tar.gz: 1dd900a34a20b97fb82c41407ca12c40d33397fb14e29678e0f7e3b0a1e5b77c
3
+ metadata.gz: 4dabfe3971a40ef24074bc1a9597c0e12306eb0e28f2af29e7040e70db38eed3
4
+ data.tar.gz: 9faa89158a73a21aa8918581b110791b1c897be0f6598bee61e1848b7a3d1d42
5
5
  SHA512:
6
- metadata.gz: 745b68d37b0845463f3c2a1cfdb29e8833bd0d723e31a1071c1f3936f095e4c735c909573c8df49f077b3f56dfa13f9e45552c68d7e5a5c0718b67d3f08418e2
7
- data.tar.gz: f995dde0e5628863ab664b36a4db27a23e8d68827aab268fecacfa217a104f1bb3cfd67e84bf6729e52544d9015fd3c64765a53fe0758647e5904c1f104235e1
6
+ metadata.gz: '0486d1ec2aa3211bd9d6c31ae42c3421be4fdd10d78136f0e76bda94efd7d8f93f52a93670f466629ea7f236ac2267895a78de5ac2a05cb4932de0c562cddfaf'
7
+ data.tar.gz: 0a5d34bfda22ee9f2ba916f104303c8ccba03c2b019a020f74b77d2d207814ab95b3a2d5c216f34107bb82f1b705d87d67cbfeb83cb9d0c2a3e69f4b9109d849
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.134.0 (2023-08-24)
5
+ ------------------
6
+
7
+ * Feature - Updates to endpoint ruleset tests to address Smithy validation issues.
8
+
4
9
  1.133.0 (2023-08-22)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.133.0
1
+ 1.134.0
@@ -1697,33 +1697,33 @@ module Aws::S3
1697
1697
  # * {Types::CreateBucketOutput#location #location} => String
1698
1698
  #
1699
1699
  #
1700
- # @example Example: To create a bucket in a specific region
1700
+ # @example Example: To create a bucket
1701
1701
  #
1702
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1702
+ # # The following example creates a bucket.
1703
1703
  #
1704
1704
  # resp = client.create_bucket({
1705
1705
  # bucket: "examplebucket",
1706
- # create_bucket_configuration: {
1707
- # location_constraint: "eu-west-1",
1708
- # },
1709
1706
  # })
1710
1707
  #
1711
1708
  # resp.to_h outputs the following:
1712
1709
  # {
1713
- # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1710
+ # location: "/examplebucket",
1714
1711
  # }
1715
1712
  #
1716
- # @example Example: To create a bucket
1713
+ # @example Example: To create a bucket in a specific region
1717
1714
  #
1718
- # # The following example creates a bucket.
1715
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1719
1716
  #
1720
1717
  # resp = client.create_bucket({
1721
1718
  # bucket: "examplebucket",
1719
+ # create_bucket_configuration: {
1720
+ # location_constraint: "eu-west-1",
1721
+ # },
1722
1722
  # })
1723
1723
  #
1724
1724
  # resp.to_h outputs the following:
1725
1725
  # {
1726
- # location: "/examplebucket",
1726
+ # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1727
1727
  # }
1728
1728
  #
1729
1729
  # @example Request syntax with placeholder values
@@ -3175,15 +3175,6 @@ module Aws::S3
3175
3175
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
3176
3176
  #
3177
3177
  #
3178
- # @example Example: To delete an object (from a non-versioned bucket)
3179
- #
3180
- # # The following example deletes an object from a non-versioned bucket.
3181
- #
3182
- # resp = client.delete_object({
3183
- # bucket: "ExampleBucket",
3184
- # key: "HappyFace.jpg",
3185
- # })
3186
- #
3187
3178
  # @example Example: To delete an object
3188
3179
  #
3189
3180
  # # The following example deletes an object from an S3 bucket.
@@ -3197,6 +3188,15 @@ module Aws::S3
3197
3188
  # {
3198
3189
  # }
3199
3190
  #
3191
+ # @example Example: To delete an object (from a non-versioned bucket)
3192
+ #
3193
+ # # The following example deletes an object from a non-versioned bucket.
3194
+ #
3195
+ # resp = client.delete_object({
3196
+ # bucket: "ExampleBucket",
3197
+ # key: "HappyFace.jpg",
3198
+ # })
3199
+ #
3200
3200
  # @example Request syntax with placeholder values
3201
3201
  #
3202
3202
  # resp = client.delete_object({
@@ -3288,35 +3288,35 @@ module Aws::S3
3288
3288
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
3289
3289
  #
3290
3290
  #
3291
- # @example Example: To remove tag set from an object
3291
+ # @example Example: To remove tag set from an object version
3292
3292
  #
3293
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3294
- # # operation removes tag set from the latest object version.
3293
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
3294
+ # # object key and object version.
3295
3295
  #
3296
3296
  # resp = client.delete_object_tagging({
3297
3297
  # bucket: "examplebucket",
3298
3298
  # key: "HappyFace.jpg",
3299
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3299
3300
  # })
3300
3301
  #
3301
3302
  # resp.to_h outputs the following:
3302
3303
  # {
3303
- # version_id: "null",
3304
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3304
3305
  # }
3305
3306
  #
3306
- # @example Example: To remove tag set from an object version
3307
+ # @example Example: To remove tag set from an object
3307
3308
  #
3308
- # # The following example removes tag set associated with the specified object version. The request specifies both the
3309
- # # object key and object version.
3309
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3310
+ # # operation removes tag set from the latest object version.
3310
3311
  #
3311
3312
  # resp = client.delete_object_tagging({
3312
3313
  # bucket: "examplebucket",
3313
3314
  # key: "HappyFace.jpg",
3314
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3315
3315
  # })
3316
3316
  #
3317
3317
  # resp.to_h outputs the following:
3318
3318
  # {
3319
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3319
+ # version_id: "null",
3320
3320
  # }
3321
3321
  #
3322
3322
  # @example Request syntax with placeholder values
@@ -5930,49 +5930,49 @@ module Aws::S3
5930
5930
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
5931
5931
  #
5932
5932
  #
5933
- # @example Example: To retrieve a byte range of an object
5933
+ # @example Example: To retrieve an object
5934
5934
  #
5935
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5936
- # # specific byte range.
5935
+ # # The following example retrieves an object for an S3 bucket.
5937
5936
  #
5938
5937
  # resp = client.get_object({
5939
5938
  # bucket: "examplebucket",
5940
- # key: "SampleFile.txt",
5941
- # range: "bytes=0-9",
5939
+ # key: "HappyFace.jpg",
5942
5940
  # })
5943
5941
  #
5944
5942
  # resp.to_h outputs the following:
5945
5943
  # {
5946
5944
  # accept_ranges: "bytes",
5947
- # content_length: 10,
5948
- # content_range: "bytes 0-9/43",
5949
- # content_type: "text/plain",
5950
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5951
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5945
+ # content_length: 3191,
5946
+ # content_type: "image/jpeg",
5947
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5948
+ # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5952
5949
  # metadata: {
5953
5950
  # },
5951
+ # tag_count: 2,
5954
5952
  # version_id: "null",
5955
5953
  # }
5956
5954
  #
5957
- # @example Example: To retrieve an object
5955
+ # @example Example: To retrieve a byte range of an object
5958
5956
  #
5959
- # # The following example retrieves an object for an S3 bucket.
5957
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5958
+ # # specific byte range.
5960
5959
  #
5961
5960
  # resp = client.get_object({
5962
5961
  # bucket: "examplebucket",
5963
- # key: "HappyFace.jpg",
5962
+ # key: "SampleFile.txt",
5963
+ # range: "bytes=0-9",
5964
5964
  # })
5965
5965
  #
5966
5966
  # resp.to_h outputs the following:
5967
5967
  # {
5968
5968
  # accept_ranges: "bytes",
5969
- # content_length: 3191,
5970
- # content_type: "image/jpeg",
5971
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5972
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5969
+ # content_length: 10,
5970
+ # content_range: "bytes 0-9/43",
5971
+ # content_type: "text/plain",
5972
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5973
+ # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5973
5974
  # metadata: {
5974
5975
  # },
5975
- # tag_count: 2,
5976
5976
  # version_id: "null",
5977
5977
  # }
5978
5978
  #
@@ -8080,97 +8080,97 @@ module Aws::S3
8080
8080
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
8081
8081
  #
8082
8082
  #
8083
- # @example Example: To list in-progress multipart uploads on a bucket
8083
+ # @example Example: List next set of multipart uploads when previous result is truncated
8084
8084
  #
8085
- # # The following example lists in-progress multipart uploads on a specific bucket.
8085
+ # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
8086
+ # # setup of multipart uploads.
8086
8087
  #
8087
8088
  # resp = client.list_multipart_uploads({
8088
8089
  # bucket: "examplebucket",
8090
+ # key_marker: "nextkeyfrompreviousresponse",
8091
+ # max_uploads: 2,
8092
+ # upload_id_marker: "valuefrompreviousresponse",
8089
8093
  # })
8090
8094
  #
8091
8095
  # resp.to_h outputs the following:
8092
8096
  # {
8097
+ # bucket: "acl1",
8098
+ # is_truncated: true,
8099
+ # key_marker: "",
8100
+ # max_uploads: 2,
8101
+ # next_key_marker: "someobjectkey",
8102
+ # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
8103
+ # upload_id_marker: "",
8093
8104
  # uploads: [
8094
8105
  # {
8095
8106
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
8096
8107
  # initiator: {
8097
- # display_name: "display-name",
8108
+ # display_name: "ownder-display-name",
8098
8109
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8099
8110
  # },
8100
8111
  # key: "JavaFile",
8101
8112
  # owner: {
8102
- # display_name: "display-name",
8103
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8113
+ # display_name: "mohanataws",
8114
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8104
8115
  # },
8105
8116
  # storage_class: "STANDARD",
8106
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
8117
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
8107
8118
  # },
8108
8119
  # {
8109
8120
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
8110
8121
  # initiator: {
8111
- # display_name: "display-name",
8122
+ # display_name: "ownder-display-name",
8112
8123
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8113
8124
  # },
8114
8125
  # key: "JavaFile",
8115
8126
  # owner: {
8116
- # display_name: "display-name",
8127
+ # display_name: "ownder-display-name",
8117
8128
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8118
8129
  # },
8119
8130
  # storage_class: "STANDARD",
8120
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
8131
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
8121
8132
  # },
8122
8133
  # ],
8123
8134
  # }
8124
8135
  #
8125
- # @example Example: List next set of multipart uploads when previous result is truncated
8136
+ # @example Example: To list in-progress multipart uploads on a bucket
8126
8137
  #
8127
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
8128
- # # setup of multipart uploads.
8138
+ # # The following example lists in-progress multipart uploads on a specific bucket.
8129
8139
  #
8130
8140
  # resp = client.list_multipart_uploads({
8131
8141
  # bucket: "examplebucket",
8132
- # key_marker: "nextkeyfrompreviousresponse",
8133
- # max_uploads: 2,
8134
- # upload_id_marker: "valuefrompreviousresponse",
8135
8142
  # })
8136
8143
  #
8137
8144
  # resp.to_h outputs the following:
8138
8145
  # {
8139
- # bucket: "acl1",
8140
- # is_truncated: true,
8141
- # key_marker: "",
8142
- # max_uploads: 2,
8143
- # next_key_marker: "someobjectkey",
8144
- # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
8145
- # upload_id_marker: "",
8146
8146
  # uploads: [
8147
8147
  # {
8148
8148
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
8149
8149
  # initiator: {
8150
- # display_name: "ownder-display-name",
8150
+ # display_name: "display-name",
8151
8151
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8152
8152
  # },
8153
8153
  # key: "JavaFile",
8154
8154
  # owner: {
8155
- # display_name: "mohanataws",
8156
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8155
+ # display_name: "display-name",
8156
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8157
8157
  # },
8158
8158
  # storage_class: "STANDARD",
8159
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
8159
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
8160
8160
  # },
8161
8161
  # {
8162
8162
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
8163
8163
  # initiator: {
8164
- # display_name: "ownder-display-name",
8164
+ # display_name: "display-name",
8165
8165
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8166
8166
  # },
8167
8167
  # key: "JavaFile",
8168
8168
  # owner: {
8169
- # display_name: "ownder-display-name",
8169
+ # display_name: "display-name",
8170
8170
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
8171
8171
  # },
8172
8172
  # storage_class: "STANDARD",
8173
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
8173
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
8174
8174
  # },
8175
8175
  # ],
8176
8176
  # }
@@ -12495,62 +12495,62 @@ module Aws::S3
12495
12495
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
12496
12496
  #
12497
12497
  #
12498
- # @example Example: To upload an object
12498
+ # @example Example: To upload an object (specify optional headers)
12499
12499
  #
12500
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
12501
- # # syntax. S3 returns VersionId of the newly created object.
12500
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12501
+ # # storage class and use server-side encryption.
12502
12502
  #
12503
12503
  # resp = client.put_object({
12504
12504
  # body: "HappyFace.jpg",
12505
12505
  # bucket: "examplebucket",
12506
12506
  # key: "HappyFace.jpg",
12507
+ # server_side_encryption: "AES256",
12508
+ # storage_class: "STANDARD_IA",
12507
12509
  # })
12508
12510
  #
12509
12511
  # resp.to_h outputs the following:
12510
12512
  # {
12511
12513
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12512
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
12514
+ # server_side_encryption: "AES256",
12515
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12513
12516
  # }
12514
12517
  #
12515
- # @example Example: To upload object and specify user-defined metadata
12518
+ # @example Example: To upload an object and specify optional tags
12516
12519
  #
12517
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12518
- # # enabled, S3 returns version ID in response.
12520
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12521
+ # # S3 returns version ID of the newly created object.
12519
12522
  #
12520
12523
  # resp = client.put_object({
12521
- # body: "filetoupload",
12524
+ # body: "c:\\HappyFace.jpg",
12522
12525
  # bucket: "examplebucket",
12523
- # key: "exampleobject",
12524
- # metadata: {
12525
- # "metadata1" => "value1",
12526
- # "metadata2" => "value2",
12527
- # },
12526
+ # key: "HappyFace.jpg",
12527
+ # tagging: "key1=value1&key2=value2",
12528
12528
  # })
12529
12529
  #
12530
12530
  # resp.to_h outputs the following:
12531
12531
  # {
12532
12532
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12533
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12533
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12534
12534
  # }
12535
12535
  #
12536
- # @example Example: To upload an object (specify optional headers)
12536
+ # @example Example: To upload an object and specify server-side encryption and object tags
12537
12537
  #
12538
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12539
- # # storage class and use server-side encryption.
12538
+ # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
12539
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12540
12540
  #
12541
12541
  # resp = client.put_object({
12542
- # body: "HappyFace.jpg",
12542
+ # body: "filetoupload",
12543
12543
  # bucket: "examplebucket",
12544
- # key: "HappyFace.jpg",
12544
+ # key: "exampleobject",
12545
12545
  # server_side_encryption: "AES256",
12546
- # storage_class: "STANDARD_IA",
12546
+ # tagging: "key1=value1&key2=value2",
12547
12547
  # })
12548
12548
  #
12549
12549
  # resp.to_h outputs the following:
12550
12550
  # {
12551
12551
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12552
12552
  # server_side_encryption: "AES256",
12553
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12553
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12554
12554
  # }
12555
12555
  #
12556
12556
  # @example Example: To create an object.
@@ -12569,60 +12569,60 @@ module Aws::S3
12569
12569
  # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12570
12570
  # }
12571
12571
  #
12572
- # @example Example: To upload an object and specify server-side encryption and object tags
12572
+ # @example Example: To upload an object
12573
12573
  #
12574
- # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
12575
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12574
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
12575
+ # # syntax. S3 returns VersionId of the newly created object.
12576
12576
  #
12577
12577
  # resp = client.put_object({
12578
- # body: "filetoupload",
12578
+ # body: "HappyFace.jpg",
12579
12579
  # bucket: "examplebucket",
12580
- # key: "exampleobject",
12581
- # server_side_encryption: "AES256",
12582
- # tagging: "key1=value1&key2=value2",
12580
+ # key: "HappyFace.jpg",
12583
12581
  # })
12584
12582
  #
12585
12583
  # resp.to_h outputs the following:
12586
12584
  # {
12587
12585
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12588
- # server_side_encryption: "AES256",
12589
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12586
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
12590
12587
  # }
12591
12588
  #
12592
- # @example Example: To upload an object and specify optional tags
12589
+ # @example Example: To upload an object and specify canned ACL.
12593
12590
  #
12594
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12595
- # # S3 returns version ID of the newly created object.
12591
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
12592
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
12596
12593
  #
12597
12594
  # resp = client.put_object({
12598
- # body: "c:\\HappyFace.jpg",
12595
+ # acl: "authenticated-read",
12596
+ # body: "filetoupload",
12599
12597
  # bucket: "examplebucket",
12600
- # key: "HappyFace.jpg",
12601
- # tagging: "key1=value1&key2=value2",
12598
+ # key: "exampleobject",
12602
12599
  # })
12603
12600
  #
12604
12601
  # resp.to_h outputs the following:
12605
12602
  # {
12606
12603
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12607
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12604
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
12608
12605
  # }
12609
12606
  #
12610
- # @example Example: To upload an object and specify canned ACL.
12607
+ # @example Example: To upload object and specify user-defined metadata
12611
12608
  #
12612
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
12613
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
12609
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12610
+ # # enabled, S3 returns version ID in response.
12614
12611
  #
12615
12612
  # resp = client.put_object({
12616
- # acl: "authenticated-read",
12617
12613
  # body: "filetoupload",
12618
12614
  # bucket: "examplebucket",
12619
12615
  # key: "exampleobject",
12616
+ # metadata: {
12617
+ # "metadata1" => "value1",
12618
+ # "metadata2" => "value2",
12619
+ # },
12620
12620
  # })
12621
12621
  #
12622
12622
  # resp.to_h outputs the following:
12623
12623
  # {
12624
12624
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12625
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
12625
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12626
12626
  # }
12627
12627
  #
12628
12628
  # @example Streaming a file from disk
@@ -15653,7 +15653,7 @@ module Aws::S3
15653
15653
  params: params,
15654
15654
  config: config)
15655
15655
  context[:gem_name] = 'aws-sdk-s3'
15656
- context[:gem_version] = '1.133.0'
15656
+ context[:gem_version] = '1.134.0'
15657
15657
  Seahorse::Client::Request.new(handlers, context)
15658
15658
  end
15659
15659
 
data/lib/aws-sdk-s3.rb CHANGED
@@ -73,6 +73,6 @@ require_relative 'aws-sdk-s3/event_streams'
73
73
  # @!group service
74
74
  module Aws::S3
75
75
 
76
- GEM_VERSION = '1.133.0'
76
+ GEM_VERSION = '1.134.0'
77
77
 
78
78
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.133.0
4
+ version: 1.134.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-22 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms