aws-sdk-s3 1.245.2 → 1.246.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.
@@ -66,6 +66,7 @@ module Aws::S3
66
66
  BucketAlreadyExists = Shapes::StructureShape.new(name: 'BucketAlreadyExists')
67
67
  BucketAlreadyOwnedByYou = Shapes::StructureShape.new(name: 'BucketAlreadyOwnedByYou')
68
68
  BucketCannedACL = Shapes::StringShape.new(name: 'BucketCannedACL')
69
+ BucketDefaultStorageClass = Shapes::StringShape.new(name: 'BucketDefaultStorageClass')
69
70
  BucketInfo = Shapes::StructureShape.new(name: 'BucketInfo')
70
71
  BucketKeyEnabled = Shapes::BooleanShape.new(name: 'BucketKeyEnabled')
71
72
  BucketLifecycleConfiguration = Shapes::StructureShape.new(name: 'BucketLifecycleConfiguration')
@@ -157,6 +158,7 @@ module Aws::S3
157
158
  Days = Shapes::IntegerShape.new(name: 'Days')
158
159
  DaysAfterInitiation = Shapes::IntegerShape.new(name: 'DaysAfterInitiation')
159
160
  DefaultRetention = Shapes::StructureShape.new(name: 'DefaultRetention')
161
+ DefaultStorageClassConfiguration = Shapes::StructureShape.new(name: 'DefaultStorageClassConfiguration', locationName: "DefaultStorageClassConfiguration")
160
162
  Delete = Shapes::StructureShape.new(name: 'Delete')
161
163
  DeleteBucketAnalyticsConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteBucketAnalyticsConfigurationRequest')
162
164
  DeleteBucketCorsRequest = Shapes::StructureShape.new(name: 'DeleteBucketCorsRequest')
@@ -246,6 +248,8 @@ module Aws::S3
246
248
  GetBucketAnalyticsConfigurationRequest = Shapes::StructureShape.new(name: 'GetBucketAnalyticsConfigurationRequest')
247
249
  GetBucketCorsOutput = Shapes::StructureShape.new(name: 'GetBucketCorsOutput')
248
250
  GetBucketCorsRequest = Shapes::StructureShape.new(name: 'GetBucketCorsRequest')
251
+ GetBucketDefaultStorageClassOutput = Shapes::StructureShape.new(name: 'GetBucketDefaultStorageClassOutput')
252
+ GetBucketDefaultStorageClassRequest = Shapes::StructureShape.new(name: 'GetBucketDefaultStorageClassRequest')
249
253
  GetBucketEncryptionOutput = Shapes::StructureShape.new(name: 'GetBucketEncryptionOutput')
250
254
  GetBucketEncryptionRequest = Shapes::StructureShape.new(name: 'GetBucketEncryptionRequest')
251
255
  GetBucketIntelligentTieringConfigurationOutput = Shapes::StructureShape.new(name: 'GetBucketIntelligentTieringConfigurationOutput')
@@ -305,6 +309,8 @@ module Aws::S3
305
309
  GetObjectTaggingRequest = Shapes::StructureShape.new(name: 'GetObjectTaggingRequest')
306
310
  GetObjectTorrentOutput = Shapes::StructureShape.new(name: 'GetObjectTorrentOutput')
307
311
  GetObjectTorrentRequest = Shapes::StructureShape.new(name: 'GetObjectTorrentRequest')
312
+ GetPartOutput = Shapes::StructureShape.new(name: 'GetPartOutput')
313
+ GetPartRequest = Shapes::StructureShape.new(name: 'GetPartRequest')
308
314
  GetPublicAccessBlockOutput = Shapes::StructureShape.new(name: 'GetPublicAccessBlockOutput')
309
315
  GetPublicAccessBlockRequest = Shapes::StructureShape.new(name: 'GetPublicAccessBlockRequest')
310
316
  GlacierJobParameters = Shapes::StructureShape.new(name: 'GlacierJobParameters')
@@ -459,6 +465,7 @@ module Aws::S3
459
465
  MultipartUpload = Shapes::StructureShape.new(name: 'MultipartUpload')
460
466
  MultipartUploadId = Shapes::StringShape.new(name: 'MultipartUploadId')
461
467
  MultipartUploadList = Shapes::ListShape.new(name: 'MultipartUploadList', flattened: true)
468
+ MultipartUploadStatus = Shapes::StringShape.new(name: 'MultipartUploadStatus')
462
469
  NextKeyMarker = Shapes::StringShape.new(name: 'NextKeyMarker')
463
470
  NextMarker = Shapes::StringShape.new(name: 'NextMarker')
464
471
  NextPartNumberMarker = Shapes::IntegerShape.new(name: 'NextPartNumberMarker')
@@ -468,6 +475,7 @@ module Aws::S3
468
475
  NoSuchAnnotation = Shapes::StructureShape.new(name: 'NoSuchAnnotation')
469
476
  NoSuchBucket = Shapes::StructureShape.new(name: 'NoSuchBucket')
470
477
  NoSuchKey = Shapes::StructureShape.new(name: 'NoSuchKey')
478
+ NoSuchPart = Shapes::StructureShape.new(name: 'NoSuchPart')
471
479
  NoSuchUpload = Shapes::StructureShape.new(name: 'NoSuchUpload')
472
480
  NonEmptyKmsKeyArnString = Shapes::StringShape.new(name: 'NonEmptyKmsKeyArnString')
473
481
  NoncurrentVersionExpiration = Shapes::StructureShape.new(name: 'NoncurrentVersionExpiration')
@@ -546,6 +554,7 @@ module Aws::S3
546
554
  PutBucketAclRequest = Shapes::StructureShape.new(name: 'PutBucketAclRequest')
547
555
  PutBucketAnalyticsConfigurationRequest = Shapes::StructureShape.new(name: 'PutBucketAnalyticsConfigurationRequest')
548
556
  PutBucketCorsRequest = Shapes::StructureShape.new(name: 'PutBucketCorsRequest')
557
+ PutBucketDefaultStorageClassRequest = Shapes::StructureShape.new(name: 'PutBucketDefaultStorageClassRequest')
549
558
  PutBucketEncryptionRequest = Shapes::StructureShape.new(name: 'PutBucketEncryptionRequest')
550
559
  PutBucketIntelligentTieringConfigurationRequest = Shapes::StructureShape.new(name: 'PutBucketIntelligentTieringConfigurationRequest')
551
560
  PutBucketInventoryConfigurationRequest = Shapes::StructureShape.new(name: 'PutBucketInventoryConfigurationRequest')
@@ -1202,6 +1211,9 @@ module Aws::S3
1202
1211
  DefaultRetention.add_member(:default_event_hold, Shapes::ShapeRef.new(shape: EventHoldDuration, location_name: "DefaultEventHold"))
1203
1212
  DefaultRetention.struct_class = Types::DefaultRetention
1204
1213
 
1214
+ DefaultStorageClassConfiguration.add_member(:default_storage_class, Shapes::ShapeRef.new(shape: BucketDefaultStorageClass, required: true, location_name: "DefaultStorageClass"))
1215
+ DefaultStorageClassConfiguration.struct_class = Types::DefaultStorageClassConfiguration
1216
+
1205
1217
  Delete.add_member(:objects, Shapes::ShapeRef.new(shape: ObjectIdentifierList, required: true, location_name: "Object"))
1206
1218
  Delete.add_member(:quiet, Shapes::ShapeRef.new(shape: Quiet, location_name: "Quiet"))
1207
1219
  Delete.struct_class = Types::Delete
@@ -1455,6 +1467,15 @@ module Aws::S3
1455
1467
  GetBucketCorsRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
1456
1468
  GetBucketCorsRequest.struct_class = Types::GetBucketCorsRequest
1457
1469
 
1470
+ GetBucketDefaultStorageClassOutput.add_member(:default_storage_class_configuration, Shapes::ShapeRef.new(shape: DefaultStorageClassConfiguration, location_name: "DefaultStorageClassConfiguration"))
1471
+ GetBucketDefaultStorageClassOutput.struct_class = Types::GetBucketDefaultStorageClassOutput
1472
+ GetBucketDefaultStorageClassOutput[:payload] = :default_storage_class_configuration
1473
+ GetBucketDefaultStorageClassOutput[:payload_member] = GetBucketDefaultStorageClassOutput.member(:default_storage_class_configuration)
1474
+
1475
+ GetBucketDefaultStorageClassRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam" => {"name" => "Bucket"}}))
1476
+ GetBucketDefaultStorageClassRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
1477
+ GetBucketDefaultStorageClassRequest.struct_class = Types::GetBucketDefaultStorageClassRequest
1478
+
1458
1479
  GetBucketEncryptionOutput.add_member(:server_side_encryption_configuration, Shapes::ShapeRef.new(shape: ServerSideEncryptionConfiguration, location_name: "ServerSideEncryptionConfiguration"))
1459
1480
  GetBucketEncryptionOutput.struct_class = Types::GetBucketEncryptionOutput
1460
1481
  GetBucketEncryptionOutput[:payload] = :server_side_encryption_configuration
@@ -1827,6 +1848,42 @@ module Aws::S3
1827
1848
  GetObjectTorrentRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
1828
1849
  GetObjectTorrentRequest.struct_class = Types::GetObjectTorrentRequest
1829
1850
 
1851
+ GetPartOutput.add_member(:body, Shapes::ShapeRef.new(shape: Body, location_name: "Body", metadata: {"streaming" => true}))
1852
+ GetPartOutput.add_member(:accept_ranges, Shapes::ShapeRef.new(shape: AcceptRanges, location: "header", location_name: "accept-ranges"))
1853
+ GetPartOutput.add_member(:content_length, Shapes::ShapeRef.new(shape: ContentLength, location: "header", location_name: "Content-Length"))
1854
+ GetPartOutput.add_member(:etag, Shapes::ShapeRef.new(shape: ETag, location: "header", location_name: "ETag"))
1855
+ GetPartOutput.add_member(:multipart_upload_status, Shapes::ShapeRef.new(shape: MultipartUploadStatus, location: "header", location_name: "x-amz-multipart-upload-status"))
1856
+ GetPartOutput.add_member(:checksum_crc32, Shapes::ShapeRef.new(shape: ChecksumCRC32, location: "header", location_name: "x-amz-checksum-crc32"))
1857
+ GetPartOutput.add_member(:checksum_crc32c, Shapes::ShapeRef.new(shape: ChecksumCRC32C, location: "header", location_name: "x-amz-checksum-crc32c"))
1858
+ GetPartOutput.add_member(:checksum_crc64nvme, Shapes::ShapeRef.new(shape: ChecksumCRC64NVME, location: "header", location_name: "x-amz-checksum-crc64nvme"))
1859
+ GetPartOutput.add_member(:checksum_sha1, Shapes::ShapeRef.new(shape: ChecksumSHA1, location: "header", location_name: "x-amz-checksum-sha1"))
1860
+ GetPartOutput.add_member(:checksum_sha256, Shapes::ShapeRef.new(shape: ChecksumSHA256, location: "header", location_name: "x-amz-checksum-sha256"))
1861
+ GetPartOutput.add_member(:checksum_sha512, Shapes::ShapeRef.new(shape: ChecksumSHA512, location: "header", location_name: "x-amz-checksum-sha512"))
1862
+ GetPartOutput.add_member(:checksum_md5, Shapes::ShapeRef.new(shape: ChecksumMD5, location: "header", location_name: "x-amz-checksum-md5"))
1863
+ GetPartOutput.add_member(:checksum_xxhash64, Shapes::ShapeRef.new(shape: ChecksumXXHASH64, location: "header", location_name: "x-amz-checksum-xxhash64"))
1864
+ GetPartOutput.add_member(:checksum_xxhash3, Shapes::ShapeRef.new(shape: ChecksumXXHASH3, location: "header", location_name: "x-amz-checksum-xxhash3"))
1865
+ GetPartOutput.add_member(:checksum_xxhash128, Shapes::ShapeRef.new(shape: ChecksumXXHASH128, location: "header", location_name: "x-amz-checksum-xxhash128"))
1866
+ GetPartOutput.add_member(:version_id, Shapes::ShapeRef.new(shape: ObjectVersionId, location: "header", location_name: "x-amz-version-id"))
1867
+ GetPartOutput.add_member(:content_range, Shapes::ShapeRef.new(shape: ContentRange, location: "header", location_name: "Content-Range"))
1868
+ GetPartOutput.add_member(:server_side_encryption, Shapes::ShapeRef.new(shape: ServerSideEncryption, location: "header", location_name: "x-amz-server-side-encryption"))
1869
+ GetPartOutput.add_member(:ssekms_key_id, Shapes::ShapeRef.new(shape: SSEKMSKeyId, location: "header", location_name: "x-amz-server-side-encryption-aws-kms-key-id"))
1870
+ GetPartOutput.add_member(:bucket_key_enabled, Shapes::ShapeRef.new(shape: BucketKeyEnabled, location: "header", location_name: "x-amz-server-side-encryption-bucket-key-enabled"))
1871
+ GetPartOutput.add_member(:storage_class, Shapes::ShapeRef.new(shape: StorageClass, location: "header", location_name: "x-amz-storage-class"))
1872
+ GetPartOutput.add_member(:request_charged, Shapes::ShapeRef.new(shape: RequestCharged, location: "header", location_name: "x-amz-request-charged"))
1873
+ GetPartOutput.struct_class = Types::GetPartOutput
1874
+ GetPartOutput[:payload] = :body
1875
+ GetPartOutput[:payload_member] = GetPartOutput.member(:body)
1876
+
1877
+ GetPartRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam" => {"name" => "Bucket"}}))
1878
+ GetPartRequest.add_member(:key, Shapes::ShapeRef.new(shape: ObjectKey, required: true, location: "uri", location_name: "Key", metadata: {"contextParam" => {"name" => "Key"}}))
1879
+ GetPartRequest.add_member(:range, Shapes::ShapeRef.new(shape: Range, location: "header", location_name: "Range"))
1880
+ GetPartRequest.add_member(:request_payer, Shapes::ShapeRef.new(shape: RequestPayer, location: "header", location_name: "x-amz-request-payer"))
1881
+ GetPartRequest.add_member(:upload_id, Shapes::ShapeRef.new(shape: MultipartUploadId, required: true, location: "querystring", location_name: "uploadId"))
1882
+ GetPartRequest.add_member(:part_number, Shapes::ShapeRef.new(shape: PartNumber, required: true, location: "querystring", location_name: "partNumber"))
1883
+ GetPartRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
1884
+ GetPartRequest.add_member(:checksum_mode, Shapes::ShapeRef.new(shape: ChecksumMode, location: "header", location_name: "x-amz-checksum-mode"))
1885
+ GetPartRequest.struct_class = Types::GetPartRequest
1886
+
1830
1887
  GetPublicAccessBlockOutput.add_member(:public_access_block_configuration, Shapes::ShapeRef.new(shape: PublicAccessBlockConfiguration, location_name: "PublicAccessBlockConfiguration"))
1831
1888
  GetPublicAccessBlockOutput.struct_class = Types::GetPublicAccessBlockOutput
1832
1889
  GetPublicAccessBlockOutput[:payload] = :public_access_block_configuration
@@ -2390,6 +2447,8 @@ module Aws::S3
2390
2447
 
2391
2448
  NoSuchKey.struct_class = Types::NoSuchKey
2392
2449
 
2450
+ NoSuchPart.struct_class = Types::NoSuchPart
2451
+
2393
2452
  NoSuchUpload.struct_class = Types::NoSuchUpload
2394
2453
 
2395
2454
  NoncurrentVersionExpiration.add_member(:noncurrent_days, Shapes::ShapeRef.new(shape: Days, location_name: "NoncurrentDays"))
@@ -2608,6 +2667,15 @@ module Aws::S3
2608
2667
  PutBucketCorsRequest[:payload] = :cors_configuration
2609
2668
  PutBucketCorsRequest[:payload_member] = PutBucketCorsRequest.member(:cors_configuration)
2610
2669
 
2670
+ PutBucketDefaultStorageClassRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam" => {"name" => "Bucket"}}))
2671
+ PutBucketDefaultStorageClassRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
2672
+ PutBucketDefaultStorageClassRequest.add_member(:checksum_algorithm, Shapes::ShapeRef.new(shape: ChecksumAlgorithm, location: "header", location_name: "x-amz-sdk-checksum-algorithm"))
2673
+ PutBucketDefaultStorageClassRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
2674
+ PutBucketDefaultStorageClassRequest.add_member(:default_storage_class_configuration, Shapes::ShapeRef.new(shape: DefaultStorageClassConfiguration, required: true, location_name: "DefaultStorageClassConfiguration", metadata: {"xmlNamespace" => {"uri" => "http://s3.amazonaws.com/doc/2006-03-01/"}}))
2675
+ PutBucketDefaultStorageClassRequest.struct_class = Types::PutBucketDefaultStorageClassRequest
2676
+ PutBucketDefaultStorageClassRequest[:payload] = :default_storage_class_configuration
2677
+ PutBucketDefaultStorageClassRequest[:payload_member] = PutBucketDefaultStorageClassRequest.member(:default_storage_class_configuration)
2678
+
2611
2679
  PutBucketEncryptionRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam" => {"name" => "Bucket"}}))
2612
2680
  PutBucketEncryptionRequest.add_member(:content_md5, Shapes::ShapeRef.new(shape: ContentMD5, location: "header", location_name: "Content-MD5"))
2613
2681
  PutBucketEncryptionRequest.add_member(:checksum_algorithm, Shapes::ShapeRef.new(shape: ChecksumAlgorithm, location: "header", location_name: "x-amz-sdk-checksum-algorithm"))
@@ -3778,6 +3846,14 @@ module Aws::S3
3778
3846
  o.output = Shapes::ShapeRef.new(shape: GetBucketCorsOutput)
3779
3847
  end)
3780
3848
 
3849
+ api.add_operation(:get_bucket_default_storage_class, Seahorse::Model::Operation.new.tap do |o|
3850
+ o.name = "GetBucketDefaultStorageClass"
3851
+ o.http_method = "GET"
3852
+ o.http_request_uri = "/?default-storage-class"
3853
+ o.input = Shapes::ShapeRef.new(shape: GetBucketDefaultStorageClassRequest)
3854
+ o.output = Shapes::ShapeRef.new(shape: GetBucketDefaultStorageClassOutput)
3855
+ end)
3856
+
3781
3857
  api.add_operation(:get_bucket_encryption, Seahorse::Model::Operation.new.tap do |o|
3782
3858
  o.name = "GetBucketEncryption"
3783
3859
  o.http_method = "GET"
@@ -4035,6 +4111,26 @@ module Aws::S3
4035
4111
  o.output = Shapes::ShapeRef.new(shape: GetObjectTorrentOutput)
4036
4112
  end)
4037
4113
 
4114
+ api.add_operation(:get_part, Seahorse::Model::Operation.new.tap do |o|
4115
+ o.name = "GetPart"
4116
+ o.http_method = "GET"
4117
+ o.http_request_uri = "/{Key+}?part"
4118
+ o.http_checksum = {
4119
+ "requestValidationModeMember" => "checksum_mode",
4120
+ "responseAlgorithms" => ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1", "SHA512", "MD5", "XXHASH64", "XXHASH3", "XXHASH128"],
4121
+ }
4122
+ o.http_checksum = {
4123
+ "requestValidationModeMember" => "checksum_mode",
4124
+ "responseAlgorithms" => ["CRC64NVME", "CRC32", "CRC32C", "SHA256", "SHA1", "SHA512", "MD5", "XXHASH64", "XXHASH3", "XXHASH128"],
4125
+ }
4126
+ o.input = Shapes::ShapeRef.new(shape: GetPartRequest)
4127
+ o.output = Shapes::ShapeRef.new(shape: GetPartOutput)
4128
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchBucket)
4129
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchUpload)
4130
+ o.errors << Shapes::ShapeRef.new(shape: NoSuchPart)
4131
+ o.errors << Shapes::ShapeRef.new(shape: InvalidObjectState)
4132
+ end)
4133
+
4038
4134
  api.add_operation(:get_public_access_block, Seahorse::Model::Operation.new.tap do |o|
4039
4135
  o.name = "GetPublicAccessBlock"
4040
4136
  o.http_method = "GET"
@@ -4288,6 +4384,22 @@ module Aws::S3
4288
4384
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
4289
4385
  end)
4290
4386
 
4387
+ api.add_operation(:put_bucket_default_storage_class, Seahorse::Model::Operation.new.tap do |o|
4388
+ o.name = "PutBucketDefaultStorageClass"
4389
+ o.http_method = "PUT"
4390
+ o.http_request_uri = "/?default-storage-class"
4391
+ o.http_checksum = {
4392
+ "requestAlgorithmMember" => "checksum_algorithm",
4393
+ "requestChecksumRequired" => true,
4394
+ }
4395
+ o.http_checksum = {
4396
+ "requestAlgorithmMember" => "checksum_algorithm",
4397
+ "requestChecksumRequired" => true,
4398
+ }
4399
+ o.input = Shapes::ShapeRef.new(shape: PutBucketDefaultStorageClassRequest)
4400
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
4401
+ end)
4402
+
4291
4403
  api.add_operation(:put_bucket_encryption, Seahorse::Model::Operation.new.tap do |o|
4292
4404
  o.name = "PutBucketEncryption"
4293
4405
  o.http_method = "PUT"
@@ -407,6 +407,18 @@ module Aws::S3
407
407
  end
408
408
  end
409
409
 
410
+ class GetBucketDefaultStorageClass
411
+ def self.build(context)
412
+ Aws::S3::EndpointParameters.create(
413
+ context.config,
414
+ bucket: context.params[:bucket],
415
+ use_dual_stack: context[:use_dualstack_endpoint],
416
+ accelerate: context[:use_accelerate_endpoint],
417
+ use_s3_express_control_endpoint: true,
418
+ )
419
+ end
420
+ end
421
+
410
422
  class GetBucketEncryption
411
423
  def self.build(context)
412
424
  Aws::S3::EndpointParameters.create(
@@ -749,6 +761,18 @@ module Aws::S3
749
761
  end
750
762
  end
751
763
 
764
+ class GetPart
765
+ def self.build(context)
766
+ Aws::S3::EndpointParameters.create(
767
+ context.config,
768
+ bucket: context.params[:bucket],
769
+ use_dual_stack: context[:use_dualstack_endpoint],
770
+ accelerate: context[:use_accelerate_endpoint],
771
+ key: context.params[:key],
772
+ )
773
+ end
774
+ end
775
+
752
776
  class GetPublicAccessBlock
753
777
  def self.build(context)
754
778
  Aws::S3::EndpointParameters.create(
@@ -983,6 +1007,18 @@ module Aws::S3
983
1007
  end
984
1008
  end
985
1009
 
1010
+ class PutBucketDefaultStorageClass
1011
+ def self.build(context)
1012
+ Aws::S3::EndpointParameters.create(
1013
+ context.config,
1014
+ bucket: context.params[:bucket],
1015
+ use_dual_stack: context[:use_dualstack_endpoint],
1016
+ accelerate: context[:use_accelerate_endpoint],
1017
+ use_s3_express_control_endpoint: true,
1018
+ )
1019
+ end
1020
+ end
1021
+
986
1022
  class PutBucketEncryption
987
1023
  def self.build(context)
988
1024
  Aws::S3::EndpointParameters.create(
@@ -1452,6 +1488,8 @@ module Aws::S3
1452
1488
  GetBucketAnalyticsConfiguration.build(context)
1453
1489
  when :get_bucket_cors
1454
1490
  GetBucketCors.build(context)
1491
+ when :get_bucket_default_storage_class
1492
+ GetBucketDefaultStorageClass.build(context)
1455
1493
  when :get_bucket_encryption
1456
1494
  GetBucketEncryption.build(context)
1457
1495
  when :get_bucket_intelligent_tiering_configuration
@@ -1510,6 +1548,8 @@ module Aws::S3
1510
1548
  GetObjectTagging.build(context)
1511
1549
  when :get_object_torrent
1512
1550
  GetObjectTorrent.build(context)
1551
+ when :get_part
1552
+ GetPart.build(context)
1513
1553
  when :get_public_access_block
1514
1554
  GetPublicAccessBlock.build(context)
1515
1555
  when :head_bucket
@@ -1550,6 +1590,8 @@ module Aws::S3
1550
1590
  PutBucketAnalyticsConfiguration.build(context)
1551
1591
  when :put_bucket_cors
1552
1592
  PutBucketCors.build(context)
1593
+ when :put_bucket_default_storage_class
1594
+ PutBucketDefaultStorageClass.build(context)
1553
1595
  when :put_bucket_encryption
1554
1596
  PutBucketEncryption.build(context)
1555
1597
  when :put_bucket_intelligent_tiering_configuration
@@ -42,6 +42,7 @@ module Aws::S3
42
42
  # * {NoSuchAnnotation}
43
43
  # * {NoSuchBucket}
44
44
  # * {NoSuchKey}
45
+ # * {NoSuchPart}
45
46
  # * {NoSuchUpload}
46
47
  # * {ObjectAlreadyInActiveTierError}
47
48
  # * {ObjectNotInActiveTierError}
@@ -214,6 +215,16 @@ module Aws::S3
214
215
  end
215
216
  end
216
217
 
218
+ class NoSuchPart < ServiceError
219
+
220
+ # @param [Seahorse::Client::RequestContext] context
221
+ # @param [String] message
222
+ # @param [Aws::S3::Types::NoSuchPart] data
223
+ def initialize(context, message, data = Aws::EmptyStructure.new)
224
+ super(context, message, data)
225
+ end
226
+ end
227
+
217
228
  class NoSuchUpload < ServiceError
218
229
 
219
230
  # @param [Seahorse::Client::RequestContext] context
@@ -1333,11 +1333,16 @@ module Aws::S3
1333
1333
  # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk
1334
1334
  # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
1335
1335
  # @option options [String] :storage_class
1336
- # If the `x-amz-storage-class` header is not used, the copied object
1337
- # will be stored in the `STANDARD` Storage Class by default. The
1338
- # `STANDARD` storage class provides high durability and high
1339
- # availability. Depending on performance needs, you can specify a
1340
- # different Storage Class.
1336
+ # If you don't specify a storage class, the copied object is stored in
1337
+ # the destination bucket's default storage class, which is `STANDARD`
1338
+ # unless you set a different default. The copy uses the destination
1339
+ # bucket's default storage class and does not inherit the storage class
1340
+ # of the source object. For more information, see [Setting the default
1341
+ # storage class for a bucket][1] in the *Amazon S3 User Guide*. A
1342
+ # storage class that you specify on the request takes precedence over
1343
+ # the bucket default. The `STANDARD` storage class provides high
1344
+ # durability and high availability. Depending on performance needs, you
1345
+ # can specify a different Storage Class.
1341
1346
  #
1342
1347
  # <note markdown="1"> * <b>Directory buckets </b> - Directory buckets only support
1343
1348
  # `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in
@@ -1354,7 +1359,7 @@ module Aws::S3
1354
1359
  # You can use the `CopyObject` action to change the storage class of an
1355
1360
  # object that is already stored in Amazon S3 by using the
1356
1361
  # `x-amz-storage-class` header. For more information, see [Storage
1357
- # Classes][1] in the *Amazon S3 User Guide*.
1362
+ # Classes][2] in the *Amazon S3 User Guide*.
1358
1363
  #
1359
1364
  # Before using an object as a source object for the copy operation, you
1360
1365
  # must restore a copy of it if it meets any of the following conditions:
@@ -1363,18 +1368,19 @@ module Aws::S3
1363
1368
  # `DEEP_ARCHIVE`.
1364
1369
  #
1365
1370
  # * The storage class of the source object is `INTELLIGENT_TIERING` and
1366
- # it's [S3 Intelligent-Tiering access tier][2] is `Archive Access` or
1371
+ # it's [S3 Intelligent-Tiering access tier][3] is `Archive Access` or
1367
1372
  # `Deep Archive Access`.
1368
1373
  #
1369
- # For more information, see [RestoreObject][3] and [Copying Objects][4]
1374
+ # For more information, see [RestoreObject][4] and [Copying Objects][5]
1370
1375
  # in the *Amazon S3 User Guide*.
1371
1376
  #
1372
1377
  #
1373
1378
  #
1374
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
1375
- # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering-overview.html#intel-tiering-tier-definition
1376
- # [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
1377
- # [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html
1379
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
1380
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
1381
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering-overview.html#intel-tiering-tier-definition
1382
+ # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
1383
+ # [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html
1378
1384
  # @option options [String] :website_redirect_location
1379
1385
  # If the destination bucket is configured as a website, redirects
1380
1386
  # requests for this object copy to another object in the same bucket or
@@ -2420,11 +2426,15 @@ module Aws::S3
2420
2426
  # [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
2421
2427
  # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
2422
2428
  # @option options [String] :storage_class
2423
- # By default, Amazon S3 uses the STANDARD Storage Class to store newly
2424
- # created objects. The STANDARD storage class provides high durability
2425
- # and high availability. Depending on performance needs, you can specify
2426
- # a different Storage Class. For more information, see [Storage
2427
- # Classes][1] in the *Amazon S3 User Guide*.
2429
+ # If you don't specify a storage class, Amazon S3 uses the bucket's
2430
+ # default storage class, which is `STANDARD` unless you set a different
2431
+ # default. For more information, see [Setting the default storage class
2432
+ # for a bucket][1] in the *Amazon S3 User Guide*. A storage class that
2433
+ # you specify on the request takes precedence over the bucket default.
2434
+ # The STANDARD storage class provides high durability and high
2435
+ # availability. Depending on performance needs, you can specify a
2436
+ # different Storage Class. For more information, see [Storage
2437
+ # Classes][2] in the *Amazon S3 User Guide*.
2428
2438
  #
2429
2439
  # <note markdown="1"> * Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One
2430
2440
  # Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3
@@ -2436,7 +2446,8 @@ module Aws::S3
2436
2446
  #
2437
2447
  #
2438
2448
  #
2439
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
2449
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
2450
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
2440
2451
  # @option options [String] :website_redirect_location
2441
2452
  # If the bucket is configured as a website, redirects requests for this
2442
2453
  # object to another object in the same bucket or to an external URL.
@@ -3116,11 +3127,15 @@ module Aws::S3
3116
3127
  # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
3117
3128
  # [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
3118
3129
  # @option options [String] :storage_class
3119
- # By default, Amazon S3 uses the STANDARD Storage Class to store newly
3120
- # created objects. The STANDARD storage class provides high durability
3121
- # and high availability. Depending on performance needs, you can specify
3122
- # a different Storage Class. For more information, see [Storage
3123
- # Classes][1] in the *Amazon S3 User Guide*.
3130
+ # If you don't specify a storage class, Amazon S3 uses the bucket's
3131
+ # default storage class, which is `STANDARD` unless you set a different
3132
+ # default. For more information, see [Setting the default storage class
3133
+ # for a bucket][1] in the *Amazon S3 User Guide*. A storage class that
3134
+ # you specify on the request takes precedence over the bucket default.
3135
+ # The STANDARD storage class provides high durability and high
3136
+ # availability. Depending on performance needs, you can specify a
3137
+ # different Storage Class. For more information, see [Storage
3138
+ # Classes][2] in the *Amazon S3 User Guide*.
3124
3139
  #
3125
3140
  # <note markdown="1"> * Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One
3126
3141
  # Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3
@@ -3132,7 +3147,8 @@ module Aws::S3
3132
3147
  #
3133
3148
  #
3134
3149
  #
3135
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
3150
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
3151
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
3136
3152
  # @option options [String] :website_redirect_location
3137
3153
  # If the bucket is configured as a website, redirects requests for this
3138
3154
  # object to another object in the same bucket or to an external URL.
@@ -837,11 +837,16 @@ module Aws::S3
837
837
  # [4]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk
838
838
  # [5]: https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk
839
839
  # @option options [String] :storage_class
840
- # If the `x-amz-storage-class` header is not used, the copied object
841
- # will be stored in the `STANDARD` Storage Class by default. The
842
- # `STANDARD` storage class provides high durability and high
843
- # availability. Depending on performance needs, you can specify a
844
- # different Storage Class.
840
+ # If you don't specify a storage class, the copied object is stored in
841
+ # the destination bucket's default storage class, which is `STANDARD`
842
+ # unless you set a different default. The copy uses the destination
843
+ # bucket's default storage class and does not inherit the storage class
844
+ # of the source object. For more information, see [Setting the default
845
+ # storage class for a bucket][1] in the *Amazon S3 User Guide*. A
846
+ # storage class that you specify on the request takes precedence over
847
+ # the bucket default. The `STANDARD` storage class provides high
848
+ # durability and high availability. Depending on performance needs, you
849
+ # can specify a different Storage Class.
845
850
  #
846
851
  # <note markdown="1"> * <b>Directory buckets </b> - Directory buckets only support
847
852
  # `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in
@@ -858,7 +863,7 @@ module Aws::S3
858
863
  # You can use the `CopyObject` action to change the storage class of an
859
864
  # object that is already stored in Amazon S3 by using the
860
865
  # `x-amz-storage-class` header. For more information, see [Storage
861
- # Classes][1] in the *Amazon S3 User Guide*.
866
+ # Classes][2] in the *Amazon S3 User Guide*.
862
867
  #
863
868
  # Before using an object as a source object for the copy operation, you
864
869
  # must restore a copy of it if it meets any of the following conditions:
@@ -867,18 +872,19 @@ module Aws::S3
867
872
  # `DEEP_ARCHIVE`.
868
873
  #
869
874
  # * The storage class of the source object is `INTELLIGENT_TIERING` and
870
- # it's [S3 Intelligent-Tiering access tier][2] is `Archive Access` or
875
+ # it's [S3 Intelligent-Tiering access tier][3] is `Archive Access` or
871
876
  # `Deep Archive Access`.
872
877
  #
873
- # For more information, see [RestoreObject][3] and [Copying Objects][4]
878
+ # For more information, see [RestoreObject][4] and [Copying Objects][5]
874
879
  # in the *Amazon S3 User Guide*.
875
880
  #
876
881
  #
877
882
  #
878
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
879
- # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering-overview.html#intel-tiering-tier-definition
880
- # [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
881
- # [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html
883
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
884
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
885
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering-overview.html#intel-tiering-tier-definition
886
+ # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
887
+ # [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html
882
888
  # @option options [String] :website_redirect_location
883
889
  # If the destination bucket is configured as a website, redirects
884
890
  # requests for this object copy to another object in the same bucket or
@@ -1924,11 +1930,15 @@ module Aws::S3
1924
1930
  # [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
1925
1931
  # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
1926
1932
  # @option options [String] :storage_class
1927
- # By default, Amazon S3 uses the STANDARD Storage Class to store newly
1928
- # created objects. The STANDARD storage class provides high durability
1929
- # and high availability. Depending on performance needs, you can specify
1930
- # a different Storage Class. For more information, see [Storage
1931
- # Classes][1] in the *Amazon S3 User Guide*.
1933
+ # If you don't specify a storage class, Amazon S3 uses the bucket's
1934
+ # default storage class, which is `STANDARD` unless you set a different
1935
+ # default. For more information, see [Setting the default storage class
1936
+ # for a bucket][1] in the *Amazon S3 User Guide*. A storage class that
1937
+ # you specify on the request takes precedence over the bucket default.
1938
+ # The STANDARD storage class provides high durability and high
1939
+ # availability. Depending on performance needs, you can specify a
1940
+ # different Storage Class. For more information, see [Storage
1941
+ # Classes][2] in the *Amazon S3 User Guide*.
1932
1942
  #
1933
1943
  # <note markdown="1"> * Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One
1934
1944
  # Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3
@@ -1940,7 +1950,8 @@ module Aws::S3
1940
1950
  #
1941
1951
  #
1942
1952
  #
1943
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
1953
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
1954
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
1944
1955
  # @option options [String] :website_redirect_location
1945
1956
  # If the bucket is configured as a website, redirects requests for this
1946
1957
  # object to another object in the same bucket or to an external URL.
@@ -2620,11 +2631,15 @@ module Aws::S3
2620
2631
  # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
2621
2632
  # [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
2622
2633
  # @option options [String] :storage_class
2623
- # By default, Amazon S3 uses the STANDARD Storage Class to store newly
2624
- # created objects. The STANDARD storage class provides high durability
2625
- # and high availability. Depending on performance needs, you can specify
2626
- # a different Storage Class. For more information, see [Storage
2627
- # Classes][1] in the *Amazon S3 User Guide*.
2634
+ # If you don't specify a storage class, Amazon S3 uses the bucket's
2635
+ # default storage class, which is `STANDARD` unless you set a different
2636
+ # default. For more information, see [Setting the default storage class
2637
+ # for a bucket][1] in the *Amazon S3 User Guide*. A storage class that
2638
+ # you specify on the request takes precedence over the bucket default.
2639
+ # The STANDARD storage class provides high durability and high
2640
+ # availability. Depending on performance needs, you can specify a
2641
+ # different Storage Class. For more information, see [Storage
2642
+ # Classes][2] in the *Amazon S3 User Guide*.
2628
2643
  #
2629
2644
  # <note markdown="1"> * Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express One
2630
2645
  # Zone storage class) in Availability Zones and `ONEZONE_IA` (the S3
@@ -2636,7 +2651,8 @@ module Aws::S3
2636
2651
  #
2637
2652
  #
2638
2653
  #
2639
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
2654
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
2655
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
2640
2656
  # @option options [String] :website_redirect_location
2641
2657
  # If the bucket is configured as a website, redirects requests for this
2642
2658
  # object to another object in the same bucket or to an external URL.