aws-sdk-s3 1.176.1 → 1.208.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +202 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +86 -35
  5. data/lib/aws-sdk-s3/bucket_acl.rb +7 -6
  6. data/lib/aws-sdk-s3/bucket_cors.rb +6 -5
  7. data/lib/aws-sdk-s3/bucket_lifecycle.rb +2 -2
  8. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +3 -3
  9. data/lib/aws-sdk-s3/bucket_logging.rb +2 -2
  10. data/lib/aws-sdk-s3/bucket_policy.rb +6 -5
  11. data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -3
  12. data/lib/aws-sdk-s3/bucket_tagging.rb +3 -3
  13. data/lib/aws-sdk-s3/bucket_versioning.rb +42 -9
  14. data/lib/aws-sdk-s3/bucket_website.rb +3 -3
  15. data/lib/aws-sdk-s3/client.rb +3038 -1226
  16. data/lib/aws-sdk-s3/client_api.rb +492 -164
  17. data/lib/aws-sdk-s3/customizations/object.rb +76 -86
  18. data/lib/aws-sdk-s3/customizations.rb +4 -1
  19. data/lib/aws-sdk-s3/default_executor.rb +103 -0
  20. data/lib/aws-sdk-s3/encryption/client.rb +2 -2
  21. data/lib/aws-sdk-s3/encryption/default_cipher_provider.rb +2 -0
  22. data/lib/aws-sdk-s3/encryption/encrypt_handler.rb +2 -0
  23. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +2 -0
  24. data/lib/aws-sdk-s3/encryptionV2/client.rb +98 -23
  25. data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +7 -162
  26. data/lib/aws-sdk-s3/encryptionV2/decryption.rb +205 -0
  27. data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +17 -0
  28. data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +2 -0
  29. data/lib/aws-sdk-s3/encryptionV2/io_encrypter.rb +2 -0
  30. data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +8 -0
  31. data/lib/aws-sdk-s3/encryptionV2/utils.rb +5 -0
  32. data/lib/aws-sdk-s3/encryptionV3/client.rb +885 -0
  33. data/lib/aws-sdk-s3/encryptionV3/decrypt_handler.rb +98 -0
  34. data/lib/aws-sdk-s3/encryptionV3/decryption.rb +244 -0
  35. data/lib/aws-sdk-s3/encryptionV3/default_cipher_provider.rb +159 -0
  36. data/lib/aws-sdk-s3/encryptionV3/default_key_provider.rb +35 -0
  37. data/lib/aws-sdk-s3/encryptionV3/encrypt_handler.rb +98 -0
  38. data/lib/aws-sdk-s3/encryptionV3/errors.rb +47 -0
  39. data/lib/aws-sdk-s3/encryptionV3/io_auth_decrypter.rb +60 -0
  40. data/lib/aws-sdk-s3/encryptionV3/io_decrypter.rb +35 -0
  41. data/lib/aws-sdk-s3/encryptionV3/io_encrypter.rb +84 -0
  42. data/lib/aws-sdk-s3/encryptionV3/key_provider.rb +28 -0
  43. data/lib/aws-sdk-s3/encryptionV3/kms_cipher_provider.rb +159 -0
  44. data/lib/aws-sdk-s3/encryptionV3/materials.rb +58 -0
  45. data/lib/aws-sdk-s3/encryptionV3/utils.rb +321 -0
  46. data/lib/aws-sdk-s3/encryption_v2.rb +1 -0
  47. data/lib/aws-sdk-s3/encryption_v3.rb +24 -0
  48. data/lib/aws-sdk-s3/endpoint_parameters.rb +17 -17
  49. data/lib/aws-sdk-s3/endpoint_provider.rb +562 -304
  50. data/lib/aws-sdk-s3/endpoints.rb +110 -0
  51. data/lib/aws-sdk-s3/errors.rb +11 -0
  52. data/lib/aws-sdk-s3/file_downloader.rb +189 -143
  53. data/lib/aws-sdk-s3/file_uploader.rb +9 -13
  54. data/lib/aws-sdk-s3/legacy_signer.rb +2 -1
  55. data/lib/aws-sdk-s3/multipart_download_error.rb +8 -0
  56. data/lib/aws-sdk-s3/multipart_file_uploader.rb +105 -102
  57. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +96 -107
  58. data/lib/aws-sdk-s3/multipart_upload.rb +50 -6
  59. data/lib/aws-sdk-s3/multipart_upload_error.rb +3 -4
  60. data/lib/aws-sdk-s3/multipart_upload_part.rb +50 -34
  61. data/lib/aws-sdk-s3/object.rb +264 -137
  62. data/lib/aws-sdk-s3/object_acl.rb +12 -6
  63. data/lib/aws-sdk-s3/object_multipart_copier.rb +2 -1
  64. data/lib/aws-sdk-s3/object_summary.rb +179 -103
  65. data/lib/aws-sdk-s3/object_version.rb +25 -23
  66. data/lib/aws-sdk-s3/plugins/checksum_algorithm.rb +31 -0
  67. data/lib/aws-sdk-s3/plugins/endpoints.rb +1 -1
  68. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +11 -20
  69. data/lib/aws-sdk-s3/plugins/md5s.rb +10 -71
  70. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +5 -7
  71. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -1
  72. data/lib/aws-sdk-s3/presigner.rb +4 -5
  73. data/lib/aws-sdk-s3/resource.rb +7 -1
  74. data/lib/aws-sdk-s3/transfer_manager.rb +303 -0
  75. data/lib/aws-sdk-s3/types.rb +2907 -1059
  76. data/lib/aws-sdk-s3.rb +1 -1
  77. data/sig/bucket.rbs +16 -6
  78. data/sig/bucket_acl.rbs +1 -1
  79. data/sig/bucket_cors.rbs +1 -1
  80. data/sig/bucket_lifecycle.rbs +1 -1
  81. data/sig/bucket_lifecycle_configuration.rbs +1 -1
  82. data/sig/bucket_logging.rbs +1 -1
  83. data/sig/bucket_policy.rbs +1 -1
  84. data/sig/bucket_request_payment.rbs +1 -1
  85. data/sig/bucket_tagging.rbs +1 -1
  86. data/sig/bucket_versioning.rbs +3 -3
  87. data/sig/bucket_website.rbs +1 -1
  88. data/sig/client.rbs +226 -64
  89. data/sig/errors.rbs +2 -0
  90. data/sig/multipart_upload.rbs +9 -2
  91. data/sig/multipart_upload_part.rbs +5 -1
  92. data/sig/object.rbs +31 -15
  93. data/sig/object_acl.rbs +1 -1
  94. data/sig/object_summary.rbs +22 -15
  95. data/sig/object_version.rbs +5 -2
  96. data/sig/resource.rbs +11 -2
  97. data/sig/types.rbs +281 -64
  98. metadata +26 -10
  99. data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +0 -31
data/lib/aws-sdk-s3.rb CHANGED
@@ -75,7 +75,7 @@ module Aws::S3
75
75
  autoload :ObjectVersion, 'aws-sdk-s3/object_version'
76
76
  autoload :EventStreams, 'aws-sdk-s3/event_streams'
77
77
 
78
- GEM_VERSION = '1.176.1'
78
+ GEM_VERSION = '1.208.0'
79
79
 
80
80
  end
81
81
 
data/sig/bucket.rbs CHANGED
@@ -23,6 +23,9 @@ module Aws
23
23
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#bucket_region-instance_method
24
24
  def bucket_region: () -> ::String
25
25
 
26
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#bucket_arn-instance_method
27
+ def bucket_arn: () -> ::String
28
+
26
29
  def client: () -> Client
27
30
 
28
31
 
@@ -48,7 +51,7 @@ module Aws
48
51
  def create: (
49
52
  ?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read"),
50
53
  ?create_bucket_configuration: {
51
- 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")?,
54
+ 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" | "ap-southeast-4" | "ap-southeast-5" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "EU" | "eu-central-1" | "eu-central-2" | "eu-north-1" | "eu-south-1" | "eu-south-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "il-central-1" | "me-central-1" | "me-south-1" | "sa-east-1" | "us-east-2" | "us-gov-east-1" | "us-gov-west-1" | "us-west-1" | "us-west-2")?,
52
55
  location: {
53
56
  type: ("AvailabilityZone" | "LocalZone")?,
54
57
  name: ::String?
@@ -56,7 +59,13 @@ module Aws
56
59
  bucket: {
57
60
  data_redundancy: ("SingleAvailabilityZone" | "SingleLocalZone")?,
58
61
  type: ("Directory")?
59
- }?
62
+ }?,
63
+ tags: Array[
64
+ {
65
+ key: ::String,
66
+ value: ::String
67
+ },
68
+ ]?
60
69
  },
61
70
  ?grant_full_control: ::String,
62
71
  ?grant_read: ::String,
@@ -92,7 +101,7 @@ module Aws
92
101
  ?request_payer: ("requester"),
93
102
  ?bypass_governance_retention: bool,
94
103
  ?expected_bucket_owner: ::String,
95
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
104
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME")
96
105
  ) -> Types::DeleteObjectsOutput
97
106
  | (?Hash[Symbol, untyped]) -> Types::DeleteObjectsOutput
98
107
 
@@ -107,9 +116,10 @@ module Aws
107
116
  ?content_length: ::Integer,
108
117
  ?content_md5: ::String,
109
118
  ?content_type: ::String,
110
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
119
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
111
120
  ?checksum_crc32: ::String,
112
121
  ?checksum_crc32c: ::String,
122
+ ?checksum_crc64nvme: ::String,
113
123
  ?checksum_sha1: ::String,
114
124
  ?checksum_sha256: ::String,
115
125
  ?expires: ::Time,
@@ -122,8 +132,8 @@ module Aws
122
132
  key: ::String,
123
133
  ?write_offset_bytes: ::Integer,
124
134
  ?metadata: Hash[::String, ::String],
125
- ?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
126
- ?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE"),
135
+ ?server_side_encryption: ("AES256" | "aws:fsx" | "aws:kms" | "aws:kms:dsse"),
136
+ ?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE" | "FSX_OPENZFS" | "FSX_ONTAP"),
127
137
  ?website_redirect_location: ::String,
128
138
  ?sse_customer_algorithm: ::String,
129
139
  ?sse_customer_key: ::String,
data/sig/bucket_acl.rbs CHANGED
@@ -58,7 +58,7 @@ module Aws
58
58
  }?
59
59
  },
60
60
  ?content_md5: ::String,
61
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
61
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
62
62
  ?grant_full_control: ::String,
63
63
  ?grant_read: ::String,
64
64
  ?grant_read_acp: ::String,
data/sig/bucket_cors.rbs CHANGED
@@ -54,7 +54,7 @@ module Aws
54
54
  ]
55
55
  },
56
56
  ?content_md5: ::String,
57
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
57
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
58
58
  ?expected_bucket_owner: ::String
59
59
  ) -> ::Aws::EmptyStructure
60
60
  | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
@@ -42,7 +42,7 @@ module Aws
42
42
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#put-instance_method
43
43
  def put: (
44
44
  ?content_md5: ::String,
45
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
45
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
46
46
  ?lifecycle_configuration: {
47
47
  rules: Array[
48
48
  {
@@ -44,7 +44,7 @@ module Aws
44
44
 
45
45
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#put-instance_method
46
46
  def put: (
47
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
47
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
48
48
  ?lifecycle_configuration: {
49
49
  rules: Array[
50
50
  {
@@ -61,7 +61,7 @@ module Aws
61
61
  }?
62
62
  },
63
63
  ?content_md5: ::String,
64
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
64
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
65
65
  ?expected_bucket_owner: ::String
66
66
  ) -> ::Aws::EmptyStructure
67
67
  | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
@@ -42,7 +42,7 @@ module Aws
42
42
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketPolicy.html#put-instance_method
43
43
  def put: (
44
44
  ?content_md5: ::String,
45
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
45
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
46
46
  ?confirm_remove_self_bucket_access: bool,
47
47
  policy: ::String,
48
48
  ?expected_bucket_owner: ::String
@@ -36,7 +36,7 @@ module Aws
36
36
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketRequestPayment.html#put-instance_method
37
37
  def put: (
38
38
  ?content_md5: ::String,
39
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
39
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
40
40
  request_payment_configuration: {
41
41
  payer: ("Requester" | "BucketOwner")
42
42
  },
@@ -42,7 +42,7 @@ module Aws
42
42
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketTagging.html#put-instance_method
43
43
  def put: (
44
44
  ?content_md5: ::String,
45
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
45
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
46
46
  tagging: {
47
47
  tag_set: Array[
48
48
  {
@@ -39,7 +39,7 @@ module Aws
39
39
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#enable-instance_method
40
40
  def enable: (
41
41
  ?content_md5: ::String,
42
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
42
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
43
43
  ?mfa: ::String,
44
44
  ?expected_bucket_owner: ::String
45
45
  ) -> ::Aws::EmptyStructure
@@ -48,7 +48,7 @@ module Aws
48
48
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#put-instance_method
49
49
  def put: (
50
50
  ?content_md5: ::String,
51
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
51
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
52
52
  ?mfa: ::String,
53
53
  versioning_configuration: {
54
54
  mfa_delete: ("Enabled" | "Disabled")?,
@@ -61,7 +61,7 @@ module Aws
61
61
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#suspend-instance_method
62
62
  def suspend: (
63
63
  ?content_md5: ::String,
64
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
64
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
65
65
  ?mfa: ::String,
66
66
  ?expected_bucket_owner: ::String
67
67
  ) -> ::Aws::EmptyStructure
@@ -51,7 +51,7 @@ module Aws
51
51
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#put-instance_method
52
52
  def put: (
53
53
  ?content_md5: ::String,
54
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
54
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
55
55
  website_configuration: {
56
56
  error_document: {
57
57
  key: ::String