aws-sdk-s3 1.147.0 → 1.167.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +123 -2
  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 +224 -81
  7. data/lib/aws-sdk-s3/bucket_acl.rb +3 -3
  8. data/lib/aws-sdk-s3/bucket_cors.rb +4 -4
  9. data/lib/aws-sdk-s3/bucket_lifecycle.rb +4 -4
  10. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +42 -5
  11. data/lib/aws-sdk-s3/bucket_logging.rb +3 -3
  12. data/lib/aws-sdk-s3/bucket_notification.rb +3 -3
  13. data/lib/aws-sdk-s3/bucket_policy.rb +8 -8
  14. data/lib/aws-sdk-s3/bucket_region_cache.rb +9 -5
  15. data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -3
  16. data/lib/aws-sdk-s3/bucket_tagging.rb +4 -4
  17. data/lib/aws-sdk-s3/bucket_versioning.rb +5 -5
  18. data/lib/aws-sdk-s3/bucket_website.rb +4 -4
  19. data/lib/aws-sdk-s3/client.rb +1744 -695
  20. data/lib/aws-sdk-s3/client_api.rb +44 -4
  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 +24 -35
  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 +8 -0
  32. data/lib/aws-sdk-s3/endpoint_provider.rb +1 -0
  33. data/lib/aws-sdk-s3/endpoints.rb +199 -397
  34. data/lib/aws-sdk-s3/errors.rb +3 -0
  35. data/lib/aws-sdk-s3/express_credentials_provider.rb +27 -4
  36. data/lib/aws-sdk-s3/file_downloader.rb +1 -1
  37. data/lib/aws-sdk-s3/file_uploader.rb +1 -1
  38. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +1 -1
  39. data/lib/aws-sdk-s3/multipart_upload.rb +31 -8
  40. data/lib/aws-sdk-s3/multipart_upload_part.rb +11 -11
  41. data/lib/aws-sdk-s3/object.rb +411 -151
  42. data/lib/aws-sdk-s3/object_acl.rb +3 -3
  43. data/lib/aws-sdk-s3/object_copier.rb +1 -1
  44. data/lib/aws-sdk-s3/object_multipart_copier.rb +10 -8
  45. data/lib/aws-sdk-s3/object_summary.rb +373 -127
  46. data/lib/aws-sdk-s3/object_version.rb +53 -13
  47. data/lib/aws-sdk-s3/plugins/access_grants.rb +178 -0
  48. data/lib/aws-sdk-s3/plugins/endpoints.rb +23 -8
  49. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +8 -2
  50. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +53 -16
  51. data/lib/aws-sdk-s3/plugins/s3_signer.rb +7 -2
  52. data/lib/aws-sdk-s3/presigner.rb +1 -0
  53. data/lib/aws-sdk-s3/resource.rb +12 -10
  54. data/lib/aws-sdk-s3/types.rb +1082 -399
  55. data/lib/aws-sdk-s3.rb +35 -31
  56. data/sig/bucket.rbs +1 -0
  57. data/sig/bucket_lifecycle_configuration.rbs +7 -3
  58. data/sig/client.rbs +48 -5
  59. data/sig/customizations/bucket.rbs +19 -0
  60. data/sig/customizations/object.rbs +38 -0
  61. data/sig/customizations/object_summary.rbs +35 -0
  62. data/sig/multipart_upload.rbs +1 -0
  63. data/sig/object.rbs +7 -0
  64. data/sig/object_summary.rbs +1 -0
  65. data/sig/object_version.rbs +6 -0
  66. data/sig/resource.rbs +7 -1
  67. data/sig/types.rbs +32 -2
  68. data/sig/waiters.rbs +12 -0
  69. metadata +13 -7
  70. data/lib/aws-sdk-s3/express_credentials_cache.rb +0 -30
data/lib/aws-sdk-s3.rb CHANGED
@@ -12,36 +12,7 @@ require 'aws-sdk-kms'
12
12
  require 'aws-sigv4'
13
13
  require 'aws-sdk-core'
14
14
 
15
- require_relative 'aws-sdk-s3/types'
16
- require_relative 'aws-sdk-s3/client_api'
17
- require_relative 'aws-sdk-s3/plugins/endpoints.rb'
18
- require_relative 'aws-sdk-s3/client'
19
- require_relative 'aws-sdk-s3/errors'
20
- require_relative 'aws-sdk-s3/waiters'
21
- require_relative 'aws-sdk-s3/resource'
22
- require_relative 'aws-sdk-s3/endpoint_parameters'
23
- require_relative 'aws-sdk-s3/endpoint_provider'
24
- require_relative 'aws-sdk-s3/endpoints'
25
- require_relative 'aws-sdk-s3/bucket'
26
- require_relative 'aws-sdk-s3/bucket_acl'
27
- require_relative 'aws-sdk-s3/bucket_cors'
28
- require_relative 'aws-sdk-s3/bucket_lifecycle'
29
- require_relative 'aws-sdk-s3/bucket_lifecycle_configuration'
30
- require_relative 'aws-sdk-s3/bucket_logging'
31
- require_relative 'aws-sdk-s3/bucket_notification'
32
- require_relative 'aws-sdk-s3/bucket_policy'
33
- require_relative 'aws-sdk-s3/bucket_request_payment'
34
- require_relative 'aws-sdk-s3/bucket_tagging'
35
- require_relative 'aws-sdk-s3/bucket_versioning'
36
- require_relative 'aws-sdk-s3/bucket_website'
37
- require_relative 'aws-sdk-s3/multipart_upload'
38
- require_relative 'aws-sdk-s3/multipart_upload_part'
39
- require_relative 'aws-sdk-s3/object'
40
- require_relative 'aws-sdk-s3/object_acl'
41
- require_relative 'aws-sdk-s3/object_summary'
42
- require_relative 'aws-sdk-s3/object_version'
43
- require_relative 'aws-sdk-s3/customizations'
44
- require_relative 'aws-sdk-s3/event_streams'
15
+ Aws::Plugins::GlobalConfiguration.add_identifier(:s3)
45
16
 
46
17
  # This module provides support for Amazon Simple Storage Service. This module is available in the
47
18
  # `aws-sdk-s3` gem.
@@ -72,7 +43,40 @@ require_relative 'aws-sdk-s3/event_streams'
72
43
  #
73
44
  # @!group service
74
45
  module Aws::S3
46
+ autoload :Types, 'aws-sdk-s3/types'
47
+ autoload :ClientApi, 'aws-sdk-s3/client_api'
48
+ module Plugins
49
+ autoload :Endpoints, 'aws-sdk-s3/plugins/endpoints.rb'
50
+ end
51
+ autoload :Client, 'aws-sdk-s3/client'
52
+ autoload :Errors, 'aws-sdk-s3/errors'
53
+ autoload :Waiters, 'aws-sdk-s3/waiters'
54
+ autoload :Resource, 'aws-sdk-s3/resource'
55
+ autoload :EndpointParameters, 'aws-sdk-s3/endpoint_parameters'
56
+ autoload :EndpointProvider, 'aws-sdk-s3/endpoint_provider'
57
+ autoload :Endpoints, 'aws-sdk-s3/endpoints'
58
+ autoload :Bucket, 'aws-sdk-s3/bucket'
59
+ autoload :BucketAcl, 'aws-sdk-s3/bucket_acl'
60
+ autoload :BucketCors, 'aws-sdk-s3/bucket_cors'
61
+ autoload :BucketLifecycle, 'aws-sdk-s3/bucket_lifecycle'
62
+ autoload :BucketLifecycleConfiguration, 'aws-sdk-s3/bucket_lifecycle_configuration'
63
+ autoload :BucketLogging, 'aws-sdk-s3/bucket_logging'
64
+ autoload :BucketNotification, 'aws-sdk-s3/bucket_notification'
65
+ autoload :BucketPolicy, 'aws-sdk-s3/bucket_policy'
66
+ autoload :BucketRequestPayment, 'aws-sdk-s3/bucket_request_payment'
67
+ autoload :BucketTagging, 'aws-sdk-s3/bucket_tagging'
68
+ autoload :BucketVersioning, 'aws-sdk-s3/bucket_versioning'
69
+ autoload :BucketWebsite, 'aws-sdk-s3/bucket_website'
70
+ autoload :MultipartUpload, 'aws-sdk-s3/multipart_upload'
71
+ autoload :MultipartUploadPart, 'aws-sdk-s3/multipart_upload_part'
72
+ autoload :Object, 'aws-sdk-s3/object'
73
+ autoload :ObjectAcl, 'aws-sdk-s3/object_acl'
74
+ autoload :ObjectSummary, 'aws-sdk-s3/object_summary'
75
+ autoload :ObjectVersion, 'aws-sdk-s3/object_version'
76
+ autoload :EventStreams, 'aws-sdk-s3/event_streams'
75
77
 
76
- GEM_VERSION = '1.147.0'
78
+ GEM_VERSION = '1.167.0'
77
79
 
78
80
  end
81
+
82
+ require_relative 'aws-sdk-s3/customizations'
data/sig/bucket.rbs CHANGED
@@ -107,6 +107,7 @@ module Aws
107
107
  ?checksum_sha1: ::String,
108
108
  ?checksum_sha256: ::String,
109
109
  ?expires: ::Time,
110
+ ?if_none_match: ::String,
110
111
  ?grant_full_control: ::String,
111
112
  ?grant_read: ::String,
112
113
  ?grant_read_acp: ::String,
@@ -20,6 +20,9 @@ module Aws
20
20
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#rules-instance_method
21
21
  def rules: () -> ::Array[Types::LifecycleRule]
22
22
 
23
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#transition_default_minimum_object_size-instance_method
24
+ def transition_default_minimum_object_size: () -> ("varies_by_storage_class" | "all_storage_classes_128K")
25
+
23
26
  def client: () -> Client
24
27
 
25
28
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#load-instance_method
@@ -97,9 +100,10 @@ module Aws
97
100
  },
98
101
  ]
99
102
  },
100
- ?expected_bucket_owner: ::String
101
- ) -> ::Aws::EmptyStructure
102
- | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
103
+ ?expected_bucket_owner: ::String,
104
+ ?transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
105
+ ) -> Types::PutBucketLifecycleConfigurationOutput
106
+ | (?Hash[Symbol, untyped]) -> Types::PutBucketLifecycleConfigurationOutput
103
107
 
104
108
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#bucket-instance_method
105
109
  def bucket: () -> Bucket
data/sig/client.rbs CHANGED
@@ -14,7 +14,10 @@ module Aws
14
14
  def self.new: (
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
+ ?access_grants: bool,
18
+ ?access_grants_credentials_provider: untyped,
17
19
  ?access_key_id: String,
20
+ ?account_id: String,
18
21
  ?active_endpoint_cache: bool,
19
22
  ?adaptive_retry_wait_to_fill: bool,
20
23
  ?client_side_monitoring: bool,
@@ -60,7 +63,9 @@ module Aws
60
63
  ?sdk_ua_app_id: String,
61
64
  ?secret_access_key: String,
62
65
  ?session_token: String,
66
+ ?sigv4a_signing_region_set: Array[String],
63
67
  ?stub_responses: untyped,
68
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
64
69
  ?token_provider: untyped,
65
70
  ?use_accelerate_endpoint: bool,
66
71
  ?use_dualstack_endpoint: bool,
@@ -139,6 +144,7 @@ module Aws
139
144
  ?checksum_sha256: ::String,
140
145
  ?request_payer: ("requester"),
141
146
  ?expected_bucket_owner: ::String,
147
+ ?if_none_match: ::String,
142
148
  ?sse_customer_algorithm: ::String,
143
149
  ?sse_customer_key: ::String,
144
150
  ?sse_customer_key_md5: ::String
@@ -287,12 +293,20 @@ module Aws
287
293
 
288
294
  interface _CreateSessionResponseSuccess
289
295
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateSessionOutput]
296
+ def server_side_encryption: () -> ("AES256" | "aws:kms" | "aws:kms:dsse")
297
+ def ssekms_key_id: () -> ::String
298
+ def ssekms_encryption_context: () -> ::String
299
+ def bucket_key_enabled: () -> bool
290
300
  def credentials: () -> Types::SessionCredentials
291
301
  end
292
302
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#create_session-instance_method
293
303
  def create_session: (
294
304
  ?session_mode: ("ReadOnly" | "ReadWrite"),
295
- bucket: ::String
305
+ bucket: ::String,
306
+ ?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
307
+ ?ssekms_key_id: ::String,
308
+ ?ssekms_encryption_context: ::String,
309
+ ?bucket_key_enabled: bool
296
310
  ) -> _CreateSessionResponseSuccess
297
311
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSessionResponseSuccess
298
312
 
@@ -550,6 +564,7 @@ module Aws
550
564
  interface _GetBucketLifecycleConfigurationResponseSuccess
551
565
  include ::Seahorse::Client::_ResponseSuccess[Types::GetBucketLifecycleConfigurationOutput]
552
566
  def rules: () -> ::Array[Types::LifecycleRule]
567
+ def transition_default_minimum_object_size: () -> ("varies_by_storage_class" | "all_storage_classes_128K")
553
568
  end
554
569
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#get_bucket_lifecycle_configuration-instance_method
555
570
  def get_bucket_lifecycle_configuration: (
@@ -961,6 +976,12 @@ module Aws
961
976
  ?if_unmodified_since: ::Time,
962
977
  key: ::String,
963
978
  ?range: ::String,
979
+ ?response_cache_control: ::String,
980
+ ?response_content_disposition: ::String,
981
+ ?response_content_encoding: ::String,
982
+ ?response_content_language: ::String,
983
+ ?response_content_type: ::String,
984
+ ?response_expires: ::Time,
964
985
  ?version_id: ::String,
965
986
  ?sse_customer_algorithm: ::String,
966
987
  ?sse_customer_key: ::String,
@@ -1035,9 +1056,13 @@ module Aws
1035
1056
  include ::Seahorse::Client::_ResponseSuccess[Types::ListBucketsOutput]
1036
1057
  def buckets: () -> ::Array[Types::Bucket]
1037
1058
  def owner: () -> Types::Owner
1059
+ def continuation_token: () -> ::String
1038
1060
  end
1039
1061
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#list_buckets-instance_method
1040
- def list_buckets: () -> _ListBucketsResponseSuccess
1062
+ def list_buckets: (
1063
+ ?max_buckets: ::Integer,
1064
+ ?continuation_token: ::String
1065
+ ) -> _ListBucketsResponseSuccess
1041
1066
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBucketsResponseSuccess
1042
1067
 
1043
1068
  interface _ListDirectoryBucketsResponseSuccess
@@ -1440,6 +1465,10 @@ module Aws
1440
1465
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1441
1466
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1442
1467
 
1468
+ interface _PutBucketLifecycleConfigurationResponseSuccess
1469
+ include ::Seahorse::Client::_ResponseSuccess[Types::PutBucketLifecycleConfigurationOutput]
1470
+ def transition_default_minimum_object_size: () -> ("varies_by_storage_class" | "all_storage_classes_128K")
1471
+ end
1443
1472
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#put_bucket_lifecycle_configuration-instance_method
1444
1473
  def put_bucket_lifecycle_configuration: (
1445
1474
  bucket: ::String,
@@ -1499,9 +1528,10 @@ module Aws
1499
1528
  },
1500
1529
  ]
1501
1530
  },
1502
- ?expected_bucket_owner: ::String
1503
- ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1504
- | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1531
+ ?expected_bucket_owner: ::String,
1532
+ ?transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
1533
+ ) -> _PutBucketLifecycleConfigurationResponseSuccess
1534
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutBucketLifecycleConfigurationResponseSuccess
1505
1535
 
1506
1536
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#put_bucket_logging-instance_method
1507
1537
  def put_bucket_logging: (
@@ -1873,6 +1903,7 @@ module Aws
1873
1903
  ?checksum_sha1: ::String,
1874
1904
  ?checksum_sha256: ::String,
1875
1905
  ?expires: ::Time,
1906
+ ?if_none_match: ::String,
1876
1907
  ?grant_full_control: ::String,
1877
1908
  ?grant_read: ::String,
1878
1909
  ?grant_read_acp: ::String,
@@ -2326,6 +2357,12 @@ module Aws
2326
2357
  ?if_unmodified_since: ::Time,
2327
2358
  key: ::String,
2328
2359
  ?range: ::String,
2360
+ ?response_cache_control: ::String,
2361
+ ?response_content_disposition: ::String,
2362
+ ?response_content_encoding: ::String,
2363
+ ?response_content_language: ::String,
2364
+ ?response_content_type: ::String,
2365
+ ?response_expires: ::Time,
2329
2366
  ?version_id: ::String,
2330
2367
  ?sse_customer_algorithm: ::String,
2331
2368
  ?sse_customer_key: ::String,
@@ -2344,6 +2381,12 @@ module Aws
2344
2381
  ?if_unmodified_since: ::Time,
2345
2382
  key: ::String,
2346
2383
  ?range: ::String,
2384
+ ?response_cache_control: ::String,
2385
+ ?response_content_disposition: ::String,
2386
+ ?response_content_encoding: ::String,
2387
+ ?response_content_language: ::String,
2388
+ ?response_content_type: ::String,
2389
+ ?response_expires: ::Time,
2347
2390
  ?version_id: ::String,
2348
2391
  ?sse_customer_algorithm: ::String,
2349
2392
  ?sse_customer_key: ::String,
@@ -0,0 +1,19 @@
1
+ module Aws
2
+ module S3
3
+ class Bucket
4
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#clear!-instance_method
5
+ def clear!: () -> void
6
+
7
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#delete!-instance_method
8
+ def delete!: (?max_attempts: ::Integer, ?initial_wait: ::Float) -> void
9
+ | (?Hash[Symbol, untyped]) -> void
10
+
11
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#url-instance_method
12
+ def url: (?virtual_host: boolish, ?secure: boolish) -> String
13
+ | (?Hash[Symbol, untyped]) -> String
14
+
15
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#presigned_post-instance_method
16
+ def presigned_post: (Hash[Symbol, untyped]) -> untyped
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,38 @@
1
+ module Aws
2
+ module S3
3
+ class Object
4
+ alias size content_length
5
+
6
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#copy_from-instance_method
7
+ def copy_from: (untyped source, ?Hash[Symbol, untyped] options) -> void
8
+ | ...
9
+
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#copy_to-instance_method
11
+ def copy_to: (untyped target, ?Hash[Symbol, untyped] options) -> void
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#move_to-instance_method
14
+ def move_to: (untyped target, ?Hash[Symbol, untyped] options) -> void
15
+
16
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#presigned_post-instance_method
17
+ def presigned_post: (?Hash[Symbol, untyped]) -> untyped
18
+
19
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#presigned_url-instance_method
20
+ def presigned_url: (Symbol | String method, ?Hash[Symbol, untyped] params) -> String
21
+
22
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#presigned_request-instance_method
23
+ def presigned_request: (Symbol | String method, ?Hash[Symbol, untyped] params) -> [String, Hash[String, String]]
24
+
25
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#public_url-instance_method
26
+ def public_url: (?Hash[Symbol, untyped] options) -> String
27
+
28
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#upload_stream-instance_method
29
+ def upload_stream: (?Hash[Symbol, untyped] options) { (IO write_stream) -> void } -> bool
30
+
31
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#upload_file-instance_method
32
+ def upload_file: (untyped source, ?Hash[Symbol, untyped] options) ?{ (untyped response) -> void } -> bool
33
+
34
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#download_file-instance_method
35
+ def download_file: (String destination, ?Hash[Symbol, untyped] options) -> bool
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,35 @@
1
+ module Aws
2
+ module S3
3
+ class ObjectSummary
4
+ alias content_length size
5
+
6
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#copy_from-instance_method
7
+ def copy_from: (untyped source, ?Hash[Symbol, untyped] options) -> void
8
+ | ...
9
+
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#copy_to-instance_method
11
+ def copy_to: (untyped target, ?Hash[Symbol, untyped] options) -> void
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#move_to-instance_method
14
+ def move_to: (untyped target, ?Hash[Symbol, untyped] options) -> void
15
+
16
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#presigned_post-instance_method
17
+ def presigned_post: (Hash[Symbol, untyped]) -> untyped
18
+
19
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#presigned_url-instance_method
20
+ def presigned_url: (Symbol | String method, ?Hash[Symbol, untyped] params) -> String
21
+
22
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#public_url-instance_method
23
+ def public_url: (?Hash[Symbol, untyped] options) -> String
24
+
25
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#upload_file-instance_method
26
+ def upload_file: (untyped source, ?Hash[Symbol, untyped] options) ?{ (untyped response) -> void } -> bool
27
+
28
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#upload_stream-instance_method
29
+ def upload_stream: (?Hash[Symbol, untyped] options) { (IO write_stream) -> void } -> bool
30
+
31
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#download_file-instance_method
32
+ def download_file: (String destination, ?Hash[Symbol, untyped] options) -> bool
33
+ end
34
+ end
35
+ end
@@ -81,6 +81,7 @@ module Aws
81
81
  ?checksum_sha256: ::String,
82
82
  ?request_payer: ("requester"),
83
83
  ?expected_bucket_owner: ::String,
84
+ ?if_none_match: ::String,
84
85
  ?sse_customer_algorithm: ::String,
85
86
  ?sse_customer_key: ::String,
86
87
  ?sse_customer_key_md5: ::String
data/sig/object.rbs CHANGED
@@ -277,6 +277,7 @@ module Aws
277
277
  ?checksum_sha1: ::String,
278
278
  ?checksum_sha256: ::String,
279
279
  ?expires: ::Time,
280
+ ?if_none_match: ::String,
280
281
  ?grant_full_control: ::String,
281
282
  ?grant_read: ::String,
282
283
  ?grant_read_acp: ::String,
@@ -397,6 +398,12 @@ module Aws
397
398
  ?if_none_match: ::String,
398
399
  ?if_unmodified_since: ::Time,
399
400
  ?range: ::String,
401
+ ?response_cache_control: ::String,
402
+ ?response_content_disposition: ::String,
403
+ ?response_content_encoding: ::String,
404
+ ?response_content_language: ::String,
405
+ ?response_content_type: ::String,
406
+ ?response_expires: ::Time,
400
407
  ?version_id: ::String,
401
408
  ?sse_customer_algorithm: ::String,
402
409
  ?sse_customer_key: ::String,
@@ -190,6 +190,7 @@ module Aws
190
190
  ?checksum_sha1: ::String,
191
191
  ?checksum_sha256: ::String,
192
192
  ?expires: ::Time,
193
+ ?if_none_match: ::String,
193
194
  ?grant_full_control: ::String,
194
195
  ?grant_read: ::String,
195
196
  ?grant_read_acp: ::String,
@@ -102,6 +102,12 @@ module Aws
102
102
  ?if_none_match: ::String,
103
103
  ?if_unmodified_since: ::Time,
104
104
  ?range: ::String,
105
+ ?response_cache_control: ::String,
106
+ ?response_content_disposition: ::String,
107
+ ?response_content_encoding: ::String,
108
+ ?response_content_language: ::String,
109
+ ?response_content_type: ::String,
110
+ ?response_expires: ::Time,
105
111
  ?sse_customer_algorithm: ::String,
106
112
  ?sse_customer_key: ::String,
107
113
  ?sse_customer_key_md5: ::String,
data/sig/resource.rbs CHANGED
@@ -14,7 +14,10 @@ module Aws
14
14
  ?client: Client,
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
+ ?access_grants: bool,
18
+ ?access_grants_credentials_provider: untyped,
17
19
  ?access_key_id: String,
20
+ ?account_id: String,
18
21
  ?active_endpoint_cache: bool,
19
22
  ?adaptive_retry_wait_to_fill: bool,
20
23
  ?client_side_monitoring: bool,
@@ -60,7 +63,9 @@ module Aws
60
63
  ?sdk_ua_app_id: String,
61
64
  ?secret_access_key: String,
62
65
  ?session_token: String,
66
+ ?sigv4a_signing_region_set: Array[String],
63
67
  ?stub_responses: untyped,
68
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
64
69
  ?token_provider: untyped,
65
70
  ?use_accelerate_endpoint: bool,
66
71
  ?use_dualstack_endpoint: bool,
@@ -117,7 +122,8 @@ module Aws
117
122
  def bucket: (String name) -> Bucket
118
123
 
119
124
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Resource.html#buckets-instance_method
120
- def buckets: () -> Bucket::Collection
125
+ def buckets: (
126
+ ) -> Bucket::Collection
121
127
  | (?Hash[Symbol, untyped]) -> Bucket::Collection
122
128
  end
123
129
  end
data/sig/types.rbs CHANGED
@@ -190,6 +190,7 @@ module Aws::S3
190
190
  attr_accessor checksum_sha256: ::String
191
191
  attr_accessor request_payer: ("requester")
192
192
  attr_accessor expected_bucket_owner: ::String
193
+ attr_accessor if_none_match: ::String
193
194
  attr_accessor sse_customer_algorithm: ::String
194
195
  attr_accessor sse_customer_key: ::String
195
196
  attr_accessor sse_customer_key_md5: ::String
@@ -380,14 +381,22 @@ module Aws::S3
380
381
  end
381
382
 
382
383
  class CreateSessionOutput
384
+ attr_accessor server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse")
385
+ attr_accessor ssekms_key_id: ::String
386
+ attr_accessor ssekms_encryption_context: ::String
387
+ attr_accessor bucket_key_enabled: bool
383
388
  attr_accessor credentials: Types::SessionCredentials
384
- SENSITIVE: []
389
+ SENSITIVE: [:ssekms_key_id, :ssekms_encryption_context]
385
390
  end
386
391
 
387
392
  class CreateSessionRequest
388
393
  attr_accessor session_mode: ("ReadOnly" | "ReadWrite")
389
394
  attr_accessor bucket: ::String
390
- SENSITIVE: []
395
+ attr_accessor server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse")
396
+ attr_accessor ssekms_key_id: ::String
397
+ attr_accessor ssekms_encryption_context: ::String
398
+ attr_accessor bucket_key_enabled: bool
399
+ SENSITIVE: [:ssekms_key_id, :ssekms_encryption_context]
391
400
  end
392
401
 
393
402
  class DefaultRetention
@@ -700,6 +709,7 @@ module Aws::S3
700
709
 
701
710
  class GetBucketLifecycleConfigurationOutput
702
711
  attr_accessor rules: ::Array[Types::LifecycleRule]
712
+ attr_accessor transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
703
713
  SENSITIVE: []
704
714
  end
705
715
 
@@ -1132,6 +1142,12 @@ module Aws::S3
1132
1142
  attr_accessor if_unmodified_since: ::Time
1133
1143
  attr_accessor key: ::String
1134
1144
  attr_accessor range: ::String
1145
+ attr_accessor response_cache_control: ::String
1146
+ attr_accessor response_content_disposition: ::String
1147
+ attr_accessor response_content_encoding: ::String
1148
+ attr_accessor response_content_language: ::String
1149
+ attr_accessor response_content_type: ::String
1150
+ attr_accessor response_expires: ::Time
1135
1151
  attr_accessor version_id: ::String
1136
1152
  attr_accessor sse_customer_algorithm: ::String
1137
1153
  attr_accessor sse_customer_key: ::String
@@ -1352,6 +1368,13 @@ module Aws::S3
1352
1368
  class ListBucketsOutput
1353
1369
  attr_accessor buckets: ::Array[Types::Bucket]
1354
1370
  attr_accessor owner: Types::Owner
1371
+ attr_accessor continuation_token: ::String
1372
+ SENSITIVE: []
1373
+ end
1374
+
1375
+ class ListBucketsRequest
1376
+ attr_accessor max_buckets: ::Integer
1377
+ attr_accessor continuation_token: ::String
1355
1378
  SENSITIVE: []
1356
1379
  end
1357
1380
 
@@ -1829,11 +1852,17 @@ module Aws::S3
1829
1852
  SENSITIVE: []
1830
1853
  end
1831
1854
 
1855
+ class PutBucketLifecycleConfigurationOutput
1856
+ attr_accessor transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
1857
+ SENSITIVE: []
1858
+ end
1859
+
1832
1860
  class PutBucketLifecycleConfigurationRequest
1833
1861
  attr_accessor bucket: ::String
1834
1862
  attr_accessor checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
1835
1863
  attr_accessor lifecycle_configuration: Types::BucketLifecycleConfiguration
1836
1864
  attr_accessor expected_bucket_owner: ::String
1865
+ attr_accessor transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
1837
1866
  SENSITIVE: []
1838
1867
  end
1839
1868
 
@@ -2036,6 +2065,7 @@ module Aws::S3
2036
2065
  attr_accessor checksum_sha1: ::String
2037
2066
  attr_accessor checksum_sha256: ::String
2038
2067
  attr_accessor expires: ::Time
2068
+ attr_accessor if_none_match: ::String
2039
2069
  attr_accessor grant_full_control: ::String
2040
2070
  attr_accessor grant_read: ::String
2041
2071
  attr_accessor grant_read_acp: ::String
data/sig/waiters.rbs CHANGED
@@ -43,6 +43,12 @@ module Aws
43
43
  ?if_unmodified_since: ::Time,
44
44
  key: ::String,
45
45
  ?range: ::String,
46
+ ?response_cache_control: ::String,
47
+ ?response_content_disposition: ::String,
48
+ ?response_content_encoding: ::String,
49
+ ?response_content_language: ::String,
50
+ ?response_content_type: ::String,
51
+ ?response_expires: ::Time,
46
52
  ?version_id: ::String,
47
53
  ?sse_customer_algorithm: ::String,
48
54
  ?sse_customer_key: ::String,
@@ -67,6 +73,12 @@ module Aws
67
73
  ?if_unmodified_since: ::Time,
68
74
  key: ::String,
69
75
  ?range: ::String,
76
+ ?response_cache_control: ::String,
77
+ ?response_content_disposition: ::String,
78
+ ?response_content_encoding: ::String,
79
+ ?response_content_language: ::String,
80
+ ?response_content_type: ::String,
81
+ ?response_expires: ::Time,
70
82
  ?version_id: ::String,
71
83
  ?sse_customer_algorithm: ::String,
72
84
  ?sse_customer_key: ::String,
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.147.0
4
+ version: 1.167.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-16 00:00:00.000000000 Z
11
+ date: 2024-10-02 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.8'
33
+ version: '1.5'
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.8'
40
+ version: '1.5'
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.192.0
50
+ version: 3.207.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '3'
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: 3.192.0
60
+ version: 3.207.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:
@@ -70,6 +70,8 @@ files:
70
70
  - LICENSE.txt
71
71
  - VERSION
72
72
  - lib/aws-sdk-s3.rb
73
+ - lib/aws-sdk-s3/access_grants_credentials.rb
74
+ - lib/aws-sdk-s3/access_grants_credentials_provider.rb
73
75
  - lib/aws-sdk-s3/bucket.rb
74
76
  - lib/aws-sdk-s3/bucket_acl.rb
75
77
  - lib/aws-sdk-s3/bucket_cors.rb
@@ -91,6 +93,7 @@ files:
91
93
  - lib/aws-sdk-s3/customizations/multipart_upload.rb
92
94
  - lib/aws-sdk-s3/customizations/object.rb
93
95
  - lib/aws-sdk-s3/customizations/object_summary.rb
96
+ - lib/aws-sdk-s3/customizations/object_version.rb
94
97
  - lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb
95
98
  - lib/aws-sdk-s3/customizations/types/permanent_redirect.rb
96
99
  - lib/aws-sdk-s3/encryption.rb
@@ -127,7 +130,6 @@ files:
127
130
  - lib/aws-sdk-s3/errors.rb
128
131
  - lib/aws-sdk-s3/event_streams.rb
129
132
  - lib/aws-sdk-s3/express_credentials.rb
130
- - lib/aws-sdk-s3/express_credentials_cache.rb
131
133
  - lib/aws-sdk-s3/express_credentials_provider.rb
132
134
  - lib/aws-sdk-s3/file_downloader.rb
133
135
  - lib/aws-sdk-s3/file_part.rb
@@ -145,6 +147,7 @@ files:
145
147
  - lib/aws-sdk-s3/object_summary.rb
146
148
  - lib/aws-sdk-s3/object_version.rb
147
149
  - lib/aws-sdk-s3/plugins/accelerate.rb
150
+ - lib/aws-sdk-s3/plugins/access_grants.rb
148
151
  - lib/aws-sdk-s3/plugins/arn.rb
149
152
  - lib/aws-sdk-s3/plugins/bucket_dns.rb
150
153
  - lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb
@@ -182,6 +185,9 @@ files:
182
185
  - sig/bucket_versioning.rbs
183
186
  - sig/bucket_website.rbs
184
187
  - sig/client.rbs
188
+ - sig/customizations/bucket.rbs
189
+ - sig/customizations/object.rbs
190
+ - sig/customizations/object_summary.rbs
185
191
  - sig/errors.rbs
186
192
  - sig/multipart_upload.rbs
187
193
  - sig/multipart_upload_part.rbs