aws-sdk-s3 1.169.0 → 1.189.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 +118 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +79 -33
- data/lib/aws-sdk-s3/bucket_acl.rb +6 -5
- 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 +9 -9
- data/lib/aws-sdk-s3/bucket_website.rb +3 -3
- data/lib/aws-sdk-s3/client.rb +2529 -1652
- data/lib/aws-sdk-s3/client_api.rb +325 -160
- data/lib/aws-sdk-s3/endpoint_provider.rb +400 -276
- data/lib/aws-sdk-s3/endpoints.rb +42 -0
- data/lib/aws-sdk-s3/errors.rb +44 -0
- data/lib/aws-sdk-s3/file_downloader.rb +14 -31
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +31 -13
- data/lib/aws-sdk-s3/multipart_upload.rb +83 -6
- data/lib/aws-sdk-s3/multipart_upload_part.rb +50 -34
- data/lib/aws-sdk-s3/object.rb +242 -114
- data/lib/aws-sdk-s3/object_acl.rb +11 -5
- data/lib/aws-sdk-s3/object_summary.rb +180 -82
- data/lib/aws-sdk-s3/object_version.rb +60 -13
- data/lib/aws-sdk-s3/plugins/checksum_algorithm.rb +31 -0
- 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/presigner.rb +5 -5
- data/lib/aws-sdk-s3/resource.rb +10 -9
- data/lib/aws-sdk-s3/types.rb +2300 -1050
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +12 -6
- 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 +104 -37
- data/sig/errors.rbs +8 -0
- data/sig/multipart_upload.rbs +11 -2
- data/sig/multipart_upload_part.rbs +5 -1
- data/sig/object.rbs +22 -6
- data/sig/object_acl.rbs +1 -1
- data/sig/object_summary.rbs +17 -7
- data/sig/object_version.rbs +9 -3
- data/sig/resource.rbs +5 -3
- data/sig/types.rbs +153 -36
- metadata +7 -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
@@ -48,13 +48,13 @@ module Aws
|
|
48
48
|
def create: (
|
49
49
|
?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read"),
|
50
50
|
?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")?,
|
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" | "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
52
|
location: {
|
53
|
-
type: ("AvailabilityZone")?,
|
53
|
+
type: ("AvailabilityZone" | "LocalZone")?,
|
54
54
|
name: ::String?
|
55
55
|
}?,
|
56
56
|
bucket: {
|
57
|
-
data_redundancy: ("SingleAvailabilityZone")?,
|
57
|
+
data_redundancy: ("SingleAvailabilityZone" | "SingleLocalZone")?,
|
58
58
|
type: ("Directory")?
|
59
59
|
}?
|
60
60
|
},
|
@@ -80,7 +80,10 @@ module Aws
|
|
80
80
|
objects: Array[
|
81
81
|
{
|
82
82
|
key: ::String,
|
83
|
-
version_id: ::String
|
83
|
+
version_id: ::String?,
|
84
|
+
etag: ::String?,
|
85
|
+
last_modified_time: ::Time?,
|
86
|
+
size: ::Integer?
|
84
87
|
},
|
85
88
|
],
|
86
89
|
quiet: bool?
|
@@ -89,7 +92,7 @@ module Aws
|
|
89
92
|
?request_payer: ("requester"),
|
90
93
|
?bypass_governance_retention: bool,
|
91
94
|
?expected_bucket_owner: ::String,
|
92
|
-
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
|
95
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME")
|
93
96
|
) -> Types::DeleteObjectsOutput
|
94
97
|
| (?Hash[Symbol, untyped]) -> Types::DeleteObjectsOutput
|
95
98
|
|
@@ -104,18 +107,21 @@ module Aws
|
|
104
107
|
?content_length: ::Integer,
|
105
108
|
?content_md5: ::String,
|
106
109
|
?content_type: ::String,
|
107
|
-
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
110
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME"),
|
108
111
|
?checksum_crc32: ::String,
|
109
112
|
?checksum_crc32c: ::String,
|
113
|
+
?checksum_crc64nvme: ::String,
|
110
114
|
?checksum_sha1: ::String,
|
111
115
|
?checksum_sha256: ::String,
|
112
116
|
?expires: ::Time,
|
117
|
+
?if_match: ::String,
|
113
118
|
?if_none_match: ::String,
|
114
119
|
?grant_full_control: ::String,
|
115
120
|
?grant_read: ::String,
|
116
121
|
?grant_read_acp: ::String,
|
117
122
|
?grant_write_acp: ::String,
|
118
123
|
key: ::String,
|
124
|
+
?write_offset_bytes: ::Integer,
|
119
125
|
?metadata: Hash[::String, ::String],
|
120
126
|
?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
|
121
127
|
?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE"),
|
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
|