aws-sdk-s3 1.45.0 → 1.143.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +1106 -0
  3. data/LICENSE.txt +202 -0
  4. data/VERSION +1 -0
  5. data/lib/aws-sdk-s3/bucket.rb +784 -98
  6. data/lib/aws-sdk-s3/bucket_acl.rb +64 -18
  7. data/lib/aws-sdk-s3/bucket_cors.rb +79 -18
  8. data/lib/aws-sdk-s3/bucket_lifecycle.rb +66 -20
  9. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +68 -20
  10. data/lib/aws-sdk-s3/bucket_logging.rb +68 -16
  11. data/lib/aws-sdk-s3/bucket_notification.rb +52 -20
  12. data/lib/aws-sdk-s3/bucket_policy.rb +107 -17
  13. data/lib/aws-sdk-s3/bucket_region_cache.rb +2 -0
  14. data/lib/aws-sdk-s3/bucket_request_payment.rb +60 -15
  15. data/lib/aws-sdk-s3/bucket_tagging.rb +71 -18
  16. data/lib/aws-sdk-s3/bucket_versioning.rb +133 -17
  17. data/lib/aws-sdk-s3/bucket_website.rb +78 -21
  18. data/lib/aws-sdk-s3/client.rb +12610 -902
  19. data/lib/aws-sdk-s3/client_api.rb +1086 -191
  20. data/lib/aws-sdk-s3/customizations/bucket.rb +56 -37
  21. data/lib/aws-sdk-s3/customizations/errors.rb +27 -0
  22. data/lib/aws-sdk-s3/customizations/multipart_upload.rb +2 -0
  23. data/lib/aws-sdk-s3/customizations/object.rb +282 -68
  24. data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
  25. data/lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb +2 -0
  26. data/lib/aws-sdk-s3/customizations/types/permanent_redirect.rb +26 -0
  27. data/lib/aws-sdk-s3/customizations.rb +11 -1
  28. data/lib/aws-sdk-s3/encryption/client.rb +28 -7
  29. data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +71 -29
  30. data/lib/aws-sdk-s3/encryption/default_cipher_provider.rb +43 -5
  31. data/lib/aws-sdk-s3/encryption/default_key_provider.rb +2 -0
  32. data/lib/aws-sdk-s3/encryption/encrypt_handler.rb +13 -2
  33. data/lib/aws-sdk-s3/encryption/errors.rb +2 -0
  34. data/lib/aws-sdk-s3/encryption/io_auth_decrypter.rb +2 -0
  35. data/lib/aws-sdk-s3/encryption/io_decrypter.rb +11 -3
  36. data/lib/aws-sdk-s3/encryption/io_encrypter.rb +2 -0
  37. data/lib/aws-sdk-s3/encryption/key_provider.rb +2 -0
  38. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +46 -11
  39. data/lib/aws-sdk-s3/encryption/materials.rb +8 -6
  40. data/lib/aws-sdk-s3/encryption/utils.rb +25 -0
  41. data/lib/aws-sdk-s3/encryption.rb +4 -0
  42. data/lib/aws-sdk-s3/encryptionV2/client.rb +570 -0
  43. data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +223 -0
  44. data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +170 -0
  45. data/lib/aws-sdk-s3/encryptionV2/default_key_provider.rb +40 -0
  46. data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +65 -0
  47. data/lib/aws-sdk-s3/encryptionV2/errors.rb +37 -0
  48. data/lib/aws-sdk-s3/encryptionV2/io_auth_decrypter.rb +58 -0
  49. data/lib/aws-sdk-s3/encryptionV2/io_decrypter.rb +37 -0
  50. data/lib/aws-sdk-s3/encryptionV2/io_encrypter.rb +73 -0
  51. data/lib/aws-sdk-s3/encryptionV2/key_provider.rb +31 -0
  52. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +173 -0
  53. data/lib/aws-sdk-s3/encryptionV2/materials.rb +60 -0
  54. data/lib/aws-sdk-s3/encryptionV2/utils.rb +103 -0
  55. data/lib/aws-sdk-s3/encryption_v2.rb +23 -0
  56. data/lib/aws-sdk-s3/endpoint_parameters.rb +178 -0
  57. data/lib/aws-sdk-s3/endpoint_provider.rb +591 -0
  58. data/lib/aws-sdk-s3/endpoints.rb +2590 -0
  59. data/lib/aws-sdk-s3/errors.rb +123 -1
  60. data/lib/aws-sdk-s3/event_streams.rb +8 -1
  61. data/lib/aws-sdk-s3/express_credentials.rb +55 -0
  62. data/lib/aws-sdk-s3/express_credentials_cache.rb +30 -0
  63. data/lib/aws-sdk-s3/express_credentials_provider.rb +36 -0
  64. data/lib/aws-sdk-s3/file_downloader.rb +176 -44
  65. data/lib/aws-sdk-s3/file_part.rb +11 -6
  66. data/lib/aws-sdk-s3/file_uploader.rb +39 -18
  67. data/lib/aws-sdk-s3/legacy_signer.rb +17 -25
  68. data/lib/aws-sdk-s3/multipart_file_uploader.rb +78 -20
  69. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +56 -18
  70. data/lib/aws-sdk-s3/multipart_upload.rb +242 -32
  71. data/lib/aws-sdk-s3/multipart_upload_error.rb +2 -0
  72. data/lib/aws-sdk-s3/multipart_upload_part.rb +367 -45
  73. data/lib/aws-sdk-s3/object.rb +2191 -227
  74. data/lib/aws-sdk-s3/object_acl.rb +103 -25
  75. data/lib/aws-sdk-s3/object_copier.rb +9 -5
  76. data/lib/aws-sdk-s3/object_multipart_copier.rb +43 -19
  77. data/lib/aws-sdk-s3/object_summary.rb +1811 -208
  78. data/lib/aws-sdk-s3/object_version.rb +452 -80
  79. data/lib/aws-sdk-s3/plugins/accelerate.rb +17 -64
  80. data/lib/aws-sdk-s3/plugins/arn.rb +70 -0
  81. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +7 -43
  82. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +20 -3
  83. data/lib/aws-sdk-s3/plugins/dualstack.rb +7 -50
  84. data/lib/aws-sdk-s3/plugins/endpoints.rb +274 -0
  85. data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +5 -4
  86. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +91 -0
  87. data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +3 -1
  88. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +11 -3
  89. data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +44 -0
  90. data/lib/aws-sdk-s3/plugins/location_constraint.rb +5 -1
  91. data/lib/aws-sdk-s3/plugins/md5s.rb +35 -30
  92. data/lib/aws-sdk-s3/plugins/redirects.rb +2 -0
  93. data/lib/aws-sdk-s3/plugins/s3_host_id.rb +2 -0
  94. data/lib/aws-sdk-s3/plugins/s3_signer.rb +56 -92
  95. data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
  96. data/lib/aws-sdk-s3/plugins/sse_cpk.rb +3 -1
  97. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +139 -0
  98. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -0
  99. data/lib/aws-sdk-s3/presigned_post.rb +160 -99
  100. data/lib/aws-sdk-s3/presigner.rb +171 -80
  101. data/lib/aws-sdk-s3/resource.rb +120 -8
  102. data/lib/aws-sdk-s3/types.rb +11353 -4225
  103. data/lib/aws-sdk-s3/waiters.rb +67 -1
  104. data/lib/aws-sdk-s3.rb +16 -6
  105. data/sig/bucket.rbs +212 -0
  106. data/sig/bucket_acl.rbs +78 -0
  107. data/sig/bucket_cors.rbs +69 -0
  108. data/sig/bucket_lifecycle.rbs +88 -0
  109. data/sig/bucket_lifecycle_configuration.rbs +111 -0
  110. data/sig/bucket_logging.rbs +76 -0
  111. data/sig/bucket_notification.rbs +114 -0
  112. data/sig/bucket_policy.rbs +59 -0
  113. data/sig/bucket_request_payment.rbs +54 -0
  114. data/sig/bucket_tagging.rbs +65 -0
  115. data/sig/bucket_versioning.rbs +77 -0
  116. data/sig/bucket_website.rbs +93 -0
  117. data/sig/client.rbs +2360 -0
  118. data/sig/errors.rbs +34 -0
  119. data/sig/multipart_upload.rbs +110 -0
  120. data/sig/multipart_upload_part.rbs +105 -0
  121. data/sig/object.rbs +436 -0
  122. data/sig/object_acl.rbs +86 -0
  123. data/sig/object_summary.rbs +334 -0
  124. data/sig/object_version.rbs +131 -0
  125. data/sig/resource.rbs +124 -0
  126. data/sig/types.rbs +2562 -0
  127. data/sig/waiters.rbs +83 -0
  128. metadata +68 -15
data/sig/waiters.rbs ADDED
@@ -0,0 +1,83 @@
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
+ module Waiters
11
+
12
+ class BucketExists
13
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
14
+ | (?Hash[Symbol, untyped]) -> void
15
+
16
+ def wait: (
17
+ bucket: ::String,
18
+ ?expected_bucket_owner: ::String
19
+ ) -> Client::_HeadBucketResponseSuccess
20
+ | (Hash[Symbol, untyped]) -> Client::_HeadBucketResponseSuccess
21
+ end
22
+
23
+ class BucketNotExists
24
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
25
+ | (?Hash[Symbol, untyped]) -> void
26
+
27
+ def wait: (
28
+ bucket: ::String,
29
+ ?expected_bucket_owner: ::String
30
+ ) -> Client::_HeadBucketResponseSuccess
31
+ | (Hash[Symbol, untyped]) -> Client::_HeadBucketResponseSuccess
32
+ end
33
+
34
+ class ObjectExists
35
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
36
+ | (?Hash[Symbol, untyped]) -> void
37
+
38
+ def wait: (
39
+ bucket: ::String,
40
+ ?if_match: ::String,
41
+ ?if_modified_since: ::Time,
42
+ ?if_none_match: ::String,
43
+ ?if_unmodified_since: ::Time,
44
+ key: ::String,
45
+ ?range: ::String,
46
+ ?version_id: ::String,
47
+ ?sse_customer_algorithm: ::String,
48
+ ?sse_customer_key: ::String,
49
+ ?sse_customer_key_md5: ::String,
50
+ ?request_payer: ("requester"),
51
+ ?part_number: ::Integer,
52
+ ?expected_bucket_owner: ::String,
53
+ ?checksum_mode: ("ENABLED")
54
+ ) -> Client::_HeadObjectResponseSuccess
55
+ | (Hash[Symbol, untyped]) -> Client::_HeadObjectResponseSuccess
56
+ end
57
+
58
+ class ObjectNotExists
59
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
60
+ | (?Hash[Symbol, untyped]) -> void
61
+
62
+ def wait: (
63
+ bucket: ::String,
64
+ ?if_match: ::String,
65
+ ?if_modified_since: ::Time,
66
+ ?if_none_match: ::String,
67
+ ?if_unmodified_since: ::Time,
68
+ key: ::String,
69
+ ?range: ::String,
70
+ ?version_id: ::String,
71
+ ?sse_customer_algorithm: ::String,
72
+ ?sse_customer_key: ::String,
73
+ ?sse_customer_key_md5: ::String,
74
+ ?request_payer: ("requester"),
75
+ ?part_number: ::Integer,
76
+ ?expected_bucket_owner: ::String,
77
+ ?checksum_mode: ("ENABLED")
78
+ ) -> Client::_HeadObjectResponseSuccess
79
+ | (Hash[Symbol, untyped]) -> Client::_HeadObjectResponseSuccess
80
+ end
81
+ end
82
+ end
83
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.143.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-03 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.1'
33
+ version: '1.8'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.1'
40
+ version: '1.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: aws-sdk-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '3'
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 3.58.0
50
+ version: 3.191.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,15 +57,18 @@ dependencies:
57
57
  version: '3'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 3.58.0
60
+ version: 3.191.0
61
61
  description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
62
62
  This gem is part of the AWS SDK for Ruby.
63
63
  email:
64
- - trevrowe@amazon.com
64
+ - aws-dr-rubygems@amazon.com
65
65
  executables: []
66
66
  extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
+ - CHANGELOG.md
70
+ - LICENSE.txt
71
+ - VERSION
69
72
  - lib/aws-sdk-s3.rb
70
73
  - lib/aws-sdk-s3/bucket.rb
71
74
  - lib/aws-sdk-s3/bucket_acl.rb
@@ -84,10 +87,12 @@ files:
84
87
  - lib/aws-sdk-s3/client_api.rb
85
88
  - lib/aws-sdk-s3/customizations.rb
86
89
  - lib/aws-sdk-s3/customizations/bucket.rb
90
+ - lib/aws-sdk-s3/customizations/errors.rb
87
91
  - lib/aws-sdk-s3/customizations/multipart_upload.rb
88
92
  - lib/aws-sdk-s3/customizations/object.rb
89
93
  - lib/aws-sdk-s3/customizations/object_summary.rb
90
94
  - lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb
95
+ - lib/aws-sdk-s3/customizations/types/permanent_redirect.rb
91
96
  - lib/aws-sdk-s3/encryption.rb
92
97
  - lib/aws-sdk-s3/encryption/client.rb
93
98
  - lib/aws-sdk-s3/encryption/decrypt_handler.rb
@@ -102,8 +107,28 @@ files:
102
107
  - lib/aws-sdk-s3/encryption/kms_cipher_provider.rb
103
108
  - lib/aws-sdk-s3/encryption/materials.rb
104
109
  - lib/aws-sdk-s3/encryption/utils.rb
110
+ - lib/aws-sdk-s3/encryptionV2/client.rb
111
+ - lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb
112
+ - lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb
113
+ - lib/aws-sdk-s3/encryptionV2/default_key_provider.rb
114
+ - lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb
115
+ - lib/aws-sdk-s3/encryptionV2/errors.rb
116
+ - lib/aws-sdk-s3/encryptionV2/io_auth_decrypter.rb
117
+ - lib/aws-sdk-s3/encryptionV2/io_decrypter.rb
118
+ - lib/aws-sdk-s3/encryptionV2/io_encrypter.rb
119
+ - lib/aws-sdk-s3/encryptionV2/key_provider.rb
120
+ - lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb
121
+ - lib/aws-sdk-s3/encryptionV2/materials.rb
122
+ - lib/aws-sdk-s3/encryptionV2/utils.rb
123
+ - lib/aws-sdk-s3/encryption_v2.rb
124
+ - lib/aws-sdk-s3/endpoint_parameters.rb
125
+ - lib/aws-sdk-s3/endpoint_provider.rb
126
+ - lib/aws-sdk-s3/endpoints.rb
105
127
  - lib/aws-sdk-s3/errors.rb
106
128
  - lib/aws-sdk-s3/event_streams.rb
129
+ - lib/aws-sdk-s3/express_credentials.rb
130
+ - lib/aws-sdk-s3/express_credentials_cache.rb
131
+ - lib/aws-sdk-s3/express_credentials_provider.rb
107
132
  - lib/aws-sdk-s3/file_downloader.rb
108
133
  - lib/aws-sdk-s3/file_part.rb
109
134
  - lib/aws-sdk-s3/file_uploader.rb
@@ -120,31 +145,60 @@ files:
120
145
  - lib/aws-sdk-s3/object_summary.rb
121
146
  - lib/aws-sdk-s3/object_version.rb
122
147
  - lib/aws-sdk-s3/plugins/accelerate.rb
148
+ - lib/aws-sdk-s3/plugins/arn.rb
123
149
  - lib/aws-sdk-s3/plugins/bucket_dns.rb
124
150
  - lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb
125
151
  - lib/aws-sdk-s3/plugins/dualstack.rb
152
+ - lib/aws-sdk-s3/plugins/endpoints.rb
126
153
  - lib/aws-sdk-s3/plugins/expect_100_continue.rb
154
+ - lib/aws-sdk-s3/plugins/express_session_auth.rb
127
155
  - lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb
128
156
  - lib/aws-sdk-s3/plugins/http_200_errors.rb
157
+ - lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb
129
158
  - lib/aws-sdk-s3/plugins/location_constraint.rb
130
159
  - lib/aws-sdk-s3/plugins/md5s.rb
131
160
  - lib/aws-sdk-s3/plugins/redirects.rb
132
161
  - lib/aws-sdk-s3/plugins/s3_host_id.rb
133
162
  - lib/aws-sdk-s3/plugins/s3_signer.rb
163
+ - lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb
134
164
  - lib/aws-sdk-s3/plugins/sse_cpk.rb
165
+ - lib/aws-sdk-s3/plugins/streaming_retry.rb
135
166
  - lib/aws-sdk-s3/plugins/url_encoded_keys.rb
136
167
  - lib/aws-sdk-s3/presigned_post.rb
137
168
  - lib/aws-sdk-s3/presigner.rb
138
169
  - lib/aws-sdk-s3/resource.rb
139
170
  - lib/aws-sdk-s3/types.rb
140
171
  - lib/aws-sdk-s3/waiters.rb
172
+ - sig/bucket.rbs
173
+ - sig/bucket_acl.rbs
174
+ - sig/bucket_cors.rbs
175
+ - sig/bucket_lifecycle.rbs
176
+ - sig/bucket_lifecycle_configuration.rbs
177
+ - sig/bucket_logging.rbs
178
+ - sig/bucket_notification.rbs
179
+ - sig/bucket_policy.rbs
180
+ - sig/bucket_request_payment.rbs
181
+ - sig/bucket_tagging.rbs
182
+ - sig/bucket_versioning.rbs
183
+ - sig/bucket_website.rbs
184
+ - sig/client.rbs
185
+ - sig/errors.rbs
186
+ - sig/multipart_upload.rbs
187
+ - sig/multipart_upload_part.rbs
188
+ - sig/object.rbs
189
+ - sig/object_acl.rbs
190
+ - sig/object_summary.rbs
191
+ - sig/object_version.rbs
192
+ - sig/resource.rbs
193
+ - sig/types.rbs
194
+ - sig/waiters.rbs
141
195
  homepage: https://github.com/aws/aws-sdk-ruby
142
196
  licenses:
143
197
  - Apache-2.0
144
198
  metadata:
145
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-s3
146
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-s3/CHANGELOG.md
147
- post_install_message:
199
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-s3
200
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-s3/CHANGELOG.md
201
+ post_install_message:
148
202
  rdoc_options: []
149
203
  require_paths:
150
204
  - lib
@@ -152,16 +206,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
206
  requirements:
153
207
  - - ">="
154
208
  - !ruby/object:Gem::Version
155
- version: '0'
209
+ version: '2.5'
156
210
  required_rubygems_version: !ruby/object:Gem::Requirement
157
211
  requirements:
158
212
  - - ">="
159
213
  - !ruby/object:Gem::Version
160
214
  version: '0'
161
215
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.5.2.3
164
- signing_key:
216
+ rubygems_version: 3.4.10
217
+ signing_key:
165
218
  specification_version: 4
166
219
  summary: AWS SDK for Ruby - Amazon S3
167
220
  test_files: []