aws-sdk-s3 1.167.0 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +257 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +145 -39
- data/lib/aws-sdk-s3/bucket_acl.rb +7 -6
- data/lib/aws-sdk-s3/bucket_cors.rb +6 -5
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +7 -2
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +22 -2
- data/lib/aws-sdk-s3/bucket_logging.rb +2 -2
- data/lib/aws-sdk-s3/bucket_policy.rb +6 -5
- data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -3
- data/lib/aws-sdk-s3/bucket_tagging.rb +3 -3
- data/lib/aws-sdk-s3/bucket_versioning.rb +42 -9
- data/lib/aws-sdk-s3/bucket_website.rb +3 -3
- data/lib/aws-sdk-s3/client.rb +4313 -1871
- data/lib/aws-sdk-s3/client_api.rb +619 -160
- data/lib/aws-sdk-s3/customizations/object.rb +76 -86
- data/lib/aws-sdk-s3/customizations.rb +4 -1
- data/lib/aws-sdk-s3/default_executor.rb +103 -0
- data/lib/aws-sdk-s3/encryption/client.rb +2 -2
- data/lib/aws-sdk-s3/encryption/default_cipher_provider.rb +2 -0
- data/lib/aws-sdk-s3/encryption/encrypt_handler.rb +2 -0
- data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +2 -0
- data/lib/aws-sdk-s3/encryptionV2/client.rb +98 -23
- data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +7 -162
- data/lib/aws-sdk-s3/encryptionV2/decryption.rb +205 -0
- data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +17 -0
- data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +2 -0
- data/lib/aws-sdk-s3/encryptionV2/io_encrypter.rb +2 -0
- data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +8 -0
- data/lib/aws-sdk-s3/encryptionV2/utils.rb +5 -0
- data/lib/aws-sdk-s3/encryptionV3/client.rb +885 -0
- data/lib/aws-sdk-s3/encryptionV3/decrypt_handler.rb +98 -0
- data/lib/aws-sdk-s3/encryptionV3/decryption.rb +244 -0
- data/lib/aws-sdk-s3/encryptionV3/default_cipher_provider.rb +159 -0
- data/lib/aws-sdk-s3/encryptionV3/default_key_provider.rb +35 -0
- data/lib/aws-sdk-s3/encryptionV3/encrypt_handler.rb +98 -0
- data/lib/aws-sdk-s3/encryptionV3/errors.rb +47 -0
- data/lib/aws-sdk-s3/encryptionV3/io_auth_decrypter.rb +60 -0
- data/lib/aws-sdk-s3/encryptionV3/io_decrypter.rb +35 -0
- data/lib/aws-sdk-s3/encryptionV3/io_encrypter.rb +84 -0
- data/lib/aws-sdk-s3/encryptionV3/key_provider.rb +28 -0
- data/lib/aws-sdk-s3/encryptionV3/kms_cipher_provider.rb +159 -0
- data/lib/aws-sdk-s3/encryptionV3/materials.rb +58 -0
- data/lib/aws-sdk-s3/encryptionV3/utils.rb +321 -0
- data/lib/aws-sdk-s3/encryption_v2.rb +1 -0
- data/lib/aws-sdk-s3/encryption_v3.rb +24 -0
- data/lib/aws-sdk-s3/endpoint_parameters.rb +30 -35
- data/lib/aws-sdk-s3/endpoint_provider.rb +572 -278
- data/lib/aws-sdk-s3/endpoints.rb +555 -1403
- data/lib/aws-sdk-s3/errors.rb +55 -0
- data/lib/aws-sdk-s3/file_downloader.rb +189 -143
- data/lib/aws-sdk-s3/file_uploader.rb +9 -13
- data/lib/aws-sdk-s3/legacy_signer.rb +2 -1
- data/lib/aws-sdk-s3/multipart_download_error.rb +8 -0
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +105 -102
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +96 -107
- data/lib/aws-sdk-s3/multipart_upload.rb +83 -6
- data/lib/aws-sdk-s3/multipart_upload_error.rb +3 -4
- data/lib/aws-sdk-s3/multipart_upload_part.rb +50 -34
- data/lib/aws-sdk-s3/object.rb +357 -131
- data/lib/aws-sdk-s3/object_acl.rb +12 -6
- data/lib/aws-sdk-s3/object_multipart_copier.rb +2 -1
- data/lib/aws-sdk-s3/object_summary.rb +269 -96
- data/lib/aws-sdk-s3/object_version.rb +58 -13
- data/lib/aws-sdk-s3/plugins/checksum_algorithm.rb +31 -0
- data/lib/aws-sdk-s3/plugins/endpoints.rb +2 -205
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +11 -20
- data/lib/aws-sdk-s3/plugins/http_200_errors.rb +3 -3
- data/lib/aws-sdk-s3/plugins/md5s.rb +10 -71
- data/lib/aws-sdk-s3/plugins/streaming_retry.rb +5 -7
- data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +2 -1
- data/lib/aws-sdk-s3/presigner.rb +5 -5
- data/lib/aws-sdk-s3/resource.rb +41 -10
- data/lib/aws-sdk-s3/transfer_manager.rb +303 -0
- data/lib/aws-sdk-s3/types.rb +3758 -1264
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +27 -9
- data/sig/bucket_acl.rbs +1 -1
- data/sig/bucket_cors.rbs +1 -1
- data/sig/bucket_lifecycle.rbs +1 -1
- data/sig/bucket_lifecycle_configuration.rbs +1 -1
- data/sig/bucket_logging.rbs +1 -1
- data/sig/bucket_policy.rbs +1 -1
- data/sig/bucket_request_payment.rbs +1 -1
- data/sig/bucket_tagging.rbs +1 -1
- data/sig/bucket_versioning.rbs +3 -3
- data/sig/bucket_website.rbs +1 -1
- data/sig/client.rbs +279 -70
- data/sig/errors.rbs +10 -0
- data/sig/multipart_upload.rbs +12 -3
- data/sig/multipart_upload_part.rbs +5 -1
- data/sig/object.rbs +37 -16
- data/sig/object_acl.rbs +1 -1
- data/sig/object_summary.rbs +28 -16
- data/sig/object_version.rbs +9 -3
- data/sig/resource.rbs +15 -4
- data/sig/types.rbs +373 -66
- metadata +26 -10
- data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +0 -31
data/lib/aws-sdk-s3.rb
CHANGED
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" | "FSX_ONTAP"),
|
|
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
|
data/sig/bucket_lifecycle.rbs
CHANGED
|
@@ -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
|
{
|
data/sig/bucket_logging.rbs
CHANGED
|
@@ -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
|
data/sig/bucket_policy.rbs
CHANGED
|
@@ -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
|
},
|
data/sig/bucket_tagging.rbs
CHANGED
|
@@ -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
|
{
|
data/sig/bucket_versioning.rbs
CHANGED
|
@@ -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
|
data/sig/bucket_website.rbs
CHANGED
|
@@ -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
|