aws-sdk-s3 1.136.0 → 1.176.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +250 -1
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/access_grants_credentials.rb +57 -0
  5. data/lib/aws-sdk-s3/access_grants_credentials_provider.rb +250 -0
  6. data/lib/aws-sdk-s3/bucket.rb +671 -139
  7. data/lib/aws-sdk-s3/bucket_acl.rb +12 -12
  8. data/lib/aws-sdk-s3/bucket_cors.rb +16 -16
  9. data/lib/aws-sdk-s3/bucket_lifecycle.rb +21 -16
  10. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +74 -17
  11. data/lib/aws-sdk-s3/bucket_logging.rb +19 -12
  12. data/lib/aws-sdk-s3/bucket_notification.rb +6 -6
  13. data/lib/aws-sdk-s3/bucket_policy.rb +62 -18
  14. data/lib/aws-sdk-s3/bucket_region_cache.rb +9 -5
  15. data/lib/aws-sdk-s3/bucket_request_payment.rb +12 -12
  16. data/lib/aws-sdk-s3/bucket_tagging.rb +16 -16
  17. data/lib/aws-sdk-s3/bucket_versioning.rb +32 -32
  18. data/lib/aws-sdk-s3/bucket_website.rb +16 -16
  19. data/lib/aws-sdk-s3/client.rb +7597 -2823
  20. data/lib/aws-sdk-s3/client_api.rb +288 -22
  21. data/lib/aws-sdk-s3/customizations/bucket.rb +1 -1
  22. data/lib/aws-sdk-s3/customizations/errors.rb +15 -2
  23. data/lib/aws-sdk-s3/customizations/object.rb +11 -5
  24. data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
  25. data/lib/aws-sdk-s3/customizations/object_version.rb +13 -0
  26. data/lib/aws-sdk-s3/customizations.rb +25 -31
  27. data/lib/aws-sdk-s3/encryption/client.rb +2 -2
  28. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +2 -2
  29. data/lib/aws-sdk-s3/encryptionV2/client.rb +2 -2
  30. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +2 -2
  31. data/lib/aws-sdk-s3/endpoint_parameters.rb +53 -18
  32. data/lib/aws-sdk-s3/endpoint_provider.rb +125 -6
  33. data/lib/aws-sdk-s3/endpoints.rb +545 -1261
  34. data/lib/aws-sdk-s3/errors.rb +47 -0
  35. data/lib/aws-sdk-s3/express_credentials.rb +55 -0
  36. data/lib/aws-sdk-s3/express_credentials_provider.rb +59 -0
  37. data/lib/aws-sdk-s3/file_downloader.rb +1 -2
  38. data/lib/aws-sdk-s3/file_uploader.rb +1 -1
  39. data/lib/aws-sdk-s3/multipart_file_uploader.rb +4 -4
  40. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +6 -5
  41. data/lib/aws-sdk-s3/multipart_upload.rb +139 -36
  42. data/lib/aws-sdk-s3/multipart_upload_part.rb +175 -54
  43. data/lib/aws-sdk-s3/object.rb +1923 -313
  44. data/lib/aws-sdk-s3/object_acl.rb +34 -22
  45. data/lib/aws-sdk-s3/object_copier.rb +1 -1
  46. data/lib/aws-sdk-s3/object_multipart_copier.rb +10 -8
  47. data/lib/aws-sdk-s3/object_summary.rb +1690 -250
  48. data/lib/aws-sdk-s3/object_version.rb +397 -67
  49. data/lib/aws-sdk-s3/plugins/access_grants.rb +178 -0
  50. data/lib/aws-sdk-s3/plugins/endpoints.rb +32 -208
  51. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +97 -0
  52. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +55 -18
  53. data/lib/aws-sdk-s3/plugins/location_constraint.rb +3 -1
  54. data/lib/aws-sdk-s3/plugins/md5s.rb +2 -1
  55. data/lib/aws-sdk-s3/plugins/s3_signer.rb +7 -2
  56. data/lib/aws-sdk-s3/presigner.rb +5 -2
  57. data/lib/aws-sdk-s3/resource.rb +121 -22
  58. data/lib/aws-sdk-s3/types.rb +5960 -1526
  59. data/lib/aws-sdk-s3.rb +35 -31
  60. data/sig/bucket.rbs +221 -0
  61. data/sig/bucket_acl.rbs +78 -0
  62. data/sig/bucket_cors.rbs +69 -0
  63. data/sig/bucket_lifecycle.rbs +88 -0
  64. data/sig/bucket_lifecycle_configuration.rbs +115 -0
  65. data/sig/bucket_logging.rbs +76 -0
  66. data/sig/bucket_notification.rbs +114 -0
  67. data/sig/bucket_policy.rbs +59 -0
  68. data/sig/bucket_request_payment.rbs +54 -0
  69. data/sig/bucket_tagging.rbs +65 -0
  70. data/sig/bucket_versioning.rbs +77 -0
  71. data/sig/bucket_website.rbs +93 -0
  72. data/sig/client.rbs +2450 -0
  73. data/sig/customizations/bucket.rbs +19 -0
  74. data/sig/customizations/object.rbs +38 -0
  75. data/sig/customizations/object_summary.rbs +35 -0
  76. data/sig/errors.rbs +42 -0
  77. data/sig/multipart_upload.rbs +113 -0
  78. data/sig/multipart_upload_part.rbs +105 -0
  79. data/sig/object.rbs +448 -0
  80. data/sig/object_acl.rbs +86 -0
  81. data/sig/object_summary.rbs +340 -0
  82. data/sig/object_version.rbs +140 -0
  83. data/sig/resource.rbs +132 -0
  84. data/sig/types.rbs +2682 -0
  85. data/sig/waiters.rbs +95 -0
  86. metadata +44 -11
@@ -0,0 +1,340 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module S3
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html
11
+ class ObjectSummary
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#initialize-instance_method
13
+ def initialize: (String bucket_name, String key, Hash[Symbol, untyped] options) -> void
14
+ | (bucket_name: String, key: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#bucket_name-instance_method
18
+ def bucket_name: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#key-instance_method
21
+ def key: () -> String
22
+
23
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#last_modified-instance_method
24
+ def last_modified: () -> ::Time
25
+
26
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#etag-instance_method
27
+ def etag: () -> ::String
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#checksum_algorithm-instance_method
30
+ def checksum_algorithm: () -> ::Array[("CRC32" | "CRC32C" | "SHA1" | "SHA256")]
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#size-instance_method
33
+ def size: () -> ::Integer
34
+
35
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#storage_class-instance_method
36
+ def storage_class: () -> ("STANDARD" | "REDUCED_REDUNDANCY" | "GLACIER" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE")
37
+
38
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#owner-instance_method
39
+ def owner: () -> Types::Owner
40
+
41
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#restore_status-instance_method
42
+ def restore_status: () -> Types::RestoreStatus
43
+
44
+ def client: () -> Client
45
+
46
+
47
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#data-instance_method
48
+ def data: () -> Types::Object
49
+
50
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#data_loaded?-instance_method
51
+ def data_loaded?: () -> bool
52
+
53
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#exists?-instance_method
54
+ def exists?: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) -> bool
55
+ | (?Hash[Symbol, untyped]) -> bool
56
+
57
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#wait_until_exists-instance_method
58
+ def wait_until_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> ObjectSummary
59
+ | (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> ObjectSummary
60
+
61
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#wait_until_not_exists-instance_method
62
+ def wait_until_not_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> ObjectSummary
63
+ | (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> ObjectSummary
64
+
65
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#copy_from-instance_method
66
+ def copy_from: (
67
+ ?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control"),
68
+ ?cache_control: ::String,
69
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
70
+ ?content_disposition: ::String,
71
+ ?content_encoding: ::String,
72
+ ?content_language: ::String,
73
+ ?content_type: ::String,
74
+ copy_source: ::String,
75
+ ?copy_source_if_match: ::String,
76
+ ?copy_source_if_modified_since: ::Time,
77
+ ?copy_source_if_none_match: ::String,
78
+ ?copy_source_if_unmodified_since: ::Time,
79
+ ?expires: ::Time,
80
+ ?grant_full_control: ::String,
81
+ ?grant_read: ::String,
82
+ ?grant_read_acp: ::String,
83
+ ?grant_write_acp: ::String,
84
+ ?metadata: Hash[::String, ::String],
85
+ ?metadata_directive: ("COPY" | "REPLACE"),
86
+ ?tagging_directive: ("COPY" | "REPLACE"),
87
+ ?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
88
+ ?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE"),
89
+ ?website_redirect_location: ::String,
90
+ ?sse_customer_algorithm: ::String,
91
+ ?sse_customer_key: ::String,
92
+ ?sse_customer_key_md5: ::String,
93
+ ?ssekms_key_id: ::String,
94
+ ?ssekms_encryption_context: ::String,
95
+ ?bucket_key_enabled: bool,
96
+ ?copy_source_sse_customer_algorithm: ::String,
97
+ ?copy_source_sse_customer_key: ::String,
98
+ ?copy_source_sse_customer_key_md5: ::String,
99
+ ?request_payer: ("requester"),
100
+ ?tagging: ::String,
101
+ ?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
102
+ ?object_lock_retain_until_date: ::Time,
103
+ ?object_lock_legal_hold_status: ("ON" | "OFF"),
104
+ ?expected_bucket_owner: ::String,
105
+ ?expected_source_bucket_owner: ::String
106
+ ) -> Types::CopyObjectOutput
107
+ | (?Hash[Symbol, untyped]) -> Types::CopyObjectOutput
108
+
109
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#delete-instance_method
110
+ def delete: (
111
+ ?mfa: ::String,
112
+ ?version_id: ::String,
113
+ ?request_payer: ("requester"),
114
+ ?bypass_governance_retention: bool,
115
+ ?expected_bucket_owner: ::String,
116
+ ?if_match: ::String,
117
+ ?if_match_last_modified_time: ::Time,
118
+ ?if_match_size: ::Integer
119
+ ) -> Types::DeleteObjectOutput
120
+ | (?Hash[Symbol, untyped]) -> Types::DeleteObjectOutput
121
+
122
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#get-instance_method
123
+ def get: (
124
+ ?if_match: ::String,
125
+ ?if_modified_since: ::Time,
126
+ ?if_none_match: ::String,
127
+ ?if_unmodified_since: ::Time,
128
+ ?range: ::String,
129
+ ?response_cache_control: ::String,
130
+ ?response_content_disposition: ::String,
131
+ ?response_content_encoding: ::String,
132
+ ?response_content_language: ::String,
133
+ ?response_content_type: ::String,
134
+ ?response_expires: ::Time,
135
+ ?version_id: ::String,
136
+ ?sse_customer_algorithm: ::String,
137
+ ?sse_customer_key: ::String,
138
+ ?sse_customer_key_md5: ::String,
139
+ ?request_payer: ("requester"),
140
+ ?part_number: ::Integer,
141
+ ?expected_bucket_owner: ::String,
142
+ ?checksum_mode: ("ENABLED")
143
+ ) -> Types::GetObjectOutput
144
+ | (?Hash[Symbol, untyped]) -> Types::GetObjectOutput
145
+
146
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#initiate_multipart_upload-instance_method
147
+ def initiate_multipart_upload: (
148
+ ?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control"),
149
+ ?cache_control: ::String,
150
+ ?content_disposition: ::String,
151
+ ?content_encoding: ::String,
152
+ ?content_language: ::String,
153
+ ?content_type: ::String,
154
+ ?expires: ::Time,
155
+ ?grant_full_control: ::String,
156
+ ?grant_read: ::String,
157
+ ?grant_read_acp: ::String,
158
+ ?grant_write_acp: ::String,
159
+ ?metadata: Hash[::String, ::String],
160
+ ?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
161
+ ?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE"),
162
+ ?website_redirect_location: ::String,
163
+ ?sse_customer_algorithm: ::String,
164
+ ?sse_customer_key: ::String,
165
+ ?sse_customer_key_md5: ::String,
166
+ ?ssekms_key_id: ::String,
167
+ ?ssekms_encryption_context: ::String,
168
+ ?bucket_key_enabled: bool,
169
+ ?request_payer: ("requester"),
170
+ ?tagging: ::String,
171
+ ?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
172
+ ?object_lock_retain_until_date: ::Time,
173
+ ?object_lock_legal_hold_status: ("ON" | "OFF"),
174
+ ?expected_bucket_owner: ::String,
175
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
176
+ ) -> MultipartUpload
177
+ | (?Hash[Symbol, untyped]) -> MultipartUpload
178
+
179
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#put-instance_method
180
+ def put: (
181
+ ?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control"),
182
+ ?body: ::String | ::StringIO | ::File,
183
+ ?cache_control: ::String,
184
+ ?content_disposition: ::String,
185
+ ?content_encoding: ::String,
186
+ ?content_language: ::String,
187
+ ?content_length: ::Integer,
188
+ ?content_md5: ::String,
189
+ ?content_type: ::String,
190
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
191
+ ?checksum_crc32: ::String,
192
+ ?checksum_crc32c: ::String,
193
+ ?checksum_sha1: ::String,
194
+ ?checksum_sha256: ::String,
195
+ ?expires: ::Time,
196
+ ?if_match: ::String,
197
+ ?if_none_match: ::String,
198
+ ?grant_full_control: ::String,
199
+ ?grant_read: ::String,
200
+ ?grant_read_acp: ::String,
201
+ ?grant_write_acp: ::String,
202
+ ?write_offset_bytes: ::Integer,
203
+ ?metadata: Hash[::String, ::String],
204
+ ?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
205
+ ?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE"),
206
+ ?website_redirect_location: ::String,
207
+ ?sse_customer_algorithm: ::String,
208
+ ?sse_customer_key: ::String,
209
+ ?sse_customer_key_md5: ::String,
210
+ ?ssekms_key_id: ::String,
211
+ ?ssekms_encryption_context: ::String,
212
+ ?bucket_key_enabled: bool,
213
+ ?request_payer: ("requester"),
214
+ ?tagging: ::String,
215
+ ?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
216
+ ?object_lock_retain_until_date: ::Time,
217
+ ?object_lock_legal_hold_status: ("ON" | "OFF"),
218
+ ?expected_bucket_owner: ::String
219
+ ) -> Types::PutObjectOutput
220
+ | (?Hash[Symbol, untyped]) -> Types::PutObjectOutput
221
+
222
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#restore_object-instance_method
223
+ def restore_object: (
224
+ ?version_id: ::String,
225
+ ?restore_request: {
226
+ days: ::Integer?,
227
+ glacier_job_parameters: {
228
+ tier: ("Standard" | "Bulk" | "Expedited")
229
+ }?,
230
+ type: ("SELECT")?,
231
+ tier: ("Standard" | "Bulk" | "Expedited")?,
232
+ description: ::String?,
233
+ select_parameters: {
234
+ input_serialization: {
235
+ csv: {
236
+ file_header_info: ("USE" | "IGNORE" | "NONE")?,
237
+ comments: ::String?,
238
+ quote_escape_character: ::String?,
239
+ record_delimiter: ::String?,
240
+ field_delimiter: ::String?,
241
+ quote_character: ::String?,
242
+ allow_quoted_record_delimiter: bool?
243
+ }?,
244
+ compression_type: ("NONE" | "GZIP" | "BZIP2")?,
245
+ json: {
246
+ type: ("DOCUMENT" | "LINES")?
247
+ }?,
248
+ parquet: {
249
+ }?
250
+ },
251
+ expression_type: ("SQL"),
252
+ expression: ::String,
253
+ output_serialization: {
254
+ csv: {
255
+ quote_fields: ("ALWAYS" | "ASNEEDED")?,
256
+ quote_escape_character: ::String?,
257
+ record_delimiter: ::String?,
258
+ field_delimiter: ::String?,
259
+ quote_character: ::String?
260
+ }?,
261
+ json: {
262
+ record_delimiter: ::String?
263
+ }?
264
+ }
265
+ }?,
266
+ output_location: {
267
+ s3: {
268
+ bucket_name: ::String,
269
+ prefix: ::String,
270
+ encryption: {
271
+ encryption_type: ("AES256" | "aws:kms" | "aws:kms:dsse"),
272
+ kms_key_id: ::String?,
273
+ kms_context: ::String?
274
+ }?,
275
+ canned_acl: ("private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control")?,
276
+ access_control_list: Array[
277
+ {
278
+ grantee: {
279
+ display_name: ::String?,
280
+ email_address: ::String?,
281
+ id: ::String?,
282
+ type: ("CanonicalUser" | "AmazonCustomerByEmail" | "Group"),
283
+ uri: ::String?
284
+ }?,
285
+ permission: ("FULL_CONTROL" | "WRITE" | "WRITE_ACP" | "READ" | "READ_ACP")?
286
+ },
287
+ ]?,
288
+ tagging: {
289
+ tag_set: Array[
290
+ {
291
+ key: ::String,
292
+ value: ::String
293
+ },
294
+ ]
295
+ }?,
296
+ user_metadata: Array[
297
+ {
298
+ name: ::String?,
299
+ value: ::String?
300
+ },
301
+ ]?,
302
+ storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE")?
303
+ }?
304
+ }?
305
+ },
306
+ ?request_payer: ("requester"),
307
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
308
+ ?expected_bucket_owner: ::String
309
+ ) -> Types::RestoreObjectOutput
310
+ | (?Hash[Symbol, untyped]) -> Types::RestoreObjectOutput
311
+
312
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#acl-instance_method
313
+ def acl: () -> ObjectAcl
314
+
315
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#bucket-instance_method
316
+ def bucket: () -> Bucket
317
+
318
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#multipart_upload-instance_method
319
+ def multipart_upload: (String id) -> MultipartUpload
320
+
321
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#object-instance_method
322
+ def object: () -> Object
323
+
324
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#version-instance_method
325
+ def version: (String id) -> ObjectVersion
326
+
327
+ class Collection < ::Aws::Resources::Collection[ObjectSummary]
328
+
329
+ def batch_delete!: (
330
+ ?mfa: ::String,
331
+ ?request_payer: ("requester"),
332
+ ?bypass_governance_retention: bool,
333
+ ?expected_bucket_owner: ::String,
334
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
335
+ ) -> void
336
+ | (?Hash[Symbol, untyped]) -> void
337
+ end
338
+ end
339
+ end
340
+ end
@@ -0,0 +1,140 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module S3
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html
11
+ class ObjectVersion
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#initialize-instance_method
13
+ def initialize: (String bucket_name, String object_key, String id, Hash[Symbol, untyped] options) -> void
14
+ | (bucket_name: String, object_key: String, id: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#bucket_name-instance_method
18
+ def bucket_name: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#object_key-instance_method
21
+ def object_key: () -> String
22
+
23
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#id-instance_method
24
+ def id: () -> String
25
+
26
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#etag-instance_method
27
+ def etag: () -> ::String
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#checksum_algorithm-instance_method
30
+ def checksum_algorithm: () -> ::Array[("CRC32" | "CRC32C" | "SHA1" | "SHA256")]
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#size-instance_method
33
+ def size: () -> ::Integer
34
+
35
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#storage_class-instance_method
36
+ def storage_class: () -> ("STANDARD")
37
+
38
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#key-instance_method
39
+ def key: () -> ::String
40
+
41
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#version_id-instance_method
42
+ def version_id: () -> ::String
43
+
44
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#is_latest-instance_method
45
+ def is_latest: () -> bool
46
+
47
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#last_modified-instance_method
48
+ def last_modified: () -> ::Time
49
+
50
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#owner-instance_method
51
+ def owner: () -> Types::Owner
52
+
53
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#restore_status-instance_method
54
+ def restore_status: () -> Types::RestoreStatus
55
+
56
+ def client: () -> Client
57
+
58
+
59
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#data-instance_method
60
+ def data: () -> Types::ObjectVersion
61
+
62
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#data_loaded?-instance_method
63
+ def data_loaded?: () -> bool
64
+
65
+
66
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#delete-instance_method
67
+ def delete: (
68
+ ?mfa: ::String,
69
+ ?request_payer: ("requester"),
70
+ ?bypass_governance_retention: bool,
71
+ ?expected_bucket_owner: ::String,
72
+ ?if_match: ::String,
73
+ ?if_match_last_modified_time: ::Time,
74
+ ?if_match_size: ::Integer
75
+ ) -> Types::DeleteObjectOutput
76
+ | (?Hash[Symbol, untyped]) -> Types::DeleteObjectOutput
77
+
78
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#get-instance_method
79
+ def get: (
80
+ ?if_match: ::String,
81
+ ?if_modified_since: ::Time,
82
+ ?if_none_match: ::String,
83
+ ?if_unmodified_since: ::Time,
84
+ ?range: ::String,
85
+ ?response_cache_control: ::String,
86
+ ?response_content_disposition: ::String,
87
+ ?response_content_encoding: ::String,
88
+ ?response_content_language: ::String,
89
+ ?response_content_type: ::String,
90
+ ?response_expires: ::Time,
91
+ ?sse_customer_algorithm: ::String,
92
+ ?sse_customer_key: ::String,
93
+ ?sse_customer_key_md5: ::String,
94
+ ?request_payer: ("requester"),
95
+ ?part_number: ::Integer,
96
+ ?expected_bucket_owner: ::String,
97
+ ?checksum_mode: ("ENABLED")
98
+ ) -> Types::GetObjectOutput
99
+ | (?Hash[Symbol, untyped]) -> Types::GetObjectOutput
100
+
101
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#head-instance_method
102
+ def head: (
103
+ ?if_match: ::String,
104
+ ?if_modified_since: ::Time,
105
+ ?if_none_match: ::String,
106
+ ?if_unmodified_since: ::Time,
107
+ ?range: ::String,
108
+ ?response_cache_control: ::String,
109
+ ?response_content_disposition: ::String,
110
+ ?response_content_encoding: ::String,
111
+ ?response_content_language: ::String,
112
+ ?response_content_type: ::String,
113
+ ?response_expires: ::Time,
114
+ ?sse_customer_algorithm: ::String,
115
+ ?sse_customer_key: ::String,
116
+ ?sse_customer_key_md5: ::String,
117
+ ?request_payer: ("requester"),
118
+ ?part_number: ::Integer,
119
+ ?expected_bucket_owner: ::String,
120
+ ?checksum_mode: ("ENABLED")
121
+ ) -> Types::HeadObjectOutput
122
+ | (?Hash[Symbol, untyped]) -> Types::HeadObjectOutput
123
+
124
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectVersion.html#object-instance_method
125
+ def object: () -> Object
126
+
127
+ class Collection < ::Aws::Resources::Collection[ObjectVersion]
128
+
129
+ def batch_delete!: (
130
+ ?mfa: ::String,
131
+ ?request_payer: ("requester"),
132
+ ?bypass_governance_retention: bool,
133
+ ?expected_bucket_owner: ::String,
134
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
135
+ ) -> void
136
+ | (?Hash[Symbol, untyped]) -> void
137
+ end
138
+ end
139
+ end
140
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,132 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module S3
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_grants: bool,
18
+ ?access_grants_credentials_provider: untyped,
19
+ ?access_key_id: String,
20
+ ?account_id: String,
21
+ ?active_endpoint_cache: bool,
22
+ ?adaptive_retry_wait_to_fill: bool,
23
+ ?client_side_monitoring: bool,
24
+ ?client_side_monitoring_client_id: String,
25
+ ?client_side_monitoring_host: String,
26
+ ?client_side_monitoring_port: Integer,
27
+ ?client_side_monitoring_publisher: untyped,
28
+ ?compute_checksums: bool,
29
+ ?convert_params: bool,
30
+ ?correct_clock_skew: bool,
31
+ ?defaults_mode: String,
32
+ ?disable_host_prefix_injection: bool,
33
+ ?disable_request_compression: bool,
34
+ ?disable_s3_express_session_auth: bool,
35
+ ?endpoint: String,
36
+ ?endpoint_cache_max_entries: Integer,
37
+ ?endpoint_cache_max_threads: Integer,
38
+ ?endpoint_cache_poll_interval: Integer,
39
+ ?endpoint_discovery: bool,
40
+ ?event_stream_handler: Proc,
41
+ ?express_credentials_provider: untyped,
42
+ ?follow_redirects: bool,
43
+ ?force_path_style: bool,
44
+ ?ignore_configured_endpoint_urls: bool,
45
+ ?input_event_stream_handler: Proc,
46
+ ?log_formatter: untyped,
47
+ ?log_level: Symbol,
48
+ ?logger: untyped,
49
+ ?max_attempts: Integer,
50
+ ?output_event_stream_handler: Proc,
51
+ ?profile: String,
52
+ ?request_min_compression_size_bytes: Integer,
53
+ ?require_https_for_sse_cpk: bool,
54
+ ?retry_backoff: Proc,
55
+ ?retry_base_delay: Float,
56
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
57
+ ?retry_limit: Integer,
58
+ ?retry_max_delay: Integer,
59
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
60
+ ?s3_disable_multiregion_access_points: bool,
61
+ ?s3_us_east_1_regional_endpoint: String,
62
+ ?s3_use_arn_region: bool,
63
+ ?sdk_ua_app_id: String,
64
+ ?secret_access_key: String,
65
+ ?session_token: String,
66
+ ?sigv4a_signing_region_set: Array[String],
67
+ ?stub_responses: untyped,
68
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
69
+ ?token_provider: untyped,
70
+ ?use_accelerate_endpoint: bool,
71
+ ?use_dualstack_endpoint: bool,
72
+ ?use_fips_endpoint: bool,
73
+ ?validate_params: bool,
74
+ ?endpoint_provider: untyped,
75
+ ?http_proxy: String,
76
+ ?http_open_timeout: (Float | Integer),
77
+ ?http_read_timeout: (Float | Integer),
78
+ ?http_idle_timeout: (Float | Integer),
79
+ ?http_continue_timeout: (Float | Integer),
80
+ ?ssl_timeout: (Float | Integer | nil),
81
+ ?http_wire_trace: bool,
82
+ ?ssl_verify_peer: bool,
83
+ ?ssl_ca_bundle: String,
84
+ ?ssl_ca_directory: String,
85
+ ?ssl_ca_store: String,
86
+ ?on_chunk_received: Proc,
87
+ ?on_chunk_sent: Proc,
88
+ ?raise_response_errors: bool
89
+ ) -> void
90
+ | (?Hash[Symbol, untyped]) -> void
91
+
92
+ def client: () -> Client
93
+
94
+
95
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Resource.html#create_bucket-instance_method
96
+ def create_bucket: (
97
+ ?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read"),
98
+ bucket: ::String,
99
+ ?create_bucket_configuration: {
100
+ location_constraint: ("af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "EU" | "eu-central-1" | "eu-north-1" | "eu-south-1" | "eu-south-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-2" | "us-gov-east-1" | "us-gov-west-1" | "us-west-1" | "us-west-2")?,
101
+ location: {
102
+ type: ("AvailabilityZone" | "LocalZone")?,
103
+ name: ::String?
104
+ }?,
105
+ bucket: {
106
+ data_redundancy: ("SingleAvailabilityZone" | "SingleLocalZone")?,
107
+ type: ("Directory")?
108
+ }?
109
+ },
110
+ ?grant_full_control: ::String,
111
+ ?grant_read: ::String,
112
+ ?grant_read_acp: ::String,
113
+ ?grant_write: ::String,
114
+ ?grant_write_acp: ::String,
115
+ ?object_lock_enabled_for_bucket: bool,
116
+ ?object_ownership: ("BucketOwnerPreferred" | "ObjectWriter" | "BucketOwnerEnforced")
117
+ ) -> Bucket
118
+ | (?Hash[Symbol, untyped]) -> Bucket
119
+
120
+
121
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Resource.html#bucket-instance_method
122
+ def bucket: (String name) -> Bucket
123
+
124
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Resource.html#buckets-instance_method
125
+ def buckets: (
126
+ ?prefix: ::String,
127
+ ?bucket_region: ::String
128
+ ) -> Bucket::Collection
129
+ | (?Hash[Symbol, untyped]) -> Bucket::Collection
130
+ end
131
+ end
132
+ end