aws-sdk-s3 1.161.0 → 1.162.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,15 +14,12 @@ module Aws::S3
14
14
 
15
15
  class AbortMultipartUpload
16
16
  def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
17
  Aws::S3::EndpointParameters.new(
21
18
  bucket: context.params[:bucket],
22
19
  region: context.config.region,
23
20
  use_fips: context.config.use_fips_endpoint,
24
21
  use_dual_stack: context[:use_dualstack_endpoint],
25
- endpoint: endpoint,
22
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
26
23
  force_path_style: context.config.force_path_style,
27
24
  accelerate: context[:use_accelerate_endpoint],
28
25
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -41,15 +38,12 @@ module Aws::S3
41
38
 
42
39
  class CompleteMultipartUpload
43
40
  def self.build(context)
44
- unless context.config.regional_endpoint
45
- endpoint = context.config.endpoint.to_s
46
- end
47
41
  Aws::S3::EndpointParameters.new(
48
42
  bucket: context.params[:bucket],
49
43
  region: context.config.region,
50
44
  use_fips: context.config.use_fips_endpoint,
51
45
  use_dual_stack: context[:use_dualstack_endpoint],
52
- endpoint: endpoint,
46
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
53
47
  force_path_style: context.config.force_path_style,
54
48
  accelerate: context[:use_accelerate_endpoint],
55
49
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -68,15 +62,12 @@ module Aws::S3
68
62
 
69
63
  class CopyObject
70
64
  def self.build(context)
71
- unless context.config.regional_endpoint
72
- endpoint = context.config.endpoint.to_s
73
- end
74
65
  Aws::S3::EndpointParameters.new(
75
66
  bucket: context.params[:bucket],
76
67
  region: context.config.region,
77
68
  use_fips: context.config.use_fips_endpoint,
78
69
  use_dual_stack: context[:use_dualstack_endpoint],
79
- endpoint: endpoint,
70
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
80
71
  force_path_style: context.config.force_path_style,
81
72
  accelerate: context[:use_accelerate_endpoint],
82
73
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -95,15 +86,12 @@ module Aws::S3
95
86
 
96
87
  class CreateBucket
97
88
  def self.build(context)
98
- unless context.config.regional_endpoint
99
- endpoint = context.config.endpoint.to_s
100
- end
101
89
  Aws::S3::EndpointParameters.new(
102
90
  bucket: context.params[:bucket],
103
91
  region: context.config.region,
104
92
  use_fips: context.config.use_fips_endpoint,
105
93
  use_dual_stack: context[:use_dualstack_endpoint],
106
- endpoint: endpoint,
94
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
107
95
  force_path_style: context.config.force_path_style,
108
96
  accelerate: context[:use_accelerate_endpoint],
109
97
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -122,15 +110,12 @@ module Aws::S3
122
110
 
123
111
  class CreateMultipartUpload
124
112
  def self.build(context)
125
- unless context.config.regional_endpoint
126
- endpoint = context.config.endpoint.to_s
127
- end
128
113
  Aws::S3::EndpointParameters.new(
129
114
  bucket: context.params[:bucket],
130
115
  region: context.config.region,
131
116
  use_fips: context.config.use_fips_endpoint,
132
117
  use_dual_stack: context[:use_dualstack_endpoint],
133
- endpoint: endpoint,
118
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
134
119
  force_path_style: context.config.force_path_style,
135
120
  accelerate: context[:use_accelerate_endpoint],
136
121
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -149,15 +134,12 @@ module Aws::S3
149
134
 
150
135
  class CreateSession
151
136
  def self.build(context)
152
- unless context.config.regional_endpoint
153
- endpoint = context.config.endpoint.to_s
154
- end
155
137
  Aws::S3::EndpointParameters.new(
156
138
  bucket: context.params[:bucket],
157
139
  region: context.config.region,
158
140
  use_fips: context.config.use_fips_endpoint,
159
141
  use_dual_stack: context[:use_dualstack_endpoint],
160
- endpoint: endpoint,
142
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
161
143
  force_path_style: context.config.force_path_style,
162
144
  accelerate: context[:use_accelerate_endpoint],
163
145
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -176,15 +158,12 @@ module Aws::S3
176
158
 
177
159
  class DeleteBucket
178
160
  def self.build(context)
179
- unless context.config.regional_endpoint
180
- endpoint = context.config.endpoint.to_s
181
- end
182
161
  Aws::S3::EndpointParameters.new(
183
162
  bucket: context.params[:bucket],
184
163
  region: context.config.region,
185
164
  use_fips: context.config.use_fips_endpoint,
186
165
  use_dual_stack: context[:use_dualstack_endpoint],
187
- endpoint: endpoint,
166
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
188
167
  force_path_style: context.config.force_path_style,
189
168
  accelerate: context[:use_accelerate_endpoint],
190
169
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -203,15 +182,12 @@ module Aws::S3
203
182
 
204
183
  class DeleteBucketAnalyticsConfiguration
205
184
  def self.build(context)
206
- unless context.config.regional_endpoint
207
- endpoint = context.config.endpoint.to_s
208
- end
209
185
  Aws::S3::EndpointParameters.new(
210
186
  bucket: context.params[:bucket],
211
187
  region: context.config.region,
212
188
  use_fips: context.config.use_fips_endpoint,
213
189
  use_dual_stack: context[:use_dualstack_endpoint],
214
- endpoint: endpoint,
190
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
215
191
  force_path_style: context.config.force_path_style,
216
192
  accelerate: context[:use_accelerate_endpoint],
217
193
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -230,15 +206,12 @@ module Aws::S3
230
206
 
231
207
  class DeleteBucketCors
232
208
  def self.build(context)
233
- unless context.config.regional_endpoint
234
- endpoint = context.config.endpoint.to_s
235
- end
236
209
  Aws::S3::EndpointParameters.new(
237
210
  bucket: context.params[:bucket],
238
211
  region: context.config.region,
239
212
  use_fips: context.config.use_fips_endpoint,
240
213
  use_dual_stack: context[:use_dualstack_endpoint],
241
- endpoint: endpoint,
214
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
242
215
  force_path_style: context.config.force_path_style,
243
216
  accelerate: context[:use_accelerate_endpoint],
244
217
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -257,15 +230,12 @@ module Aws::S3
257
230
 
258
231
  class DeleteBucketEncryption
259
232
  def self.build(context)
260
- unless context.config.regional_endpoint
261
- endpoint = context.config.endpoint.to_s
262
- end
263
233
  Aws::S3::EndpointParameters.new(
264
234
  bucket: context.params[:bucket],
265
235
  region: context.config.region,
266
236
  use_fips: context.config.use_fips_endpoint,
267
237
  use_dual_stack: context[:use_dualstack_endpoint],
268
- endpoint: endpoint,
238
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
269
239
  force_path_style: context.config.force_path_style,
270
240
  accelerate: context[:use_accelerate_endpoint],
271
241
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -284,15 +254,12 @@ module Aws::S3
284
254
 
285
255
  class DeleteBucketIntelligentTieringConfiguration
286
256
  def self.build(context)
287
- unless context.config.regional_endpoint
288
- endpoint = context.config.endpoint.to_s
289
- end
290
257
  Aws::S3::EndpointParameters.new(
291
258
  bucket: context.params[:bucket],
292
259
  region: context.config.region,
293
260
  use_fips: context.config.use_fips_endpoint,
294
261
  use_dual_stack: context[:use_dualstack_endpoint],
295
- endpoint: endpoint,
262
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
296
263
  force_path_style: context.config.force_path_style,
297
264
  accelerate: context[:use_accelerate_endpoint],
298
265
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -311,15 +278,12 @@ module Aws::S3
311
278
 
312
279
  class DeleteBucketInventoryConfiguration
313
280
  def self.build(context)
314
- unless context.config.regional_endpoint
315
- endpoint = context.config.endpoint.to_s
316
- end
317
281
  Aws::S3::EndpointParameters.new(
318
282
  bucket: context.params[:bucket],
319
283
  region: context.config.region,
320
284
  use_fips: context.config.use_fips_endpoint,
321
285
  use_dual_stack: context[:use_dualstack_endpoint],
322
- endpoint: endpoint,
286
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
323
287
  force_path_style: context.config.force_path_style,
324
288
  accelerate: context[:use_accelerate_endpoint],
325
289
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -338,15 +302,12 @@ module Aws::S3
338
302
 
339
303
  class DeleteBucketLifecycle
340
304
  def self.build(context)
341
- unless context.config.regional_endpoint
342
- endpoint = context.config.endpoint.to_s
343
- end
344
305
  Aws::S3::EndpointParameters.new(
345
306
  bucket: context.params[:bucket],
346
307
  region: context.config.region,
347
308
  use_fips: context.config.use_fips_endpoint,
348
309
  use_dual_stack: context[:use_dualstack_endpoint],
349
- endpoint: endpoint,
310
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
350
311
  force_path_style: context.config.force_path_style,
351
312
  accelerate: context[:use_accelerate_endpoint],
352
313
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -365,15 +326,12 @@ module Aws::S3
365
326
 
366
327
  class DeleteBucketMetricsConfiguration
367
328
  def self.build(context)
368
- unless context.config.regional_endpoint
369
- endpoint = context.config.endpoint.to_s
370
- end
371
329
  Aws::S3::EndpointParameters.new(
372
330
  bucket: context.params[:bucket],
373
331
  region: context.config.region,
374
332
  use_fips: context.config.use_fips_endpoint,
375
333
  use_dual_stack: context[:use_dualstack_endpoint],
376
- endpoint: endpoint,
334
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
377
335
  force_path_style: context.config.force_path_style,
378
336
  accelerate: context[:use_accelerate_endpoint],
379
337
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -392,15 +350,12 @@ module Aws::S3
392
350
 
393
351
  class DeleteBucketOwnershipControls
394
352
  def self.build(context)
395
- unless context.config.regional_endpoint
396
- endpoint = context.config.endpoint.to_s
397
- end
398
353
  Aws::S3::EndpointParameters.new(
399
354
  bucket: context.params[:bucket],
400
355
  region: context.config.region,
401
356
  use_fips: context.config.use_fips_endpoint,
402
357
  use_dual_stack: context[:use_dualstack_endpoint],
403
- endpoint: endpoint,
358
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
404
359
  force_path_style: context.config.force_path_style,
405
360
  accelerate: context[:use_accelerate_endpoint],
406
361
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -419,15 +374,12 @@ module Aws::S3
419
374
 
420
375
  class DeleteBucketPolicy
421
376
  def self.build(context)
422
- unless context.config.regional_endpoint
423
- endpoint = context.config.endpoint.to_s
424
- end
425
377
  Aws::S3::EndpointParameters.new(
426
378
  bucket: context.params[:bucket],
427
379
  region: context.config.region,
428
380
  use_fips: context.config.use_fips_endpoint,
429
381
  use_dual_stack: context[:use_dualstack_endpoint],
430
- endpoint: endpoint,
382
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
431
383
  force_path_style: context.config.force_path_style,
432
384
  accelerate: context[:use_accelerate_endpoint],
433
385
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -446,15 +398,12 @@ module Aws::S3
446
398
 
447
399
  class DeleteBucketReplication
448
400
  def self.build(context)
449
- unless context.config.regional_endpoint
450
- endpoint = context.config.endpoint.to_s
451
- end
452
401
  Aws::S3::EndpointParameters.new(
453
402
  bucket: context.params[:bucket],
454
403
  region: context.config.region,
455
404
  use_fips: context.config.use_fips_endpoint,
456
405
  use_dual_stack: context[:use_dualstack_endpoint],
457
- endpoint: endpoint,
406
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
458
407
  force_path_style: context.config.force_path_style,
459
408
  accelerate: context[:use_accelerate_endpoint],
460
409
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -473,15 +422,12 @@ module Aws::S3
473
422
 
474
423
  class DeleteBucketTagging
475
424
  def self.build(context)
476
- unless context.config.regional_endpoint
477
- endpoint = context.config.endpoint.to_s
478
- end
479
425
  Aws::S3::EndpointParameters.new(
480
426
  bucket: context.params[:bucket],
481
427
  region: context.config.region,
482
428
  use_fips: context.config.use_fips_endpoint,
483
429
  use_dual_stack: context[:use_dualstack_endpoint],
484
- endpoint: endpoint,
430
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
485
431
  force_path_style: context.config.force_path_style,
486
432
  accelerate: context[:use_accelerate_endpoint],
487
433
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -500,15 +446,12 @@ module Aws::S3
500
446
 
501
447
  class DeleteBucketWebsite
502
448
  def self.build(context)
503
- unless context.config.regional_endpoint
504
- endpoint = context.config.endpoint.to_s
505
- end
506
449
  Aws::S3::EndpointParameters.new(
507
450
  bucket: context.params[:bucket],
508
451
  region: context.config.region,
509
452
  use_fips: context.config.use_fips_endpoint,
510
453
  use_dual_stack: context[:use_dualstack_endpoint],
511
- endpoint: endpoint,
454
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
512
455
  force_path_style: context.config.force_path_style,
513
456
  accelerate: context[:use_accelerate_endpoint],
514
457
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -527,15 +470,12 @@ module Aws::S3
527
470
 
528
471
  class DeleteObject
529
472
  def self.build(context)
530
- unless context.config.regional_endpoint
531
- endpoint = context.config.endpoint.to_s
532
- end
533
473
  Aws::S3::EndpointParameters.new(
534
474
  bucket: context.params[:bucket],
535
475
  region: context.config.region,
536
476
  use_fips: context.config.use_fips_endpoint,
537
477
  use_dual_stack: context[:use_dualstack_endpoint],
538
- endpoint: endpoint,
478
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
539
479
  force_path_style: context.config.force_path_style,
540
480
  accelerate: context[:use_accelerate_endpoint],
541
481
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -554,15 +494,12 @@ module Aws::S3
554
494
 
555
495
  class DeleteObjectTagging
556
496
  def self.build(context)
557
- unless context.config.regional_endpoint
558
- endpoint = context.config.endpoint.to_s
559
- end
560
497
  Aws::S3::EndpointParameters.new(
561
498
  bucket: context.params[:bucket],
562
499
  region: context.config.region,
563
500
  use_fips: context.config.use_fips_endpoint,
564
501
  use_dual_stack: context[:use_dualstack_endpoint],
565
- endpoint: endpoint,
502
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
566
503
  force_path_style: context.config.force_path_style,
567
504
  accelerate: context[:use_accelerate_endpoint],
568
505
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -581,15 +518,12 @@ module Aws::S3
581
518
 
582
519
  class DeleteObjects
583
520
  def self.build(context)
584
- unless context.config.regional_endpoint
585
- endpoint = context.config.endpoint.to_s
586
- end
587
521
  Aws::S3::EndpointParameters.new(
588
522
  bucket: context.params[:bucket],
589
523
  region: context.config.region,
590
524
  use_fips: context.config.use_fips_endpoint,
591
525
  use_dual_stack: context[:use_dualstack_endpoint],
592
- endpoint: endpoint,
526
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
593
527
  force_path_style: context.config.force_path_style,
594
528
  accelerate: context[:use_accelerate_endpoint],
595
529
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -608,15 +542,12 @@ module Aws::S3
608
542
 
609
543
  class DeletePublicAccessBlock
610
544
  def self.build(context)
611
- unless context.config.regional_endpoint
612
- endpoint = context.config.endpoint.to_s
613
- end
614
545
  Aws::S3::EndpointParameters.new(
615
546
  bucket: context.params[:bucket],
616
547
  region: context.config.region,
617
548
  use_fips: context.config.use_fips_endpoint,
618
549
  use_dual_stack: context[:use_dualstack_endpoint],
619
- endpoint: endpoint,
550
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
620
551
  force_path_style: context.config.force_path_style,
621
552
  accelerate: context[:use_accelerate_endpoint],
622
553
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -635,15 +566,12 @@ module Aws::S3
635
566
 
636
567
  class GetBucketAccelerateConfiguration
637
568
  def self.build(context)
638
- unless context.config.regional_endpoint
639
- endpoint = context.config.endpoint.to_s
640
- end
641
569
  Aws::S3::EndpointParameters.new(
642
570
  bucket: context.params[:bucket],
643
571
  region: context.config.region,
644
572
  use_fips: context.config.use_fips_endpoint,
645
573
  use_dual_stack: context[:use_dualstack_endpoint],
646
- endpoint: endpoint,
574
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
647
575
  force_path_style: context.config.force_path_style,
648
576
  accelerate: context[:use_accelerate_endpoint],
649
577
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -662,15 +590,12 @@ module Aws::S3
662
590
 
663
591
  class GetBucketAcl
664
592
  def self.build(context)
665
- unless context.config.regional_endpoint
666
- endpoint = context.config.endpoint.to_s
667
- end
668
593
  Aws::S3::EndpointParameters.new(
669
594
  bucket: context.params[:bucket],
670
595
  region: context.config.region,
671
596
  use_fips: context.config.use_fips_endpoint,
672
597
  use_dual_stack: context[:use_dualstack_endpoint],
673
- endpoint: endpoint,
598
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
674
599
  force_path_style: context.config.force_path_style,
675
600
  accelerate: context[:use_accelerate_endpoint],
676
601
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -689,15 +614,12 @@ module Aws::S3
689
614
 
690
615
  class GetBucketAnalyticsConfiguration
691
616
  def self.build(context)
692
- unless context.config.regional_endpoint
693
- endpoint = context.config.endpoint.to_s
694
- end
695
617
  Aws::S3::EndpointParameters.new(
696
618
  bucket: context.params[:bucket],
697
619
  region: context.config.region,
698
620
  use_fips: context.config.use_fips_endpoint,
699
621
  use_dual_stack: context[:use_dualstack_endpoint],
700
- endpoint: endpoint,
622
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
701
623
  force_path_style: context.config.force_path_style,
702
624
  accelerate: context[:use_accelerate_endpoint],
703
625
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -716,15 +638,12 @@ module Aws::S3
716
638
 
717
639
  class GetBucketCors
718
640
  def self.build(context)
719
- unless context.config.regional_endpoint
720
- endpoint = context.config.endpoint.to_s
721
- end
722
641
  Aws::S3::EndpointParameters.new(
723
642
  bucket: context.params[:bucket],
724
643
  region: context.config.region,
725
644
  use_fips: context.config.use_fips_endpoint,
726
645
  use_dual_stack: context[:use_dualstack_endpoint],
727
- endpoint: endpoint,
646
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
728
647
  force_path_style: context.config.force_path_style,
729
648
  accelerate: context[:use_accelerate_endpoint],
730
649
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -743,15 +662,12 @@ module Aws::S3
743
662
 
744
663
  class GetBucketEncryption
745
664
  def self.build(context)
746
- unless context.config.regional_endpoint
747
- endpoint = context.config.endpoint.to_s
748
- end
749
665
  Aws::S3::EndpointParameters.new(
750
666
  bucket: context.params[:bucket],
751
667
  region: context.config.region,
752
668
  use_fips: context.config.use_fips_endpoint,
753
669
  use_dual_stack: context[:use_dualstack_endpoint],
754
- endpoint: endpoint,
670
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
755
671
  force_path_style: context.config.force_path_style,
756
672
  accelerate: context[:use_accelerate_endpoint],
757
673
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -770,15 +686,12 @@ module Aws::S3
770
686
 
771
687
  class GetBucketIntelligentTieringConfiguration
772
688
  def self.build(context)
773
- unless context.config.regional_endpoint
774
- endpoint = context.config.endpoint.to_s
775
- end
776
689
  Aws::S3::EndpointParameters.new(
777
690
  bucket: context.params[:bucket],
778
691
  region: context.config.region,
779
692
  use_fips: context.config.use_fips_endpoint,
780
693
  use_dual_stack: context[:use_dualstack_endpoint],
781
- endpoint: endpoint,
694
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
782
695
  force_path_style: context.config.force_path_style,
783
696
  accelerate: context[:use_accelerate_endpoint],
784
697
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -797,15 +710,12 @@ module Aws::S3
797
710
 
798
711
  class GetBucketInventoryConfiguration
799
712
  def self.build(context)
800
- unless context.config.regional_endpoint
801
- endpoint = context.config.endpoint.to_s
802
- end
803
713
  Aws::S3::EndpointParameters.new(
804
714
  bucket: context.params[:bucket],
805
715
  region: context.config.region,
806
716
  use_fips: context.config.use_fips_endpoint,
807
717
  use_dual_stack: context[:use_dualstack_endpoint],
808
- endpoint: endpoint,
718
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
809
719
  force_path_style: context.config.force_path_style,
810
720
  accelerate: context[:use_accelerate_endpoint],
811
721
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -824,15 +734,12 @@ module Aws::S3
824
734
 
825
735
  class GetBucketLifecycle
826
736
  def self.build(context)
827
- unless context.config.regional_endpoint
828
- endpoint = context.config.endpoint.to_s
829
- end
830
737
  Aws::S3::EndpointParameters.new(
831
738
  bucket: context.params[:bucket],
832
739
  region: context.config.region,
833
740
  use_fips: context.config.use_fips_endpoint,
834
741
  use_dual_stack: context[:use_dualstack_endpoint],
835
- endpoint: endpoint,
742
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
836
743
  force_path_style: context.config.force_path_style,
837
744
  accelerate: context[:use_accelerate_endpoint],
838
745
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -851,15 +758,12 @@ module Aws::S3
851
758
 
852
759
  class GetBucketLifecycleConfiguration
853
760
  def self.build(context)
854
- unless context.config.regional_endpoint
855
- endpoint = context.config.endpoint.to_s
856
- end
857
761
  Aws::S3::EndpointParameters.new(
858
762
  bucket: context.params[:bucket],
859
763
  region: context.config.region,
860
764
  use_fips: context.config.use_fips_endpoint,
861
765
  use_dual_stack: context[:use_dualstack_endpoint],
862
- endpoint: endpoint,
766
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
863
767
  force_path_style: context.config.force_path_style,
864
768
  accelerate: context[:use_accelerate_endpoint],
865
769
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -878,15 +782,12 @@ module Aws::S3
878
782
 
879
783
  class GetBucketLocation
880
784
  def self.build(context)
881
- unless context.config.regional_endpoint
882
- endpoint = context.config.endpoint.to_s
883
- end
884
785
  Aws::S3::EndpointParameters.new(
885
786
  bucket: context.params[:bucket],
886
787
  region: context.config.region,
887
788
  use_fips: context.config.use_fips_endpoint,
888
789
  use_dual_stack: context[:use_dualstack_endpoint],
889
- endpoint: endpoint,
790
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
890
791
  force_path_style: context.config.force_path_style,
891
792
  accelerate: context[:use_accelerate_endpoint],
892
793
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -905,15 +806,12 @@ module Aws::S3
905
806
 
906
807
  class GetBucketLogging
907
808
  def self.build(context)
908
- unless context.config.regional_endpoint
909
- endpoint = context.config.endpoint.to_s
910
- end
911
809
  Aws::S3::EndpointParameters.new(
912
810
  bucket: context.params[:bucket],
913
811
  region: context.config.region,
914
812
  use_fips: context.config.use_fips_endpoint,
915
813
  use_dual_stack: context[:use_dualstack_endpoint],
916
- endpoint: endpoint,
814
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
917
815
  force_path_style: context.config.force_path_style,
918
816
  accelerate: context[:use_accelerate_endpoint],
919
817
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -932,15 +830,12 @@ module Aws::S3
932
830
 
933
831
  class GetBucketMetricsConfiguration
934
832
  def self.build(context)
935
- unless context.config.regional_endpoint
936
- endpoint = context.config.endpoint.to_s
937
- end
938
833
  Aws::S3::EndpointParameters.new(
939
834
  bucket: context.params[:bucket],
940
835
  region: context.config.region,
941
836
  use_fips: context.config.use_fips_endpoint,
942
837
  use_dual_stack: context[:use_dualstack_endpoint],
943
- endpoint: endpoint,
838
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
944
839
  force_path_style: context.config.force_path_style,
945
840
  accelerate: context[:use_accelerate_endpoint],
946
841
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -959,15 +854,12 @@ module Aws::S3
959
854
 
960
855
  class GetBucketNotification
961
856
  def self.build(context)
962
- unless context.config.regional_endpoint
963
- endpoint = context.config.endpoint.to_s
964
- end
965
857
  Aws::S3::EndpointParameters.new(
966
858
  bucket: context.params[:bucket],
967
859
  region: context.config.region,
968
860
  use_fips: context.config.use_fips_endpoint,
969
861
  use_dual_stack: context[:use_dualstack_endpoint],
970
- endpoint: endpoint,
862
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
971
863
  force_path_style: context.config.force_path_style,
972
864
  accelerate: context[:use_accelerate_endpoint],
973
865
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -986,15 +878,12 @@ module Aws::S3
986
878
 
987
879
  class GetBucketNotificationConfiguration
988
880
  def self.build(context)
989
- unless context.config.regional_endpoint
990
- endpoint = context.config.endpoint.to_s
991
- end
992
881
  Aws::S3::EndpointParameters.new(
993
882
  bucket: context.params[:bucket],
994
883
  region: context.config.region,
995
884
  use_fips: context.config.use_fips_endpoint,
996
885
  use_dual_stack: context[:use_dualstack_endpoint],
997
- endpoint: endpoint,
886
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
998
887
  force_path_style: context.config.force_path_style,
999
888
  accelerate: context[:use_accelerate_endpoint],
1000
889
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1013,15 +902,12 @@ module Aws::S3
1013
902
 
1014
903
  class GetBucketOwnershipControls
1015
904
  def self.build(context)
1016
- unless context.config.regional_endpoint
1017
- endpoint = context.config.endpoint.to_s
1018
- end
1019
905
  Aws::S3::EndpointParameters.new(
1020
906
  bucket: context.params[:bucket],
1021
907
  region: context.config.region,
1022
908
  use_fips: context.config.use_fips_endpoint,
1023
909
  use_dual_stack: context[:use_dualstack_endpoint],
1024
- endpoint: endpoint,
910
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1025
911
  force_path_style: context.config.force_path_style,
1026
912
  accelerate: context[:use_accelerate_endpoint],
1027
913
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1040,15 +926,12 @@ module Aws::S3
1040
926
 
1041
927
  class GetBucketPolicy
1042
928
  def self.build(context)
1043
- unless context.config.regional_endpoint
1044
- endpoint = context.config.endpoint.to_s
1045
- end
1046
929
  Aws::S3::EndpointParameters.new(
1047
930
  bucket: context.params[:bucket],
1048
931
  region: context.config.region,
1049
932
  use_fips: context.config.use_fips_endpoint,
1050
933
  use_dual_stack: context[:use_dualstack_endpoint],
1051
- endpoint: endpoint,
934
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1052
935
  force_path_style: context.config.force_path_style,
1053
936
  accelerate: context[:use_accelerate_endpoint],
1054
937
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1067,15 +950,12 @@ module Aws::S3
1067
950
 
1068
951
  class GetBucketPolicyStatus
1069
952
  def self.build(context)
1070
- unless context.config.regional_endpoint
1071
- endpoint = context.config.endpoint.to_s
1072
- end
1073
953
  Aws::S3::EndpointParameters.new(
1074
954
  bucket: context.params[:bucket],
1075
955
  region: context.config.region,
1076
956
  use_fips: context.config.use_fips_endpoint,
1077
957
  use_dual_stack: context[:use_dualstack_endpoint],
1078
- endpoint: endpoint,
958
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1079
959
  force_path_style: context.config.force_path_style,
1080
960
  accelerate: context[:use_accelerate_endpoint],
1081
961
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1094,15 +974,12 @@ module Aws::S3
1094
974
 
1095
975
  class GetBucketReplication
1096
976
  def self.build(context)
1097
- unless context.config.regional_endpoint
1098
- endpoint = context.config.endpoint.to_s
1099
- end
1100
977
  Aws::S3::EndpointParameters.new(
1101
978
  bucket: context.params[:bucket],
1102
979
  region: context.config.region,
1103
980
  use_fips: context.config.use_fips_endpoint,
1104
981
  use_dual_stack: context[:use_dualstack_endpoint],
1105
- endpoint: endpoint,
982
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1106
983
  force_path_style: context.config.force_path_style,
1107
984
  accelerate: context[:use_accelerate_endpoint],
1108
985
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1121,15 +998,12 @@ module Aws::S3
1121
998
 
1122
999
  class GetBucketRequestPayment
1123
1000
  def self.build(context)
1124
- unless context.config.regional_endpoint
1125
- endpoint = context.config.endpoint.to_s
1126
- end
1127
1001
  Aws::S3::EndpointParameters.new(
1128
1002
  bucket: context.params[:bucket],
1129
1003
  region: context.config.region,
1130
1004
  use_fips: context.config.use_fips_endpoint,
1131
1005
  use_dual_stack: context[:use_dualstack_endpoint],
1132
- endpoint: endpoint,
1006
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1133
1007
  force_path_style: context.config.force_path_style,
1134
1008
  accelerate: context[:use_accelerate_endpoint],
1135
1009
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1148,15 +1022,12 @@ module Aws::S3
1148
1022
 
1149
1023
  class GetBucketTagging
1150
1024
  def self.build(context)
1151
- unless context.config.regional_endpoint
1152
- endpoint = context.config.endpoint.to_s
1153
- end
1154
1025
  Aws::S3::EndpointParameters.new(
1155
1026
  bucket: context.params[:bucket],
1156
1027
  region: context.config.region,
1157
1028
  use_fips: context.config.use_fips_endpoint,
1158
1029
  use_dual_stack: context[:use_dualstack_endpoint],
1159
- endpoint: endpoint,
1030
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1160
1031
  force_path_style: context.config.force_path_style,
1161
1032
  accelerate: context[:use_accelerate_endpoint],
1162
1033
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1175,15 +1046,12 @@ module Aws::S3
1175
1046
 
1176
1047
  class GetBucketVersioning
1177
1048
  def self.build(context)
1178
- unless context.config.regional_endpoint
1179
- endpoint = context.config.endpoint.to_s
1180
- end
1181
1049
  Aws::S3::EndpointParameters.new(
1182
1050
  bucket: context.params[:bucket],
1183
1051
  region: context.config.region,
1184
1052
  use_fips: context.config.use_fips_endpoint,
1185
1053
  use_dual_stack: context[:use_dualstack_endpoint],
1186
- endpoint: endpoint,
1054
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1187
1055
  force_path_style: context.config.force_path_style,
1188
1056
  accelerate: context[:use_accelerate_endpoint],
1189
1057
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1202,15 +1070,12 @@ module Aws::S3
1202
1070
 
1203
1071
  class GetBucketWebsite
1204
1072
  def self.build(context)
1205
- unless context.config.regional_endpoint
1206
- endpoint = context.config.endpoint.to_s
1207
- end
1208
1073
  Aws::S3::EndpointParameters.new(
1209
1074
  bucket: context.params[:bucket],
1210
1075
  region: context.config.region,
1211
1076
  use_fips: context.config.use_fips_endpoint,
1212
1077
  use_dual_stack: context[:use_dualstack_endpoint],
1213
- endpoint: endpoint,
1078
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1214
1079
  force_path_style: context.config.force_path_style,
1215
1080
  accelerate: context[:use_accelerate_endpoint],
1216
1081
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1229,15 +1094,12 @@ module Aws::S3
1229
1094
 
1230
1095
  class GetObject
1231
1096
  def self.build(context)
1232
- unless context.config.regional_endpoint
1233
- endpoint = context.config.endpoint.to_s
1234
- end
1235
1097
  Aws::S3::EndpointParameters.new(
1236
1098
  bucket: context.params[:bucket],
1237
1099
  region: context.config.region,
1238
1100
  use_fips: context.config.use_fips_endpoint,
1239
1101
  use_dual_stack: context[:use_dualstack_endpoint],
1240
- endpoint: endpoint,
1102
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1241
1103
  force_path_style: context.config.force_path_style,
1242
1104
  accelerate: context[:use_accelerate_endpoint],
1243
1105
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1256,15 +1118,12 @@ module Aws::S3
1256
1118
 
1257
1119
  class GetObjectAcl
1258
1120
  def self.build(context)
1259
- unless context.config.regional_endpoint
1260
- endpoint = context.config.endpoint.to_s
1261
- end
1262
1121
  Aws::S3::EndpointParameters.new(
1263
1122
  bucket: context.params[:bucket],
1264
1123
  region: context.config.region,
1265
1124
  use_fips: context.config.use_fips_endpoint,
1266
1125
  use_dual_stack: context[:use_dualstack_endpoint],
1267
- endpoint: endpoint,
1126
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1268
1127
  force_path_style: context.config.force_path_style,
1269
1128
  accelerate: context[:use_accelerate_endpoint],
1270
1129
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1283,15 +1142,12 @@ module Aws::S3
1283
1142
 
1284
1143
  class GetObjectAttributes
1285
1144
  def self.build(context)
1286
- unless context.config.regional_endpoint
1287
- endpoint = context.config.endpoint.to_s
1288
- end
1289
1145
  Aws::S3::EndpointParameters.new(
1290
1146
  bucket: context.params[:bucket],
1291
1147
  region: context.config.region,
1292
1148
  use_fips: context.config.use_fips_endpoint,
1293
1149
  use_dual_stack: context[:use_dualstack_endpoint],
1294
- endpoint: endpoint,
1150
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1295
1151
  force_path_style: context.config.force_path_style,
1296
1152
  accelerate: context[:use_accelerate_endpoint],
1297
1153
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1310,15 +1166,12 @@ module Aws::S3
1310
1166
 
1311
1167
  class GetObjectLegalHold
1312
1168
  def self.build(context)
1313
- unless context.config.regional_endpoint
1314
- endpoint = context.config.endpoint.to_s
1315
- end
1316
1169
  Aws::S3::EndpointParameters.new(
1317
1170
  bucket: context.params[:bucket],
1318
1171
  region: context.config.region,
1319
1172
  use_fips: context.config.use_fips_endpoint,
1320
1173
  use_dual_stack: context[:use_dualstack_endpoint],
1321
- endpoint: endpoint,
1174
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1322
1175
  force_path_style: context.config.force_path_style,
1323
1176
  accelerate: context[:use_accelerate_endpoint],
1324
1177
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1337,15 +1190,12 @@ module Aws::S3
1337
1190
 
1338
1191
  class GetObjectLockConfiguration
1339
1192
  def self.build(context)
1340
- unless context.config.regional_endpoint
1341
- endpoint = context.config.endpoint.to_s
1342
- end
1343
1193
  Aws::S3::EndpointParameters.new(
1344
1194
  bucket: context.params[:bucket],
1345
1195
  region: context.config.region,
1346
1196
  use_fips: context.config.use_fips_endpoint,
1347
1197
  use_dual_stack: context[:use_dualstack_endpoint],
1348
- endpoint: endpoint,
1198
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1349
1199
  force_path_style: context.config.force_path_style,
1350
1200
  accelerate: context[:use_accelerate_endpoint],
1351
1201
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1364,15 +1214,12 @@ module Aws::S3
1364
1214
 
1365
1215
  class GetObjectRetention
1366
1216
  def self.build(context)
1367
- unless context.config.regional_endpoint
1368
- endpoint = context.config.endpoint.to_s
1369
- end
1370
1217
  Aws::S3::EndpointParameters.new(
1371
1218
  bucket: context.params[:bucket],
1372
1219
  region: context.config.region,
1373
1220
  use_fips: context.config.use_fips_endpoint,
1374
1221
  use_dual_stack: context[:use_dualstack_endpoint],
1375
- endpoint: endpoint,
1222
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1376
1223
  force_path_style: context.config.force_path_style,
1377
1224
  accelerate: context[:use_accelerate_endpoint],
1378
1225
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1391,15 +1238,12 @@ module Aws::S3
1391
1238
 
1392
1239
  class GetObjectTagging
1393
1240
  def self.build(context)
1394
- unless context.config.regional_endpoint
1395
- endpoint = context.config.endpoint.to_s
1396
- end
1397
1241
  Aws::S3::EndpointParameters.new(
1398
1242
  bucket: context.params[:bucket],
1399
1243
  region: context.config.region,
1400
1244
  use_fips: context.config.use_fips_endpoint,
1401
1245
  use_dual_stack: context[:use_dualstack_endpoint],
1402
- endpoint: endpoint,
1246
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1403
1247
  force_path_style: context.config.force_path_style,
1404
1248
  accelerate: context[:use_accelerate_endpoint],
1405
1249
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1418,15 +1262,12 @@ module Aws::S3
1418
1262
 
1419
1263
  class GetObjectTorrent
1420
1264
  def self.build(context)
1421
- unless context.config.regional_endpoint
1422
- endpoint = context.config.endpoint.to_s
1423
- end
1424
1265
  Aws::S3::EndpointParameters.new(
1425
1266
  bucket: context.params[:bucket],
1426
1267
  region: context.config.region,
1427
1268
  use_fips: context.config.use_fips_endpoint,
1428
1269
  use_dual_stack: context[:use_dualstack_endpoint],
1429
- endpoint: endpoint,
1270
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1430
1271
  force_path_style: context.config.force_path_style,
1431
1272
  accelerate: context[:use_accelerate_endpoint],
1432
1273
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1445,15 +1286,12 @@ module Aws::S3
1445
1286
 
1446
1287
  class GetPublicAccessBlock
1447
1288
  def self.build(context)
1448
- unless context.config.regional_endpoint
1449
- endpoint = context.config.endpoint.to_s
1450
- end
1451
1289
  Aws::S3::EndpointParameters.new(
1452
1290
  bucket: context.params[:bucket],
1453
1291
  region: context.config.region,
1454
1292
  use_fips: context.config.use_fips_endpoint,
1455
1293
  use_dual_stack: context[:use_dualstack_endpoint],
1456
- endpoint: endpoint,
1294
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1457
1295
  force_path_style: context.config.force_path_style,
1458
1296
  accelerate: context[:use_accelerate_endpoint],
1459
1297
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1472,15 +1310,12 @@ module Aws::S3
1472
1310
 
1473
1311
  class HeadBucket
1474
1312
  def self.build(context)
1475
- unless context.config.regional_endpoint
1476
- endpoint = context.config.endpoint.to_s
1477
- end
1478
1313
  Aws::S3::EndpointParameters.new(
1479
1314
  bucket: context.params[:bucket],
1480
1315
  region: context.config.region,
1481
1316
  use_fips: context.config.use_fips_endpoint,
1482
1317
  use_dual_stack: context[:use_dualstack_endpoint],
1483
- endpoint: endpoint,
1318
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1484
1319
  force_path_style: context.config.force_path_style,
1485
1320
  accelerate: context[:use_accelerate_endpoint],
1486
1321
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1499,15 +1334,12 @@ module Aws::S3
1499
1334
 
1500
1335
  class HeadObject
1501
1336
  def self.build(context)
1502
- unless context.config.regional_endpoint
1503
- endpoint = context.config.endpoint.to_s
1504
- end
1505
1337
  Aws::S3::EndpointParameters.new(
1506
1338
  bucket: context.params[:bucket],
1507
1339
  region: context.config.region,
1508
1340
  use_fips: context.config.use_fips_endpoint,
1509
1341
  use_dual_stack: context[:use_dualstack_endpoint],
1510
- endpoint: endpoint,
1342
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1511
1343
  force_path_style: context.config.force_path_style,
1512
1344
  accelerate: context[:use_accelerate_endpoint],
1513
1345
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1526,15 +1358,12 @@ module Aws::S3
1526
1358
 
1527
1359
  class ListBucketAnalyticsConfigurations
1528
1360
  def self.build(context)
1529
- unless context.config.regional_endpoint
1530
- endpoint = context.config.endpoint.to_s
1531
- end
1532
1361
  Aws::S3::EndpointParameters.new(
1533
1362
  bucket: context.params[:bucket],
1534
1363
  region: context.config.region,
1535
1364
  use_fips: context.config.use_fips_endpoint,
1536
1365
  use_dual_stack: context[:use_dualstack_endpoint],
1537
- endpoint: endpoint,
1366
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1538
1367
  force_path_style: context.config.force_path_style,
1539
1368
  accelerate: context[:use_accelerate_endpoint],
1540
1369
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1553,15 +1382,12 @@ module Aws::S3
1553
1382
 
1554
1383
  class ListBucketIntelligentTieringConfigurations
1555
1384
  def self.build(context)
1556
- unless context.config.regional_endpoint
1557
- endpoint = context.config.endpoint.to_s
1558
- end
1559
1385
  Aws::S3::EndpointParameters.new(
1560
1386
  bucket: context.params[:bucket],
1561
1387
  region: context.config.region,
1562
1388
  use_fips: context.config.use_fips_endpoint,
1563
1389
  use_dual_stack: context[:use_dualstack_endpoint],
1564
- endpoint: endpoint,
1390
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1565
1391
  force_path_style: context.config.force_path_style,
1566
1392
  accelerate: context[:use_accelerate_endpoint],
1567
1393
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1580,15 +1406,12 @@ module Aws::S3
1580
1406
 
1581
1407
  class ListBucketInventoryConfigurations
1582
1408
  def self.build(context)
1583
- unless context.config.regional_endpoint
1584
- endpoint = context.config.endpoint.to_s
1585
- end
1586
1409
  Aws::S3::EndpointParameters.new(
1587
1410
  bucket: context.params[:bucket],
1588
1411
  region: context.config.region,
1589
1412
  use_fips: context.config.use_fips_endpoint,
1590
1413
  use_dual_stack: context[:use_dualstack_endpoint],
1591
- endpoint: endpoint,
1414
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1592
1415
  force_path_style: context.config.force_path_style,
1593
1416
  accelerate: context[:use_accelerate_endpoint],
1594
1417
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1607,15 +1430,12 @@ module Aws::S3
1607
1430
 
1608
1431
  class ListBucketMetricsConfigurations
1609
1432
  def self.build(context)
1610
- unless context.config.regional_endpoint
1611
- endpoint = context.config.endpoint.to_s
1612
- end
1613
1433
  Aws::S3::EndpointParameters.new(
1614
1434
  bucket: context.params[:bucket],
1615
1435
  region: context.config.region,
1616
1436
  use_fips: context.config.use_fips_endpoint,
1617
1437
  use_dual_stack: context[:use_dualstack_endpoint],
1618
- endpoint: endpoint,
1438
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1619
1439
  force_path_style: context.config.force_path_style,
1620
1440
  accelerate: context[:use_accelerate_endpoint],
1621
1441
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1634,15 +1454,12 @@ module Aws::S3
1634
1454
 
1635
1455
  class ListBuckets
1636
1456
  def self.build(context)
1637
- unless context.config.regional_endpoint
1638
- endpoint = context.config.endpoint.to_s
1639
- end
1640
1457
  Aws::S3::EndpointParameters.new(
1641
1458
  bucket: nil,
1642
1459
  region: context.config.region,
1643
1460
  use_fips: context.config.use_fips_endpoint,
1644
1461
  use_dual_stack: context[:use_dualstack_endpoint],
1645
- endpoint: endpoint,
1462
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1646
1463
  force_path_style: context.config.force_path_style,
1647
1464
  accelerate: context[:use_accelerate_endpoint],
1648
1465
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1661,15 +1478,12 @@ module Aws::S3
1661
1478
 
1662
1479
  class ListDirectoryBuckets
1663
1480
  def self.build(context)
1664
- unless context.config.regional_endpoint
1665
- endpoint = context.config.endpoint.to_s
1666
- end
1667
1481
  Aws::S3::EndpointParameters.new(
1668
1482
  bucket: nil,
1669
1483
  region: context.config.region,
1670
1484
  use_fips: context.config.use_fips_endpoint,
1671
1485
  use_dual_stack: context[:use_dualstack_endpoint],
1672
- endpoint: endpoint,
1486
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1673
1487
  force_path_style: context.config.force_path_style,
1674
1488
  accelerate: context[:use_accelerate_endpoint],
1675
1489
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1688,15 +1502,12 @@ module Aws::S3
1688
1502
 
1689
1503
  class ListMultipartUploads
1690
1504
  def self.build(context)
1691
- unless context.config.regional_endpoint
1692
- endpoint = context.config.endpoint.to_s
1693
- end
1694
1505
  Aws::S3::EndpointParameters.new(
1695
1506
  bucket: context.params[:bucket],
1696
1507
  region: context.config.region,
1697
1508
  use_fips: context.config.use_fips_endpoint,
1698
1509
  use_dual_stack: context[:use_dualstack_endpoint],
1699
- endpoint: endpoint,
1510
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1700
1511
  force_path_style: context.config.force_path_style,
1701
1512
  accelerate: context[:use_accelerate_endpoint],
1702
1513
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1715,15 +1526,12 @@ module Aws::S3
1715
1526
 
1716
1527
  class ListObjectVersions
1717
1528
  def self.build(context)
1718
- unless context.config.regional_endpoint
1719
- endpoint = context.config.endpoint.to_s
1720
- end
1721
1529
  Aws::S3::EndpointParameters.new(
1722
1530
  bucket: context.params[:bucket],
1723
1531
  region: context.config.region,
1724
1532
  use_fips: context.config.use_fips_endpoint,
1725
1533
  use_dual_stack: context[:use_dualstack_endpoint],
1726
- endpoint: endpoint,
1534
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1727
1535
  force_path_style: context.config.force_path_style,
1728
1536
  accelerate: context[:use_accelerate_endpoint],
1729
1537
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1742,15 +1550,12 @@ module Aws::S3
1742
1550
 
1743
1551
  class ListObjects
1744
1552
  def self.build(context)
1745
- unless context.config.regional_endpoint
1746
- endpoint = context.config.endpoint.to_s
1747
- end
1748
1553
  Aws::S3::EndpointParameters.new(
1749
1554
  bucket: context.params[:bucket],
1750
1555
  region: context.config.region,
1751
1556
  use_fips: context.config.use_fips_endpoint,
1752
1557
  use_dual_stack: context[:use_dualstack_endpoint],
1753
- endpoint: endpoint,
1558
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1754
1559
  force_path_style: context.config.force_path_style,
1755
1560
  accelerate: context[:use_accelerate_endpoint],
1756
1561
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1769,15 +1574,12 @@ module Aws::S3
1769
1574
 
1770
1575
  class ListObjectsV2
1771
1576
  def self.build(context)
1772
- unless context.config.regional_endpoint
1773
- endpoint = context.config.endpoint.to_s
1774
- end
1775
1577
  Aws::S3::EndpointParameters.new(
1776
1578
  bucket: context.params[:bucket],
1777
1579
  region: context.config.region,
1778
1580
  use_fips: context.config.use_fips_endpoint,
1779
1581
  use_dual_stack: context[:use_dualstack_endpoint],
1780
- endpoint: endpoint,
1582
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1781
1583
  force_path_style: context.config.force_path_style,
1782
1584
  accelerate: context[:use_accelerate_endpoint],
1783
1585
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1796,15 +1598,12 @@ module Aws::S3
1796
1598
 
1797
1599
  class ListParts
1798
1600
  def self.build(context)
1799
- unless context.config.regional_endpoint
1800
- endpoint = context.config.endpoint.to_s
1801
- end
1802
1601
  Aws::S3::EndpointParameters.new(
1803
1602
  bucket: context.params[:bucket],
1804
1603
  region: context.config.region,
1805
1604
  use_fips: context.config.use_fips_endpoint,
1806
1605
  use_dual_stack: context[:use_dualstack_endpoint],
1807
- endpoint: endpoint,
1606
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1808
1607
  force_path_style: context.config.force_path_style,
1809
1608
  accelerate: context[:use_accelerate_endpoint],
1810
1609
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1823,15 +1622,12 @@ module Aws::S3
1823
1622
 
1824
1623
  class PutBucketAccelerateConfiguration
1825
1624
  def self.build(context)
1826
- unless context.config.regional_endpoint
1827
- endpoint = context.config.endpoint.to_s
1828
- end
1829
1625
  Aws::S3::EndpointParameters.new(
1830
1626
  bucket: context.params[:bucket],
1831
1627
  region: context.config.region,
1832
1628
  use_fips: context.config.use_fips_endpoint,
1833
1629
  use_dual_stack: context[:use_dualstack_endpoint],
1834
- endpoint: endpoint,
1630
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1835
1631
  force_path_style: context.config.force_path_style,
1836
1632
  accelerate: context[:use_accelerate_endpoint],
1837
1633
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1850,15 +1646,12 @@ module Aws::S3
1850
1646
 
1851
1647
  class PutBucketAcl
1852
1648
  def self.build(context)
1853
- unless context.config.regional_endpoint
1854
- endpoint = context.config.endpoint.to_s
1855
- end
1856
1649
  Aws::S3::EndpointParameters.new(
1857
1650
  bucket: context.params[:bucket],
1858
1651
  region: context.config.region,
1859
1652
  use_fips: context.config.use_fips_endpoint,
1860
1653
  use_dual_stack: context[:use_dualstack_endpoint],
1861
- endpoint: endpoint,
1654
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1862
1655
  force_path_style: context.config.force_path_style,
1863
1656
  accelerate: context[:use_accelerate_endpoint],
1864
1657
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1877,15 +1670,12 @@ module Aws::S3
1877
1670
 
1878
1671
  class PutBucketAnalyticsConfiguration
1879
1672
  def self.build(context)
1880
- unless context.config.regional_endpoint
1881
- endpoint = context.config.endpoint.to_s
1882
- end
1883
1673
  Aws::S3::EndpointParameters.new(
1884
1674
  bucket: context.params[:bucket],
1885
1675
  region: context.config.region,
1886
1676
  use_fips: context.config.use_fips_endpoint,
1887
1677
  use_dual_stack: context[:use_dualstack_endpoint],
1888
- endpoint: endpoint,
1678
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1889
1679
  force_path_style: context.config.force_path_style,
1890
1680
  accelerate: context[:use_accelerate_endpoint],
1891
1681
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1904,15 +1694,12 @@ module Aws::S3
1904
1694
 
1905
1695
  class PutBucketCors
1906
1696
  def self.build(context)
1907
- unless context.config.regional_endpoint
1908
- endpoint = context.config.endpoint.to_s
1909
- end
1910
1697
  Aws::S3::EndpointParameters.new(
1911
1698
  bucket: context.params[:bucket],
1912
1699
  region: context.config.region,
1913
1700
  use_fips: context.config.use_fips_endpoint,
1914
1701
  use_dual_stack: context[:use_dualstack_endpoint],
1915
- endpoint: endpoint,
1702
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1916
1703
  force_path_style: context.config.force_path_style,
1917
1704
  accelerate: context[:use_accelerate_endpoint],
1918
1705
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1931,15 +1718,12 @@ module Aws::S3
1931
1718
 
1932
1719
  class PutBucketEncryption
1933
1720
  def self.build(context)
1934
- unless context.config.regional_endpoint
1935
- endpoint = context.config.endpoint.to_s
1936
- end
1937
1721
  Aws::S3::EndpointParameters.new(
1938
1722
  bucket: context.params[:bucket],
1939
1723
  region: context.config.region,
1940
1724
  use_fips: context.config.use_fips_endpoint,
1941
1725
  use_dual_stack: context[:use_dualstack_endpoint],
1942
- endpoint: endpoint,
1726
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1943
1727
  force_path_style: context.config.force_path_style,
1944
1728
  accelerate: context[:use_accelerate_endpoint],
1945
1729
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1958,15 +1742,12 @@ module Aws::S3
1958
1742
 
1959
1743
  class PutBucketIntelligentTieringConfiguration
1960
1744
  def self.build(context)
1961
- unless context.config.regional_endpoint
1962
- endpoint = context.config.endpoint.to_s
1963
- end
1964
1745
  Aws::S3::EndpointParameters.new(
1965
1746
  bucket: context.params[:bucket],
1966
1747
  region: context.config.region,
1967
1748
  use_fips: context.config.use_fips_endpoint,
1968
1749
  use_dual_stack: context[:use_dualstack_endpoint],
1969
- endpoint: endpoint,
1750
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1970
1751
  force_path_style: context.config.force_path_style,
1971
1752
  accelerate: context[:use_accelerate_endpoint],
1972
1753
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -1985,15 +1766,12 @@ module Aws::S3
1985
1766
 
1986
1767
  class PutBucketInventoryConfiguration
1987
1768
  def self.build(context)
1988
- unless context.config.regional_endpoint
1989
- endpoint = context.config.endpoint.to_s
1990
- end
1991
1769
  Aws::S3::EndpointParameters.new(
1992
1770
  bucket: context.params[:bucket],
1993
1771
  region: context.config.region,
1994
1772
  use_fips: context.config.use_fips_endpoint,
1995
1773
  use_dual_stack: context[:use_dualstack_endpoint],
1996
- endpoint: endpoint,
1774
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
1997
1775
  force_path_style: context.config.force_path_style,
1998
1776
  accelerate: context[:use_accelerate_endpoint],
1999
1777
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2012,15 +1790,12 @@ module Aws::S3
2012
1790
 
2013
1791
  class PutBucketLifecycle
2014
1792
  def self.build(context)
2015
- unless context.config.regional_endpoint
2016
- endpoint = context.config.endpoint.to_s
2017
- end
2018
1793
  Aws::S3::EndpointParameters.new(
2019
1794
  bucket: context.params[:bucket],
2020
1795
  region: context.config.region,
2021
1796
  use_fips: context.config.use_fips_endpoint,
2022
1797
  use_dual_stack: context[:use_dualstack_endpoint],
2023
- endpoint: endpoint,
1798
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2024
1799
  force_path_style: context.config.force_path_style,
2025
1800
  accelerate: context[:use_accelerate_endpoint],
2026
1801
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2039,15 +1814,12 @@ module Aws::S3
2039
1814
 
2040
1815
  class PutBucketLifecycleConfiguration
2041
1816
  def self.build(context)
2042
- unless context.config.regional_endpoint
2043
- endpoint = context.config.endpoint.to_s
2044
- end
2045
1817
  Aws::S3::EndpointParameters.new(
2046
1818
  bucket: context.params[:bucket],
2047
1819
  region: context.config.region,
2048
1820
  use_fips: context.config.use_fips_endpoint,
2049
1821
  use_dual_stack: context[:use_dualstack_endpoint],
2050
- endpoint: endpoint,
1822
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2051
1823
  force_path_style: context.config.force_path_style,
2052
1824
  accelerate: context[:use_accelerate_endpoint],
2053
1825
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2066,15 +1838,12 @@ module Aws::S3
2066
1838
 
2067
1839
  class PutBucketLogging
2068
1840
  def self.build(context)
2069
- unless context.config.regional_endpoint
2070
- endpoint = context.config.endpoint.to_s
2071
- end
2072
1841
  Aws::S3::EndpointParameters.new(
2073
1842
  bucket: context.params[:bucket],
2074
1843
  region: context.config.region,
2075
1844
  use_fips: context.config.use_fips_endpoint,
2076
1845
  use_dual_stack: context[:use_dualstack_endpoint],
2077
- endpoint: endpoint,
1846
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2078
1847
  force_path_style: context.config.force_path_style,
2079
1848
  accelerate: context[:use_accelerate_endpoint],
2080
1849
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2093,15 +1862,12 @@ module Aws::S3
2093
1862
 
2094
1863
  class PutBucketMetricsConfiguration
2095
1864
  def self.build(context)
2096
- unless context.config.regional_endpoint
2097
- endpoint = context.config.endpoint.to_s
2098
- end
2099
1865
  Aws::S3::EndpointParameters.new(
2100
1866
  bucket: context.params[:bucket],
2101
1867
  region: context.config.region,
2102
1868
  use_fips: context.config.use_fips_endpoint,
2103
1869
  use_dual_stack: context[:use_dualstack_endpoint],
2104
- endpoint: endpoint,
1870
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2105
1871
  force_path_style: context.config.force_path_style,
2106
1872
  accelerate: context[:use_accelerate_endpoint],
2107
1873
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2120,15 +1886,12 @@ module Aws::S3
2120
1886
 
2121
1887
  class PutBucketNotification
2122
1888
  def self.build(context)
2123
- unless context.config.regional_endpoint
2124
- endpoint = context.config.endpoint.to_s
2125
- end
2126
1889
  Aws::S3::EndpointParameters.new(
2127
1890
  bucket: context.params[:bucket],
2128
1891
  region: context.config.region,
2129
1892
  use_fips: context.config.use_fips_endpoint,
2130
1893
  use_dual_stack: context[:use_dualstack_endpoint],
2131
- endpoint: endpoint,
1894
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2132
1895
  force_path_style: context.config.force_path_style,
2133
1896
  accelerate: context[:use_accelerate_endpoint],
2134
1897
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2147,15 +1910,12 @@ module Aws::S3
2147
1910
 
2148
1911
  class PutBucketNotificationConfiguration
2149
1912
  def self.build(context)
2150
- unless context.config.regional_endpoint
2151
- endpoint = context.config.endpoint.to_s
2152
- end
2153
1913
  Aws::S3::EndpointParameters.new(
2154
1914
  bucket: context.params[:bucket],
2155
1915
  region: context.config.region,
2156
1916
  use_fips: context.config.use_fips_endpoint,
2157
1917
  use_dual_stack: context[:use_dualstack_endpoint],
2158
- endpoint: endpoint,
1918
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2159
1919
  force_path_style: context.config.force_path_style,
2160
1920
  accelerate: context[:use_accelerate_endpoint],
2161
1921
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2174,15 +1934,12 @@ module Aws::S3
2174
1934
 
2175
1935
  class PutBucketOwnershipControls
2176
1936
  def self.build(context)
2177
- unless context.config.regional_endpoint
2178
- endpoint = context.config.endpoint.to_s
2179
- end
2180
1937
  Aws::S3::EndpointParameters.new(
2181
1938
  bucket: context.params[:bucket],
2182
1939
  region: context.config.region,
2183
1940
  use_fips: context.config.use_fips_endpoint,
2184
1941
  use_dual_stack: context[:use_dualstack_endpoint],
2185
- endpoint: endpoint,
1942
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2186
1943
  force_path_style: context.config.force_path_style,
2187
1944
  accelerate: context[:use_accelerate_endpoint],
2188
1945
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2201,15 +1958,12 @@ module Aws::S3
2201
1958
 
2202
1959
  class PutBucketPolicy
2203
1960
  def self.build(context)
2204
- unless context.config.regional_endpoint
2205
- endpoint = context.config.endpoint.to_s
2206
- end
2207
1961
  Aws::S3::EndpointParameters.new(
2208
1962
  bucket: context.params[:bucket],
2209
1963
  region: context.config.region,
2210
1964
  use_fips: context.config.use_fips_endpoint,
2211
1965
  use_dual_stack: context[:use_dualstack_endpoint],
2212
- endpoint: endpoint,
1966
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2213
1967
  force_path_style: context.config.force_path_style,
2214
1968
  accelerate: context[:use_accelerate_endpoint],
2215
1969
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2228,15 +1982,12 @@ module Aws::S3
2228
1982
 
2229
1983
  class PutBucketReplication
2230
1984
  def self.build(context)
2231
- unless context.config.regional_endpoint
2232
- endpoint = context.config.endpoint.to_s
2233
- end
2234
1985
  Aws::S3::EndpointParameters.new(
2235
1986
  bucket: context.params[:bucket],
2236
1987
  region: context.config.region,
2237
1988
  use_fips: context.config.use_fips_endpoint,
2238
1989
  use_dual_stack: context[:use_dualstack_endpoint],
2239
- endpoint: endpoint,
1990
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2240
1991
  force_path_style: context.config.force_path_style,
2241
1992
  accelerate: context[:use_accelerate_endpoint],
2242
1993
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2255,15 +2006,12 @@ module Aws::S3
2255
2006
 
2256
2007
  class PutBucketRequestPayment
2257
2008
  def self.build(context)
2258
- unless context.config.regional_endpoint
2259
- endpoint = context.config.endpoint.to_s
2260
- end
2261
2009
  Aws::S3::EndpointParameters.new(
2262
2010
  bucket: context.params[:bucket],
2263
2011
  region: context.config.region,
2264
2012
  use_fips: context.config.use_fips_endpoint,
2265
2013
  use_dual_stack: context[:use_dualstack_endpoint],
2266
- endpoint: endpoint,
2014
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2267
2015
  force_path_style: context.config.force_path_style,
2268
2016
  accelerate: context[:use_accelerate_endpoint],
2269
2017
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2282,15 +2030,12 @@ module Aws::S3
2282
2030
 
2283
2031
  class PutBucketTagging
2284
2032
  def self.build(context)
2285
- unless context.config.regional_endpoint
2286
- endpoint = context.config.endpoint.to_s
2287
- end
2288
2033
  Aws::S3::EndpointParameters.new(
2289
2034
  bucket: context.params[:bucket],
2290
2035
  region: context.config.region,
2291
2036
  use_fips: context.config.use_fips_endpoint,
2292
2037
  use_dual_stack: context[:use_dualstack_endpoint],
2293
- endpoint: endpoint,
2038
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2294
2039
  force_path_style: context.config.force_path_style,
2295
2040
  accelerate: context[:use_accelerate_endpoint],
2296
2041
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2309,15 +2054,12 @@ module Aws::S3
2309
2054
 
2310
2055
  class PutBucketVersioning
2311
2056
  def self.build(context)
2312
- unless context.config.regional_endpoint
2313
- endpoint = context.config.endpoint.to_s
2314
- end
2315
2057
  Aws::S3::EndpointParameters.new(
2316
2058
  bucket: context.params[:bucket],
2317
2059
  region: context.config.region,
2318
2060
  use_fips: context.config.use_fips_endpoint,
2319
2061
  use_dual_stack: context[:use_dualstack_endpoint],
2320
- endpoint: endpoint,
2062
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2321
2063
  force_path_style: context.config.force_path_style,
2322
2064
  accelerate: context[:use_accelerate_endpoint],
2323
2065
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2336,15 +2078,12 @@ module Aws::S3
2336
2078
 
2337
2079
  class PutBucketWebsite
2338
2080
  def self.build(context)
2339
- unless context.config.regional_endpoint
2340
- endpoint = context.config.endpoint.to_s
2341
- end
2342
2081
  Aws::S3::EndpointParameters.new(
2343
2082
  bucket: context.params[:bucket],
2344
2083
  region: context.config.region,
2345
2084
  use_fips: context.config.use_fips_endpoint,
2346
2085
  use_dual_stack: context[:use_dualstack_endpoint],
2347
- endpoint: endpoint,
2086
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2348
2087
  force_path_style: context.config.force_path_style,
2349
2088
  accelerate: context[:use_accelerate_endpoint],
2350
2089
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2363,15 +2102,12 @@ module Aws::S3
2363
2102
 
2364
2103
  class PutObject
2365
2104
  def self.build(context)
2366
- unless context.config.regional_endpoint
2367
- endpoint = context.config.endpoint.to_s
2368
- end
2369
2105
  Aws::S3::EndpointParameters.new(
2370
2106
  bucket: context.params[:bucket],
2371
2107
  region: context.config.region,
2372
2108
  use_fips: context.config.use_fips_endpoint,
2373
2109
  use_dual_stack: context[:use_dualstack_endpoint],
2374
- endpoint: endpoint,
2110
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2375
2111
  force_path_style: context.config.force_path_style,
2376
2112
  accelerate: context[:use_accelerate_endpoint],
2377
2113
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2390,15 +2126,12 @@ module Aws::S3
2390
2126
 
2391
2127
  class PutObjectAcl
2392
2128
  def self.build(context)
2393
- unless context.config.regional_endpoint
2394
- endpoint = context.config.endpoint.to_s
2395
- end
2396
2129
  Aws::S3::EndpointParameters.new(
2397
2130
  bucket: context.params[:bucket],
2398
2131
  region: context.config.region,
2399
2132
  use_fips: context.config.use_fips_endpoint,
2400
2133
  use_dual_stack: context[:use_dualstack_endpoint],
2401
- endpoint: endpoint,
2134
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2402
2135
  force_path_style: context.config.force_path_style,
2403
2136
  accelerate: context[:use_accelerate_endpoint],
2404
2137
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2417,15 +2150,12 @@ module Aws::S3
2417
2150
 
2418
2151
  class PutObjectLegalHold
2419
2152
  def self.build(context)
2420
- unless context.config.regional_endpoint
2421
- endpoint = context.config.endpoint.to_s
2422
- end
2423
2153
  Aws::S3::EndpointParameters.new(
2424
2154
  bucket: context.params[:bucket],
2425
2155
  region: context.config.region,
2426
2156
  use_fips: context.config.use_fips_endpoint,
2427
2157
  use_dual_stack: context[:use_dualstack_endpoint],
2428
- endpoint: endpoint,
2158
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2429
2159
  force_path_style: context.config.force_path_style,
2430
2160
  accelerate: context[:use_accelerate_endpoint],
2431
2161
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2444,15 +2174,12 @@ module Aws::S3
2444
2174
 
2445
2175
  class PutObjectLockConfiguration
2446
2176
  def self.build(context)
2447
- unless context.config.regional_endpoint
2448
- endpoint = context.config.endpoint.to_s
2449
- end
2450
2177
  Aws::S3::EndpointParameters.new(
2451
2178
  bucket: context.params[:bucket],
2452
2179
  region: context.config.region,
2453
2180
  use_fips: context.config.use_fips_endpoint,
2454
2181
  use_dual_stack: context[:use_dualstack_endpoint],
2455
- endpoint: endpoint,
2182
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2456
2183
  force_path_style: context.config.force_path_style,
2457
2184
  accelerate: context[:use_accelerate_endpoint],
2458
2185
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2471,15 +2198,12 @@ module Aws::S3
2471
2198
 
2472
2199
  class PutObjectRetention
2473
2200
  def self.build(context)
2474
- unless context.config.regional_endpoint
2475
- endpoint = context.config.endpoint.to_s
2476
- end
2477
2201
  Aws::S3::EndpointParameters.new(
2478
2202
  bucket: context.params[:bucket],
2479
2203
  region: context.config.region,
2480
2204
  use_fips: context.config.use_fips_endpoint,
2481
2205
  use_dual_stack: context[:use_dualstack_endpoint],
2482
- endpoint: endpoint,
2206
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2483
2207
  force_path_style: context.config.force_path_style,
2484
2208
  accelerate: context[:use_accelerate_endpoint],
2485
2209
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2498,15 +2222,12 @@ module Aws::S3
2498
2222
 
2499
2223
  class PutObjectTagging
2500
2224
  def self.build(context)
2501
- unless context.config.regional_endpoint
2502
- endpoint = context.config.endpoint.to_s
2503
- end
2504
2225
  Aws::S3::EndpointParameters.new(
2505
2226
  bucket: context.params[:bucket],
2506
2227
  region: context.config.region,
2507
2228
  use_fips: context.config.use_fips_endpoint,
2508
2229
  use_dual_stack: context[:use_dualstack_endpoint],
2509
- endpoint: endpoint,
2230
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2510
2231
  force_path_style: context.config.force_path_style,
2511
2232
  accelerate: context[:use_accelerate_endpoint],
2512
2233
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2525,15 +2246,12 @@ module Aws::S3
2525
2246
 
2526
2247
  class PutPublicAccessBlock
2527
2248
  def self.build(context)
2528
- unless context.config.regional_endpoint
2529
- endpoint = context.config.endpoint.to_s
2530
- end
2531
2249
  Aws::S3::EndpointParameters.new(
2532
2250
  bucket: context.params[:bucket],
2533
2251
  region: context.config.region,
2534
2252
  use_fips: context.config.use_fips_endpoint,
2535
2253
  use_dual_stack: context[:use_dualstack_endpoint],
2536
- endpoint: endpoint,
2254
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2537
2255
  force_path_style: context.config.force_path_style,
2538
2256
  accelerate: context[:use_accelerate_endpoint],
2539
2257
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2552,15 +2270,12 @@ module Aws::S3
2552
2270
 
2553
2271
  class RestoreObject
2554
2272
  def self.build(context)
2555
- unless context.config.regional_endpoint
2556
- endpoint = context.config.endpoint.to_s
2557
- end
2558
2273
  Aws::S3::EndpointParameters.new(
2559
2274
  bucket: context.params[:bucket],
2560
2275
  region: context.config.region,
2561
2276
  use_fips: context.config.use_fips_endpoint,
2562
2277
  use_dual_stack: context[:use_dualstack_endpoint],
2563
- endpoint: endpoint,
2278
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2564
2279
  force_path_style: context.config.force_path_style,
2565
2280
  accelerate: context[:use_accelerate_endpoint],
2566
2281
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2579,15 +2294,12 @@ module Aws::S3
2579
2294
 
2580
2295
  class SelectObjectContent
2581
2296
  def self.build(context)
2582
- unless context.config.regional_endpoint
2583
- endpoint = context.config.endpoint.to_s
2584
- end
2585
2297
  Aws::S3::EndpointParameters.new(
2586
2298
  bucket: context.params[:bucket],
2587
2299
  region: context.config.region,
2588
2300
  use_fips: context.config.use_fips_endpoint,
2589
2301
  use_dual_stack: context[:use_dualstack_endpoint],
2590
- endpoint: endpoint,
2302
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2591
2303
  force_path_style: context.config.force_path_style,
2592
2304
  accelerate: context[:use_accelerate_endpoint],
2593
2305
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2606,15 +2318,12 @@ module Aws::S3
2606
2318
 
2607
2319
  class UploadPart
2608
2320
  def self.build(context)
2609
- unless context.config.regional_endpoint
2610
- endpoint = context.config.endpoint.to_s
2611
- end
2612
2321
  Aws::S3::EndpointParameters.new(
2613
2322
  bucket: context.params[:bucket],
2614
2323
  region: context.config.region,
2615
2324
  use_fips: context.config.use_fips_endpoint,
2616
2325
  use_dual_stack: context[:use_dualstack_endpoint],
2617
- endpoint: endpoint,
2326
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2618
2327
  force_path_style: context.config.force_path_style,
2619
2328
  accelerate: context[:use_accelerate_endpoint],
2620
2329
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2633,15 +2342,12 @@ module Aws::S3
2633
2342
 
2634
2343
  class UploadPartCopy
2635
2344
  def self.build(context)
2636
- unless context.config.regional_endpoint
2637
- endpoint = context.config.endpoint.to_s
2638
- end
2639
2345
  Aws::S3::EndpointParameters.new(
2640
2346
  bucket: context.params[:bucket],
2641
2347
  region: context.config.region,
2642
2348
  use_fips: context.config.use_fips_endpoint,
2643
2349
  use_dual_stack: context[:use_dualstack_endpoint],
2644
- endpoint: endpoint,
2350
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2645
2351
  force_path_style: context.config.force_path_style,
2646
2352
  accelerate: context[:use_accelerate_endpoint],
2647
2353
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
@@ -2660,15 +2366,12 @@ module Aws::S3
2660
2366
 
2661
2367
  class WriteGetObjectResponse
2662
2368
  def self.build(context)
2663
- unless context.config.regional_endpoint
2664
- endpoint = context.config.endpoint.to_s
2665
- end
2666
2369
  Aws::S3::EndpointParameters.new(
2667
2370
  bucket: nil,
2668
2371
  region: context.config.region,
2669
2372
  use_fips: context.config.use_fips_endpoint,
2670
2373
  use_dual_stack: context[:use_dualstack_endpoint],
2671
- endpoint: endpoint,
2374
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
2672
2375
  force_path_style: context.config.force_path_style,
2673
2376
  accelerate: context[:use_accelerate_endpoint],
2674
2377
  use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',