aws-sdk-s3 1.167.0 → 1.194.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 (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +158 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +145 -39
  5. data/lib/aws-sdk-s3/bucket_acl.rb +6 -5
  6. data/lib/aws-sdk-s3/bucket_cors.rb +6 -5
  7. data/lib/aws-sdk-s3/bucket_lifecycle.rb +7 -2
  8. data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +22 -2
  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 +9 -9
  14. data/lib/aws-sdk-s3/bucket_website.rb +3 -3
  15. data/lib/aws-sdk-s3/client.rb +3670 -1773
  16. data/lib/aws-sdk-s3/client_api.rb +558 -160
  17. data/lib/aws-sdk-s3/endpoint_parameters.rb +13 -18
  18. data/lib/aws-sdk-s3/endpoint_provider.rb +400 -276
  19. data/lib/aws-sdk-s3/endpoints.rb +529 -1403
  20. data/lib/aws-sdk-s3/errors.rb +55 -0
  21. data/lib/aws-sdk-s3/file_downloader.rb +14 -31
  22. data/lib/aws-sdk-s3/legacy_signer.rb +2 -1
  23. data/lib/aws-sdk-s3/multipart_file_uploader.rb +31 -13
  24. data/lib/aws-sdk-s3/multipart_upload.rb +83 -6
  25. data/lib/aws-sdk-s3/multipart_upload_part.rb +50 -34
  26. data/lib/aws-sdk-s3/object.rb +326 -129
  27. data/lib/aws-sdk-s3/object_acl.rb +11 -5
  28. data/lib/aws-sdk-s3/object_multipart_copier.rb +2 -1
  29. data/lib/aws-sdk-s3/object_summary.rb +240 -96
  30. data/lib/aws-sdk-s3/object_version.rb +60 -13
  31. data/lib/aws-sdk-s3/plugins/checksum_algorithm.rb +31 -0
  32. data/lib/aws-sdk-s3/plugins/endpoints.rb +1 -204
  33. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +11 -20
  34. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +3 -3
  35. data/lib/aws-sdk-s3/plugins/md5s.rb +10 -71
  36. data/lib/aws-sdk-s3/plugins/streaming_retry.rb +5 -7
  37. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -1
  38. data/lib/aws-sdk-s3/presigner.rb +5 -5
  39. data/lib/aws-sdk-s3/resource.rb +41 -10
  40. data/lib/aws-sdk-s3/types.rb +3423 -1093
  41. data/lib/aws-sdk-s3.rb +1 -1
  42. data/sig/bucket.rbs +27 -9
  43. data/sig/bucket_acl.rbs +1 -1
  44. data/sig/bucket_cors.rbs +1 -1
  45. data/sig/bucket_lifecycle.rbs +1 -1
  46. data/sig/bucket_lifecycle_configuration.rbs +1 -1
  47. data/sig/bucket_logging.rbs +1 -1
  48. data/sig/bucket_policy.rbs +1 -1
  49. data/sig/bucket_request_payment.rbs +1 -1
  50. data/sig/bucket_tagging.rbs +1 -1
  51. data/sig/bucket_versioning.rbs +3 -3
  52. data/sig/bucket_website.rbs +1 -1
  53. data/sig/client.rbs +249 -68
  54. data/sig/errors.rbs +10 -0
  55. data/sig/multipart_upload.rbs +12 -3
  56. data/sig/multipart_upload_part.rbs +5 -1
  57. data/sig/object.rbs +35 -16
  58. data/sig/object_acl.rbs +1 -1
  59. data/sig/object_summary.rbs +26 -16
  60. data/sig/object_version.rbs +9 -3
  61. data/sig/resource.rbs +15 -4
  62. data/sig/types.rbs +339 -65
  63. metadata +7 -10
  64. 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.167.0'
78
+ GEM_VERSION = '1.194.0'
79
79
 
80
80
  end
81
81
 
data/sig/bucket.rbs CHANGED
@@ -20,6 +20,12 @@ module Aws
20
20
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#creation_date-instance_method
21
21
  def creation_date: () -> ::Time
22
22
 
23
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#bucket_region-instance_method
24
+ def bucket_region: () -> ::String
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
+
23
29
  def client: () -> Client
24
30
 
25
31
 
@@ -45,15 +51,21 @@ module Aws
45
51
  def create: (
46
52
  ?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read"),
47
53
  ?create_bucket_configuration: {
48
- 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")?,
49
55
  location: {
50
- type: ("AvailabilityZone")?,
56
+ type: ("AvailabilityZone" | "LocalZone")?,
51
57
  name: ::String?
52
58
  }?,
53
59
  bucket: {
54
- data_redundancy: ("SingleAvailabilityZone")?,
60
+ data_redundancy: ("SingleAvailabilityZone" | "SingleLocalZone")?,
55
61
  type: ("Directory")?
56
- }?
62
+ }?,
63
+ tags: Array[
64
+ {
65
+ key: ::String,
66
+ value: ::String
67
+ },
68
+ ]?
57
69
  },
58
70
  ?grant_full_control: ::String,
59
71
  ?grant_read: ::String,
@@ -77,7 +89,10 @@ module Aws
77
89
  objects: Array[
78
90
  {
79
91
  key: ::String,
80
- version_id: ::String?
92
+ version_id: ::String?,
93
+ etag: ::String?,
94
+ last_modified_time: ::Time?,
95
+ size: ::Integer?
81
96
  },
82
97
  ],
83
98
  quiet: bool?
@@ -86,7 +101,7 @@ module Aws
86
101
  ?request_payer: ("requester"),
87
102
  ?bypass_governance_retention: bool,
88
103
  ?expected_bucket_owner: ::String,
89
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
104
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME")
90
105
  ) -> Types::DeleteObjectsOutput
91
106
  | (?Hash[Symbol, untyped]) -> Types::DeleteObjectsOutput
92
107
 
@@ -101,21 +116,24 @@ module Aws
101
116
  ?content_length: ::Integer,
102
117
  ?content_md5: ::String,
103
118
  ?content_type: ::String,
104
- ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
119
+ ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
105
120
  ?checksum_crc32: ::String,
106
121
  ?checksum_crc32c: ::String,
122
+ ?checksum_crc64nvme: ::String,
107
123
  ?checksum_sha1: ::String,
108
124
  ?checksum_sha256: ::String,
109
125
  ?expires: ::Time,
126
+ ?if_match: ::String,
110
127
  ?if_none_match: ::String,
111
128
  ?grant_full_control: ::String,
112
129
  ?grant_read: ::String,
113
130
  ?grant_read_acp: ::String,
114
131
  ?grant_write_acp: ::String,
115
132
  key: ::String,
133
+ ?write_offset_bytes: ::Integer,
116
134
  ?metadata: Hash[::String, ::String],
117
- ?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
118
- ?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"),
119
137
  ?website_redirect_location: ::String,
120
138
  ?sse_customer_algorithm: ::String,
121
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