aws-sdk-s3 1.116.0 → 1.117.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +20 -3
- data/lib/aws-sdk-s3/client_api.rb +95 -95
- data/lib/aws-sdk-s3/customizations/bucket.rb +20 -46
- data/lib/aws-sdk-s3/endpoint_parameters.rb +142 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +2020 -0
- data/lib/aws-sdk-s3/endpoints.rb +2149 -0
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +25 -6
- data/lib/aws-sdk-s3/plugins/accelerate.rb +3 -50
- data/lib/aws-sdk-s3/plugins/arn.rb +0 -184
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +3 -39
- data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +1 -6
- data/lib/aws-sdk-s3/plugins/dualstack.rb +1 -49
- data/lib/aws-sdk-s3/plugins/endpoints.rb +262 -0
- data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +2 -1
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +0 -29
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +27 -123
- data/lib/aws-sdk-s3/presigned_post.rb +9 -16
- data/lib/aws-sdk-s3/presigner.rb +19 -34
- data/lib/aws-sdk-s3.rb +5 -1
- metadata +8 -9
- data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -69
- data/lib/aws-sdk-s3/arn/multi_region_access_point_arn.rb +0 -68
- data/lib/aws-sdk-s3/arn/object_lambda_arn.rb +0 -69
- data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -74
- data/lib/aws-sdk-s3/plugins/object_lambda_endpoint.rb +0 -25
@@ -0,0 +1,2149 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::S3
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class AbortMultipartUpload
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::S3::EndpointParameters.new(
|
20
|
+
bucket: context.params[:bucket],
|
21
|
+
region: context.config.region,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
24
|
+
endpoint: endpoint,
|
25
|
+
force_path_style: context.config.force_path_style,
|
26
|
+
accelerate: context[:use_accelerate_endpoint],
|
27
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
28
|
+
use_object_lambda_endpoint: nil,
|
29
|
+
disable_access_points: nil,
|
30
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
31
|
+
use_arn_region: context.config.s3_use_arn_region,
|
32
|
+
)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
class CompleteMultipartUpload
|
37
|
+
def self.build(context)
|
38
|
+
unless context.config.regional_endpoint
|
39
|
+
endpoint = context.config.endpoint.to_s
|
40
|
+
end
|
41
|
+
Aws::S3::EndpointParameters.new(
|
42
|
+
bucket: context.params[:bucket],
|
43
|
+
region: context.config.region,
|
44
|
+
use_fips: context.config.use_fips_endpoint,
|
45
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
46
|
+
endpoint: endpoint,
|
47
|
+
force_path_style: context.config.force_path_style,
|
48
|
+
accelerate: context[:use_accelerate_endpoint],
|
49
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
50
|
+
use_object_lambda_endpoint: nil,
|
51
|
+
disable_access_points: nil,
|
52
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
53
|
+
use_arn_region: context.config.s3_use_arn_region,
|
54
|
+
)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
class CopyObject
|
59
|
+
def self.build(context)
|
60
|
+
unless context.config.regional_endpoint
|
61
|
+
endpoint = context.config.endpoint.to_s
|
62
|
+
end
|
63
|
+
Aws::S3::EndpointParameters.new(
|
64
|
+
bucket: context.params[:bucket],
|
65
|
+
region: context.config.region,
|
66
|
+
use_fips: context.config.use_fips_endpoint,
|
67
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
68
|
+
endpoint: endpoint,
|
69
|
+
force_path_style: context.config.force_path_style,
|
70
|
+
accelerate: context[:use_accelerate_endpoint],
|
71
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
72
|
+
use_object_lambda_endpoint: nil,
|
73
|
+
disable_access_points: nil,
|
74
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
75
|
+
use_arn_region: context.config.s3_use_arn_region,
|
76
|
+
)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class CreateBucket
|
81
|
+
def self.build(context)
|
82
|
+
unless context.config.regional_endpoint
|
83
|
+
endpoint = context.config.endpoint.to_s
|
84
|
+
end
|
85
|
+
Aws::S3::EndpointParameters.new(
|
86
|
+
bucket: context.params[:bucket],
|
87
|
+
region: context.config.region,
|
88
|
+
use_fips: context.config.use_fips_endpoint,
|
89
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
90
|
+
endpoint: endpoint,
|
91
|
+
force_path_style: context.config.force_path_style,
|
92
|
+
accelerate: context[:use_accelerate_endpoint],
|
93
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
94
|
+
use_object_lambda_endpoint: nil,
|
95
|
+
disable_access_points: true,
|
96
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
97
|
+
use_arn_region: context.config.s3_use_arn_region,
|
98
|
+
)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
class CreateMultipartUpload
|
103
|
+
def self.build(context)
|
104
|
+
unless context.config.regional_endpoint
|
105
|
+
endpoint = context.config.endpoint.to_s
|
106
|
+
end
|
107
|
+
Aws::S3::EndpointParameters.new(
|
108
|
+
bucket: context.params[:bucket],
|
109
|
+
region: context.config.region,
|
110
|
+
use_fips: context.config.use_fips_endpoint,
|
111
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
112
|
+
endpoint: endpoint,
|
113
|
+
force_path_style: context.config.force_path_style,
|
114
|
+
accelerate: context[:use_accelerate_endpoint],
|
115
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
116
|
+
use_object_lambda_endpoint: nil,
|
117
|
+
disable_access_points: nil,
|
118
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
119
|
+
use_arn_region: context.config.s3_use_arn_region,
|
120
|
+
)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
class DeleteBucket
|
125
|
+
def self.build(context)
|
126
|
+
unless context.config.regional_endpoint
|
127
|
+
endpoint = context.config.endpoint.to_s
|
128
|
+
end
|
129
|
+
Aws::S3::EndpointParameters.new(
|
130
|
+
bucket: context.params[:bucket],
|
131
|
+
region: context.config.region,
|
132
|
+
use_fips: context.config.use_fips_endpoint,
|
133
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
134
|
+
endpoint: endpoint,
|
135
|
+
force_path_style: context.config.force_path_style,
|
136
|
+
accelerate: context[:use_accelerate_endpoint],
|
137
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
138
|
+
use_object_lambda_endpoint: nil,
|
139
|
+
disable_access_points: nil,
|
140
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
141
|
+
use_arn_region: context.config.s3_use_arn_region,
|
142
|
+
)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
class DeleteBucketAnalyticsConfiguration
|
147
|
+
def self.build(context)
|
148
|
+
unless context.config.regional_endpoint
|
149
|
+
endpoint = context.config.endpoint.to_s
|
150
|
+
end
|
151
|
+
Aws::S3::EndpointParameters.new(
|
152
|
+
bucket: context.params[:bucket],
|
153
|
+
region: context.config.region,
|
154
|
+
use_fips: context.config.use_fips_endpoint,
|
155
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
156
|
+
endpoint: endpoint,
|
157
|
+
force_path_style: context.config.force_path_style,
|
158
|
+
accelerate: context[:use_accelerate_endpoint],
|
159
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
160
|
+
use_object_lambda_endpoint: nil,
|
161
|
+
disable_access_points: nil,
|
162
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
163
|
+
use_arn_region: context.config.s3_use_arn_region,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class DeleteBucketCors
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::S3::EndpointParameters.new(
|
174
|
+
bucket: context.params[:bucket],
|
175
|
+
region: context.config.region,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
178
|
+
endpoint: endpoint,
|
179
|
+
force_path_style: context.config.force_path_style,
|
180
|
+
accelerate: context[:use_accelerate_endpoint],
|
181
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
182
|
+
use_object_lambda_endpoint: nil,
|
183
|
+
disable_access_points: nil,
|
184
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
185
|
+
use_arn_region: context.config.s3_use_arn_region,
|
186
|
+
)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class DeleteBucketEncryption
|
191
|
+
def self.build(context)
|
192
|
+
unless context.config.regional_endpoint
|
193
|
+
endpoint = context.config.endpoint.to_s
|
194
|
+
end
|
195
|
+
Aws::S3::EndpointParameters.new(
|
196
|
+
bucket: context.params[:bucket],
|
197
|
+
region: context.config.region,
|
198
|
+
use_fips: context.config.use_fips_endpoint,
|
199
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
200
|
+
endpoint: endpoint,
|
201
|
+
force_path_style: context.config.force_path_style,
|
202
|
+
accelerate: context[:use_accelerate_endpoint],
|
203
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
204
|
+
use_object_lambda_endpoint: nil,
|
205
|
+
disable_access_points: nil,
|
206
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
207
|
+
use_arn_region: context.config.s3_use_arn_region,
|
208
|
+
)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
class DeleteBucketIntelligentTieringConfiguration
|
213
|
+
def self.build(context)
|
214
|
+
unless context.config.regional_endpoint
|
215
|
+
endpoint = context.config.endpoint.to_s
|
216
|
+
end
|
217
|
+
Aws::S3::EndpointParameters.new(
|
218
|
+
bucket: context.params[:bucket],
|
219
|
+
region: context.config.region,
|
220
|
+
use_fips: context.config.use_fips_endpoint,
|
221
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
222
|
+
endpoint: endpoint,
|
223
|
+
force_path_style: context.config.force_path_style,
|
224
|
+
accelerate: context[:use_accelerate_endpoint],
|
225
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
226
|
+
use_object_lambda_endpoint: nil,
|
227
|
+
disable_access_points: nil,
|
228
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
229
|
+
use_arn_region: context.config.s3_use_arn_region,
|
230
|
+
)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
class DeleteBucketInventoryConfiguration
|
235
|
+
def self.build(context)
|
236
|
+
unless context.config.regional_endpoint
|
237
|
+
endpoint = context.config.endpoint.to_s
|
238
|
+
end
|
239
|
+
Aws::S3::EndpointParameters.new(
|
240
|
+
bucket: context.params[:bucket],
|
241
|
+
region: context.config.region,
|
242
|
+
use_fips: context.config.use_fips_endpoint,
|
243
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
244
|
+
endpoint: endpoint,
|
245
|
+
force_path_style: context.config.force_path_style,
|
246
|
+
accelerate: context[:use_accelerate_endpoint],
|
247
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
248
|
+
use_object_lambda_endpoint: nil,
|
249
|
+
disable_access_points: nil,
|
250
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
251
|
+
use_arn_region: context.config.s3_use_arn_region,
|
252
|
+
)
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
class DeleteBucketLifecycle
|
257
|
+
def self.build(context)
|
258
|
+
unless context.config.regional_endpoint
|
259
|
+
endpoint = context.config.endpoint.to_s
|
260
|
+
end
|
261
|
+
Aws::S3::EndpointParameters.new(
|
262
|
+
bucket: context.params[:bucket],
|
263
|
+
region: context.config.region,
|
264
|
+
use_fips: context.config.use_fips_endpoint,
|
265
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
266
|
+
endpoint: endpoint,
|
267
|
+
force_path_style: context.config.force_path_style,
|
268
|
+
accelerate: context[:use_accelerate_endpoint],
|
269
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
270
|
+
use_object_lambda_endpoint: nil,
|
271
|
+
disable_access_points: nil,
|
272
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
273
|
+
use_arn_region: context.config.s3_use_arn_region,
|
274
|
+
)
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
class DeleteBucketMetricsConfiguration
|
279
|
+
def self.build(context)
|
280
|
+
unless context.config.regional_endpoint
|
281
|
+
endpoint = context.config.endpoint.to_s
|
282
|
+
end
|
283
|
+
Aws::S3::EndpointParameters.new(
|
284
|
+
bucket: context.params[:bucket],
|
285
|
+
region: context.config.region,
|
286
|
+
use_fips: context.config.use_fips_endpoint,
|
287
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
288
|
+
endpoint: endpoint,
|
289
|
+
force_path_style: context.config.force_path_style,
|
290
|
+
accelerate: context[:use_accelerate_endpoint],
|
291
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
292
|
+
use_object_lambda_endpoint: nil,
|
293
|
+
disable_access_points: nil,
|
294
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
295
|
+
use_arn_region: context.config.s3_use_arn_region,
|
296
|
+
)
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
class DeleteBucketOwnershipControls
|
301
|
+
def self.build(context)
|
302
|
+
unless context.config.regional_endpoint
|
303
|
+
endpoint = context.config.endpoint.to_s
|
304
|
+
end
|
305
|
+
Aws::S3::EndpointParameters.new(
|
306
|
+
bucket: context.params[:bucket],
|
307
|
+
region: context.config.region,
|
308
|
+
use_fips: context.config.use_fips_endpoint,
|
309
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
310
|
+
endpoint: endpoint,
|
311
|
+
force_path_style: context.config.force_path_style,
|
312
|
+
accelerate: context[:use_accelerate_endpoint],
|
313
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
314
|
+
use_object_lambda_endpoint: nil,
|
315
|
+
disable_access_points: nil,
|
316
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
317
|
+
use_arn_region: context.config.s3_use_arn_region,
|
318
|
+
)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
class DeleteBucketPolicy
|
323
|
+
def self.build(context)
|
324
|
+
unless context.config.regional_endpoint
|
325
|
+
endpoint = context.config.endpoint.to_s
|
326
|
+
end
|
327
|
+
Aws::S3::EndpointParameters.new(
|
328
|
+
bucket: context.params[:bucket],
|
329
|
+
region: context.config.region,
|
330
|
+
use_fips: context.config.use_fips_endpoint,
|
331
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
332
|
+
endpoint: endpoint,
|
333
|
+
force_path_style: context.config.force_path_style,
|
334
|
+
accelerate: context[:use_accelerate_endpoint],
|
335
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
336
|
+
use_object_lambda_endpoint: nil,
|
337
|
+
disable_access_points: nil,
|
338
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
339
|
+
use_arn_region: context.config.s3_use_arn_region,
|
340
|
+
)
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
344
|
+
class DeleteBucketReplication
|
345
|
+
def self.build(context)
|
346
|
+
unless context.config.regional_endpoint
|
347
|
+
endpoint = context.config.endpoint.to_s
|
348
|
+
end
|
349
|
+
Aws::S3::EndpointParameters.new(
|
350
|
+
bucket: context.params[:bucket],
|
351
|
+
region: context.config.region,
|
352
|
+
use_fips: context.config.use_fips_endpoint,
|
353
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
354
|
+
endpoint: endpoint,
|
355
|
+
force_path_style: context.config.force_path_style,
|
356
|
+
accelerate: context[:use_accelerate_endpoint],
|
357
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
358
|
+
use_object_lambda_endpoint: nil,
|
359
|
+
disable_access_points: nil,
|
360
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
361
|
+
use_arn_region: context.config.s3_use_arn_region,
|
362
|
+
)
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
class DeleteBucketTagging
|
367
|
+
def self.build(context)
|
368
|
+
unless context.config.regional_endpoint
|
369
|
+
endpoint = context.config.endpoint.to_s
|
370
|
+
end
|
371
|
+
Aws::S3::EndpointParameters.new(
|
372
|
+
bucket: context.params[:bucket],
|
373
|
+
region: context.config.region,
|
374
|
+
use_fips: context.config.use_fips_endpoint,
|
375
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
376
|
+
endpoint: endpoint,
|
377
|
+
force_path_style: context.config.force_path_style,
|
378
|
+
accelerate: context[:use_accelerate_endpoint],
|
379
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
380
|
+
use_object_lambda_endpoint: nil,
|
381
|
+
disable_access_points: nil,
|
382
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
383
|
+
use_arn_region: context.config.s3_use_arn_region,
|
384
|
+
)
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
class DeleteBucketWebsite
|
389
|
+
def self.build(context)
|
390
|
+
unless context.config.regional_endpoint
|
391
|
+
endpoint = context.config.endpoint.to_s
|
392
|
+
end
|
393
|
+
Aws::S3::EndpointParameters.new(
|
394
|
+
bucket: context.params[:bucket],
|
395
|
+
region: context.config.region,
|
396
|
+
use_fips: context.config.use_fips_endpoint,
|
397
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
398
|
+
endpoint: endpoint,
|
399
|
+
force_path_style: context.config.force_path_style,
|
400
|
+
accelerate: context[:use_accelerate_endpoint],
|
401
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
402
|
+
use_object_lambda_endpoint: nil,
|
403
|
+
disable_access_points: nil,
|
404
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
405
|
+
use_arn_region: context.config.s3_use_arn_region,
|
406
|
+
)
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
class DeleteObject
|
411
|
+
def self.build(context)
|
412
|
+
unless context.config.regional_endpoint
|
413
|
+
endpoint = context.config.endpoint.to_s
|
414
|
+
end
|
415
|
+
Aws::S3::EndpointParameters.new(
|
416
|
+
bucket: context.params[:bucket],
|
417
|
+
region: context.config.region,
|
418
|
+
use_fips: context.config.use_fips_endpoint,
|
419
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
420
|
+
endpoint: endpoint,
|
421
|
+
force_path_style: context.config.force_path_style,
|
422
|
+
accelerate: context[:use_accelerate_endpoint],
|
423
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
424
|
+
use_object_lambda_endpoint: nil,
|
425
|
+
disable_access_points: nil,
|
426
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
427
|
+
use_arn_region: context.config.s3_use_arn_region,
|
428
|
+
)
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
class DeleteObjectTagging
|
433
|
+
def self.build(context)
|
434
|
+
unless context.config.regional_endpoint
|
435
|
+
endpoint = context.config.endpoint.to_s
|
436
|
+
end
|
437
|
+
Aws::S3::EndpointParameters.new(
|
438
|
+
bucket: context.params[:bucket],
|
439
|
+
region: context.config.region,
|
440
|
+
use_fips: context.config.use_fips_endpoint,
|
441
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
442
|
+
endpoint: endpoint,
|
443
|
+
force_path_style: context.config.force_path_style,
|
444
|
+
accelerate: context[:use_accelerate_endpoint],
|
445
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
446
|
+
use_object_lambda_endpoint: nil,
|
447
|
+
disable_access_points: nil,
|
448
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
449
|
+
use_arn_region: context.config.s3_use_arn_region,
|
450
|
+
)
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
class DeleteObjects
|
455
|
+
def self.build(context)
|
456
|
+
unless context.config.regional_endpoint
|
457
|
+
endpoint = context.config.endpoint.to_s
|
458
|
+
end
|
459
|
+
Aws::S3::EndpointParameters.new(
|
460
|
+
bucket: context.params[:bucket],
|
461
|
+
region: context.config.region,
|
462
|
+
use_fips: context.config.use_fips_endpoint,
|
463
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
464
|
+
endpoint: endpoint,
|
465
|
+
force_path_style: context.config.force_path_style,
|
466
|
+
accelerate: context[:use_accelerate_endpoint],
|
467
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
468
|
+
use_object_lambda_endpoint: nil,
|
469
|
+
disable_access_points: nil,
|
470
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
471
|
+
use_arn_region: context.config.s3_use_arn_region,
|
472
|
+
)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
class DeletePublicAccessBlock
|
477
|
+
def self.build(context)
|
478
|
+
unless context.config.regional_endpoint
|
479
|
+
endpoint = context.config.endpoint.to_s
|
480
|
+
end
|
481
|
+
Aws::S3::EndpointParameters.new(
|
482
|
+
bucket: context.params[:bucket],
|
483
|
+
region: context.config.region,
|
484
|
+
use_fips: context.config.use_fips_endpoint,
|
485
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
486
|
+
endpoint: endpoint,
|
487
|
+
force_path_style: context.config.force_path_style,
|
488
|
+
accelerate: context[:use_accelerate_endpoint],
|
489
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
490
|
+
use_object_lambda_endpoint: nil,
|
491
|
+
disable_access_points: nil,
|
492
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
493
|
+
use_arn_region: context.config.s3_use_arn_region,
|
494
|
+
)
|
495
|
+
end
|
496
|
+
end
|
497
|
+
|
498
|
+
class GetBucketAccelerateConfiguration
|
499
|
+
def self.build(context)
|
500
|
+
unless context.config.regional_endpoint
|
501
|
+
endpoint = context.config.endpoint.to_s
|
502
|
+
end
|
503
|
+
Aws::S3::EndpointParameters.new(
|
504
|
+
bucket: context.params[:bucket],
|
505
|
+
region: context.config.region,
|
506
|
+
use_fips: context.config.use_fips_endpoint,
|
507
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
508
|
+
endpoint: endpoint,
|
509
|
+
force_path_style: context.config.force_path_style,
|
510
|
+
accelerate: context[:use_accelerate_endpoint],
|
511
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
512
|
+
use_object_lambda_endpoint: nil,
|
513
|
+
disable_access_points: nil,
|
514
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
515
|
+
use_arn_region: context.config.s3_use_arn_region,
|
516
|
+
)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
class GetBucketAcl
|
521
|
+
def self.build(context)
|
522
|
+
unless context.config.regional_endpoint
|
523
|
+
endpoint = context.config.endpoint.to_s
|
524
|
+
end
|
525
|
+
Aws::S3::EndpointParameters.new(
|
526
|
+
bucket: context.params[:bucket],
|
527
|
+
region: context.config.region,
|
528
|
+
use_fips: context.config.use_fips_endpoint,
|
529
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
530
|
+
endpoint: endpoint,
|
531
|
+
force_path_style: context.config.force_path_style,
|
532
|
+
accelerate: context[:use_accelerate_endpoint],
|
533
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
534
|
+
use_object_lambda_endpoint: nil,
|
535
|
+
disable_access_points: nil,
|
536
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
537
|
+
use_arn_region: context.config.s3_use_arn_region,
|
538
|
+
)
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
542
|
+
class GetBucketAnalyticsConfiguration
|
543
|
+
def self.build(context)
|
544
|
+
unless context.config.regional_endpoint
|
545
|
+
endpoint = context.config.endpoint.to_s
|
546
|
+
end
|
547
|
+
Aws::S3::EndpointParameters.new(
|
548
|
+
bucket: context.params[:bucket],
|
549
|
+
region: context.config.region,
|
550
|
+
use_fips: context.config.use_fips_endpoint,
|
551
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
552
|
+
endpoint: endpoint,
|
553
|
+
force_path_style: context.config.force_path_style,
|
554
|
+
accelerate: context[:use_accelerate_endpoint],
|
555
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
556
|
+
use_object_lambda_endpoint: nil,
|
557
|
+
disable_access_points: nil,
|
558
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
559
|
+
use_arn_region: context.config.s3_use_arn_region,
|
560
|
+
)
|
561
|
+
end
|
562
|
+
end
|
563
|
+
|
564
|
+
class GetBucketCors
|
565
|
+
def self.build(context)
|
566
|
+
unless context.config.regional_endpoint
|
567
|
+
endpoint = context.config.endpoint.to_s
|
568
|
+
end
|
569
|
+
Aws::S3::EndpointParameters.new(
|
570
|
+
bucket: context.params[:bucket],
|
571
|
+
region: context.config.region,
|
572
|
+
use_fips: context.config.use_fips_endpoint,
|
573
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
574
|
+
endpoint: endpoint,
|
575
|
+
force_path_style: context.config.force_path_style,
|
576
|
+
accelerate: context[:use_accelerate_endpoint],
|
577
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
578
|
+
use_object_lambda_endpoint: nil,
|
579
|
+
disable_access_points: nil,
|
580
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
581
|
+
use_arn_region: context.config.s3_use_arn_region,
|
582
|
+
)
|
583
|
+
end
|
584
|
+
end
|
585
|
+
|
586
|
+
class GetBucketEncryption
|
587
|
+
def self.build(context)
|
588
|
+
unless context.config.regional_endpoint
|
589
|
+
endpoint = context.config.endpoint.to_s
|
590
|
+
end
|
591
|
+
Aws::S3::EndpointParameters.new(
|
592
|
+
bucket: context.params[:bucket],
|
593
|
+
region: context.config.region,
|
594
|
+
use_fips: context.config.use_fips_endpoint,
|
595
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
596
|
+
endpoint: endpoint,
|
597
|
+
force_path_style: context.config.force_path_style,
|
598
|
+
accelerate: context[:use_accelerate_endpoint],
|
599
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
600
|
+
use_object_lambda_endpoint: nil,
|
601
|
+
disable_access_points: nil,
|
602
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
603
|
+
use_arn_region: context.config.s3_use_arn_region,
|
604
|
+
)
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
608
|
+
class GetBucketIntelligentTieringConfiguration
|
609
|
+
def self.build(context)
|
610
|
+
unless context.config.regional_endpoint
|
611
|
+
endpoint = context.config.endpoint.to_s
|
612
|
+
end
|
613
|
+
Aws::S3::EndpointParameters.new(
|
614
|
+
bucket: context.params[:bucket],
|
615
|
+
region: context.config.region,
|
616
|
+
use_fips: context.config.use_fips_endpoint,
|
617
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
618
|
+
endpoint: endpoint,
|
619
|
+
force_path_style: context.config.force_path_style,
|
620
|
+
accelerate: context[:use_accelerate_endpoint],
|
621
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
622
|
+
use_object_lambda_endpoint: nil,
|
623
|
+
disable_access_points: nil,
|
624
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
625
|
+
use_arn_region: context.config.s3_use_arn_region,
|
626
|
+
)
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
630
|
+
class GetBucketInventoryConfiguration
|
631
|
+
def self.build(context)
|
632
|
+
unless context.config.regional_endpoint
|
633
|
+
endpoint = context.config.endpoint.to_s
|
634
|
+
end
|
635
|
+
Aws::S3::EndpointParameters.new(
|
636
|
+
bucket: context.params[:bucket],
|
637
|
+
region: context.config.region,
|
638
|
+
use_fips: context.config.use_fips_endpoint,
|
639
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
640
|
+
endpoint: endpoint,
|
641
|
+
force_path_style: context.config.force_path_style,
|
642
|
+
accelerate: context[:use_accelerate_endpoint],
|
643
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
644
|
+
use_object_lambda_endpoint: nil,
|
645
|
+
disable_access_points: nil,
|
646
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
647
|
+
use_arn_region: context.config.s3_use_arn_region,
|
648
|
+
)
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
class GetBucketLifecycle
|
653
|
+
def self.build(context)
|
654
|
+
unless context.config.regional_endpoint
|
655
|
+
endpoint = context.config.endpoint.to_s
|
656
|
+
end
|
657
|
+
Aws::S3::EndpointParameters.new(
|
658
|
+
bucket: context.params[:bucket],
|
659
|
+
region: context.config.region,
|
660
|
+
use_fips: context.config.use_fips_endpoint,
|
661
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
662
|
+
endpoint: endpoint,
|
663
|
+
force_path_style: context.config.force_path_style,
|
664
|
+
accelerate: context[:use_accelerate_endpoint],
|
665
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
666
|
+
use_object_lambda_endpoint: nil,
|
667
|
+
disable_access_points: nil,
|
668
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
669
|
+
use_arn_region: context.config.s3_use_arn_region,
|
670
|
+
)
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
674
|
+
class GetBucketLifecycleConfiguration
|
675
|
+
def self.build(context)
|
676
|
+
unless context.config.regional_endpoint
|
677
|
+
endpoint = context.config.endpoint.to_s
|
678
|
+
end
|
679
|
+
Aws::S3::EndpointParameters.new(
|
680
|
+
bucket: context.params[:bucket],
|
681
|
+
region: context.config.region,
|
682
|
+
use_fips: context.config.use_fips_endpoint,
|
683
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
684
|
+
endpoint: endpoint,
|
685
|
+
force_path_style: context.config.force_path_style,
|
686
|
+
accelerate: context[:use_accelerate_endpoint],
|
687
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
688
|
+
use_object_lambda_endpoint: nil,
|
689
|
+
disable_access_points: nil,
|
690
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
691
|
+
use_arn_region: context.config.s3_use_arn_region,
|
692
|
+
)
|
693
|
+
end
|
694
|
+
end
|
695
|
+
|
696
|
+
class GetBucketLocation
|
697
|
+
def self.build(context)
|
698
|
+
unless context.config.regional_endpoint
|
699
|
+
endpoint = context.config.endpoint.to_s
|
700
|
+
end
|
701
|
+
Aws::S3::EndpointParameters.new(
|
702
|
+
bucket: context.params[:bucket],
|
703
|
+
region: context.config.region,
|
704
|
+
use_fips: context.config.use_fips_endpoint,
|
705
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
706
|
+
endpoint: endpoint,
|
707
|
+
force_path_style: context.config.force_path_style,
|
708
|
+
accelerate: context[:use_accelerate_endpoint],
|
709
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
710
|
+
use_object_lambda_endpoint: nil,
|
711
|
+
disable_access_points: nil,
|
712
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
713
|
+
use_arn_region: context.config.s3_use_arn_region,
|
714
|
+
)
|
715
|
+
end
|
716
|
+
end
|
717
|
+
|
718
|
+
class GetBucketLogging
|
719
|
+
def self.build(context)
|
720
|
+
unless context.config.regional_endpoint
|
721
|
+
endpoint = context.config.endpoint.to_s
|
722
|
+
end
|
723
|
+
Aws::S3::EndpointParameters.new(
|
724
|
+
bucket: context.params[:bucket],
|
725
|
+
region: context.config.region,
|
726
|
+
use_fips: context.config.use_fips_endpoint,
|
727
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
728
|
+
endpoint: endpoint,
|
729
|
+
force_path_style: context.config.force_path_style,
|
730
|
+
accelerate: context[:use_accelerate_endpoint],
|
731
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
732
|
+
use_object_lambda_endpoint: nil,
|
733
|
+
disable_access_points: nil,
|
734
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
735
|
+
use_arn_region: context.config.s3_use_arn_region,
|
736
|
+
)
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
class GetBucketMetricsConfiguration
|
741
|
+
def self.build(context)
|
742
|
+
unless context.config.regional_endpoint
|
743
|
+
endpoint = context.config.endpoint.to_s
|
744
|
+
end
|
745
|
+
Aws::S3::EndpointParameters.new(
|
746
|
+
bucket: context.params[:bucket],
|
747
|
+
region: context.config.region,
|
748
|
+
use_fips: context.config.use_fips_endpoint,
|
749
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
750
|
+
endpoint: endpoint,
|
751
|
+
force_path_style: context.config.force_path_style,
|
752
|
+
accelerate: context[:use_accelerate_endpoint],
|
753
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
754
|
+
use_object_lambda_endpoint: nil,
|
755
|
+
disable_access_points: nil,
|
756
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
757
|
+
use_arn_region: context.config.s3_use_arn_region,
|
758
|
+
)
|
759
|
+
end
|
760
|
+
end
|
761
|
+
|
762
|
+
class GetBucketNotification
|
763
|
+
def self.build(context)
|
764
|
+
unless context.config.regional_endpoint
|
765
|
+
endpoint = context.config.endpoint.to_s
|
766
|
+
end
|
767
|
+
Aws::S3::EndpointParameters.new(
|
768
|
+
bucket: context.params[:bucket],
|
769
|
+
region: context.config.region,
|
770
|
+
use_fips: context.config.use_fips_endpoint,
|
771
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
772
|
+
endpoint: endpoint,
|
773
|
+
force_path_style: context.config.force_path_style,
|
774
|
+
accelerate: context[:use_accelerate_endpoint],
|
775
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
776
|
+
use_object_lambda_endpoint: nil,
|
777
|
+
disable_access_points: nil,
|
778
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
779
|
+
use_arn_region: context.config.s3_use_arn_region,
|
780
|
+
)
|
781
|
+
end
|
782
|
+
end
|
783
|
+
|
784
|
+
class GetBucketNotificationConfiguration
|
785
|
+
def self.build(context)
|
786
|
+
unless context.config.regional_endpoint
|
787
|
+
endpoint = context.config.endpoint.to_s
|
788
|
+
end
|
789
|
+
Aws::S3::EndpointParameters.new(
|
790
|
+
bucket: context.params[:bucket],
|
791
|
+
region: context.config.region,
|
792
|
+
use_fips: context.config.use_fips_endpoint,
|
793
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
794
|
+
endpoint: endpoint,
|
795
|
+
force_path_style: context.config.force_path_style,
|
796
|
+
accelerate: context[:use_accelerate_endpoint],
|
797
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
798
|
+
use_object_lambda_endpoint: nil,
|
799
|
+
disable_access_points: nil,
|
800
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
801
|
+
use_arn_region: context.config.s3_use_arn_region,
|
802
|
+
)
|
803
|
+
end
|
804
|
+
end
|
805
|
+
|
806
|
+
class GetBucketOwnershipControls
|
807
|
+
def self.build(context)
|
808
|
+
unless context.config.regional_endpoint
|
809
|
+
endpoint = context.config.endpoint.to_s
|
810
|
+
end
|
811
|
+
Aws::S3::EndpointParameters.new(
|
812
|
+
bucket: context.params[:bucket],
|
813
|
+
region: context.config.region,
|
814
|
+
use_fips: context.config.use_fips_endpoint,
|
815
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
816
|
+
endpoint: endpoint,
|
817
|
+
force_path_style: context.config.force_path_style,
|
818
|
+
accelerate: context[:use_accelerate_endpoint],
|
819
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
820
|
+
use_object_lambda_endpoint: nil,
|
821
|
+
disable_access_points: nil,
|
822
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
823
|
+
use_arn_region: context.config.s3_use_arn_region,
|
824
|
+
)
|
825
|
+
end
|
826
|
+
end
|
827
|
+
|
828
|
+
class GetBucketPolicy
|
829
|
+
def self.build(context)
|
830
|
+
unless context.config.regional_endpoint
|
831
|
+
endpoint = context.config.endpoint.to_s
|
832
|
+
end
|
833
|
+
Aws::S3::EndpointParameters.new(
|
834
|
+
bucket: context.params[:bucket],
|
835
|
+
region: context.config.region,
|
836
|
+
use_fips: context.config.use_fips_endpoint,
|
837
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
838
|
+
endpoint: endpoint,
|
839
|
+
force_path_style: context.config.force_path_style,
|
840
|
+
accelerate: context[:use_accelerate_endpoint],
|
841
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
842
|
+
use_object_lambda_endpoint: nil,
|
843
|
+
disable_access_points: nil,
|
844
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
845
|
+
use_arn_region: context.config.s3_use_arn_region,
|
846
|
+
)
|
847
|
+
end
|
848
|
+
end
|
849
|
+
|
850
|
+
class GetBucketPolicyStatus
|
851
|
+
def self.build(context)
|
852
|
+
unless context.config.regional_endpoint
|
853
|
+
endpoint = context.config.endpoint.to_s
|
854
|
+
end
|
855
|
+
Aws::S3::EndpointParameters.new(
|
856
|
+
bucket: context.params[:bucket],
|
857
|
+
region: context.config.region,
|
858
|
+
use_fips: context.config.use_fips_endpoint,
|
859
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
860
|
+
endpoint: endpoint,
|
861
|
+
force_path_style: context.config.force_path_style,
|
862
|
+
accelerate: context[:use_accelerate_endpoint],
|
863
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
864
|
+
use_object_lambda_endpoint: nil,
|
865
|
+
disable_access_points: nil,
|
866
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
867
|
+
use_arn_region: context.config.s3_use_arn_region,
|
868
|
+
)
|
869
|
+
end
|
870
|
+
end
|
871
|
+
|
872
|
+
class GetBucketReplication
|
873
|
+
def self.build(context)
|
874
|
+
unless context.config.regional_endpoint
|
875
|
+
endpoint = context.config.endpoint.to_s
|
876
|
+
end
|
877
|
+
Aws::S3::EndpointParameters.new(
|
878
|
+
bucket: context.params[:bucket],
|
879
|
+
region: context.config.region,
|
880
|
+
use_fips: context.config.use_fips_endpoint,
|
881
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
882
|
+
endpoint: endpoint,
|
883
|
+
force_path_style: context.config.force_path_style,
|
884
|
+
accelerate: context[:use_accelerate_endpoint],
|
885
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
886
|
+
use_object_lambda_endpoint: nil,
|
887
|
+
disable_access_points: nil,
|
888
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
889
|
+
use_arn_region: context.config.s3_use_arn_region,
|
890
|
+
)
|
891
|
+
end
|
892
|
+
end
|
893
|
+
|
894
|
+
class GetBucketRequestPayment
|
895
|
+
def self.build(context)
|
896
|
+
unless context.config.regional_endpoint
|
897
|
+
endpoint = context.config.endpoint.to_s
|
898
|
+
end
|
899
|
+
Aws::S3::EndpointParameters.new(
|
900
|
+
bucket: context.params[:bucket],
|
901
|
+
region: context.config.region,
|
902
|
+
use_fips: context.config.use_fips_endpoint,
|
903
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
904
|
+
endpoint: endpoint,
|
905
|
+
force_path_style: context.config.force_path_style,
|
906
|
+
accelerate: context[:use_accelerate_endpoint],
|
907
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
908
|
+
use_object_lambda_endpoint: nil,
|
909
|
+
disable_access_points: nil,
|
910
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
911
|
+
use_arn_region: context.config.s3_use_arn_region,
|
912
|
+
)
|
913
|
+
end
|
914
|
+
end
|
915
|
+
|
916
|
+
class GetBucketTagging
|
917
|
+
def self.build(context)
|
918
|
+
unless context.config.regional_endpoint
|
919
|
+
endpoint = context.config.endpoint.to_s
|
920
|
+
end
|
921
|
+
Aws::S3::EndpointParameters.new(
|
922
|
+
bucket: context.params[:bucket],
|
923
|
+
region: context.config.region,
|
924
|
+
use_fips: context.config.use_fips_endpoint,
|
925
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
926
|
+
endpoint: endpoint,
|
927
|
+
force_path_style: context.config.force_path_style,
|
928
|
+
accelerate: context[:use_accelerate_endpoint],
|
929
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
930
|
+
use_object_lambda_endpoint: nil,
|
931
|
+
disable_access_points: nil,
|
932
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
933
|
+
use_arn_region: context.config.s3_use_arn_region,
|
934
|
+
)
|
935
|
+
end
|
936
|
+
end
|
937
|
+
|
938
|
+
class GetBucketVersioning
|
939
|
+
def self.build(context)
|
940
|
+
unless context.config.regional_endpoint
|
941
|
+
endpoint = context.config.endpoint.to_s
|
942
|
+
end
|
943
|
+
Aws::S3::EndpointParameters.new(
|
944
|
+
bucket: context.params[:bucket],
|
945
|
+
region: context.config.region,
|
946
|
+
use_fips: context.config.use_fips_endpoint,
|
947
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
948
|
+
endpoint: endpoint,
|
949
|
+
force_path_style: context.config.force_path_style,
|
950
|
+
accelerate: context[:use_accelerate_endpoint],
|
951
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
952
|
+
use_object_lambda_endpoint: nil,
|
953
|
+
disable_access_points: nil,
|
954
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
955
|
+
use_arn_region: context.config.s3_use_arn_region,
|
956
|
+
)
|
957
|
+
end
|
958
|
+
end
|
959
|
+
|
960
|
+
class GetBucketWebsite
|
961
|
+
def self.build(context)
|
962
|
+
unless context.config.regional_endpoint
|
963
|
+
endpoint = context.config.endpoint.to_s
|
964
|
+
end
|
965
|
+
Aws::S3::EndpointParameters.new(
|
966
|
+
bucket: context.params[:bucket],
|
967
|
+
region: context.config.region,
|
968
|
+
use_fips: context.config.use_fips_endpoint,
|
969
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
970
|
+
endpoint: endpoint,
|
971
|
+
force_path_style: context.config.force_path_style,
|
972
|
+
accelerate: context[:use_accelerate_endpoint],
|
973
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
974
|
+
use_object_lambda_endpoint: nil,
|
975
|
+
disable_access_points: nil,
|
976
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
977
|
+
use_arn_region: context.config.s3_use_arn_region,
|
978
|
+
)
|
979
|
+
end
|
980
|
+
end
|
981
|
+
|
982
|
+
class GetObject
|
983
|
+
def self.build(context)
|
984
|
+
unless context.config.regional_endpoint
|
985
|
+
endpoint = context.config.endpoint.to_s
|
986
|
+
end
|
987
|
+
Aws::S3::EndpointParameters.new(
|
988
|
+
bucket: context.params[:bucket],
|
989
|
+
region: context.config.region,
|
990
|
+
use_fips: context.config.use_fips_endpoint,
|
991
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
992
|
+
endpoint: endpoint,
|
993
|
+
force_path_style: context.config.force_path_style,
|
994
|
+
accelerate: context[:use_accelerate_endpoint],
|
995
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
996
|
+
use_object_lambda_endpoint: nil,
|
997
|
+
disable_access_points: nil,
|
998
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
999
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1000
|
+
)
|
1001
|
+
end
|
1002
|
+
end
|
1003
|
+
|
1004
|
+
class GetObjectAcl
|
1005
|
+
def self.build(context)
|
1006
|
+
unless context.config.regional_endpoint
|
1007
|
+
endpoint = context.config.endpoint.to_s
|
1008
|
+
end
|
1009
|
+
Aws::S3::EndpointParameters.new(
|
1010
|
+
bucket: context.params[:bucket],
|
1011
|
+
region: context.config.region,
|
1012
|
+
use_fips: context.config.use_fips_endpoint,
|
1013
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1014
|
+
endpoint: endpoint,
|
1015
|
+
force_path_style: context.config.force_path_style,
|
1016
|
+
accelerate: context[:use_accelerate_endpoint],
|
1017
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1018
|
+
use_object_lambda_endpoint: nil,
|
1019
|
+
disable_access_points: nil,
|
1020
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1021
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1022
|
+
)
|
1023
|
+
end
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
class GetObjectAttributes
|
1027
|
+
def self.build(context)
|
1028
|
+
unless context.config.regional_endpoint
|
1029
|
+
endpoint = context.config.endpoint.to_s
|
1030
|
+
end
|
1031
|
+
Aws::S3::EndpointParameters.new(
|
1032
|
+
bucket: context.params[:bucket],
|
1033
|
+
region: context.config.region,
|
1034
|
+
use_fips: context.config.use_fips_endpoint,
|
1035
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1036
|
+
endpoint: endpoint,
|
1037
|
+
force_path_style: context.config.force_path_style,
|
1038
|
+
accelerate: context[:use_accelerate_endpoint],
|
1039
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1040
|
+
use_object_lambda_endpoint: nil,
|
1041
|
+
disable_access_points: nil,
|
1042
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1043
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1044
|
+
)
|
1045
|
+
end
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
class GetObjectLegalHold
|
1049
|
+
def self.build(context)
|
1050
|
+
unless context.config.regional_endpoint
|
1051
|
+
endpoint = context.config.endpoint.to_s
|
1052
|
+
end
|
1053
|
+
Aws::S3::EndpointParameters.new(
|
1054
|
+
bucket: context.params[:bucket],
|
1055
|
+
region: context.config.region,
|
1056
|
+
use_fips: context.config.use_fips_endpoint,
|
1057
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1058
|
+
endpoint: endpoint,
|
1059
|
+
force_path_style: context.config.force_path_style,
|
1060
|
+
accelerate: context[:use_accelerate_endpoint],
|
1061
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1062
|
+
use_object_lambda_endpoint: nil,
|
1063
|
+
disable_access_points: nil,
|
1064
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1065
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1066
|
+
)
|
1067
|
+
end
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
class GetObjectLockConfiguration
|
1071
|
+
def self.build(context)
|
1072
|
+
unless context.config.regional_endpoint
|
1073
|
+
endpoint = context.config.endpoint.to_s
|
1074
|
+
end
|
1075
|
+
Aws::S3::EndpointParameters.new(
|
1076
|
+
bucket: context.params[:bucket],
|
1077
|
+
region: context.config.region,
|
1078
|
+
use_fips: context.config.use_fips_endpoint,
|
1079
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1080
|
+
endpoint: endpoint,
|
1081
|
+
force_path_style: context.config.force_path_style,
|
1082
|
+
accelerate: context[:use_accelerate_endpoint],
|
1083
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1084
|
+
use_object_lambda_endpoint: nil,
|
1085
|
+
disable_access_points: nil,
|
1086
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1087
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1088
|
+
)
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
class GetObjectRetention
|
1093
|
+
def self.build(context)
|
1094
|
+
unless context.config.regional_endpoint
|
1095
|
+
endpoint = context.config.endpoint.to_s
|
1096
|
+
end
|
1097
|
+
Aws::S3::EndpointParameters.new(
|
1098
|
+
bucket: context.params[:bucket],
|
1099
|
+
region: context.config.region,
|
1100
|
+
use_fips: context.config.use_fips_endpoint,
|
1101
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1102
|
+
endpoint: endpoint,
|
1103
|
+
force_path_style: context.config.force_path_style,
|
1104
|
+
accelerate: context[:use_accelerate_endpoint],
|
1105
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1106
|
+
use_object_lambda_endpoint: nil,
|
1107
|
+
disable_access_points: nil,
|
1108
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1109
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1110
|
+
)
|
1111
|
+
end
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
class GetObjectTagging
|
1115
|
+
def self.build(context)
|
1116
|
+
unless context.config.regional_endpoint
|
1117
|
+
endpoint = context.config.endpoint.to_s
|
1118
|
+
end
|
1119
|
+
Aws::S3::EndpointParameters.new(
|
1120
|
+
bucket: context.params[:bucket],
|
1121
|
+
region: context.config.region,
|
1122
|
+
use_fips: context.config.use_fips_endpoint,
|
1123
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1124
|
+
endpoint: endpoint,
|
1125
|
+
force_path_style: context.config.force_path_style,
|
1126
|
+
accelerate: context[:use_accelerate_endpoint],
|
1127
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1128
|
+
use_object_lambda_endpoint: nil,
|
1129
|
+
disable_access_points: nil,
|
1130
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1131
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1132
|
+
)
|
1133
|
+
end
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
class GetObjectTorrent
|
1137
|
+
def self.build(context)
|
1138
|
+
unless context.config.regional_endpoint
|
1139
|
+
endpoint = context.config.endpoint.to_s
|
1140
|
+
end
|
1141
|
+
Aws::S3::EndpointParameters.new(
|
1142
|
+
bucket: context.params[:bucket],
|
1143
|
+
region: context.config.region,
|
1144
|
+
use_fips: context.config.use_fips_endpoint,
|
1145
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1146
|
+
endpoint: endpoint,
|
1147
|
+
force_path_style: context.config.force_path_style,
|
1148
|
+
accelerate: context[:use_accelerate_endpoint],
|
1149
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1150
|
+
use_object_lambda_endpoint: nil,
|
1151
|
+
disable_access_points: nil,
|
1152
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1153
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1154
|
+
)
|
1155
|
+
end
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
class GetPublicAccessBlock
|
1159
|
+
def self.build(context)
|
1160
|
+
unless context.config.regional_endpoint
|
1161
|
+
endpoint = context.config.endpoint.to_s
|
1162
|
+
end
|
1163
|
+
Aws::S3::EndpointParameters.new(
|
1164
|
+
bucket: context.params[:bucket],
|
1165
|
+
region: context.config.region,
|
1166
|
+
use_fips: context.config.use_fips_endpoint,
|
1167
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1168
|
+
endpoint: endpoint,
|
1169
|
+
force_path_style: context.config.force_path_style,
|
1170
|
+
accelerate: context[:use_accelerate_endpoint],
|
1171
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1172
|
+
use_object_lambda_endpoint: nil,
|
1173
|
+
disable_access_points: nil,
|
1174
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1175
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1176
|
+
)
|
1177
|
+
end
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
class HeadBucket
|
1181
|
+
def self.build(context)
|
1182
|
+
unless context.config.regional_endpoint
|
1183
|
+
endpoint = context.config.endpoint.to_s
|
1184
|
+
end
|
1185
|
+
Aws::S3::EndpointParameters.new(
|
1186
|
+
bucket: context.params[:bucket],
|
1187
|
+
region: context.config.region,
|
1188
|
+
use_fips: context.config.use_fips_endpoint,
|
1189
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1190
|
+
endpoint: endpoint,
|
1191
|
+
force_path_style: context.config.force_path_style,
|
1192
|
+
accelerate: context[:use_accelerate_endpoint],
|
1193
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1194
|
+
use_object_lambda_endpoint: nil,
|
1195
|
+
disable_access_points: nil,
|
1196
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1197
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1198
|
+
)
|
1199
|
+
end
|
1200
|
+
end
|
1201
|
+
|
1202
|
+
class HeadObject
|
1203
|
+
def self.build(context)
|
1204
|
+
unless context.config.regional_endpoint
|
1205
|
+
endpoint = context.config.endpoint.to_s
|
1206
|
+
end
|
1207
|
+
Aws::S3::EndpointParameters.new(
|
1208
|
+
bucket: context.params[:bucket],
|
1209
|
+
region: context.config.region,
|
1210
|
+
use_fips: context.config.use_fips_endpoint,
|
1211
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1212
|
+
endpoint: endpoint,
|
1213
|
+
force_path_style: context.config.force_path_style,
|
1214
|
+
accelerate: context[:use_accelerate_endpoint],
|
1215
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1216
|
+
use_object_lambda_endpoint: nil,
|
1217
|
+
disable_access_points: nil,
|
1218
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1219
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1220
|
+
)
|
1221
|
+
end
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
class ListBucketAnalyticsConfigurations
|
1225
|
+
def self.build(context)
|
1226
|
+
unless context.config.regional_endpoint
|
1227
|
+
endpoint = context.config.endpoint.to_s
|
1228
|
+
end
|
1229
|
+
Aws::S3::EndpointParameters.new(
|
1230
|
+
bucket: context.params[:bucket],
|
1231
|
+
region: context.config.region,
|
1232
|
+
use_fips: context.config.use_fips_endpoint,
|
1233
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1234
|
+
endpoint: endpoint,
|
1235
|
+
force_path_style: context.config.force_path_style,
|
1236
|
+
accelerate: context[:use_accelerate_endpoint],
|
1237
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1238
|
+
use_object_lambda_endpoint: nil,
|
1239
|
+
disable_access_points: nil,
|
1240
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1241
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1242
|
+
)
|
1243
|
+
end
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
class ListBucketIntelligentTieringConfigurations
|
1247
|
+
def self.build(context)
|
1248
|
+
unless context.config.regional_endpoint
|
1249
|
+
endpoint = context.config.endpoint.to_s
|
1250
|
+
end
|
1251
|
+
Aws::S3::EndpointParameters.new(
|
1252
|
+
bucket: context.params[:bucket],
|
1253
|
+
region: context.config.region,
|
1254
|
+
use_fips: context.config.use_fips_endpoint,
|
1255
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1256
|
+
endpoint: endpoint,
|
1257
|
+
force_path_style: context.config.force_path_style,
|
1258
|
+
accelerate: context[:use_accelerate_endpoint],
|
1259
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1260
|
+
use_object_lambda_endpoint: nil,
|
1261
|
+
disable_access_points: nil,
|
1262
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1263
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1264
|
+
)
|
1265
|
+
end
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
class ListBucketInventoryConfigurations
|
1269
|
+
def self.build(context)
|
1270
|
+
unless context.config.regional_endpoint
|
1271
|
+
endpoint = context.config.endpoint.to_s
|
1272
|
+
end
|
1273
|
+
Aws::S3::EndpointParameters.new(
|
1274
|
+
bucket: context.params[:bucket],
|
1275
|
+
region: context.config.region,
|
1276
|
+
use_fips: context.config.use_fips_endpoint,
|
1277
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1278
|
+
endpoint: endpoint,
|
1279
|
+
force_path_style: context.config.force_path_style,
|
1280
|
+
accelerate: context[:use_accelerate_endpoint],
|
1281
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1282
|
+
use_object_lambda_endpoint: nil,
|
1283
|
+
disable_access_points: nil,
|
1284
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1285
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1286
|
+
)
|
1287
|
+
end
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
class ListBucketMetricsConfigurations
|
1291
|
+
def self.build(context)
|
1292
|
+
unless context.config.regional_endpoint
|
1293
|
+
endpoint = context.config.endpoint.to_s
|
1294
|
+
end
|
1295
|
+
Aws::S3::EndpointParameters.new(
|
1296
|
+
bucket: context.params[:bucket],
|
1297
|
+
region: context.config.region,
|
1298
|
+
use_fips: context.config.use_fips_endpoint,
|
1299
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1300
|
+
endpoint: endpoint,
|
1301
|
+
force_path_style: context.config.force_path_style,
|
1302
|
+
accelerate: context[:use_accelerate_endpoint],
|
1303
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1304
|
+
use_object_lambda_endpoint: nil,
|
1305
|
+
disable_access_points: nil,
|
1306
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1307
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1308
|
+
)
|
1309
|
+
end
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
class ListBuckets
|
1313
|
+
def self.build(context)
|
1314
|
+
unless context.config.regional_endpoint
|
1315
|
+
endpoint = context.config.endpoint.to_s
|
1316
|
+
end
|
1317
|
+
Aws::S3::EndpointParameters.new(
|
1318
|
+
bucket: nil,
|
1319
|
+
region: context.config.region,
|
1320
|
+
use_fips: context.config.use_fips_endpoint,
|
1321
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1322
|
+
endpoint: endpoint,
|
1323
|
+
force_path_style: context.config.force_path_style,
|
1324
|
+
accelerate: context[:use_accelerate_endpoint],
|
1325
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1326
|
+
use_object_lambda_endpoint: nil,
|
1327
|
+
disable_access_points: nil,
|
1328
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1329
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1330
|
+
)
|
1331
|
+
end
|
1332
|
+
end
|
1333
|
+
|
1334
|
+
class ListMultipartUploads
|
1335
|
+
def self.build(context)
|
1336
|
+
unless context.config.regional_endpoint
|
1337
|
+
endpoint = context.config.endpoint.to_s
|
1338
|
+
end
|
1339
|
+
Aws::S3::EndpointParameters.new(
|
1340
|
+
bucket: context.params[:bucket],
|
1341
|
+
region: context.config.region,
|
1342
|
+
use_fips: context.config.use_fips_endpoint,
|
1343
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1344
|
+
endpoint: endpoint,
|
1345
|
+
force_path_style: context.config.force_path_style,
|
1346
|
+
accelerate: context[:use_accelerate_endpoint],
|
1347
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1348
|
+
use_object_lambda_endpoint: nil,
|
1349
|
+
disable_access_points: nil,
|
1350
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1351
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1352
|
+
)
|
1353
|
+
end
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
class ListObjectVersions
|
1357
|
+
def self.build(context)
|
1358
|
+
unless context.config.regional_endpoint
|
1359
|
+
endpoint = context.config.endpoint.to_s
|
1360
|
+
end
|
1361
|
+
Aws::S3::EndpointParameters.new(
|
1362
|
+
bucket: context.params[:bucket],
|
1363
|
+
region: context.config.region,
|
1364
|
+
use_fips: context.config.use_fips_endpoint,
|
1365
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1366
|
+
endpoint: endpoint,
|
1367
|
+
force_path_style: context.config.force_path_style,
|
1368
|
+
accelerate: context[:use_accelerate_endpoint],
|
1369
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1370
|
+
use_object_lambda_endpoint: nil,
|
1371
|
+
disable_access_points: nil,
|
1372
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1373
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1374
|
+
)
|
1375
|
+
end
|
1376
|
+
end
|
1377
|
+
|
1378
|
+
class ListObjects
|
1379
|
+
def self.build(context)
|
1380
|
+
unless context.config.regional_endpoint
|
1381
|
+
endpoint = context.config.endpoint.to_s
|
1382
|
+
end
|
1383
|
+
Aws::S3::EndpointParameters.new(
|
1384
|
+
bucket: context.params[:bucket],
|
1385
|
+
region: context.config.region,
|
1386
|
+
use_fips: context.config.use_fips_endpoint,
|
1387
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1388
|
+
endpoint: endpoint,
|
1389
|
+
force_path_style: context.config.force_path_style,
|
1390
|
+
accelerate: context[:use_accelerate_endpoint],
|
1391
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1392
|
+
use_object_lambda_endpoint: nil,
|
1393
|
+
disable_access_points: nil,
|
1394
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1395
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1396
|
+
)
|
1397
|
+
end
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
class ListObjectsV2
|
1401
|
+
def self.build(context)
|
1402
|
+
unless context.config.regional_endpoint
|
1403
|
+
endpoint = context.config.endpoint.to_s
|
1404
|
+
end
|
1405
|
+
Aws::S3::EndpointParameters.new(
|
1406
|
+
bucket: context.params[:bucket],
|
1407
|
+
region: context.config.region,
|
1408
|
+
use_fips: context.config.use_fips_endpoint,
|
1409
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1410
|
+
endpoint: endpoint,
|
1411
|
+
force_path_style: context.config.force_path_style,
|
1412
|
+
accelerate: context[:use_accelerate_endpoint],
|
1413
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1414
|
+
use_object_lambda_endpoint: nil,
|
1415
|
+
disable_access_points: nil,
|
1416
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1417
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1418
|
+
)
|
1419
|
+
end
|
1420
|
+
end
|
1421
|
+
|
1422
|
+
class ListParts
|
1423
|
+
def self.build(context)
|
1424
|
+
unless context.config.regional_endpoint
|
1425
|
+
endpoint = context.config.endpoint.to_s
|
1426
|
+
end
|
1427
|
+
Aws::S3::EndpointParameters.new(
|
1428
|
+
bucket: context.params[:bucket],
|
1429
|
+
region: context.config.region,
|
1430
|
+
use_fips: context.config.use_fips_endpoint,
|
1431
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1432
|
+
endpoint: endpoint,
|
1433
|
+
force_path_style: context.config.force_path_style,
|
1434
|
+
accelerate: context[:use_accelerate_endpoint],
|
1435
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1436
|
+
use_object_lambda_endpoint: nil,
|
1437
|
+
disable_access_points: nil,
|
1438
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1439
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1440
|
+
)
|
1441
|
+
end
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
class PutBucketAccelerateConfiguration
|
1445
|
+
def self.build(context)
|
1446
|
+
unless context.config.regional_endpoint
|
1447
|
+
endpoint = context.config.endpoint.to_s
|
1448
|
+
end
|
1449
|
+
Aws::S3::EndpointParameters.new(
|
1450
|
+
bucket: context.params[:bucket],
|
1451
|
+
region: context.config.region,
|
1452
|
+
use_fips: context.config.use_fips_endpoint,
|
1453
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1454
|
+
endpoint: endpoint,
|
1455
|
+
force_path_style: context.config.force_path_style,
|
1456
|
+
accelerate: context[:use_accelerate_endpoint],
|
1457
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1458
|
+
use_object_lambda_endpoint: nil,
|
1459
|
+
disable_access_points: nil,
|
1460
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1461
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1462
|
+
)
|
1463
|
+
end
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
class PutBucketAcl
|
1467
|
+
def self.build(context)
|
1468
|
+
unless context.config.regional_endpoint
|
1469
|
+
endpoint = context.config.endpoint.to_s
|
1470
|
+
end
|
1471
|
+
Aws::S3::EndpointParameters.new(
|
1472
|
+
bucket: context.params[:bucket],
|
1473
|
+
region: context.config.region,
|
1474
|
+
use_fips: context.config.use_fips_endpoint,
|
1475
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1476
|
+
endpoint: endpoint,
|
1477
|
+
force_path_style: context.config.force_path_style,
|
1478
|
+
accelerate: context[:use_accelerate_endpoint],
|
1479
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1480
|
+
use_object_lambda_endpoint: nil,
|
1481
|
+
disable_access_points: nil,
|
1482
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1483
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1484
|
+
)
|
1485
|
+
end
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
class PutBucketAnalyticsConfiguration
|
1489
|
+
def self.build(context)
|
1490
|
+
unless context.config.regional_endpoint
|
1491
|
+
endpoint = context.config.endpoint.to_s
|
1492
|
+
end
|
1493
|
+
Aws::S3::EndpointParameters.new(
|
1494
|
+
bucket: context.params[:bucket],
|
1495
|
+
region: context.config.region,
|
1496
|
+
use_fips: context.config.use_fips_endpoint,
|
1497
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1498
|
+
endpoint: endpoint,
|
1499
|
+
force_path_style: context.config.force_path_style,
|
1500
|
+
accelerate: context[:use_accelerate_endpoint],
|
1501
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1502
|
+
use_object_lambda_endpoint: nil,
|
1503
|
+
disable_access_points: nil,
|
1504
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1505
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1506
|
+
)
|
1507
|
+
end
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
class PutBucketCors
|
1511
|
+
def self.build(context)
|
1512
|
+
unless context.config.regional_endpoint
|
1513
|
+
endpoint = context.config.endpoint.to_s
|
1514
|
+
end
|
1515
|
+
Aws::S3::EndpointParameters.new(
|
1516
|
+
bucket: context.params[:bucket],
|
1517
|
+
region: context.config.region,
|
1518
|
+
use_fips: context.config.use_fips_endpoint,
|
1519
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1520
|
+
endpoint: endpoint,
|
1521
|
+
force_path_style: context.config.force_path_style,
|
1522
|
+
accelerate: context[:use_accelerate_endpoint],
|
1523
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1524
|
+
use_object_lambda_endpoint: nil,
|
1525
|
+
disable_access_points: nil,
|
1526
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1527
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1528
|
+
)
|
1529
|
+
end
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
class PutBucketEncryption
|
1533
|
+
def self.build(context)
|
1534
|
+
unless context.config.regional_endpoint
|
1535
|
+
endpoint = context.config.endpoint.to_s
|
1536
|
+
end
|
1537
|
+
Aws::S3::EndpointParameters.new(
|
1538
|
+
bucket: context.params[:bucket],
|
1539
|
+
region: context.config.region,
|
1540
|
+
use_fips: context.config.use_fips_endpoint,
|
1541
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1542
|
+
endpoint: endpoint,
|
1543
|
+
force_path_style: context.config.force_path_style,
|
1544
|
+
accelerate: context[:use_accelerate_endpoint],
|
1545
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1546
|
+
use_object_lambda_endpoint: nil,
|
1547
|
+
disable_access_points: nil,
|
1548
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1549
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1550
|
+
)
|
1551
|
+
end
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
class PutBucketIntelligentTieringConfiguration
|
1555
|
+
def self.build(context)
|
1556
|
+
unless context.config.regional_endpoint
|
1557
|
+
endpoint = context.config.endpoint.to_s
|
1558
|
+
end
|
1559
|
+
Aws::S3::EndpointParameters.new(
|
1560
|
+
bucket: context.params[:bucket],
|
1561
|
+
region: context.config.region,
|
1562
|
+
use_fips: context.config.use_fips_endpoint,
|
1563
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1564
|
+
endpoint: endpoint,
|
1565
|
+
force_path_style: context.config.force_path_style,
|
1566
|
+
accelerate: context[:use_accelerate_endpoint],
|
1567
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1568
|
+
use_object_lambda_endpoint: nil,
|
1569
|
+
disable_access_points: nil,
|
1570
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1571
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1572
|
+
)
|
1573
|
+
end
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
class PutBucketInventoryConfiguration
|
1577
|
+
def self.build(context)
|
1578
|
+
unless context.config.regional_endpoint
|
1579
|
+
endpoint = context.config.endpoint.to_s
|
1580
|
+
end
|
1581
|
+
Aws::S3::EndpointParameters.new(
|
1582
|
+
bucket: context.params[:bucket],
|
1583
|
+
region: context.config.region,
|
1584
|
+
use_fips: context.config.use_fips_endpoint,
|
1585
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1586
|
+
endpoint: endpoint,
|
1587
|
+
force_path_style: context.config.force_path_style,
|
1588
|
+
accelerate: context[:use_accelerate_endpoint],
|
1589
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1590
|
+
use_object_lambda_endpoint: nil,
|
1591
|
+
disable_access_points: nil,
|
1592
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1593
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1594
|
+
)
|
1595
|
+
end
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
class PutBucketLifecycle
|
1599
|
+
def self.build(context)
|
1600
|
+
unless context.config.regional_endpoint
|
1601
|
+
endpoint = context.config.endpoint.to_s
|
1602
|
+
end
|
1603
|
+
Aws::S3::EndpointParameters.new(
|
1604
|
+
bucket: context.params[:bucket],
|
1605
|
+
region: context.config.region,
|
1606
|
+
use_fips: context.config.use_fips_endpoint,
|
1607
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1608
|
+
endpoint: endpoint,
|
1609
|
+
force_path_style: context.config.force_path_style,
|
1610
|
+
accelerate: context[:use_accelerate_endpoint],
|
1611
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1612
|
+
use_object_lambda_endpoint: nil,
|
1613
|
+
disable_access_points: nil,
|
1614
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1615
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1616
|
+
)
|
1617
|
+
end
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
class PutBucketLifecycleConfiguration
|
1621
|
+
def self.build(context)
|
1622
|
+
unless context.config.regional_endpoint
|
1623
|
+
endpoint = context.config.endpoint.to_s
|
1624
|
+
end
|
1625
|
+
Aws::S3::EndpointParameters.new(
|
1626
|
+
bucket: context.params[:bucket],
|
1627
|
+
region: context.config.region,
|
1628
|
+
use_fips: context.config.use_fips_endpoint,
|
1629
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1630
|
+
endpoint: endpoint,
|
1631
|
+
force_path_style: context.config.force_path_style,
|
1632
|
+
accelerate: context[:use_accelerate_endpoint],
|
1633
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1634
|
+
use_object_lambda_endpoint: nil,
|
1635
|
+
disable_access_points: nil,
|
1636
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1637
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1638
|
+
)
|
1639
|
+
end
|
1640
|
+
end
|
1641
|
+
|
1642
|
+
class PutBucketLogging
|
1643
|
+
def self.build(context)
|
1644
|
+
unless context.config.regional_endpoint
|
1645
|
+
endpoint = context.config.endpoint.to_s
|
1646
|
+
end
|
1647
|
+
Aws::S3::EndpointParameters.new(
|
1648
|
+
bucket: context.params[:bucket],
|
1649
|
+
region: context.config.region,
|
1650
|
+
use_fips: context.config.use_fips_endpoint,
|
1651
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1652
|
+
endpoint: endpoint,
|
1653
|
+
force_path_style: context.config.force_path_style,
|
1654
|
+
accelerate: context[:use_accelerate_endpoint],
|
1655
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1656
|
+
use_object_lambda_endpoint: nil,
|
1657
|
+
disable_access_points: nil,
|
1658
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1659
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1660
|
+
)
|
1661
|
+
end
|
1662
|
+
end
|
1663
|
+
|
1664
|
+
class PutBucketMetricsConfiguration
|
1665
|
+
def self.build(context)
|
1666
|
+
unless context.config.regional_endpoint
|
1667
|
+
endpoint = context.config.endpoint.to_s
|
1668
|
+
end
|
1669
|
+
Aws::S3::EndpointParameters.new(
|
1670
|
+
bucket: context.params[:bucket],
|
1671
|
+
region: context.config.region,
|
1672
|
+
use_fips: context.config.use_fips_endpoint,
|
1673
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1674
|
+
endpoint: endpoint,
|
1675
|
+
force_path_style: context.config.force_path_style,
|
1676
|
+
accelerate: context[:use_accelerate_endpoint],
|
1677
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1678
|
+
use_object_lambda_endpoint: nil,
|
1679
|
+
disable_access_points: nil,
|
1680
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1681
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1682
|
+
)
|
1683
|
+
end
|
1684
|
+
end
|
1685
|
+
|
1686
|
+
class PutBucketNotification
|
1687
|
+
def self.build(context)
|
1688
|
+
unless context.config.regional_endpoint
|
1689
|
+
endpoint = context.config.endpoint.to_s
|
1690
|
+
end
|
1691
|
+
Aws::S3::EndpointParameters.new(
|
1692
|
+
bucket: context.params[:bucket],
|
1693
|
+
region: context.config.region,
|
1694
|
+
use_fips: context.config.use_fips_endpoint,
|
1695
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1696
|
+
endpoint: endpoint,
|
1697
|
+
force_path_style: context.config.force_path_style,
|
1698
|
+
accelerate: context[:use_accelerate_endpoint],
|
1699
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1700
|
+
use_object_lambda_endpoint: nil,
|
1701
|
+
disable_access_points: nil,
|
1702
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1703
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1704
|
+
)
|
1705
|
+
end
|
1706
|
+
end
|
1707
|
+
|
1708
|
+
class PutBucketNotificationConfiguration
|
1709
|
+
def self.build(context)
|
1710
|
+
unless context.config.regional_endpoint
|
1711
|
+
endpoint = context.config.endpoint.to_s
|
1712
|
+
end
|
1713
|
+
Aws::S3::EndpointParameters.new(
|
1714
|
+
bucket: context.params[:bucket],
|
1715
|
+
region: context.config.region,
|
1716
|
+
use_fips: context.config.use_fips_endpoint,
|
1717
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1718
|
+
endpoint: endpoint,
|
1719
|
+
force_path_style: context.config.force_path_style,
|
1720
|
+
accelerate: context[:use_accelerate_endpoint],
|
1721
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1722
|
+
use_object_lambda_endpoint: nil,
|
1723
|
+
disable_access_points: nil,
|
1724
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1725
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1726
|
+
)
|
1727
|
+
end
|
1728
|
+
end
|
1729
|
+
|
1730
|
+
class PutBucketOwnershipControls
|
1731
|
+
def self.build(context)
|
1732
|
+
unless context.config.regional_endpoint
|
1733
|
+
endpoint = context.config.endpoint.to_s
|
1734
|
+
end
|
1735
|
+
Aws::S3::EndpointParameters.new(
|
1736
|
+
bucket: context.params[:bucket],
|
1737
|
+
region: context.config.region,
|
1738
|
+
use_fips: context.config.use_fips_endpoint,
|
1739
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1740
|
+
endpoint: endpoint,
|
1741
|
+
force_path_style: context.config.force_path_style,
|
1742
|
+
accelerate: context[:use_accelerate_endpoint],
|
1743
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1744
|
+
use_object_lambda_endpoint: nil,
|
1745
|
+
disable_access_points: nil,
|
1746
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1747
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1748
|
+
)
|
1749
|
+
end
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
class PutBucketPolicy
|
1753
|
+
def self.build(context)
|
1754
|
+
unless context.config.regional_endpoint
|
1755
|
+
endpoint = context.config.endpoint.to_s
|
1756
|
+
end
|
1757
|
+
Aws::S3::EndpointParameters.new(
|
1758
|
+
bucket: context.params[:bucket],
|
1759
|
+
region: context.config.region,
|
1760
|
+
use_fips: context.config.use_fips_endpoint,
|
1761
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1762
|
+
endpoint: endpoint,
|
1763
|
+
force_path_style: context.config.force_path_style,
|
1764
|
+
accelerate: context[:use_accelerate_endpoint],
|
1765
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1766
|
+
use_object_lambda_endpoint: nil,
|
1767
|
+
disable_access_points: nil,
|
1768
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1769
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1770
|
+
)
|
1771
|
+
end
|
1772
|
+
end
|
1773
|
+
|
1774
|
+
class PutBucketReplication
|
1775
|
+
def self.build(context)
|
1776
|
+
unless context.config.regional_endpoint
|
1777
|
+
endpoint = context.config.endpoint.to_s
|
1778
|
+
end
|
1779
|
+
Aws::S3::EndpointParameters.new(
|
1780
|
+
bucket: context.params[:bucket],
|
1781
|
+
region: context.config.region,
|
1782
|
+
use_fips: context.config.use_fips_endpoint,
|
1783
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1784
|
+
endpoint: endpoint,
|
1785
|
+
force_path_style: context.config.force_path_style,
|
1786
|
+
accelerate: context[:use_accelerate_endpoint],
|
1787
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1788
|
+
use_object_lambda_endpoint: nil,
|
1789
|
+
disable_access_points: nil,
|
1790
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1791
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1792
|
+
)
|
1793
|
+
end
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
class PutBucketRequestPayment
|
1797
|
+
def self.build(context)
|
1798
|
+
unless context.config.regional_endpoint
|
1799
|
+
endpoint = context.config.endpoint.to_s
|
1800
|
+
end
|
1801
|
+
Aws::S3::EndpointParameters.new(
|
1802
|
+
bucket: context.params[:bucket],
|
1803
|
+
region: context.config.region,
|
1804
|
+
use_fips: context.config.use_fips_endpoint,
|
1805
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1806
|
+
endpoint: endpoint,
|
1807
|
+
force_path_style: context.config.force_path_style,
|
1808
|
+
accelerate: context[:use_accelerate_endpoint],
|
1809
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1810
|
+
use_object_lambda_endpoint: nil,
|
1811
|
+
disable_access_points: nil,
|
1812
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1813
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1814
|
+
)
|
1815
|
+
end
|
1816
|
+
end
|
1817
|
+
|
1818
|
+
class PutBucketTagging
|
1819
|
+
def self.build(context)
|
1820
|
+
unless context.config.regional_endpoint
|
1821
|
+
endpoint = context.config.endpoint.to_s
|
1822
|
+
end
|
1823
|
+
Aws::S3::EndpointParameters.new(
|
1824
|
+
bucket: context.params[:bucket],
|
1825
|
+
region: context.config.region,
|
1826
|
+
use_fips: context.config.use_fips_endpoint,
|
1827
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1828
|
+
endpoint: endpoint,
|
1829
|
+
force_path_style: context.config.force_path_style,
|
1830
|
+
accelerate: context[:use_accelerate_endpoint],
|
1831
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1832
|
+
use_object_lambda_endpoint: nil,
|
1833
|
+
disable_access_points: nil,
|
1834
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1835
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1836
|
+
)
|
1837
|
+
end
|
1838
|
+
end
|
1839
|
+
|
1840
|
+
class PutBucketVersioning
|
1841
|
+
def self.build(context)
|
1842
|
+
unless context.config.regional_endpoint
|
1843
|
+
endpoint = context.config.endpoint.to_s
|
1844
|
+
end
|
1845
|
+
Aws::S3::EndpointParameters.new(
|
1846
|
+
bucket: context.params[:bucket],
|
1847
|
+
region: context.config.region,
|
1848
|
+
use_fips: context.config.use_fips_endpoint,
|
1849
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1850
|
+
endpoint: endpoint,
|
1851
|
+
force_path_style: context.config.force_path_style,
|
1852
|
+
accelerate: context[:use_accelerate_endpoint],
|
1853
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1854
|
+
use_object_lambda_endpoint: nil,
|
1855
|
+
disable_access_points: nil,
|
1856
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1857
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1858
|
+
)
|
1859
|
+
end
|
1860
|
+
end
|
1861
|
+
|
1862
|
+
class PutBucketWebsite
|
1863
|
+
def self.build(context)
|
1864
|
+
unless context.config.regional_endpoint
|
1865
|
+
endpoint = context.config.endpoint.to_s
|
1866
|
+
end
|
1867
|
+
Aws::S3::EndpointParameters.new(
|
1868
|
+
bucket: context.params[:bucket],
|
1869
|
+
region: context.config.region,
|
1870
|
+
use_fips: context.config.use_fips_endpoint,
|
1871
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1872
|
+
endpoint: endpoint,
|
1873
|
+
force_path_style: context.config.force_path_style,
|
1874
|
+
accelerate: context[:use_accelerate_endpoint],
|
1875
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1876
|
+
use_object_lambda_endpoint: nil,
|
1877
|
+
disable_access_points: nil,
|
1878
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1879
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1880
|
+
)
|
1881
|
+
end
|
1882
|
+
end
|
1883
|
+
|
1884
|
+
class PutObject
|
1885
|
+
def self.build(context)
|
1886
|
+
unless context.config.regional_endpoint
|
1887
|
+
endpoint = context.config.endpoint.to_s
|
1888
|
+
end
|
1889
|
+
Aws::S3::EndpointParameters.new(
|
1890
|
+
bucket: context.params[:bucket],
|
1891
|
+
region: context.config.region,
|
1892
|
+
use_fips: context.config.use_fips_endpoint,
|
1893
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1894
|
+
endpoint: endpoint,
|
1895
|
+
force_path_style: context.config.force_path_style,
|
1896
|
+
accelerate: context[:use_accelerate_endpoint],
|
1897
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1898
|
+
use_object_lambda_endpoint: nil,
|
1899
|
+
disable_access_points: nil,
|
1900
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1901
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1902
|
+
)
|
1903
|
+
end
|
1904
|
+
end
|
1905
|
+
|
1906
|
+
class PutObjectAcl
|
1907
|
+
def self.build(context)
|
1908
|
+
unless context.config.regional_endpoint
|
1909
|
+
endpoint = context.config.endpoint.to_s
|
1910
|
+
end
|
1911
|
+
Aws::S3::EndpointParameters.new(
|
1912
|
+
bucket: context.params[:bucket],
|
1913
|
+
region: context.config.region,
|
1914
|
+
use_fips: context.config.use_fips_endpoint,
|
1915
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1916
|
+
endpoint: endpoint,
|
1917
|
+
force_path_style: context.config.force_path_style,
|
1918
|
+
accelerate: context[:use_accelerate_endpoint],
|
1919
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1920
|
+
use_object_lambda_endpoint: nil,
|
1921
|
+
disable_access_points: nil,
|
1922
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1923
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1924
|
+
)
|
1925
|
+
end
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
class PutObjectLegalHold
|
1929
|
+
def self.build(context)
|
1930
|
+
unless context.config.regional_endpoint
|
1931
|
+
endpoint = context.config.endpoint.to_s
|
1932
|
+
end
|
1933
|
+
Aws::S3::EndpointParameters.new(
|
1934
|
+
bucket: context.params[:bucket],
|
1935
|
+
region: context.config.region,
|
1936
|
+
use_fips: context.config.use_fips_endpoint,
|
1937
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1938
|
+
endpoint: endpoint,
|
1939
|
+
force_path_style: context.config.force_path_style,
|
1940
|
+
accelerate: context[:use_accelerate_endpoint],
|
1941
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1942
|
+
use_object_lambda_endpoint: nil,
|
1943
|
+
disable_access_points: nil,
|
1944
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1945
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1946
|
+
)
|
1947
|
+
end
|
1948
|
+
end
|
1949
|
+
|
1950
|
+
class PutObjectLockConfiguration
|
1951
|
+
def self.build(context)
|
1952
|
+
unless context.config.regional_endpoint
|
1953
|
+
endpoint = context.config.endpoint.to_s
|
1954
|
+
end
|
1955
|
+
Aws::S3::EndpointParameters.new(
|
1956
|
+
bucket: context.params[:bucket],
|
1957
|
+
region: context.config.region,
|
1958
|
+
use_fips: context.config.use_fips_endpoint,
|
1959
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1960
|
+
endpoint: endpoint,
|
1961
|
+
force_path_style: context.config.force_path_style,
|
1962
|
+
accelerate: context[:use_accelerate_endpoint],
|
1963
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1964
|
+
use_object_lambda_endpoint: nil,
|
1965
|
+
disable_access_points: nil,
|
1966
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1967
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1968
|
+
)
|
1969
|
+
end
|
1970
|
+
end
|
1971
|
+
|
1972
|
+
class PutObjectRetention
|
1973
|
+
def self.build(context)
|
1974
|
+
unless context.config.regional_endpoint
|
1975
|
+
endpoint = context.config.endpoint.to_s
|
1976
|
+
end
|
1977
|
+
Aws::S3::EndpointParameters.new(
|
1978
|
+
bucket: context.params[:bucket],
|
1979
|
+
region: context.config.region,
|
1980
|
+
use_fips: context.config.use_fips_endpoint,
|
1981
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
1982
|
+
endpoint: endpoint,
|
1983
|
+
force_path_style: context.config.force_path_style,
|
1984
|
+
accelerate: context[:use_accelerate_endpoint],
|
1985
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
1986
|
+
use_object_lambda_endpoint: nil,
|
1987
|
+
disable_access_points: nil,
|
1988
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
1989
|
+
use_arn_region: context.config.s3_use_arn_region,
|
1990
|
+
)
|
1991
|
+
end
|
1992
|
+
end
|
1993
|
+
|
1994
|
+
class PutObjectTagging
|
1995
|
+
def self.build(context)
|
1996
|
+
unless context.config.regional_endpoint
|
1997
|
+
endpoint = context.config.endpoint.to_s
|
1998
|
+
end
|
1999
|
+
Aws::S3::EndpointParameters.new(
|
2000
|
+
bucket: context.params[:bucket],
|
2001
|
+
region: context.config.region,
|
2002
|
+
use_fips: context.config.use_fips_endpoint,
|
2003
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
2004
|
+
endpoint: endpoint,
|
2005
|
+
force_path_style: context.config.force_path_style,
|
2006
|
+
accelerate: context[:use_accelerate_endpoint],
|
2007
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
2008
|
+
use_object_lambda_endpoint: nil,
|
2009
|
+
disable_access_points: nil,
|
2010
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
2011
|
+
use_arn_region: context.config.s3_use_arn_region,
|
2012
|
+
)
|
2013
|
+
end
|
2014
|
+
end
|
2015
|
+
|
2016
|
+
class PutPublicAccessBlock
|
2017
|
+
def self.build(context)
|
2018
|
+
unless context.config.regional_endpoint
|
2019
|
+
endpoint = context.config.endpoint.to_s
|
2020
|
+
end
|
2021
|
+
Aws::S3::EndpointParameters.new(
|
2022
|
+
bucket: context.params[:bucket],
|
2023
|
+
region: context.config.region,
|
2024
|
+
use_fips: context.config.use_fips_endpoint,
|
2025
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
2026
|
+
endpoint: endpoint,
|
2027
|
+
force_path_style: context.config.force_path_style,
|
2028
|
+
accelerate: context[:use_accelerate_endpoint],
|
2029
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
2030
|
+
use_object_lambda_endpoint: nil,
|
2031
|
+
disable_access_points: nil,
|
2032
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
2033
|
+
use_arn_region: context.config.s3_use_arn_region,
|
2034
|
+
)
|
2035
|
+
end
|
2036
|
+
end
|
2037
|
+
|
2038
|
+
class RestoreObject
|
2039
|
+
def self.build(context)
|
2040
|
+
unless context.config.regional_endpoint
|
2041
|
+
endpoint = context.config.endpoint.to_s
|
2042
|
+
end
|
2043
|
+
Aws::S3::EndpointParameters.new(
|
2044
|
+
bucket: context.params[:bucket],
|
2045
|
+
region: context.config.region,
|
2046
|
+
use_fips: context.config.use_fips_endpoint,
|
2047
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
2048
|
+
endpoint: endpoint,
|
2049
|
+
force_path_style: context.config.force_path_style,
|
2050
|
+
accelerate: context[:use_accelerate_endpoint],
|
2051
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
2052
|
+
use_object_lambda_endpoint: nil,
|
2053
|
+
disable_access_points: nil,
|
2054
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
2055
|
+
use_arn_region: context.config.s3_use_arn_region,
|
2056
|
+
)
|
2057
|
+
end
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
class SelectObjectContent
|
2061
|
+
def self.build(context)
|
2062
|
+
unless context.config.regional_endpoint
|
2063
|
+
endpoint = context.config.endpoint.to_s
|
2064
|
+
end
|
2065
|
+
Aws::S3::EndpointParameters.new(
|
2066
|
+
bucket: context.params[:bucket],
|
2067
|
+
region: context.config.region,
|
2068
|
+
use_fips: context.config.use_fips_endpoint,
|
2069
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
2070
|
+
endpoint: endpoint,
|
2071
|
+
force_path_style: context.config.force_path_style,
|
2072
|
+
accelerate: context[:use_accelerate_endpoint],
|
2073
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
2074
|
+
use_object_lambda_endpoint: nil,
|
2075
|
+
disable_access_points: nil,
|
2076
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
2077
|
+
use_arn_region: context.config.s3_use_arn_region,
|
2078
|
+
)
|
2079
|
+
end
|
2080
|
+
end
|
2081
|
+
|
2082
|
+
class UploadPart
|
2083
|
+
def self.build(context)
|
2084
|
+
unless context.config.regional_endpoint
|
2085
|
+
endpoint = context.config.endpoint.to_s
|
2086
|
+
end
|
2087
|
+
Aws::S3::EndpointParameters.new(
|
2088
|
+
bucket: context.params[:bucket],
|
2089
|
+
region: context.config.region,
|
2090
|
+
use_fips: context.config.use_fips_endpoint,
|
2091
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
2092
|
+
endpoint: endpoint,
|
2093
|
+
force_path_style: context.config.force_path_style,
|
2094
|
+
accelerate: context[:use_accelerate_endpoint],
|
2095
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
2096
|
+
use_object_lambda_endpoint: nil,
|
2097
|
+
disable_access_points: nil,
|
2098
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
2099
|
+
use_arn_region: context.config.s3_use_arn_region,
|
2100
|
+
)
|
2101
|
+
end
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
class UploadPartCopy
|
2105
|
+
def self.build(context)
|
2106
|
+
unless context.config.regional_endpoint
|
2107
|
+
endpoint = context.config.endpoint.to_s
|
2108
|
+
end
|
2109
|
+
Aws::S3::EndpointParameters.new(
|
2110
|
+
bucket: context.params[:bucket],
|
2111
|
+
region: context.config.region,
|
2112
|
+
use_fips: context.config.use_fips_endpoint,
|
2113
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
2114
|
+
endpoint: endpoint,
|
2115
|
+
force_path_style: context.config.force_path_style,
|
2116
|
+
accelerate: context[:use_accelerate_endpoint],
|
2117
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
2118
|
+
use_object_lambda_endpoint: nil,
|
2119
|
+
disable_access_points: nil,
|
2120
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
2121
|
+
use_arn_region: context.config.s3_use_arn_region,
|
2122
|
+
)
|
2123
|
+
end
|
2124
|
+
end
|
2125
|
+
|
2126
|
+
class WriteGetObjectResponse
|
2127
|
+
def self.build(context)
|
2128
|
+
unless context.config.regional_endpoint
|
2129
|
+
endpoint = context.config.endpoint.to_s
|
2130
|
+
end
|
2131
|
+
Aws::S3::EndpointParameters.new(
|
2132
|
+
bucket: nil,
|
2133
|
+
region: context.config.region,
|
2134
|
+
use_fips: context.config.use_fips_endpoint,
|
2135
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
2136
|
+
endpoint: endpoint,
|
2137
|
+
force_path_style: context.config.force_path_style,
|
2138
|
+
accelerate: context[:use_accelerate_endpoint],
|
2139
|
+
use_global_endpoint: context.config.s3_us_east_1_regional_endpoint == 'legacy',
|
2140
|
+
use_object_lambda_endpoint: true,
|
2141
|
+
disable_access_points: nil,
|
2142
|
+
disable_multi_region_access_points: context.config.s3_disable_multiregion_access_points,
|
2143
|
+
use_arn_region: context.config.s3_use_arn_region,
|
2144
|
+
)
|
2145
|
+
end
|
2146
|
+
end
|
2147
|
+
|
2148
|
+
end
|
2149
|
+
end
|