aws-sdk-s3 1.122.0 → 1.123.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +30 -10
  5. data/lib/aws-sdk-s3/bucket_acl.rb +9 -3
  6. data/lib/aws-sdk-s3/bucket_cors.rb +12 -4
  7. data/lib/aws-sdk-s3/bucket_lifecycle.rb +12 -4
  8. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +12 -4
  9. data/lib/aws-sdk-s3/bucket_logging.rb +9 -3
  10. data/lib/aws-sdk-s3/bucket_notification.rb +9 -3
  11. data/lib/aws-sdk-s3/bucket_policy.rb +12 -4
  12. data/lib/aws-sdk-s3/bucket_request_payment.rb +9 -3
  13. data/lib/aws-sdk-s3/bucket_tagging.rb +12 -4
  14. data/lib/aws-sdk-s3/bucket_versioning.rb +15 -5
  15. data/lib/aws-sdk-s3/bucket_website.rb +12 -4
  16. data/lib/aws-sdk-s3/client.rb +6 -1
  17. data/lib/aws-sdk-s3/customizations/bucket.rb +3 -1
  18. data/lib/aws-sdk-s3/customizations/object.rb +28 -18
  19. data/lib/aws-sdk-s3/encryption/client.rb +6 -2
  20. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +13 -9
  21. data/lib/aws-sdk-s3/encryptionV2/client.rb +6 -2
  22. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +10 -6
  23. data/lib/aws-sdk-s3/file_downloader.rb +28 -24
  24. data/lib/aws-sdk-s3/file_uploader.rb +8 -6
  25. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +5 -3
  26. data/lib/aws-sdk-s3/multipart_upload.rb +12 -4
  27. data/lib/aws-sdk-s3/multipart_upload_part.rb +9 -3
  28. data/lib/aws-sdk-s3/object.rb +36 -12
  29. data/lib/aws-sdk-s3/object_acl.rb +9 -3
  30. data/lib/aws-sdk-s3/object_copier.rb +7 -5
  31. data/lib/aws-sdk-s3/object_summary.rb +30 -10
  32. data/lib/aws-sdk-s3/object_version.rb +15 -5
  33. data/lib/aws-sdk-s3/resource.rb +6 -2
  34. data/lib/aws-sdk-s3.rb +1 -1
  35. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 577650faab47990cace47684bf3c205a823d7e7ca7bdc97d7e5bb96cf267cdad
4
- data.tar.gz: 2e04bf1db9e56bd2e8c5950e1c747ae8a4e8f8fd0b5426d083f93555f6733b36
3
+ metadata.gz: 18c5a3063c80c67d11fcb593d262d3eb15b88edf2c25abdaaff2f12c57620274
4
+ data.tar.gz: b5a6e05f048778f72ca6f34947b4e7b4ed318a447d271764df129dc9e7bcdda3
5
5
  SHA512:
6
- metadata.gz: 2263d1d14adbf28467b2c0b412408cdd567fdb08a9831985b3ffa32897eb7ff0e4b2b8b7063949161bd7fd5e13528427e29b1995b07a39cb857171063daee50b
7
- data.tar.gz: fda8902905d8e65b464e1f56fd87a79624a3296379fe33e18a3b6bd71914c636f77b0c27a63b81c3b517f6711c9943aed67e975be7bf13b5204c4c8e164eea8a
6
+ metadata.gz: f09b9adb0fcb1c14e974c482737bce5017377c9b7771f61e3330681a1094a42055edc2727f934e70d1097474163cc98bc2042a2a6880135c2bf9ac97ba5bb88f
7
+ data.tar.gz: c702479639bb64d638874d05477aa34b3581f3560f573ebd5acaea3d5e272bafd27ba3a491260ddb6697b450a5efaaf240c6699d2c87072b4ccc2f75b6ab00dc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.123.1 (2023-06-02)
5
+ ------------------
6
+
7
+ * Issue - Fix multipart `download_file` so that it does not download bytes out of range (#2859).
8
+
9
+ 1.123.0 (2023-05-31)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.122.0 (2023-05-04)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.122.0
1
+ 1.123.1
@@ -95,7 +95,9 @@ module Aws::S3
95
95
  options, params = separate_params_and_options(options)
96
96
  waiter = Waiters::BucketExists.new(options)
97
97
  yield_waiter_and_warn(waiter, &block) if block_given?
98
- waiter.wait(params.merge(bucket: @name))
98
+ Aws::Plugins::UserAgent.feature('resource') do
99
+ waiter.wait(params.merge(bucket: @name))
100
+ end
99
101
  Bucket.new({
100
102
  name: @name,
101
103
  client: @client
@@ -112,7 +114,9 @@ module Aws::S3
112
114
  options, params = separate_params_and_options(options)
113
115
  waiter = Waiters::BucketNotExists.new(options)
114
116
  yield_waiter_and_warn(waiter, &block) if block_given?
115
- waiter.wait(params.merge(bucket: @name))
117
+ Aws::Plugins::UserAgent.feature('resource') do
118
+ waiter.wait(params.merge(bucket: @name))
119
+ end
116
120
  Bucket.new({
117
121
  name: @name,
118
122
  client: @client
@@ -213,7 +217,9 @@ module Aws::S3
213
217
  :retry
214
218
  end
215
219
  end
216
- Aws::Waiters::Waiter.new(options).wait({})
220
+ Aws::Plugins::UserAgent.feature('resource') do
221
+ Aws::Waiters::Waiter.new(options).wait({})
222
+ end
217
223
  end
218
224
 
219
225
  # @!group Actions
@@ -275,7 +281,9 @@ module Aws::S3
275
281
  # @return [Types::CreateBucketOutput]
276
282
  def create(options = {})
277
283
  options = options.merge(bucket: @name)
278
- resp = @client.create_bucket(options)
284
+ resp = Aws::Plugins::UserAgent.feature('resource') do
285
+ @client.create_bucket(options)
286
+ end
279
287
  resp.data
280
288
  end
281
289
 
@@ -292,7 +300,9 @@ module Aws::S3
292
300
  # @return [EmptyStructure]
293
301
  def delete(options = {})
294
302
  options = options.merge(bucket: @name)
295
- resp = @client.delete_bucket(options)
303
+ resp = Aws::Plugins::UserAgent.feature('resource') do
304
+ @client.delete_bucket(options)
305
+ end
296
306
  resp.data
297
307
  end
298
308
 
@@ -361,7 +371,9 @@ module Aws::S3
361
371
  # @return [Types::DeleteObjectsOutput]
362
372
  def delete_objects(options = {})
363
373
  options = options.merge(bucket: @name)
364
- resp = @client.delete_objects(options)
374
+ resp = Aws::Plugins::UserAgent.feature('resource') do
375
+ @client.delete_objects(options)
376
+ end
365
377
  resp.data
366
378
  end
367
379
 
@@ -667,7 +679,9 @@ module Aws::S3
667
679
  # @return [Object]
668
680
  def put_object(options = {})
669
681
  options = options.merge(bucket: @name)
670
- @client.put_object(options)
682
+ Aws::Plugins::UserAgent.feature('resource') do
683
+ @client.put_object(options)
684
+ end
671
685
  Object.new(
672
686
  bucket_name: @name,
673
687
  key: options[:key],
@@ -776,7 +790,9 @@ module Aws::S3
776
790
  def multipart_uploads(options = {})
777
791
  batches = Enumerator.new do |y|
778
792
  options = options.merge(bucket: @name)
779
- resp = @client.list_multipart_uploads(options)
793
+ resp = Aws::Plugins::UserAgent.feature('resource') do
794
+ @client.list_multipart_uploads(options)
795
+ end
780
796
  resp.each_page do |page|
781
797
  batch = []
782
798
  page.data.uploads.each do |u|
@@ -856,7 +872,9 @@ module Aws::S3
856
872
  def object_versions(options = {})
857
873
  batches = Enumerator.new do |y|
858
874
  options = options.merge(bucket: @name)
859
- resp = @client.list_object_versions(options)
875
+ resp = Aws::Plugins::UserAgent.feature('resource') do
876
+ @client.list_object_versions(options)
877
+ end
860
878
  resp.each_page do |page|
861
879
  batch = []
862
880
  page.data.versions_delete_markers.each do |v|
@@ -912,7 +930,9 @@ module Aws::S3
912
930
  def objects(options = {})
913
931
  batches = Enumerator.new do |y|
914
932
  options = options.merge(bucket: @name)
915
- resp = @client.list_objects_v2(options)
933
+ resp = Aws::Plugins::UserAgent.feature('resource') do
934
+ @client.list_objects_v2(options)
935
+ end
916
936
  resp.each_page do |page|
917
937
  batch = []
918
938
  page.data.contents.each do |c|
@@ -60,7 +60,9 @@ module Aws::S3
60
60
  #
61
61
  # @return [self]
62
62
  def load
63
- resp = @client.get_bucket_acl(bucket: @bucket_name)
63
+ resp = Aws::Plugins::UserAgent.feature('resource') do
64
+ @client.get_bucket_acl(bucket: @bucket_name)
65
+ end
64
66
  @data = resp.data
65
67
  self
66
68
  end
@@ -175,7 +177,9 @@ module Aws::S3
175
177
  :retry
176
178
  end
177
179
  end
178
- Aws::Waiters::Waiter.new(options).wait({})
180
+ Aws::Plugins::UserAgent.feature('resource') do
181
+ Aws::Waiters::Waiter.new(options).wait({})
182
+ end
179
183
  end
180
184
 
181
185
  # @!group Actions
@@ -265,7 +269,9 @@ module Aws::S3
265
269
  # @return [EmptyStructure]
266
270
  def put(options = {})
267
271
  options = options.merge(bucket: @bucket_name)
268
- resp = @client.put_bucket_acl(options)
272
+ resp = Aws::Plugins::UserAgent.feature('resource') do
273
+ @client.put_bucket_acl(options)
274
+ end
269
275
  resp.data
270
276
  end
271
277
 
@@ -55,7 +55,9 @@ module Aws::S3
55
55
  #
56
56
  # @return [self]
57
57
  def load
58
- resp = @client.get_bucket_cors(bucket: @bucket_name)
58
+ resp = Aws::Plugins::UserAgent.feature('resource') do
59
+ @client.get_bucket_cors(bucket: @bucket_name)
60
+ end
59
61
  @data = resp.data
60
62
  self
61
63
  end
@@ -170,7 +172,9 @@ module Aws::S3
170
172
  :retry
171
173
  end
172
174
  end
173
- Aws::Waiters::Waiter.new(options).wait({})
175
+ Aws::Plugins::UserAgent.feature('resource') do
176
+ Aws::Waiters::Waiter.new(options).wait({})
177
+ end
174
178
  end
175
179
 
176
180
  # @!group Actions
@@ -188,7 +192,9 @@ module Aws::S3
188
192
  # @return [EmptyStructure]
189
193
  def delete(options = {})
190
194
  options = options.merge(bucket: @bucket_name)
191
- resp = @client.delete_bucket_cors(options)
195
+ resp = Aws::Plugins::UserAgent.feature('resource') do
196
+ @client.delete_bucket_cors(options)
197
+ end
192
198
  resp.data
193
199
  end
194
200
 
@@ -254,7 +260,9 @@ module Aws::S3
254
260
  # @return [EmptyStructure]
255
261
  def put(options = {})
256
262
  options = options.merge(bucket: @bucket_name)
257
- resp = @client.put_bucket_cors(options)
263
+ resp = Aws::Plugins::UserAgent.feature('resource') do
264
+ @client.put_bucket_cors(options)
265
+ end
258
266
  resp.data
259
267
  end
260
268
 
@@ -54,7 +54,9 @@ module Aws::S3
54
54
  #
55
55
  # @return [self]
56
56
  def load
57
- resp = @client.get_bucket_lifecycle(bucket: @bucket_name)
57
+ resp = Aws::Plugins::UserAgent.feature('resource') do
58
+ @client.get_bucket_lifecycle(bucket: @bucket_name)
59
+ end
58
60
  @data = resp.data
59
61
  self
60
62
  end
@@ -169,7 +171,9 @@ module Aws::S3
169
171
  :retry
170
172
  end
171
173
  end
172
- Aws::Waiters::Waiter.new(options).wait({})
174
+ Aws::Plugins::UserAgent.feature('resource') do
175
+ Aws::Waiters::Waiter.new(options).wait({})
176
+ end
173
177
  end
174
178
 
175
179
  # @!group Actions
@@ -187,7 +191,9 @@ module Aws::S3
187
191
  # @return [EmptyStructure]
188
192
  def delete(options = {})
189
193
  options = options.merge(bucket: @bucket_name)
190
- resp = @client.delete_bucket_lifecycle(options)
194
+ resp = Aws::Plugins::UserAgent.feature('resource') do
195
+ @client.delete_bucket_lifecycle(options)
196
+ end
191
197
  resp.data
192
198
  end
193
199
 
@@ -257,7 +263,9 @@ module Aws::S3
257
263
  # @return [EmptyStructure]
258
264
  def put(options = {})
259
265
  options = options.merge(bucket: @bucket_name)
260
- resp = @client.put_bucket_lifecycle(options)
266
+ resp = Aws::Plugins::UserAgent.feature('resource') do
267
+ @client.put_bucket_lifecycle(options)
268
+ end
261
269
  resp.data
262
270
  end
263
271
 
@@ -54,7 +54,9 @@ module Aws::S3
54
54
  #
55
55
  # @return [self]
56
56
  def load
57
- resp = @client.get_bucket_lifecycle_configuration(bucket: @bucket_name)
57
+ resp = Aws::Plugins::UserAgent.feature('resource') do
58
+ @client.get_bucket_lifecycle_configuration(bucket: @bucket_name)
59
+ end
58
60
  @data = resp.data
59
61
  self
60
62
  end
@@ -169,7 +171,9 @@ module Aws::S3
169
171
  :retry
170
172
  end
171
173
  end
172
- Aws::Waiters::Waiter.new(options).wait({})
174
+ Aws::Plugins::UserAgent.feature('resource') do
175
+ Aws::Waiters::Waiter.new(options).wait({})
176
+ end
173
177
  end
174
178
 
175
179
  # @!group Actions
@@ -187,7 +191,9 @@ module Aws::S3
187
191
  # @return [EmptyStructure]
188
192
  def delete(options = {})
189
193
  options = options.merge(bucket: @bucket_name)
190
- resp = @client.delete_bucket_lifecycle(options)
194
+ resp = Aws::Plugins::UserAgent.feature('resource') do
195
+ @client.delete_bucket_lifecycle(options)
196
+ end
191
197
  resp.data
192
198
  end
193
199
 
@@ -277,7 +283,9 @@ module Aws::S3
277
283
  # @return [EmptyStructure]
278
284
  def put(options = {})
279
285
  options = options.merge(bucket: @bucket_name)
280
- resp = @client.put_bucket_lifecycle_configuration(options)
286
+ resp = Aws::Plugins::UserAgent.feature('resource') do
287
+ @client.put_bucket_lifecycle_configuration(options)
288
+ end
281
289
  resp.data
282
290
  end
283
291
 
@@ -60,7 +60,9 @@ module Aws::S3
60
60
  #
61
61
  # @return [self]
62
62
  def load
63
- resp = @client.get_bucket_logging(bucket: @bucket_name)
63
+ resp = Aws::Plugins::UserAgent.feature('resource') do
64
+ @client.get_bucket_logging(bucket: @bucket_name)
65
+ end
64
66
  @data = resp.data
65
67
  self
66
68
  end
@@ -175,7 +177,9 @@ module Aws::S3
175
177
  :retry
176
178
  end
177
179
  end
178
- Aws::Waiters::Waiter.new(options).wait({})
180
+ Aws::Plugins::UserAgent.feature('resource') do
181
+ Aws::Waiters::Waiter.new(options).wait({})
182
+ end
179
183
  end
180
184
 
181
185
  # @!group Actions
@@ -236,7 +240,9 @@ module Aws::S3
236
240
  # @return [EmptyStructure]
237
241
  def put(options = {})
238
242
  options = options.merge(bucket: @bucket_name)
239
- resp = @client.put_bucket_logging(options)
243
+ resp = Aws::Plugins::UserAgent.feature('resource') do
244
+ @client.put_bucket_logging(options)
245
+ end
240
246
  resp.data
241
247
  end
242
248
 
@@ -75,7 +75,9 @@ module Aws::S3
75
75
  #
76
76
  # @return [self]
77
77
  def load
78
- resp = @client.get_bucket_notification_configuration(bucket: @bucket_name)
78
+ resp = Aws::Plugins::UserAgent.feature('resource') do
79
+ @client.get_bucket_notification_configuration(bucket: @bucket_name)
80
+ end
79
81
  @data = resp.data
80
82
  self
81
83
  end
@@ -190,7 +192,9 @@ module Aws::S3
190
192
  :retry
191
193
  end
192
194
  end
193
- Aws::Waiters::Waiter.new(options).wait({})
195
+ Aws::Plugins::UserAgent.feature('resource') do
196
+ Aws::Waiters::Waiter.new(options).wait({})
197
+ end
194
198
  end
195
199
 
196
200
  # @!group Actions
@@ -271,7 +275,9 @@ module Aws::S3
271
275
  # @return [EmptyStructure]
272
276
  def put(options = {})
273
277
  options = options.merge(bucket: @bucket_name)
274
- resp = @client.put_bucket_notification_configuration(options)
278
+ resp = Aws::Plugins::UserAgent.feature('resource') do
279
+ @client.put_bucket_notification_configuration(options)
280
+ end
275
281
  resp.data
276
282
  end
277
283
 
@@ -54,7 +54,9 @@ module Aws::S3
54
54
  #
55
55
  # @return [self]
56
56
  def load
57
- resp = @client.get_bucket_policy(bucket: @bucket_name)
57
+ resp = Aws::Plugins::UserAgent.feature('resource') do
58
+ @client.get_bucket_policy(bucket: @bucket_name)
59
+ end
58
60
  @data = resp.data
59
61
  self
60
62
  end
@@ -169,7 +171,9 @@ module Aws::S3
169
171
  :retry
170
172
  end
171
173
  end
172
- Aws::Waiters::Waiter.new(options).wait({})
174
+ Aws::Plugins::UserAgent.feature('resource') do
175
+ Aws::Waiters::Waiter.new(options).wait({})
176
+ end
173
177
  end
174
178
 
175
179
  # @!group Actions
@@ -187,7 +191,9 @@ module Aws::S3
187
191
  # @return [EmptyStructure]
188
192
  def delete(options = {})
189
193
  options = options.merge(bucket: @bucket_name)
190
- resp = @client.delete_bucket_policy(options)
194
+ resp = Aws::Plugins::UserAgent.feature('resource') do
195
+ @client.delete_bucket_policy(options)
196
+ end
191
197
  resp.data
192
198
  end
193
199
 
@@ -234,7 +240,9 @@ module Aws::S3
234
240
  # @return [EmptyStructure]
235
241
  def put(options = {})
236
242
  options = options.merge(bucket: @bucket_name)
237
- resp = @client.put_bucket_policy(options)
243
+ resp = Aws::Plugins::UserAgent.feature('resource') do
244
+ @client.put_bucket_policy(options)
245
+ end
238
246
  resp.data
239
247
  end
240
248
 
@@ -54,7 +54,9 @@ module Aws::S3
54
54
  #
55
55
  # @return [self]
56
56
  def load
57
- resp = @client.get_bucket_request_payment(bucket: @bucket_name)
57
+ resp = Aws::Plugins::UserAgent.feature('resource') do
58
+ @client.get_bucket_request_payment(bucket: @bucket_name)
59
+ end
58
60
  @data = resp.data
59
61
  self
60
62
  end
@@ -169,7 +171,9 @@ module Aws::S3
169
171
  :retry
170
172
  end
171
173
  end
172
- Aws::Waiters::Waiter.new(options).wait({})
174
+ Aws::Plugins::UserAgent.feature('resource') do
175
+ Aws::Waiters::Waiter.new(options).wait({})
176
+ end
173
177
  end
174
178
 
175
179
  # @!group Actions
@@ -221,7 +225,9 @@ module Aws::S3
221
225
  # @return [EmptyStructure]
222
226
  def put(options = {})
223
227
  options = options.merge(bucket: @bucket_name)
224
- resp = @client.put_bucket_request_payment(options)
228
+ resp = Aws::Plugins::UserAgent.feature('resource') do
229
+ @client.put_bucket_request_payment(options)
230
+ end
225
231
  resp.data
226
232
  end
227
233
 
@@ -54,7 +54,9 @@ module Aws::S3
54
54
  #
55
55
  # @return [self]
56
56
  def load
57
- resp = @client.get_bucket_tagging(bucket: @bucket_name)
57
+ resp = Aws::Plugins::UserAgent.feature('resource') do
58
+ @client.get_bucket_tagging(bucket: @bucket_name)
59
+ end
58
60
  @data = resp.data
59
61
  self
60
62
  end
@@ -169,7 +171,9 @@ module Aws::S3
169
171
  :retry
170
172
  end
171
173
  end
172
- Aws::Waiters::Waiter.new(options).wait({})
174
+ Aws::Plugins::UserAgent.feature('resource') do
175
+ Aws::Waiters::Waiter.new(options).wait({})
176
+ end
173
177
  end
174
178
 
175
179
  # @!group Actions
@@ -187,7 +191,9 @@ module Aws::S3
187
191
  # @return [EmptyStructure]
188
192
  def delete(options = {})
189
193
  options = options.merge(bucket: @bucket_name)
190
- resp = @client.delete_bucket_tagging(options)
194
+ resp = Aws::Plugins::UserAgent.feature('resource') do
195
+ @client.delete_bucket_tagging(options)
196
+ end
191
197
  resp.data
192
198
  end
193
199
 
@@ -243,7 +249,9 @@ module Aws::S3
243
249
  # @return [EmptyStructure]
244
250
  def put(options = {})
245
251
  options = options.merge(bucket: @bucket_name)
246
- resp = @client.put_bucket_tagging(options)
252
+ resp = Aws::Plugins::UserAgent.feature('resource') do
253
+ @client.put_bucket_tagging(options)
254
+ end
247
255
  resp.data
248
256
  end
249
257
 
@@ -63,7 +63,9 @@ module Aws::S3
63
63
  #
64
64
  # @return [self]
65
65
  def load
66
- resp = @client.get_bucket_versioning(bucket: @bucket_name)
66
+ resp = Aws::Plugins::UserAgent.feature('resource') do
67
+ @client.get_bucket_versioning(bucket: @bucket_name)
68
+ end
67
69
  @data = resp.data
68
70
  self
69
71
  end
@@ -178,7 +180,9 @@ module Aws::S3
178
180
  :retry
179
181
  end
180
182
  end
181
- Aws::Waiters::Waiter.new(options).wait({})
183
+ Aws::Plugins::UserAgent.feature('resource') do
184
+ Aws::Waiters::Waiter.new(options).wait({})
185
+ end
182
186
  end
183
187
 
184
188
  # @!group Actions
@@ -235,7 +239,9 @@ module Aws::S3
235
239
  status: "Enabled"
236
240
  }
237
241
  )
238
- resp = @client.put_bucket_versioning(options)
242
+ resp = Aws::Plugins::UserAgent.feature('resource') do
243
+ @client.put_bucket_versioning(options)
244
+ end
239
245
  resp.data
240
246
  end
241
247
 
@@ -292,7 +298,9 @@ module Aws::S3
292
298
  # @return [EmptyStructure]
293
299
  def put(options = {})
294
300
  options = options.merge(bucket: @bucket_name)
295
- resp = @client.put_bucket_versioning(options)
301
+ resp = Aws::Plugins::UserAgent.feature('resource') do
302
+ @client.put_bucket_versioning(options)
303
+ end
296
304
  resp.data
297
305
  end
298
306
 
@@ -348,7 +356,9 @@ module Aws::S3
348
356
  status: "Suspended"
349
357
  }
350
358
  )
351
- resp = @client.put_bucket_versioning(options)
359
+ resp = Aws::Plugins::UserAgent.feature('resource') do
360
+ @client.put_bucket_versioning(options)
361
+ end
352
362
  resp.data
353
363
  end
354
364
 
@@ -76,7 +76,9 @@ module Aws::S3
76
76
  #
77
77
  # @return [self]
78
78
  def load
79
- resp = @client.get_bucket_website(bucket: @bucket_name)
79
+ resp = Aws::Plugins::UserAgent.feature('resource') do
80
+ @client.get_bucket_website(bucket: @bucket_name)
81
+ end
80
82
  @data = resp.data
81
83
  self
82
84
  end
@@ -191,7 +193,9 @@ module Aws::S3
191
193
  :retry
192
194
  end
193
195
  end
194
- Aws::Waiters::Waiter.new(options).wait({})
196
+ Aws::Plugins::UserAgent.feature('resource') do
197
+ Aws::Waiters::Waiter.new(options).wait({})
198
+ end
195
199
  end
196
200
 
197
201
  # @!group Actions
@@ -209,7 +213,9 @@ module Aws::S3
209
213
  # @return [EmptyStructure]
210
214
  def delete(options = {})
211
215
  options = options.merge(bucket: @bucket_name)
212
- resp = @client.delete_bucket_website(options)
216
+ resp = Aws::Plugins::UserAgent.feature('resource') do
217
+ @client.delete_bucket_website(options)
218
+ end
213
219
  resp.data
214
220
  end
215
221
 
@@ -284,7 +290,9 @@ module Aws::S3
284
290
  # @return [EmptyStructure]
285
291
  def put(options = {})
286
292
  options = options.merge(bucket: @bucket_name)
287
- resp = @client.put_bucket_website(options)
293
+ resp = Aws::Plugins::UserAgent.feature('resource') do
294
+ @client.put_bucket_website(options)
295
+ end
288
296
  resp.data
289
297
  end
290
298
 
@@ -356,6 +356,11 @@ module Aws::S3
356
356
  # use the region in the ARN, allowing for cross-region requests to
357
357
  # be made. Set to `false` to use the client's region instead.
358
358
  #
359
+ # @option options [String] :sdk_ua_app_id
360
+ # A unique and opaque application ID that is appended to the
361
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
362
+ # maximum length of 50.
363
+ #
359
364
  # @option options [String] :secret_access_key
360
365
  #
361
366
  # @option options [String] :session_token
@@ -15596,7 +15601,7 @@ module Aws::S3
15596
15601
  params: params,
15597
15602
  config: config)
15598
15603
  context[:gem_name] = 'aws-sdk-s3'
15599
- context[:gem_version] = '1.122.0'
15604
+ context[:gem_version] = '1.123.1'
15600
15605
  Seahorse::Client::Request.new(handlers, context)
15601
15606
  end
15602
15607
 
@@ -134,7 +134,9 @@ module Aws
134
134
 
135
135
  # @api private
136
136
  def load
137
- @data = client.list_buckets.buckets.find { |b| b.name == name }
137
+ @data = Aws::Plugins::UserAgent.feature('resource') do
138
+ client.list_buckets.buckets.find { |b| b.name == name }
139
+ end
138
140
  raise "unable to load bucket #{name}" if @data.nil?
139
141
 
140
142
  self