aws-sdk-s3 1.172.0 → 1.176.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +36 -2
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +5 -0
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +20 -0
- data/lib/aws-sdk-s3/client.rb +1525 -892
- data/lib/aws-sdk-s3/client_api.rb +126 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +36 -0
- data/lib/aws-sdk-s3/endpoints.rb +42 -0
- data/lib/aws-sdk-s3/errors.rb +44 -0
- data/lib/aws-sdk-s3/multipart_upload.rb +33 -0
- data/lib/aws-sdk-s3/object.rb +77 -1
- data/lib/aws-sdk-s3/object_summary.rb +74 -0
- data/lib/aws-sdk-s3/object_version.rb +43 -0
- data/lib/aws-sdk-s3/presigner.rb +1 -0
- data/lib/aws-sdk-s3/resource.rb +9 -8
- data/lib/aws-sdk-s3/types.rb +823 -120
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +8 -3
- data/sig/client.rbs +50 -6
- data/sig/errors.rbs +8 -0
- data/sig/multipart_upload.rbs +3 -1
- data/sig/object.rbs +6 -1
- data/sig/object_summary.rbs +6 -1
- data/sig/object_version.rbs +4 -1
- data/sig/resource.rbs +2 -2
- data/sig/types.rbs +89 -3
- metadata +2 -2
@@ -117,6 +117,7 @@ module Aws::S3
|
|
117
117
|
CopySourceSSECustomerKeyMD5 = Shapes::StringShape.new(name: 'CopySourceSSECustomerKeyMD5')
|
118
118
|
CopySourceVersionId = Shapes::StringShape.new(name: 'CopySourceVersionId')
|
119
119
|
CreateBucketConfiguration = Shapes::StructureShape.new(name: 'CreateBucketConfiguration')
|
120
|
+
CreateBucketMetadataTableConfigurationRequest = Shapes::StructureShape.new(name: 'CreateBucketMetadataTableConfigurationRequest')
|
120
121
|
CreateBucketOutput = Shapes::StructureShape.new(name: 'CreateBucketOutput')
|
121
122
|
CreateBucketRequest = Shapes::StructureShape.new(name: 'CreateBucketRequest')
|
122
123
|
CreateMultipartUploadOutput = Shapes::StructureShape.new(name: 'CreateMultipartUploadOutput')
|
@@ -136,6 +137,7 @@ module Aws::S3
|
|
136
137
|
DeleteBucketIntelligentTieringConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteBucketIntelligentTieringConfigurationRequest')
|
137
138
|
DeleteBucketInventoryConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteBucketInventoryConfigurationRequest')
|
138
139
|
DeleteBucketLifecycleRequest = Shapes::StructureShape.new(name: 'DeleteBucketLifecycleRequest')
|
140
|
+
DeleteBucketMetadataTableConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteBucketMetadataTableConfigurationRequest')
|
139
141
|
DeleteBucketMetricsConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteBucketMetricsConfigurationRequest')
|
140
142
|
DeleteBucketOwnershipControlsRequest = Shapes::StructureShape.new(name: 'DeleteBucketOwnershipControlsRequest')
|
141
143
|
DeleteBucketPolicyRequest = Shapes::StructureShape.new(name: 'DeleteBucketPolicyRequest')
|
@@ -169,10 +171,12 @@ module Aws::S3
|
|
169
171
|
EncodingType = Shapes::StringShape.new(name: 'EncodingType')
|
170
172
|
Encryption = Shapes::StructureShape.new(name: 'Encryption')
|
171
173
|
EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
|
174
|
+
EncryptionTypeMismatch = Shapes::StructureShape.new(name: 'EncryptionTypeMismatch')
|
172
175
|
End = Shapes::IntegerShape.new(name: 'End')
|
173
176
|
EndEvent = Shapes::StructureShape.new(name: 'EndEvent')
|
174
177
|
Error = Shapes::StructureShape.new(name: 'Error')
|
175
178
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
179
|
+
ErrorDetails = Shapes::StructureShape.new(name: 'ErrorDetails')
|
176
180
|
ErrorDocument = Shapes::StructureShape.new(name: 'ErrorDocument')
|
177
181
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
178
182
|
Errors = Shapes::ListShape.new(name: 'Errors', flattened: true)
|
@@ -219,6 +223,9 @@ module Aws::S3
|
|
219
223
|
GetBucketLocationRequest = Shapes::StructureShape.new(name: 'GetBucketLocationRequest')
|
220
224
|
GetBucketLoggingOutput = Shapes::StructureShape.new(name: 'GetBucketLoggingOutput')
|
221
225
|
GetBucketLoggingRequest = Shapes::StructureShape.new(name: 'GetBucketLoggingRequest')
|
226
|
+
GetBucketMetadataTableConfigurationOutput = Shapes::StructureShape.new(name: 'GetBucketMetadataTableConfigurationOutput')
|
227
|
+
GetBucketMetadataTableConfigurationRequest = Shapes::StructureShape.new(name: 'GetBucketMetadataTableConfigurationRequest')
|
228
|
+
GetBucketMetadataTableConfigurationResult = Shapes::StructureShape.new(name: 'GetBucketMetadataTableConfigurationResult')
|
222
229
|
GetBucketMetricsConfigurationOutput = Shapes::StructureShape.new(name: 'GetBucketMetricsConfigurationOutput')
|
223
230
|
GetBucketMetricsConfigurationRequest = Shapes::StructureShape.new(name: 'GetBucketMetricsConfigurationRequest')
|
224
231
|
GetBucketNotificationConfigurationRequest = Shapes::StructureShape.new(name: 'GetBucketNotificationConfigurationRequest')
|
@@ -276,6 +283,9 @@ module Aws::S3
|
|
276
283
|
HttpRedirectCode = Shapes::StringShape.new(name: 'HttpRedirectCode')
|
277
284
|
ID = Shapes::StringShape.new(name: 'ID')
|
278
285
|
IfMatch = Shapes::StringShape.new(name: 'IfMatch')
|
286
|
+
IfMatchInitiatedTime = Shapes::TimestampShape.new(name: 'IfMatchInitiatedTime', timestampFormat: "rfc822")
|
287
|
+
IfMatchLastModifiedTime = Shapes::TimestampShape.new(name: 'IfMatchLastModifiedTime', timestampFormat: "rfc822")
|
288
|
+
IfMatchSize = Shapes::IntegerShape.new(name: 'IfMatchSize')
|
279
289
|
IfModifiedSince = Shapes::TimestampShape.new(name: 'IfModifiedSince')
|
280
290
|
IfNoneMatch = Shapes::StringShape.new(name: 'IfNoneMatch')
|
281
291
|
IfUnmodifiedSince = Shapes::TimestampShape.new(name: 'IfUnmodifiedSince')
|
@@ -292,6 +302,8 @@ module Aws::S3
|
|
292
302
|
IntelligentTieringId = Shapes::StringShape.new(name: 'IntelligentTieringId')
|
293
303
|
IntelligentTieringStatus = Shapes::StringShape.new(name: 'IntelligentTieringStatus')
|
294
304
|
InvalidObjectState = Shapes::StructureShape.new(name: 'InvalidObjectState')
|
305
|
+
InvalidRequest = Shapes::StructureShape.new(name: 'InvalidRequest')
|
306
|
+
InvalidWriteOffset = Shapes::StructureShape.new(name: 'InvalidWriteOffset')
|
295
307
|
InventoryConfiguration = Shapes::StructureShape.new(name: 'InventoryConfiguration')
|
296
308
|
InventoryConfigurationList = Shapes::ListShape.new(name: 'InventoryConfigurationList', flattened: true)
|
297
309
|
InventoryDestination = Shapes::StructureShape.new(name: 'InventoryDestination')
|
@@ -321,6 +333,7 @@ module Aws::S3
|
|
321
333
|
LambdaFunctionConfiguration = Shapes::StructureShape.new(name: 'LambdaFunctionConfiguration')
|
322
334
|
LambdaFunctionConfigurationList = Shapes::ListShape.new(name: 'LambdaFunctionConfigurationList', flattened: true)
|
323
335
|
LastModified = Shapes::TimestampShape.new(name: 'LastModified')
|
336
|
+
LastModifiedTime = Shapes::TimestampShape.new(name: 'LastModifiedTime', timestampFormat: "rfc822")
|
324
337
|
LifecycleConfiguration = Shapes::StructureShape.new(name: 'LifecycleConfiguration')
|
325
338
|
LifecycleExpiration = Shapes::StructureShape.new(name: 'LifecycleExpiration')
|
326
339
|
LifecycleRule = Shapes::StructureShape.new(name: 'LifecycleRule')
|
@@ -370,6 +383,9 @@ module Aws::S3
|
|
370
383
|
MetadataDirective = Shapes::StringShape.new(name: 'MetadataDirective')
|
371
384
|
MetadataEntry = Shapes::StructureShape.new(name: 'MetadataEntry')
|
372
385
|
MetadataKey = Shapes::StringShape.new(name: 'MetadataKey')
|
386
|
+
MetadataTableConfiguration = Shapes::StructureShape.new(name: 'MetadataTableConfiguration')
|
387
|
+
MetadataTableConfigurationResult = Shapes::StructureShape.new(name: 'MetadataTableConfigurationResult')
|
388
|
+
MetadataTableStatus = Shapes::StringShape.new(name: 'MetadataTableStatus')
|
373
389
|
MetadataValue = Shapes::StringShape.new(name: 'MetadataValue')
|
374
390
|
Metrics = Shapes::StructureShape.new(name: 'Metrics')
|
375
391
|
MetricsAndOperator = Shapes::StructureShape.new(name: 'MetricsAndOperator')
|
@@ -548,6 +564,12 @@ module Aws::S3
|
|
548
564
|
Rules = Shapes::ListShape.new(name: 'Rules', flattened: true)
|
549
565
|
S3KeyFilter = Shapes::StructureShape.new(name: 'S3KeyFilter')
|
550
566
|
S3Location = Shapes::StructureShape.new(name: 'S3Location')
|
567
|
+
S3TablesArn = Shapes::StringShape.new(name: 'S3TablesArn')
|
568
|
+
S3TablesBucketArn = Shapes::StringShape.new(name: 'S3TablesBucketArn')
|
569
|
+
S3TablesDestination = Shapes::StructureShape.new(name: 'S3TablesDestination')
|
570
|
+
S3TablesDestinationResult = Shapes::StructureShape.new(name: 'S3TablesDestinationResult')
|
571
|
+
S3TablesName = Shapes::StringShape.new(name: 'S3TablesName')
|
572
|
+
S3TablesNamespace = Shapes::StringShape.new(name: 'S3TablesNamespace')
|
551
573
|
SSECustomerAlgorithm = Shapes::StringShape.new(name: 'SSECustomerAlgorithm')
|
552
574
|
SSECustomerKey = Shapes::StringShape.new(name: 'SSECustomerKey')
|
553
575
|
SSECustomerKeyMD5 = Shapes::StringShape.new(name: 'SSECustomerKeyMD5')
|
@@ -600,6 +622,7 @@ module Aws::S3
|
|
600
622
|
Tiering = Shapes::StructureShape.new(name: 'Tiering')
|
601
623
|
TieringList = Shapes::ListShape.new(name: 'TieringList', flattened: true)
|
602
624
|
Token = Shapes::StringShape.new(name: 'Token')
|
625
|
+
TooManyParts = Shapes::StructureShape.new(name: 'TooManyParts')
|
603
626
|
TopicArn = Shapes::StringShape.new(name: 'TopicArn')
|
604
627
|
TopicConfiguration = Shapes::StructureShape.new(name: 'TopicConfiguration')
|
605
628
|
TopicConfigurationDeprecated = Shapes::StructureShape.new(name: 'TopicConfigurationDeprecated')
|
@@ -623,6 +646,7 @@ module Aws::S3
|
|
623
646
|
WebsiteConfiguration = Shapes::StructureShape.new(name: 'WebsiteConfiguration')
|
624
647
|
WebsiteRedirectLocation = Shapes::StringShape.new(name: 'WebsiteRedirectLocation')
|
625
648
|
WriteGetObjectResponseRequest = Shapes::StructureShape.new(name: 'WriteGetObjectResponseRequest')
|
649
|
+
WriteOffsetBytes = Shapes::IntegerShape.new(name: 'WriteOffsetBytes')
|
626
650
|
Years = Shapes::IntegerShape.new(name: 'Years')
|
627
651
|
|
628
652
|
AbortIncompleteMultipartUpload.add_member(:days_after_initiation, Shapes::ShapeRef.new(shape: DaysAfterInitiation, location_name: "DaysAfterInitiation"))
|
@@ -636,6 +660,7 @@ module Aws::S3
|
|
636
660
|
AbortMultipartUploadRequest.add_member(:upload_id, Shapes::ShapeRef.new(shape: MultipartUploadId, required: true, location: "querystring", location_name: "uploadId"))
|
637
661
|
AbortMultipartUploadRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
|
638
662
|
AbortMultipartUploadRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
663
|
+
AbortMultipartUploadRequest.add_member(:if_match_initiated_time, Shapes::ShapeRef.new(shape: IfMatchInitiatedTime, location: "header", location_name: "x-amz-if-match-initiated-time"))
|
639
664
|
AbortMultipartUploadRequest.struct_class = Types::AbortMultipartUploadRequest
|
640
665
|
|
641
666
|
AccelerateConfiguration.add_member(:status, Shapes::ShapeRef.new(shape: BucketAccelerateStatus, location_name: "Status"))
|
@@ -775,6 +800,7 @@ module Aws::S3
|
|
775
800
|
CompleteMultipartUploadRequest.add_member(:checksum_sha256, Shapes::ShapeRef.new(shape: ChecksumSHA256, location: "header", location_name: "x-amz-checksum-sha256"))
|
776
801
|
CompleteMultipartUploadRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
|
777
802
|
CompleteMultipartUploadRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
803
|
+
CompleteMultipartUploadRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: IfMatch, location: "header", location_name: "If-Match"))
|
778
804
|
CompleteMultipartUploadRequest.add_member(:if_none_match, Shapes::ShapeRef.new(shape: IfNoneMatch, location: "header", location_name: "If-None-Match"))
|
779
805
|
CompleteMultipartUploadRequest.add_member(:sse_customer_algorithm, Shapes::ShapeRef.new(shape: SSECustomerAlgorithm, location: "header", location_name: "x-amz-server-side-encryption-customer-algorithm"))
|
780
806
|
CompleteMultipartUploadRequest.add_member(:sse_customer_key, Shapes::ShapeRef.new(shape: SSECustomerKey, location: "header", location_name: "x-amz-server-side-encryption-customer-key"))
|
@@ -881,6 +907,15 @@ module Aws::S3
|
|
881
907
|
CreateBucketConfiguration.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketInfo, location_name: "Bucket"))
|
882
908
|
CreateBucketConfiguration.struct_class = Types::CreateBucketConfiguration
|
883
909
|
|
910
|
+
CreateBucketMetadataTableConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
|
911
|
+
CreateBucketMetadataTableConfigurationRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
|
912
|
+
CreateBucketMetadataTableConfigurationRequest.add_member(:checksum_algorithm, Shapes::ShapeRef.new(shape: ChecksumAlgorithm, location: "header", location_name: "x-amz-sdk-checksum-algorithm"))
|
913
|
+
CreateBucketMetadataTableConfigurationRequest.add_member(:metadata_table_configuration, Shapes::ShapeRef.new(shape: MetadataTableConfiguration, required: true, location_name: "MetadataTableConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://s3.amazonaws.com/doc/2006-03-01/"}}))
|
914
|
+
CreateBucketMetadataTableConfigurationRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
915
|
+
CreateBucketMetadataTableConfigurationRequest.struct_class = Types::CreateBucketMetadataTableConfigurationRequest
|
916
|
+
CreateBucketMetadataTableConfigurationRequest[:payload] = :metadata_table_configuration
|
917
|
+
CreateBucketMetadataTableConfigurationRequest[:payload_member] = CreateBucketMetadataTableConfigurationRequest.member(:metadata_table_configuration)
|
918
|
+
|
884
919
|
CreateBucketOutput.add_member(:location, Shapes::ShapeRef.new(shape: Location, location: "header", location_name: "Location"))
|
885
920
|
CreateBucketOutput.struct_class = Types::CreateBucketOutput
|
886
921
|
|
@@ -995,6 +1030,10 @@ module Aws::S3
|
|
995
1030
|
DeleteBucketLifecycleRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
996
1031
|
DeleteBucketLifecycleRequest.struct_class = Types::DeleteBucketLifecycleRequest
|
997
1032
|
|
1033
|
+
DeleteBucketMetadataTableConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
|
1034
|
+
DeleteBucketMetadataTableConfigurationRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
1035
|
+
DeleteBucketMetadataTableConfigurationRequest.struct_class = Types::DeleteBucketMetadataTableConfigurationRequest
|
1036
|
+
|
998
1037
|
DeleteBucketMetricsConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
|
999
1038
|
DeleteBucketMetricsConfigurationRequest.add_member(:id, Shapes::ShapeRef.new(shape: MetricsId, required: true, location: "querystring", location_name: "id"))
|
1000
1039
|
DeleteBucketMetricsConfigurationRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
@@ -1048,6 +1087,9 @@ module Aws::S3
|
|
1048
1087
|
DeleteObjectRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
|
1049
1088
|
DeleteObjectRequest.add_member(:bypass_governance_retention, Shapes::ShapeRef.new(shape: BypassGovernanceRetention, location: "header", location_name: "x-amz-bypass-governance-retention"))
|
1050
1089
|
DeleteObjectRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
1090
|
+
DeleteObjectRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: IfMatch, location: "header", location_name: "If-Match"))
|
1091
|
+
DeleteObjectRequest.add_member(:if_match_last_modified_time, Shapes::ShapeRef.new(shape: IfMatchLastModifiedTime, location: "header", location_name: "x-amz-if-match-last-modified-time"))
|
1092
|
+
DeleteObjectRequest.add_member(:if_match_size, Shapes::ShapeRef.new(shape: IfMatchSize, location: "header", location_name: "x-amz-if-match-size"))
|
1051
1093
|
DeleteObjectRequest.struct_class = Types::DeleteObjectRequest
|
1052
1094
|
|
1053
1095
|
DeleteObjectTaggingOutput.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location: "header", location_name: "x-amz-version-id"))
|
@@ -1104,6 +1146,8 @@ module Aws::S3
|
|
1104
1146
|
EncryptionConfiguration.add_member(:replica_kms_key_id, Shapes::ShapeRef.new(shape: ReplicaKmsKeyID, location_name: "ReplicaKmsKeyID"))
|
1105
1147
|
EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
|
1106
1148
|
|
1149
|
+
EncryptionTypeMismatch.struct_class = Types::EncryptionTypeMismatch
|
1150
|
+
|
1107
1151
|
EndEvent.struct_class = Types::EndEvent
|
1108
1152
|
|
1109
1153
|
Error.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, location_name: "Key"))
|
@@ -1112,6 +1156,10 @@ module Aws::S3
|
|
1112
1156
|
Error.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
|
1113
1157
|
Error.struct_class = Types::Error
|
1114
1158
|
|
1159
|
+
ErrorDetails.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
1160
|
+
ErrorDetails.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
1161
|
+
ErrorDetails.struct_class = Types::ErrorDetails
|
1162
|
+
|
1115
1163
|
ErrorDocument.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, required: true, location_name: "Key"))
|
1116
1164
|
ErrorDocument.struct_class = Types::ErrorDocument
|
1117
1165
|
|
@@ -1223,6 +1271,20 @@ module Aws::S3
|
|
1223
1271
|
GetBucketLoggingRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
1224
1272
|
GetBucketLoggingRequest.struct_class = Types::GetBucketLoggingRequest
|
1225
1273
|
|
1274
|
+
GetBucketMetadataTableConfigurationOutput.add_member(:get_bucket_metadata_table_configuration_result, Shapes::ShapeRef.new(shape: GetBucketMetadataTableConfigurationResult, location_name: "GetBucketMetadataTableConfigurationResult"))
|
1275
|
+
GetBucketMetadataTableConfigurationOutput.struct_class = Types::GetBucketMetadataTableConfigurationOutput
|
1276
|
+
GetBucketMetadataTableConfigurationOutput[:payload] = :get_bucket_metadata_table_configuration_result
|
1277
|
+
GetBucketMetadataTableConfigurationOutput[:payload_member] = GetBucketMetadataTableConfigurationOutput.member(:get_bucket_metadata_table_configuration_result)
|
1278
|
+
|
1279
|
+
GetBucketMetadataTableConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
|
1280
|
+
GetBucketMetadataTableConfigurationRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
1281
|
+
GetBucketMetadataTableConfigurationRequest.struct_class = Types::GetBucketMetadataTableConfigurationRequest
|
1282
|
+
|
1283
|
+
GetBucketMetadataTableConfigurationResult.add_member(:metadata_table_configuration_result, Shapes::ShapeRef.new(shape: MetadataTableConfigurationResult, required: true, location_name: "MetadataTableConfigurationResult"))
|
1284
|
+
GetBucketMetadataTableConfigurationResult.add_member(:status, Shapes::ShapeRef.new(shape: MetadataTableStatus, required: true, location_name: "Status"))
|
1285
|
+
GetBucketMetadataTableConfigurationResult.add_member(:error, Shapes::ShapeRef.new(shape: ErrorDetails, location_name: "Error"))
|
1286
|
+
GetBucketMetadataTableConfigurationResult.struct_class = Types::GetBucketMetadataTableConfigurationResult
|
1287
|
+
|
1226
1288
|
GetBucketMetricsConfigurationOutput.add_member(:metrics_configuration, Shapes::ShapeRef.new(shape: MetricsConfiguration, location_name: "MetricsConfiguration"))
|
1227
1289
|
GetBucketMetricsConfigurationOutput.struct_class = Types::GetBucketMetricsConfigurationOutput
|
1228
1290
|
GetBucketMetricsConfigurationOutput[:payload] = :metrics_configuration
|
@@ -1598,6 +1660,10 @@ module Aws::S3
|
|
1598
1660
|
InvalidObjectState.add_member(:access_tier, Shapes::ShapeRef.new(shape: IntelligentTieringAccessTier, location_name: "AccessTier"))
|
1599
1661
|
InvalidObjectState.struct_class = Types::InvalidObjectState
|
1600
1662
|
|
1663
|
+
InvalidRequest.struct_class = Types::InvalidRequest
|
1664
|
+
|
1665
|
+
InvalidWriteOffset.struct_class = Types::InvalidWriteOffset
|
1666
|
+
|
1601
1667
|
InventoryConfiguration.add_member(:destination, Shapes::ShapeRef.new(shape: InventoryDestination, required: true, location_name: "Destination"))
|
1602
1668
|
InventoryConfiguration.add_member(:is_enabled, Shapes::ShapeRef.new(shape: IsEnabled, required: true, location_name: "IsEnabled"))
|
1603
1669
|
InventoryConfiguration.add_member(:filter, Shapes::ShapeRef.new(shape: InventoryFilter, location_name: "Filter"))
|
@@ -1894,6 +1960,12 @@ module Aws::S3
|
|
1894
1960
|
MetadataEntry.add_member(:value, Shapes::ShapeRef.new(shape: MetadataValue, location_name: "Value"))
|
1895
1961
|
MetadataEntry.struct_class = Types::MetadataEntry
|
1896
1962
|
|
1963
|
+
MetadataTableConfiguration.add_member(:s3_tables_destination, Shapes::ShapeRef.new(shape: S3TablesDestination, required: true, location_name: "S3TablesDestination"))
|
1964
|
+
MetadataTableConfiguration.struct_class = Types::MetadataTableConfiguration
|
1965
|
+
|
1966
|
+
MetadataTableConfigurationResult.add_member(:s3_tables_destination_result, Shapes::ShapeRef.new(shape: S3TablesDestinationResult, required: true, location_name: "S3TablesDestinationResult"))
|
1967
|
+
MetadataTableConfigurationResult.struct_class = Types::MetadataTableConfigurationResult
|
1968
|
+
|
1897
1969
|
Metrics.add_member(:status, Shapes::ShapeRef.new(shape: MetricsStatus, required: true, location_name: "Status"))
|
1898
1970
|
Metrics.add_member(:event_threshold, Shapes::ShapeRef.new(shape: ReplicationTimeValue, location_name: "EventThreshold"))
|
1899
1971
|
Metrics.struct_class = Types::Metrics
|
@@ -1973,6 +2045,9 @@ module Aws::S3
|
|
1973
2045
|
|
1974
2046
|
ObjectIdentifier.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, required: true, location_name: "Key"))
|
1975
2047
|
ObjectIdentifier.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location_name: "VersionId"))
|
2048
|
+
ObjectIdentifier.add_member(:etag, Shapes::ShapeRef.new(shape: ETag, location_name: "ETag"))
|
2049
|
+
ObjectIdentifier.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: LastModifiedTime, location_name: "LastModifiedTime"))
|
2050
|
+
ObjectIdentifier.add_member(:size, Shapes::ShapeRef.new(shape: Size, location_name: "Size"))
|
1976
2051
|
ObjectIdentifier.struct_class = Types::ObjectIdentifier
|
1977
2052
|
|
1978
2053
|
ObjectIdentifierList.member = Shapes::ShapeRef.new(shape: ObjectIdentifier)
|
@@ -2321,6 +2396,7 @@ module Aws::S3
|
|
2321
2396
|
PutObjectOutput.add_member(:ssekms_key_id, Shapes::ShapeRef.new(shape: SSEKMSKeyId, location: "header", location_name: "x-amz-server-side-encryption-aws-kms-key-id"))
|
2322
2397
|
PutObjectOutput.add_member(:ssekms_encryption_context, Shapes::ShapeRef.new(shape: SSEKMSEncryptionContext, location: "header", location_name: "x-amz-server-side-encryption-context"))
|
2323
2398
|
PutObjectOutput.add_member(:bucket_key_enabled, Shapes::ShapeRef.new(shape: BucketKeyEnabled, location: "header", location_name: "x-amz-server-side-encryption-bucket-key-enabled"))
|
2399
|
+
PutObjectOutput.add_member(:size, Shapes::ShapeRef.new(shape: Size, location: "header", location_name: "x-amz-object-size"))
|
2324
2400
|
PutObjectOutput.add_member(:request_charged, Shapes::ShapeRef.new(shape: RequestCharged, location: "header", location_name: "x-amz-request-charged"))
|
2325
2401
|
PutObjectOutput.struct_class = Types::PutObjectOutput
|
2326
2402
|
|
@@ -2340,12 +2416,14 @@ module Aws::S3
|
|
2340
2416
|
PutObjectRequest.add_member(:checksum_sha1, Shapes::ShapeRef.new(shape: ChecksumSHA1, location: "header", location_name: "x-amz-checksum-sha1"))
|
2341
2417
|
PutObjectRequest.add_member(:checksum_sha256, Shapes::ShapeRef.new(shape: ChecksumSHA256, location: "header", location_name: "x-amz-checksum-sha256"))
|
2342
2418
|
PutObjectRequest.add_member(:expires, Shapes::ShapeRef.new(shape: Expires, location: "header", location_name: "Expires"))
|
2419
|
+
PutObjectRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: IfMatch, location: "header", location_name: "If-Match"))
|
2343
2420
|
PutObjectRequest.add_member(:if_none_match, Shapes::ShapeRef.new(shape: IfNoneMatch, location: "header", location_name: "If-None-Match"))
|
2344
2421
|
PutObjectRequest.add_member(:grant_full_control, Shapes::ShapeRef.new(shape: GrantFullControl, location: "header", location_name: "x-amz-grant-full-control"))
|
2345
2422
|
PutObjectRequest.add_member(:grant_read, Shapes::ShapeRef.new(shape: GrantRead, location: "header", location_name: "x-amz-grant-read"))
|
2346
2423
|
PutObjectRequest.add_member(:grant_read_acp, Shapes::ShapeRef.new(shape: GrantReadACP, location: "header", location_name: "x-amz-grant-read-acp"))
|
2347
2424
|
PutObjectRequest.add_member(:grant_write_acp, Shapes::ShapeRef.new(shape: GrantWriteACP, location: "header", location_name: "x-amz-grant-write-acp"))
|
2348
2425
|
PutObjectRequest.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, required: true, location: "uri", location_name: "Key", metadata: {"contextParam"=>{"name"=>"Key"}}))
|
2426
|
+
PutObjectRequest.add_member(:write_offset_bytes, Shapes::ShapeRef.new(shape: WriteOffsetBytes, location: "header", location_name: "x-amz-write-offset-bytes"))
|
2349
2427
|
PutObjectRequest.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location: "headers", location_name: "x-amz-meta-"))
|
2350
2428
|
PutObjectRequest.add_member(:server_side_encryption, Shapes::ShapeRef.new(shape: ServerSideEncryption, location: "header", location_name: "x-amz-server-side-encryption"))
|
2351
2429
|
PutObjectRequest.add_member(:storage_class, Shapes::ShapeRef.new(shape: StorageClass, location: "header", location_name: "x-amz-storage-class"))
|
@@ -2535,6 +2613,16 @@ module Aws::S3
|
|
2535
2613
|
S3Location.add_member(:storage_class, Shapes::ShapeRef.new(shape: StorageClass, location_name: "StorageClass"))
|
2536
2614
|
S3Location.struct_class = Types::S3Location
|
2537
2615
|
|
2616
|
+
S3TablesDestination.add_member(:table_bucket_arn, Shapes::ShapeRef.new(shape: S3TablesBucketArn, required: true, location_name: "TableBucketArn"))
|
2617
|
+
S3TablesDestination.add_member(:table_name, Shapes::ShapeRef.new(shape: S3TablesName, required: true, location_name: "TableName"))
|
2618
|
+
S3TablesDestination.struct_class = Types::S3TablesDestination
|
2619
|
+
|
2620
|
+
S3TablesDestinationResult.add_member(:table_bucket_arn, Shapes::ShapeRef.new(shape: S3TablesBucketArn, required: true, location_name: "TableBucketArn"))
|
2621
|
+
S3TablesDestinationResult.add_member(:table_name, Shapes::ShapeRef.new(shape: S3TablesName, required: true, location_name: "TableName"))
|
2622
|
+
S3TablesDestinationResult.add_member(:table_arn, Shapes::ShapeRef.new(shape: S3TablesArn, required: true, location_name: "TableArn"))
|
2623
|
+
S3TablesDestinationResult.add_member(:table_namespace, Shapes::ShapeRef.new(shape: S3TablesNamespace, required: true, location_name: "TableNamespace"))
|
2624
|
+
S3TablesDestinationResult.struct_class = Types::S3TablesDestinationResult
|
2625
|
+
|
2538
2626
|
SSEKMS.add_member(:key_id, Shapes::ShapeRef.new(shape: SSEKMSKeyId, required: true, location_name: "KeyId"))
|
2539
2627
|
SSEKMS.struct_class = Types::SSEKMS
|
2540
2628
|
|
@@ -2644,6 +2732,8 @@ module Aws::S3
|
|
2644
2732
|
|
2645
2733
|
TieringList.member = Shapes::ShapeRef.new(shape: Tiering)
|
2646
2734
|
|
2735
|
+
TooManyParts.struct_class = Types::TooManyParts
|
2736
|
+
|
2647
2737
|
TopicConfiguration.add_member(:id, Shapes::ShapeRef.new(shape: NotificationId, location_name: "Id"))
|
2648
2738
|
TopicConfiguration.add_member(:topic_arn, Shapes::ShapeRef.new(shape: TopicArn, required: true, location_name: "Topic"))
|
2649
2739
|
TopicConfiguration.add_member(:events, Shapes::ShapeRef.new(shape: EventList, required: true, location_name: "Event"))
|
@@ -2844,6 +2934,22 @@ module Aws::S3
|
|
2844
2934
|
o.errors << Shapes::ShapeRef.new(shape: BucketAlreadyOwnedByYou)
|
2845
2935
|
end)
|
2846
2936
|
|
2937
|
+
api.add_operation(:create_bucket_metadata_table_configuration, Seahorse::Model::Operation.new.tap do |o|
|
2938
|
+
o.name = "CreateBucketMetadataTableConfiguration"
|
2939
|
+
o.http_method = "POST"
|
2940
|
+
o.http_request_uri = "/?metadataTable"
|
2941
|
+
o.http_checksum = {
|
2942
|
+
"requestAlgorithmMember" => "checksum_algorithm",
|
2943
|
+
"requestChecksumRequired" => true,
|
2944
|
+
}
|
2945
|
+
o.http_checksum = {
|
2946
|
+
"requestAlgorithmMember" => "checksum_algorithm",
|
2947
|
+
"requestChecksumRequired" => true,
|
2948
|
+
}
|
2949
|
+
o.input = Shapes::ShapeRef.new(shape: CreateBucketMetadataTableConfigurationRequest)
|
2950
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2951
|
+
end)
|
2952
|
+
|
2847
2953
|
api.add_operation(:create_multipart_upload, Seahorse::Model::Operation.new.tap do |o|
|
2848
2954
|
o.name = "CreateMultipartUpload"
|
2849
2955
|
o.http_method = "POST"
|
@@ -2917,6 +3023,14 @@ module Aws::S3
|
|
2917
3023
|
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2918
3024
|
end)
|
2919
3025
|
|
3026
|
+
api.add_operation(:delete_bucket_metadata_table_configuration, Seahorse::Model::Operation.new.tap do |o|
|
3027
|
+
o.name = "DeleteBucketMetadataTableConfiguration"
|
3028
|
+
o.http_method = "DELETE"
|
3029
|
+
o.http_request_uri = "/?metadataTable"
|
3030
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteBucketMetadataTableConfigurationRequest)
|
3031
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
3032
|
+
end)
|
3033
|
+
|
2920
3034
|
api.add_operation(:delete_bucket_metrics_configuration, Seahorse::Model::Operation.new.tap do |o|
|
2921
3035
|
o.name = "DeleteBucketMetricsConfiguration"
|
2922
3036
|
o.http_method = "DELETE"
|
@@ -3094,6 +3208,14 @@ module Aws::S3
|
|
3094
3208
|
o.output = Shapes::ShapeRef.new(shape: GetBucketLoggingOutput)
|
3095
3209
|
end)
|
3096
3210
|
|
3211
|
+
api.add_operation(:get_bucket_metadata_table_configuration, Seahorse::Model::Operation.new.tap do |o|
|
3212
|
+
o.name = "GetBucketMetadataTableConfiguration"
|
3213
|
+
o.http_method = "GET"
|
3214
|
+
o.http_request_uri = "/?metadataTable"
|
3215
|
+
o.input = Shapes::ShapeRef.new(shape: GetBucketMetadataTableConfigurationRequest)
|
3216
|
+
o.output = Shapes::ShapeRef.new(shape: GetBucketMetadataTableConfigurationOutput)
|
3217
|
+
end)
|
3218
|
+
|
3097
3219
|
api.add_operation(:get_bucket_metrics_configuration, Seahorse::Model::Operation.new.tap do |o|
|
3098
3220
|
o.name = "GetBucketMetricsConfiguration"
|
3099
3221
|
o.http_method = "GET"
|
@@ -3714,6 +3836,10 @@ module Aws::S3
|
|
3714
3836
|
}
|
3715
3837
|
o.input = Shapes::ShapeRef.new(shape: PutObjectRequest)
|
3716
3838
|
o.output = Shapes::ShapeRef.new(shape: PutObjectOutput)
|
3839
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequest)
|
3840
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidWriteOffset)
|
3841
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyParts)
|
3842
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionTypeMismatch)
|
3717
3843
|
end)
|
3718
3844
|
|
3719
3845
|
api.add_operation(:put_object_acl, Seahorse::Model::Operation.new.tap do |o|
|
@@ -94,6 +94,24 @@ module Aws::S3
|
|
94
94
|
end
|
95
95
|
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
96
96
|
end
|
97
|
+
if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(bucket, 6, 19, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(bucket, 19, 21, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
|
98
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
99
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-fips-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
100
|
+
end
|
101
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
102
|
+
end
|
103
|
+
if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(bucket, 6, 20, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(bucket, 20, 22, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
|
104
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
105
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-fips-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
106
|
+
end
|
107
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
108
|
+
end
|
109
|
+
if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(bucket, 6, 26, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(bucket, 26, 28, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
|
110
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
111
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-fips-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
112
|
+
end
|
113
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
114
|
+
end
|
97
115
|
raise ArgumentError, "Unrecognized S3Express bucket name format."
|
98
116
|
end
|
99
117
|
if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(bucket, 6, 14, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(bucket, 14, 16, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
|
@@ -108,6 +126,24 @@ module Aws::S3
|
|
108
126
|
end
|
109
127
|
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4-s3express", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
110
128
|
end
|
129
|
+
if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(bucket, 6, 19, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(bucket, 19, 21, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
|
130
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
131
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-fips-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4-s3express", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
132
|
+
end
|
133
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4-s3express", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
134
|
+
end
|
135
|
+
if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(bucket, 6, 20, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(bucket, 20, 22, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
|
136
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
137
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-fips-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4-s3express", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
138
|
+
end
|
139
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4-s3express", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
140
|
+
end
|
141
|
+
if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(bucket, 6, 26, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(bucket, 26, 28, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
|
142
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
143
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-fips-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4-s3express", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
144
|
+
end
|
145
|
+
return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.s3express-#{s3express_availability_zone_id}.#{region}.amazonaws.com", headers: {}, properties: {"backend"=>"S3Express", "authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4-s3express", "signingName"=>"s3express", "signingRegion"=>"#{region}"}]})
|
146
|
+
end
|
111
147
|
raise ArgumentError, "Unrecognized S3Express bucket name format."
|
112
148
|
end
|
113
149
|
raise ArgumentError, "S3Express bucket name is not a valid virtual hostable name."
|
data/lib/aws-sdk-s3/endpoints.rb
CHANGED
@@ -63,6 +63,18 @@ module Aws::S3
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
class CreateBucketMetadataTableConfiguration
|
67
|
+
def self.build(context)
|
68
|
+
Aws::S3::EndpointParameters.create(
|
69
|
+
context.config,
|
70
|
+
bucket: context.params[:bucket],
|
71
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
72
|
+
accelerate: context[:use_accelerate_endpoint],
|
73
|
+
use_s3_express_control_endpoint: true,
|
74
|
+
)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
66
78
|
class CreateMultipartUpload
|
67
79
|
def self.build(context)
|
68
80
|
Aws::S3::EndpointParameters.create(
|
@@ -171,6 +183,18 @@ module Aws::S3
|
|
171
183
|
end
|
172
184
|
end
|
173
185
|
|
186
|
+
class DeleteBucketMetadataTableConfiguration
|
187
|
+
def self.build(context)
|
188
|
+
Aws::S3::EndpointParameters.create(
|
189
|
+
context.config,
|
190
|
+
bucket: context.params[:bucket],
|
191
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
192
|
+
accelerate: context[:use_accelerate_endpoint],
|
193
|
+
use_s3_express_control_endpoint: true,
|
194
|
+
)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
174
198
|
class DeleteBucketMetricsConfiguration
|
175
199
|
def self.build(context)
|
176
200
|
Aws::S3::EndpointParameters.create(
|
@@ -421,6 +445,18 @@ module Aws::S3
|
|
421
445
|
end
|
422
446
|
end
|
423
447
|
|
448
|
+
class GetBucketMetadataTableConfiguration
|
449
|
+
def self.build(context)
|
450
|
+
Aws::S3::EndpointParameters.create(
|
451
|
+
context.config,
|
452
|
+
bucket: context.params[:bucket],
|
453
|
+
use_dual_stack: context[:use_dualstack_endpoint],
|
454
|
+
accelerate: context[:use_accelerate_endpoint],
|
455
|
+
use_s3_express_control_endpoint: true,
|
456
|
+
)
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
424
460
|
class GetBucketMetricsConfiguration
|
425
461
|
def self.build(context)
|
426
462
|
Aws::S3::EndpointParameters.create(
|
@@ -1194,6 +1230,8 @@ module Aws::S3
|
|
1194
1230
|
CopyObject.build(context)
|
1195
1231
|
when :create_bucket
|
1196
1232
|
CreateBucket.build(context)
|
1233
|
+
when :create_bucket_metadata_table_configuration
|
1234
|
+
CreateBucketMetadataTableConfiguration.build(context)
|
1197
1235
|
when :create_multipart_upload
|
1198
1236
|
CreateMultipartUpload.build(context)
|
1199
1237
|
when :create_session
|
@@ -1212,6 +1250,8 @@ module Aws::S3
|
|
1212
1250
|
DeleteBucketInventoryConfiguration.build(context)
|
1213
1251
|
when :delete_bucket_lifecycle
|
1214
1252
|
DeleteBucketLifecycle.build(context)
|
1253
|
+
when :delete_bucket_metadata_table_configuration
|
1254
|
+
DeleteBucketMetadataTableConfiguration.build(context)
|
1215
1255
|
when :delete_bucket_metrics_configuration
|
1216
1256
|
DeleteBucketMetricsConfiguration.build(context)
|
1217
1257
|
when :delete_bucket_ownership_controls
|
@@ -1254,6 +1294,8 @@ module Aws::S3
|
|
1254
1294
|
GetBucketLocation.build(context)
|
1255
1295
|
when :get_bucket_logging
|
1256
1296
|
GetBucketLogging.build(context)
|
1297
|
+
when :get_bucket_metadata_table_configuration
|
1298
|
+
GetBucketMetadataTableConfiguration.build(context)
|
1257
1299
|
when :get_bucket_metrics_configuration
|
1258
1300
|
GetBucketMetricsConfiguration.build(context)
|
1259
1301
|
when :get_bucket_notification
|
data/lib/aws-sdk-s3/errors.rb
CHANGED
@@ -29,12 +29,16 @@ module Aws::S3
|
|
29
29
|
# ## Error Classes
|
30
30
|
# * {BucketAlreadyExists}
|
31
31
|
# * {BucketAlreadyOwnedByYou}
|
32
|
+
# * {EncryptionTypeMismatch}
|
32
33
|
# * {InvalidObjectState}
|
34
|
+
# * {InvalidRequest}
|
35
|
+
# * {InvalidWriteOffset}
|
33
36
|
# * {NoSuchBucket}
|
34
37
|
# * {NoSuchKey}
|
35
38
|
# * {NoSuchUpload}
|
36
39
|
# * {ObjectAlreadyInActiveTierError}
|
37
40
|
# * {ObjectNotInActiveTierError}
|
41
|
+
# * {TooManyParts}
|
38
42
|
#
|
39
43
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
40
44
|
# if they are not defined above.
|
@@ -62,6 +66,16 @@ module Aws::S3
|
|
62
66
|
end
|
63
67
|
end
|
64
68
|
|
69
|
+
class EncryptionTypeMismatch < ServiceError
|
70
|
+
|
71
|
+
# @param [Seahorse::Client::RequestContext] context
|
72
|
+
# @param [String] message
|
73
|
+
# @param [Aws::S3::Types::EncryptionTypeMismatch] data
|
74
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
75
|
+
super(context, message, data)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
65
79
|
class InvalidObjectState < ServiceError
|
66
80
|
|
67
81
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -82,6 +96,26 @@ module Aws::S3
|
|
82
96
|
end
|
83
97
|
end
|
84
98
|
|
99
|
+
class InvalidRequest < ServiceError
|
100
|
+
|
101
|
+
# @param [Seahorse::Client::RequestContext] context
|
102
|
+
# @param [String] message
|
103
|
+
# @param [Aws::S3::Types::InvalidRequest] data
|
104
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
105
|
+
super(context, message, data)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
class InvalidWriteOffset < ServiceError
|
110
|
+
|
111
|
+
# @param [Seahorse::Client::RequestContext] context
|
112
|
+
# @param [String] message
|
113
|
+
# @param [Aws::S3::Types::InvalidWriteOffset] data
|
114
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
115
|
+
super(context, message, data)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
85
119
|
class NoSuchBucket < ServiceError
|
86
120
|
|
87
121
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -132,6 +166,16 @@ module Aws::S3
|
|
132
166
|
end
|
133
167
|
end
|
134
168
|
|
169
|
+
class TooManyParts < ServiceError
|
170
|
+
|
171
|
+
# @param [Seahorse::Client::RequestContext] context
|
172
|
+
# @param [String] message
|
173
|
+
# @param [Aws::S3::Types::TooManyParts] data
|
174
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
175
|
+
super(context, message, data)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
135
179
|
end
|
136
180
|
end
|
137
181
|
|
@@ -239,6 +239,7 @@ module Aws::S3
|
|
239
239
|
# multipart_upload.abort({
|
240
240
|
# request_payer: "requester", # accepts requester
|
241
241
|
# expected_bucket_owner: "AccountId",
|
242
|
+
# if_match_initiated_time: Time.now,
|
242
243
|
# })
|
243
244
|
# @param [Hash] options ({})
|
244
245
|
# @option options [String] :request_payer
|
@@ -261,6 +262,17 @@ module Aws::S3
|
|
261
262
|
# The account ID of the expected bucket owner. If the account ID that
|
262
263
|
# you provide does not match the actual owner of the bucket, the request
|
263
264
|
# fails with the HTTP status code `403 Forbidden` (access denied).
|
265
|
+
# @option options [Time,DateTime,Date,Integer,String] :if_match_initiated_time
|
266
|
+
# If present, this header aborts an in progress multipart upload only if
|
267
|
+
# it was initiated on the provided timestamp. If the initiated timestamp
|
268
|
+
# of the multipart upload does not match the provided value, the
|
269
|
+
# operation returns a `412 Precondition Failed` error. If the initiated
|
270
|
+
# timestamp matches or if the multipart upload doesn’t exist, the
|
271
|
+
# operation returns a `204 Success (No Content)` response.
|
272
|
+
#
|
273
|
+
# <note markdown="1"> This functionality is only supported for directory buckets.
|
274
|
+
#
|
275
|
+
# </note>
|
264
276
|
# @return [Types::AbortMultipartUploadOutput]
|
265
277
|
def abort(options = {})
|
266
278
|
options = options.merge(
|
@@ -295,6 +307,7 @@ module Aws::S3
|
|
295
307
|
# checksum_sha256: "ChecksumSHA256",
|
296
308
|
# request_payer: "requester", # accepts requester
|
297
309
|
# expected_bucket_owner: "AccountId",
|
310
|
+
# if_match: "IfMatch",
|
298
311
|
# if_none_match: "IfNoneMatch",
|
299
312
|
# sse_customer_algorithm: "SSECustomerAlgorithm",
|
300
313
|
# sse_customer_key: "SSECustomerKey",
|
@@ -363,6 +376,26 @@ module Aws::S3
|
|
363
376
|
# The account ID of the expected bucket owner. If the account ID that
|
364
377
|
# you provide does not match the actual owner of the bucket, the request
|
365
378
|
# fails with the HTTP status code `403 Forbidden` (access denied).
|
379
|
+
# @option options [String] :if_match
|
380
|
+
# Uploads the object only if the ETag (entity tag) value provided during
|
381
|
+
# the WRITE operation matches the ETag of the object in S3. If the ETag
|
382
|
+
# values do not match, the operation returns a `412 Precondition Failed`
|
383
|
+
# error.
|
384
|
+
#
|
385
|
+
# If a conflicting operation occurs during the upload S3 returns a `409
|
386
|
+
# ConditionalRequestConflict` response. On a 409 failure you should
|
387
|
+
# fetch the object's ETag, re-initiate the multipart upload with
|
388
|
+
# `CreateMultipartUpload`, and re-upload each part.
|
389
|
+
#
|
390
|
+
# Expects the ETag value as a string.
|
391
|
+
#
|
392
|
+
# For more information about conditional requests, see [RFC 7232][1], or
|
393
|
+
# [Conditional requests][2] in the *Amazon S3 User Guide*.
|
394
|
+
#
|
395
|
+
#
|
396
|
+
#
|
397
|
+
# [1]: https://tools.ietf.org/html/rfc7232
|
398
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html
|
366
399
|
# @option options [String] :if_none_match
|
367
400
|
# Uploads the object only if the object key name does not already exist
|
368
401
|
# in the bucket specified. Otherwise, Amazon S3 returns a `412
|