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.
@@ -2664,11 +2664,16 @@ module Aws::S3
2664
2664
  # @return [String]
2665
2665
  #
2666
2666
  # @!attribute [rw] storage_class
2667
- # If the `x-amz-storage-class` header is not used, the copied object
2668
- # will be stored in the `STANDARD` Storage Class by default. The
2669
- # `STANDARD` storage class provides high durability and high
2670
- # availability. Depending on performance needs, you can specify a
2671
- # different Storage Class.
2667
+ # If you don't specify a storage class, the copied object is stored
2668
+ # in the destination bucket's default storage class, which is
2669
+ # `STANDARD` unless you set a different default. The copy uses the
2670
+ # destination bucket's default storage class and does not inherit the
2671
+ # storage class of the source object. For more information, see
2672
+ # [Setting the default storage class for a bucket][1] in the *Amazon
2673
+ # S3 User Guide*. A storage class that you specify on the request
2674
+ # takes precedence over the bucket default. The `STANDARD` storage
2675
+ # class provides high durability and high availability. Depending on
2676
+ # performance needs, you can specify a different Storage Class.
2672
2677
  #
2673
2678
  # <note markdown="1"> * <b>Directory buckets </b> - Directory buckets only support
2674
2679
  # `EXPRESS_ONEZONE` (the S3 Express One Zone storage class) in
@@ -2685,7 +2690,7 @@ module Aws::S3
2685
2690
  # You can use the `CopyObject` action to change the storage class of
2686
2691
  # an object that is already stored in Amazon S3 by using the
2687
2692
  # `x-amz-storage-class` header. For more information, see [Storage
2688
- # Classes][1] in the *Amazon S3 User Guide*.
2693
+ # Classes][2] in the *Amazon S3 User Guide*.
2689
2694
  #
2690
2695
  # Before using an object as a source object for the copy operation,
2691
2696
  # you must restore a copy of it if it meets any of the following
@@ -2695,18 +2700,19 @@ module Aws::S3
2695
2700
  # `DEEP_ARCHIVE`.
2696
2701
  #
2697
2702
  # * The storage class of the source object is `INTELLIGENT_TIERING`
2698
- # and it's [S3 Intelligent-Tiering access tier][2] is `Archive
2703
+ # and it's [S3 Intelligent-Tiering access tier][3] is `Archive
2699
2704
  # Access` or `Deep Archive Access`.
2700
2705
  #
2701
- # For more information, see [RestoreObject][3] and [Copying
2702
- # Objects][4] in the *Amazon S3 User Guide*.
2706
+ # For more information, see [RestoreObject][4] and [Copying
2707
+ # Objects][5] in the *Amazon S3 User Guide*.
2703
2708
  #
2704
2709
  #
2705
2710
  #
2706
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
2707
- # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering-overview.html#intel-tiering-tier-definition
2708
- # [3]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
2709
- # [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html
2711
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
2712
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
2713
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intelligent-tiering-overview.html#intel-tiering-tier-definition
2714
+ # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
2715
+ # [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html
2710
2716
  # @return [String]
2711
2717
  #
2712
2718
  # @!attribute [rw] website_redirect_location
@@ -4328,11 +4334,15 @@ module Aws::S3
4328
4334
  # @return [String]
4329
4335
  #
4330
4336
  # @!attribute [rw] storage_class
4331
- # By default, Amazon S3 uses the STANDARD Storage Class to store newly
4332
- # created objects. The STANDARD storage class provides high durability
4333
- # and high availability. Depending on performance needs, you can
4334
- # specify a different Storage Class. For more information, see
4335
- # [Storage Classes][1] in the *Amazon S3 User Guide*.
4337
+ # If you don't specify a storage class, Amazon S3 uses the bucket's
4338
+ # default storage class, which is `STANDARD` unless you set a
4339
+ # different default. For more information, see [Setting the default
4340
+ # storage class for a bucket][1] in the *Amazon S3 User Guide*. A
4341
+ # storage class that you specify on the request takes precedence over
4342
+ # the bucket default. The STANDARD storage class provides high
4343
+ # durability and high availability. Depending on performance needs,
4344
+ # you can specify a different Storage Class. For more information, see
4345
+ # [Storage Classes][2] in the *Amazon S3 User Guide*.
4336
4346
  #
4337
4347
  # <note markdown="1"> * Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express
4338
4348
  # One Zone storage class) in Availability Zones and `ONEZONE_IA`
@@ -4345,7 +4355,8 @@ module Aws::S3
4345
4355
  #
4346
4356
  #
4347
4357
  #
4348
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
4358
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
4359
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
4349
4360
  # @return [String]
4350
4361
  #
4351
4362
  # @!attribute [rw] website_redirect_location
@@ -4827,6 +4838,30 @@ module Aws::S3
4827
4838
  include Aws::Structure
4828
4839
  end
4829
4840
 
4841
+ # The configuration that specifies the default storage class of the
4842
+ # general purpose bucket. Amazon S3 applies the default storage class to
4843
+ # new objects that you write to the bucket without the
4844
+ # `x-amz-storage-class` request header. For more information, see
4845
+ # [Setting the default storage class for a bucket][1] in the *Amazon S3
4846
+ # User Guide*.
4847
+ #
4848
+ #
4849
+ #
4850
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
4851
+ #
4852
+ # @!attribute [rw] default_storage_class
4853
+ # The default storage class of the general purpose bucket. Valid
4854
+ # values are `STANDARD` and `INTELLIGENT_TIERING`.
4855
+ # @return [String]
4856
+ #
4857
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DefaultStorageClassConfiguration AWS API Documentation
4858
+ #
4859
+ class DefaultStorageClassConfiguration < Struct.new(
4860
+ :default_storage_class)
4861
+ SENSITIVE = []
4862
+ include Aws::Structure
4863
+ end
4864
+
4830
4865
  # Container for the objects to delete.
4831
4866
  #
4832
4867
  # @!attribute [rw] objects
@@ -7376,6 +7411,37 @@ module Aws::S3
7376
7411
  include Aws::Structure
7377
7412
  end
7378
7413
 
7414
+ # @!attribute [rw] default_storage_class_configuration
7415
+ # The configuration that specifies the default storage class of the
7416
+ # general purpose bucket.
7417
+ # @return [Types::DefaultStorageClassConfiguration]
7418
+ #
7419
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketDefaultStorageClassOutput AWS API Documentation
7420
+ #
7421
+ class GetBucketDefaultStorageClassOutput < Struct.new(
7422
+ :default_storage_class_configuration)
7423
+ SENSITIVE = []
7424
+ include Aws::Structure
7425
+ end
7426
+
7427
+ # @!attribute [rw] bucket
7428
+ # The name of the general purpose bucket.
7429
+ # @return [String]
7430
+ #
7431
+ # @!attribute [rw] expected_bucket_owner
7432
+ # The Amazon Web Services account ID of the general purpose bucket's
7433
+ # owner.
7434
+ # @return [String]
7435
+ #
7436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketDefaultStorageClassRequest AWS API Documentation
7437
+ #
7438
+ class GetBucketDefaultStorageClassRequest < Struct.new(
7439
+ :bucket,
7440
+ :expected_bucket_owner)
7441
+ SENSITIVE = []
7442
+ include Aws::Structure
7443
+ end
7444
+
7379
7445
  # @!attribute [rw] server_side_encryption_configuration
7380
7446
  # Specifies the default server-side-encryption configuration.
7381
7447
  # @return [Types::ServerSideEncryptionConfiguration]
@@ -10048,6 +10114,294 @@ module Aws::S3
10048
10114
  include Aws::Structure
10049
10115
  end
10050
10116
 
10117
+ # @!attribute [rw] body
10118
+ # Part data.
10119
+ # @return [IO]
10120
+ #
10121
+ # @!attribute [rw] accept_ranges
10122
+ # Indicates that a range of bytes was specified in the request.
10123
+ # @return [String]
10124
+ #
10125
+ # @!attribute [rw] content_length
10126
+ # The size of the retrieved part in bytes.
10127
+ # @return [Integer]
10128
+ #
10129
+ # @!attribute [rw] etag
10130
+ # The entity tag of the part.
10131
+ # @return [String]
10132
+ #
10133
+ # @!attribute [rw] multipart_upload_status
10134
+ # The status of the multipart upload. Possible values are:
10135
+ #
10136
+ # * `IN_PROGRESS` - `CompleteMultipartUpload` has not been called. The
10137
+ # part data exists, and can be overwritten by a subsequent
10138
+ # `UploadPart` call with the same part number.
10139
+ #
10140
+ # * `COMPLETED` - `CompleteMultipartUpload` has been called. The part
10141
+ # data is immutable, and the full object exists.
10142
+ # @return [String]
10143
+ #
10144
+ # @!attribute [rw] checksum_crc32
10145
+ # The Base64 encoded, 32-bit `CRC32` checksum of the part. This
10146
+ # checksum is only present if the checksum was uploaded with the
10147
+ # object. For more information, see [Checking object integrity][1] in
10148
+ # the *Amazon S3 User Guide*.
10149
+ #
10150
+ #
10151
+ #
10152
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10153
+ # @return [String]
10154
+ #
10155
+ # @!attribute [rw] checksum_crc32c
10156
+ # The Base64 encoded, 32-bit `CRC32C` checksum of the part. This
10157
+ # checksum is only present if the checksum was uploaded with the
10158
+ # object. For more information, see [Checking object integrity][1] in
10159
+ # the *Amazon S3 User Guide*.
10160
+ #
10161
+ #
10162
+ #
10163
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10164
+ # @return [String]
10165
+ #
10166
+ # @!attribute [rw] checksum_crc64nvme
10167
+ # The Base64 encoded, 64-bit `CRC64NVME` checksum of the part. For
10168
+ # more information, see [Checking object integrity in the Amazon S3
10169
+ # User Guide][1].
10170
+ #
10171
+ #
10172
+ #
10173
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10174
+ # @return [String]
10175
+ #
10176
+ # @!attribute [rw] checksum_sha1
10177
+ # The Base64 encoded, 160-bit `SHA1` digest of the part. This checksum
10178
+ # is only present if the checksum was uploaded with the object. For
10179
+ # more information, see [Checking object integrity][1] in the *Amazon
10180
+ # S3 User Guide*.
10181
+ #
10182
+ #
10183
+ #
10184
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10185
+ # @return [String]
10186
+ #
10187
+ # @!attribute [rw] checksum_sha256
10188
+ # The Base64 encoded, 256-bit `SHA256` digest of the part. This
10189
+ # checksum is only present if the checksum was uploaded with the
10190
+ # object. For more information, see [Checking object integrity][1] in
10191
+ # the *Amazon S3 User Guide*.
10192
+ #
10193
+ #
10194
+ #
10195
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10196
+ # @return [String]
10197
+ #
10198
+ # @!attribute [rw] checksum_sha512
10199
+ # The Base64 encoded, 512-bit `SHA512` digest of the part. For more
10200
+ # information, see [Checking object integrity in the Amazon S3 User
10201
+ # Guide][1].
10202
+ #
10203
+ #
10204
+ #
10205
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10206
+ # @return [String]
10207
+ #
10208
+ # @!attribute [rw] checksum_md5
10209
+ # The Base64 encoded, 128-bit `MD5` digest of the part. For more
10210
+ # information, see [Checking object integrity in the Amazon S3 User
10211
+ # Guide][1].
10212
+ #
10213
+ #
10214
+ #
10215
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10216
+ # @return [String]
10217
+ #
10218
+ # @!attribute [rw] checksum_xxhash64
10219
+ # The Base64 encoded, 64-bit `XXHASH64` checksum of the part. For more
10220
+ # information, see [Checking object integrity in the Amazon S3 User
10221
+ # Guide][1].
10222
+ #
10223
+ #
10224
+ #
10225
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10226
+ # @return [String]
10227
+ #
10228
+ # @!attribute [rw] checksum_xxhash3
10229
+ # The Base64 encoded, 64-bit `XXHASH3` checksum of the part. For more
10230
+ # information, see [Checking object integrity in the Amazon S3 User
10231
+ # Guide][1].
10232
+ #
10233
+ #
10234
+ #
10235
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10236
+ # @return [String]
10237
+ #
10238
+ # @!attribute [rw] checksum_xxhash128
10239
+ # The Base64 encoded, 128-bit `XXHASH128` checksum of the part. For
10240
+ # more information, see [Checking object integrity in the Amazon S3
10241
+ # User Guide][1].
10242
+ #
10243
+ #
10244
+ #
10245
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
10246
+ # @return [String]
10247
+ #
10248
+ # @!attribute [rw] version_id
10249
+ # Version ID of the object.
10250
+ # @return [String]
10251
+ #
10252
+ # @!attribute [rw] content_range
10253
+ # The portion of the part that was returned in the response.
10254
+ # @return [String]
10255
+ #
10256
+ # @!attribute [rw] server_side_encryption
10257
+ # The server-side encryption algorithm used when storing this
10258
+ # multipart upload in Amazon S3.
10259
+ # @return [String]
10260
+ #
10261
+ # @!attribute [rw] ssekms_key_id
10262
+ # If present, indicates the ID of the KMS key that was used for object
10263
+ # encryption.
10264
+ # @return [String]
10265
+ #
10266
+ # @!attribute [rw] bucket_key_enabled
10267
+ # Indicates whether the multipart upload uses an S3 Bucket Key for
10268
+ # server-side encryption with Key Management Service (KMS) keys
10269
+ # (SSE-KMS).
10270
+ # @return [Boolean]
10271
+ #
10272
+ # @!attribute [rw] storage_class
10273
+ # Provides storage class information about where this part is stored.
10274
+ #
10275
+ # For in-progress multipart uploads, this header can return any of the
10276
+ # valid values listed for this header.
10277
+ #
10278
+ # <note markdown="1"> For completed multipart uploads, `GetPart` doesn't support the
10279
+ # `GLACIER`, `DEEP_ARCHIVE`, or `INTELLIGENT_TIERING` storage classes.
10280
+ #
10281
+ # </note>
10282
+ # @return [String]
10283
+ #
10284
+ # @!attribute [rw] request_charged
10285
+ # If present, indicates that the requester was successfully charged
10286
+ # for the request. For more information, see [Using Requester Pays
10287
+ # buckets for storage transfers and usage][1] in the *Amazon Simple
10288
+ # Storage Service user guide*.
10289
+ #
10290
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10291
+ #
10292
+ # </note>
10293
+ #
10294
+ #
10295
+ #
10296
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html
10297
+ # @return [String]
10298
+ #
10299
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetPartOutput AWS API Documentation
10300
+ #
10301
+ class GetPartOutput < Struct.new(
10302
+ :body,
10303
+ :accept_ranges,
10304
+ :content_length,
10305
+ :etag,
10306
+ :multipart_upload_status,
10307
+ :checksum_crc32,
10308
+ :checksum_crc32c,
10309
+ :checksum_crc64nvme,
10310
+ :checksum_sha1,
10311
+ :checksum_sha256,
10312
+ :checksum_sha512,
10313
+ :checksum_md5,
10314
+ :checksum_xxhash64,
10315
+ :checksum_xxhash3,
10316
+ :checksum_xxhash128,
10317
+ :version_id,
10318
+ :content_range,
10319
+ :server_side_encryption,
10320
+ :ssekms_key_id,
10321
+ :bucket_key_enabled,
10322
+ :storage_class,
10323
+ :request_charged)
10324
+ SENSITIVE = [:ssekms_key_id]
10325
+ include Aws::Structure
10326
+ end
10327
+
10328
+ # @!attribute [rw] bucket
10329
+ # The name of the bucket containing the part to retrieve.
10330
+ # @return [String]
10331
+ #
10332
+ # @!attribute [rw] key
10333
+ # Object key for which the multipart upload was initiated.
10334
+ # @return [String]
10335
+ #
10336
+ # @!attribute [rw] range
10337
+ # Downloads the specified byte range of a part. For more information
10338
+ # about the HTTP Range header, see
10339
+ # [https://www.rfc-editor.org/rfc/rfc9110.html#name-range][1].
10340
+ #
10341
+ # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
10342
+ # `GetPart` request.
10343
+ #
10344
+ # </note>
10345
+ #
10346
+ #
10347
+ #
10348
+ # [1]: https://www.rfc-editor.org/rfc/rfc9110.html#name-range
10349
+ # @return [String]
10350
+ #
10351
+ # @!attribute [rw] request_payer
10352
+ # Confirms that the requester knows that they will be charged for the
10353
+ # request. Bucket owners need not specify this parameter in their
10354
+ # requests. If either the source or destination S3 bucket has
10355
+ # Requester Pays enabled, the requester will pay for the corresponding
10356
+ # charges. For information about downloading objects from Requester
10357
+ # Pays buckets, see [Downloading Objects in Requester Pays Buckets][1]
10358
+ # in the *Amazon S3 User Guide*.
10359
+ #
10360
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10361
+ #
10362
+ # </note>
10363
+ #
10364
+ #
10365
+ #
10366
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
10367
+ # @return [String]
10368
+ #
10369
+ # @!attribute [rw] upload_id
10370
+ # Upload ID identifying the multipart upload to retrieve the specified
10371
+ # part from.
10372
+ # @return [String]
10373
+ #
10374
+ # @!attribute [rw] part_number
10375
+ # Part number of the part to retrieve. This is a positive integer
10376
+ # between 1 and 10,000.
10377
+ # @return [Integer]
10378
+ #
10379
+ # @!attribute [rw] expected_bucket_owner
10380
+ # The account ID of the expected bucket owner. If the account ID that
10381
+ # you provide does not match the actual owner of the bucket, the
10382
+ # request fails with the HTTP status code `403 Forbidden` (access
10383
+ # denied).
10384
+ # @return [String]
10385
+ #
10386
+ # @!attribute [rw] checksum_mode
10387
+ # To retrieve the checksum, this mode must be enabled.
10388
+ # @return [String]
10389
+ #
10390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetPartRequest AWS API Documentation
10391
+ #
10392
+ class GetPartRequest < Struct.new(
10393
+ :bucket,
10394
+ :key,
10395
+ :range,
10396
+ :request_payer,
10397
+ :upload_id,
10398
+ :part_number,
10399
+ :expected_bucket_owner,
10400
+ :checksum_mode)
10401
+ SENSITIVE = []
10402
+ include Aws::Structure
10403
+ end
10404
+
10051
10405
  # @!attribute [rw] public_access_block_configuration
10052
10406
  # The `PublicAccessBlock` configuration currently in effect for this
10053
10407
  # Amazon S3 bucket.
@@ -11327,7 +11681,8 @@ module Aws::S3
11327
11681
  #
11328
11682
  class InvalidAnnotationName < Aws::EmptyStructure; end
11329
11683
 
11330
- # Object is archived and inaccessible until restored.
11684
+ # Object is archived and inaccessible until restored. Use `GetObject` to
11685
+ # retrieve once restored.
11331
11686
  #
11332
11687
  # If the object you are retrieving is stored in the S3 Glacier Flexible
11333
11688
  # Retrieval storage class, the S3 Glacier Deep Archive storage class,
@@ -14612,7 +14967,16 @@ module Aws::S3
14612
14967
  #
14613
14968
  class NoSuchKey < Aws::EmptyStructure; end
14614
14969
 
14615
- # The specified multipart upload does not exist.
14970
+ # The specified multipart upload part does not exist. Either the part
14971
+ # has not been uploaded, or the part number exceeds the number of parts
14972
+ # in the completed object.
14973
+ #
14974
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoSuchPart AWS API Documentation
14975
+ #
14976
+ class NoSuchPart < Aws::EmptyStructure; end
14977
+
14978
+ # The specified multipart upload does not exist. The upload ID might be
14979
+ # invalid, or the multipart upload might have been aborted or completed.
14616
14980
  #
14617
14981
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoSuchUpload AWS API Documentation
14618
14982
  #
@@ -16044,6 +16408,50 @@ module Aws::S3
16044
16408
  include Aws::Structure
16045
16409
  end
16046
16410
 
16411
+ # @!attribute [rw] bucket
16412
+ # The name of the general purpose bucket.
16413
+ # @return [String]
16414
+ #
16415
+ # @!attribute [rw] content_md5
16416
+ # The MD5 hash of the `PutBucketDefaultStorageClass` request body.
16417
+ #
16418
+ # For requests made using the Amazon Web Services Command Line
16419
+ # Interface (CLI) or Amazon Web Services SDKs, this field is
16420
+ # calculated automatically.
16421
+ # @return [String]
16422
+ #
16423
+ # @!attribute [rw] checksum_algorithm
16424
+ # Indicates the algorithm that you want Amazon S3 to use to create the
16425
+ # checksum. For more information, see [ Checking object integrity][1]
16426
+ # in the *Amazon S3 User Guide*.
16427
+ #
16428
+ #
16429
+ #
16430
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
16431
+ # @return [String]
16432
+ #
16433
+ # @!attribute [rw] expected_bucket_owner
16434
+ # The Amazon Web Services account ID of the general purpose bucket's
16435
+ # owner.
16436
+ # @return [String]
16437
+ #
16438
+ # @!attribute [rw] default_storage_class_configuration
16439
+ # The configuration that specifies the default storage class of the
16440
+ # general purpose bucket.
16441
+ # @return [Types::DefaultStorageClassConfiguration]
16442
+ #
16443
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketDefaultStorageClassRequest AWS API Documentation
16444
+ #
16445
+ class PutBucketDefaultStorageClassRequest < Struct.new(
16446
+ :bucket,
16447
+ :content_md5,
16448
+ :checksum_algorithm,
16449
+ :expected_bucket_owner,
16450
+ :default_storage_class_configuration)
16451
+ SENSITIVE = []
16452
+ include Aws::Structure
16453
+ end
16454
+
16047
16455
  # @!attribute [rw] bucket
16048
16456
  # Specifies default encryption for a bucket using server-side
16049
16457
  # encryption with different key options.
@@ -18545,11 +18953,15 @@ module Aws::S3
18545
18953
  # @return [String]
18546
18954
  #
18547
18955
  # @!attribute [rw] storage_class
18548
- # By default, Amazon S3 uses the STANDARD Storage Class to store newly
18549
- # created objects. The STANDARD storage class provides high durability
18550
- # and high availability. Depending on performance needs, you can
18551
- # specify a different Storage Class. For more information, see
18552
- # [Storage Classes][1] in the *Amazon S3 User Guide*.
18956
+ # If you don't specify a storage class, Amazon S3 uses the bucket's
18957
+ # default storage class, which is `STANDARD` unless you set a
18958
+ # different default. For more information, see [Setting the default
18959
+ # storage class for a bucket][1] in the *Amazon S3 User Guide*. A
18960
+ # storage class that you specify on the request takes precedence over
18961
+ # the bucket default. The STANDARD storage class provides high
18962
+ # durability and high availability. Depending on performance needs,
18963
+ # you can specify a different Storage Class. For more information, see
18964
+ # [Storage Classes][2] in the *Amazon S3 User Guide*.
18553
18965
  #
18554
18966
  # <note markdown="1"> * Directory buckets only support `EXPRESS_ONEZONE` (the S3 Express
18555
18967
  # One Zone storage class) in Availability Zones and `ONEZONE_IA`
@@ -18562,7 +18974,8 @@ module Aws::S3
18562
18974
  #
18563
18975
  #
18564
18976
  #
18565
- # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
18977
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-default-storage-class.html
18978
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
18566
18979
  # @return [String]
18567
18980
  #
18568
18981
  # @!attribute [rw] website_redirect_location
data/lib/aws-sdk-s3.rb CHANGED
@@ -75,7 +75,7 @@ module Aws::S3
75
75
  autoload :ObjectVersion, 'aws-sdk-s3/object_version'
76
76
  autoload :EventStreams, 'aws-sdk-s3/event_streams'
77
77
 
78
- GEM_VERSION = '1.245.2'
78
+ GEM_VERSION = '1.246.0'
79
79
 
80
80
  end
81
81
 
@@ -49,7 +49,7 @@ module Aws
49
49
  {
50
50
  id: ::String?,
51
51
  topic_arn: ::String,
52
- events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete" | "s3:ObjectAnnotation:*" | "s3:ObjectAnnotation:Put" | "s3:ObjectAnnotation:Delete" | "s3:ObjectRetention:Put")],
52
+ events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete" | "s3:ObjectAnnotation:*" | "s3:ObjectAnnotation:Put" | "s3:ObjectAnnotation:Delete" | "s3:ObjectRetention:Put" | "s3:MultipartUpload:*" | "s3:MultipartUpload:PartUploaded" | "s3:MultipartUpload:PartCopied" | "s3:MultipartUpload:Aborted")],
53
53
  filter: {
54
54
  key: {
55
55
  filter_rules: Array[
@@ -66,7 +66,7 @@ module Aws
66
66
  {
67
67
  id: ::String?,
68
68
  queue_arn: ::String,
69
- events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete" | "s3:ObjectAnnotation:*" | "s3:ObjectAnnotation:Put" | "s3:ObjectAnnotation:Delete" | "s3:ObjectRetention:Put")],
69
+ events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete" | "s3:ObjectAnnotation:*" | "s3:ObjectAnnotation:Put" | "s3:ObjectAnnotation:Delete" | "s3:ObjectRetention:Put" | "s3:MultipartUpload:*" | "s3:MultipartUpload:PartUploaded" | "s3:MultipartUpload:PartCopied" | "s3:MultipartUpload:Aborted")],
70
70
  filter: {
71
71
  key: {
72
72
  filter_rules: Array[
@@ -83,7 +83,7 @@ module Aws
83
83
  {
84
84
  id: ::String?,
85
85
  lambda_function_arn: ::String,
86
- events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete" | "s3:ObjectAnnotation:*" | "s3:ObjectAnnotation:Put" | "s3:ObjectAnnotation:Delete" | "s3:ObjectRetention:Put")],
86
+ events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete" | "s3:ObjectAnnotation:*" | "s3:ObjectAnnotation:Put" | "s3:ObjectAnnotation:Delete" | "s3:ObjectRetention:Put" | "s3:MultipartUpload:*" | "s3:MultipartUpload:PartUploaded" | "s3:MultipartUpload:PartCopied" | "s3:MultipartUpload:Aborted")],
87
87
  filter: {
88
88
  key: {
89
89
  filter_rules: Array[