aws-sdk-s3 1.108.0 → 1.111.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -801,6 +801,7 @@ module Aws::S3
801
801
  CreateBucketRequest.add_member(:grant_write, Shapes::ShapeRef.new(shape: GrantWrite, location: "header", location_name: "x-amz-grant-write"))
802
802
  CreateBucketRequest.add_member(:grant_write_acp, Shapes::ShapeRef.new(shape: GrantWriteACP, location: "header", location_name: "x-amz-grant-write-acp"))
803
803
  CreateBucketRequest.add_member(:object_lock_enabled_for_bucket, Shapes::ShapeRef.new(shape: ObjectLockEnabledForBucket, location: "header", location_name: "x-amz-bucket-object-lock-enabled"))
804
+ CreateBucketRequest.add_member(:object_ownership, Shapes::ShapeRef.new(shape: ObjectOwnership, location: "header", location_name: "x-amz-object-ownership"))
804
805
  CreateBucketRequest.struct_class = Types::CreateBucketRequest
805
806
  CreateBucketRequest[:payload] = :create_bucket_configuration
806
807
  CreateBucketRequest[:payload_member] = CreateBucketRequest.member(:create_bucket_configuration)
@@ -32,11 +32,16 @@ module Aws
32
32
  # @option options [Proc] :progress_callback
33
33
  # A Proc that will be called when each chunk of the upload is sent.
34
34
  # It will be invoked with [bytes_read], [total_sizes]
35
+ # @option options [Integer] :thread_count
36
+ # The thread count to use for multipart uploads. Ignored for
37
+ # objects smaller than the multipart threshold.
35
38
  # @return [void]
36
39
  def upload(source, options = {})
37
40
  if File.size(source) >= multipart_threshold
38
41
  MultipartFileUploader.new(@options).upload(source, options)
39
42
  else
43
+ # remove multipart parameters not supported by put_object
44
+ options.delete(:thread_count)
40
45
  put_object(source, options)
41
46
  end
42
47
  end
@@ -552,7 +552,7 @@ module Aws::S3
552
552
  # metadata_directive: "COPY", # accepts COPY, REPLACE
553
553
  # tagging_directive: "COPY", # accepts COPY, REPLACE
554
554
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
555
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
555
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
556
556
  # website_redirect_location: "WebsiteRedirectLocation",
557
557
  # sse_customer_algorithm: "SSECustomerAlgorithm",
558
558
  # sse_customer_key: "SSECustomerKey",
@@ -943,7 +943,7 @@ module Aws::S3
943
943
  # "MetadataKey" => "MetadataValue",
944
944
  # },
945
945
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
946
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
946
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
947
947
  # website_redirect_location: "WebsiteRedirectLocation",
948
948
  # sse_customer_algorithm: "SSECustomerAlgorithm",
949
949
  # sse_customer_key: "SSECustomerKey",
@@ -1112,7 +1112,7 @@ module Aws::S3
1112
1112
  # "MetadataKey" => "MetadataValue",
1113
1113
  # },
1114
1114
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
1115
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
1115
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
1116
1116
  # website_redirect_location: "WebsiteRedirectLocation",
1117
1117
  # sse_customer_algorithm: "SSECustomerAlgorithm",
1118
1118
  # sse_customer_key: "SSECustomerKey",
@@ -1415,7 +1415,7 @@ module Aws::S3
1415
1415
  # value: "MetadataValue",
1416
1416
  # },
1417
1417
  # ],
1418
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
1418
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
1419
1419
  # },
1420
1420
  # },
1421
1421
  # },
@@ -1481,18 +1481,8 @@ module Aws::S3
1481
1481
  # Return the object only if it has not been modified since the specified
1482
1482
  # time, otherwise return a 412 (precondition failed).
1483
1483
  # @option options [String] :range
1484
- # Downloads the specified range bytes of an object. For more information
1485
- # about the HTTP Range header, see
1486
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
1487
- #
1488
- # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
1489
- # `GET` request.
1490
- #
1491
- # </note>
1492
- #
1493
- #
1494
- #
1495
- # [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
1484
+ # Because `HeadObject` returns only the metadata for an object, this
1485
+ # parameter has no effect.
1496
1486
  # @option options [String] :version_id
1497
1487
  # VersionId used to reference a specific version of the object.
1498
1488
  # @option options [String] :sse_customer_algorithm
@@ -296,7 +296,7 @@ module Aws::S3
296
296
  # metadata_directive: "COPY", # accepts COPY, REPLACE
297
297
  # tagging_directive: "COPY", # accepts COPY, REPLACE
298
298
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
299
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
299
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
300
300
  # website_redirect_location: "WebsiteRedirectLocation",
301
301
  # sse_customer_algorithm: "SSECustomerAlgorithm",
302
302
  # sse_customer_key: "SSECustomerKey",
@@ -687,7 +687,7 @@ module Aws::S3
687
687
  # "MetadataKey" => "MetadataValue",
688
688
  # },
689
689
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
690
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
690
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
691
691
  # website_redirect_location: "WebsiteRedirectLocation",
692
692
  # sse_customer_algorithm: "SSECustomerAlgorithm",
693
693
  # sse_customer_key: "SSECustomerKey",
@@ -856,7 +856,7 @@ module Aws::S3
856
856
  # "MetadataKey" => "MetadataValue",
857
857
  # },
858
858
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
859
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
859
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
860
860
  # website_redirect_location: "WebsiteRedirectLocation",
861
861
  # sse_customer_algorithm: "SSECustomerAlgorithm",
862
862
  # sse_customer_key: "SSECustomerKey",
@@ -1159,7 +1159,7 @@ module Aws::S3
1159
1159
  # value: "MetadataValue",
1160
1160
  # },
1161
1161
  # ],
1162
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
1162
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
1163
1163
  # },
1164
1164
  # },
1165
1165
  # },
@@ -402,18 +402,8 @@ module Aws::S3
402
402
  # Return the object only if it has not been modified since the specified
403
403
  # time, otherwise return a 412 (precondition failed).
404
404
  # @option options [String] :range
405
- # Downloads the specified range bytes of an object. For more information
406
- # about the HTTP Range header, see
407
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
408
- #
409
- # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
410
- # `GET` request.
411
- #
412
- # </note>
413
- #
414
- #
415
- #
416
- # [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
405
+ # Because `HeadObject` returns only the metadata for an object, this
406
+ # parameter has no effect.
417
407
  # @option options [String] :sse_customer_algorithm
418
408
  # Specifies the algorithm to use to when encrypting the object (for
419
409
  # example, AES256).
@@ -48,8 +48,14 @@ Defaults to `legacy` mode which uses the global endpoint.
48
48
  private
49
49
 
50
50
  def self.resolve_iad_regional_endpoint(cfg)
51
+ default_mode_value =
52
+ if cfg.respond_to?(:defaults_mode_config_resolver)
53
+ cfg.defaults_mode_config_resolver.resolve(:s3_us_east_1_regional_endpoint)
54
+ end
55
+
51
56
  mode = ENV['AWS_S3_US_EAST_1_REGIONAL_ENDPOINT'] ||
52
57
  Aws.shared_config.s3_us_east_1_regional_endpoint(profile: cfg.profile) ||
58
+ default_mode_value ||
53
59
  'legacy'
54
60
  mode = mode.downcase
55
61
  unless %w(legacy regional).include?(mode)
@@ -49,6 +49,7 @@ module Aws::S3
49
49
  # grant_write: "GrantWrite",
50
50
  # grant_write_acp: "GrantWriteACP",
51
51
  # object_lock_enabled_for_bucket: false,
52
+ # object_ownership: "BucketOwnerPreferred", # accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced
52
53
  # })
53
54
  # @param [Hash] options ({})
54
55
  # @option options [String] :acl
@@ -74,6 +75,23 @@ module Aws::S3
74
75
  # @option options [Boolean] :object_lock_enabled_for_bucket
75
76
  # Specifies whether you want S3 Object Lock to be enabled for the new
76
77
  # bucket.
78
+ # @option options [String] :object_ownership
79
+ # The container element for object ownership for a bucket's ownership
80
+ # controls.
81
+ #
82
+ # BucketOwnerPreferred - Objects uploaded to the bucket change ownership
83
+ # to the bucket owner if the objects are uploaded with the
84
+ # `bucket-owner-full-control` canned ACL.
85
+ #
86
+ # ObjectWriter - The uploading account will own the object if the object
87
+ # is uploaded with the `bucket-owner-full-control` canned ACL.
88
+ #
89
+ # BucketOwnerEnforced - Access control lists (ACLs) are disabled and no
90
+ # longer affect permissions. The bucket owner automatically owns and has
91
+ # full control over every object in the bucket. The bucket only accepts
92
+ # PUT requests that don't specify an ACL or bucket owner full control
93
+ # ACLs, such as the `bucket-owner-full-control` canned ACL or an
94
+ # equivalent form of this ACL expressed in the XML format.
77
95
  # @return [Bucket]
78
96
  def create_bucket(options = {})
79
97
  @client.create_bucket(options)
@@ -536,13 +536,13 @@ module Aws::S3
536
536
  # {
537
537
  # date: Time.now,
538
538
  # days: 1,
539
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
539
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
540
540
  # },
541
541
  # ],
542
542
  # noncurrent_version_transitions: [
543
543
  # {
544
544
  # noncurrent_days: 1,
545
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
545
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
546
546
  # newer_noncurrent_versions: 1,
547
547
  # },
548
548
  # ],
@@ -1323,7 +1323,7 @@ module Aws::S3
1323
1323
  # metadata_directive: "COPY", # accepts COPY, REPLACE
1324
1324
  # tagging_directive: "COPY", # accepts COPY, REPLACE
1325
1325
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
1326
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
1326
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
1327
1327
  # website_redirect_location: "WebsiteRedirectLocation",
1328
1328
  # sse_customer_algorithm: "SSECustomerAlgorithm",
1329
1329
  # sse_customer_key: "SSECustomerKey",
@@ -1786,6 +1786,7 @@ module Aws::S3
1786
1786
  # grant_write: "GrantWrite",
1787
1787
  # grant_write_acp: "GrantWriteACP",
1788
1788
  # object_lock_enabled_for_bucket: false,
1789
+ # object_ownership: "BucketOwnerPreferred", # accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced
1789
1790
  # }
1790
1791
  #
1791
1792
  # @!attribute [rw] acl
@@ -1829,6 +1830,25 @@ module Aws::S3
1829
1830
  # bucket.
1830
1831
  # @return [Boolean]
1831
1832
  #
1833
+ # @!attribute [rw] object_ownership
1834
+ # The container element for object ownership for a bucket's ownership
1835
+ # controls.
1836
+ #
1837
+ # BucketOwnerPreferred - Objects uploaded to the bucket change
1838
+ # ownership to the bucket owner if the objects are uploaded with the
1839
+ # `bucket-owner-full-control` canned ACL.
1840
+ #
1841
+ # ObjectWriter - The uploading account will own the object if the
1842
+ # object is uploaded with the `bucket-owner-full-control` canned ACL.
1843
+ #
1844
+ # BucketOwnerEnforced - Access control lists (ACLs) are disabled and
1845
+ # no longer affect permissions. The bucket owner automatically owns
1846
+ # and has full control over every object in the bucket. The bucket
1847
+ # only accepts PUT requests that don't specify an ACL or bucket owner
1848
+ # full control ACLs, such as the `bucket-owner-full-control` canned
1849
+ # ACL or an equivalent form of this ACL expressed in the XML format.
1850
+ # @return [String]
1851
+ #
1832
1852
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketRequest AWS API Documentation
1833
1853
  #
1834
1854
  class CreateBucketRequest < Struct.new(
@@ -1840,7 +1860,8 @@ module Aws::S3
1840
1860
  :grant_read_acp,
1841
1861
  :grant_write,
1842
1862
  :grant_write_acp,
1843
- :object_lock_enabled_for_bucket)
1863
+ :object_lock_enabled_for_bucket,
1864
+ :object_ownership)
1844
1865
  SENSITIVE = []
1845
1866
  include Aws::Structure
1846
1867
  end
@@ -1986,7 +2007,7 @@ module Aws::S3
1986
2007
  # "MetadataKey" => "MetadataValue",
1987
2008
  # },
1988
2009
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
1989
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
2010
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
1990
2011
  # website_redirect_location: "WebsiteRedirectLocation",
1991
2012
  # sse_customer_algorithm: "SSECustomerAlgorithm",
1992
2013
  # sse_customer_key: "SSECustomerKey",
@@ -3162,7 +3183,7 @@ module Aws::S3
3162
3183
  # {
3163
3184
  # bucket: "BucketName", # required
3164
3185
  # account: "AccountId",
3165
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
3186
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
3166
3187
  # access_control_translation: {
3167
3188
  # owner: "Destination", # required, accepts Destination
3168
3189
  # },
@@ -4816,8 +4837,8 @@ module Aws::S3
4816
4837
  end
4817
4838
 
4818
4839
  # @!attribute [rw] ownership_controls
4819
- # The `OwnershipControls` (BucketOwnerPreferred or ObjectWriter)
4820
- # currently in effect for this Amazon S3 bucket.
4840
+ # The `OwnershipControls` (BucketOwnerEnforced, BucketOwnerPreferred,
4841
+ # or ObjectWriter) currently in effect for this Amazon S3 bucket.
4821
4842
  # @return [Types::OwnershipControls]
4822
4843
  #
4823
4844
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketOwnershipControlsOutput AWS API Documentation
@@ -6586,18 +6607,8 @@ module Aws::S3
6586
6607
  # @return [String]
6587
6608
  #
6588
6609
  # @!attribute [rw] range
6589
- # Downloads the specified range bytes of an object. For more
6590
- # information about the HTTP Range header, see
6591
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
6592
- #
6593
- # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
6594
- # `GET` request.
6595
- #
6596
- # </note>
6597
- #
6598
- #
6599
- #
6600
- # [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
6610
+ # Because `HeadObject` returns only the metadata for an object, this
6611
+ # parameter has no effect.
6601
6612
  # @return [String]
6602
6613
  #
6603
6614
  # @!attribute [rw] version_id
@@ -7337,11 +7348,11 @@ module Aws::S3
7337
7348
  # transition: {
7338
7349
  # date: Time.now,
7339
7350
  # days: 1,
7340
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
7351
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
7341
7352
  # },
7342
7353
  # noncurrent_version_transition: {
7343
7354
  # noncurrent_days: 1,
7344
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
7355
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
7345
7356
  # newer_noncurrent_versions: 1,
7346
7357
  # },
7347
7358
  # noncurrent_version_expiration: {
@@ -7443,13 +7454,13 @@ module Aws::S3
7443
7454
  # {
7444
7455
  # date: Time.now,
7445
7456
  # days: 1,
7446
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
7457
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
7447
7458
  # },
7448
7459
  # ],
7449
7460
  # noncurrent_version_transitions: [
7450
7461
  # {
7451
7462
  # noncurrent_days: 1,
7452
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
7463
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
7453
7464
  # newer_noncurrent_versions: 1,
7454
7465
  # },
7455
7466
  # ],
@@ -9008,6 +9019,15 @@ module Aws::S3
9008
9019
  #
9009
9020
  # @!attribute [rw] target_grants
9010
9021
  # Container for granting information.
9022
+ #
9023
+ # Buckets that use the bucket owner enforced setting for Object
9024
+ # Ownership don't support target grants. For more information, see
9025
+ # [Permissions for server access log delivery][1] in the *Amazon S3
9026
+ # User Guide*.
9027
+ #
9028
+ #
9029
+ #
9030
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general
9011
9031
  # @return [Array<Types::TargetGrant>]
9012
9032
  #
9013
9033
  # @!attribute [rw] target_prefix
@@ -9349,19 +9369,20 @@ module Aws::S3
9349
9369
 
9350
9370
  # Container for the transition rule that describes when noncurrent
9351
9371
  # objects transition to the `STANDARD_IA`, `ONEZONE_IA`,
9352
- # `INTELLIGENT_TIERING`, `GLACIER`, or `DEEP_ARCHIVE` storage class. If
9353
- # your bucket is versioning-enabled (or versioning is suspended), you
9354
- # can set this action to request that Amazon S3 transition noncurrent
9355
- # object versions to the `STANDARD_IA`, `ONEZONE_IA`,
9356
- # `INTELLIGENT_TIERING`, `GLACIER`, or `DEEP_ARCHIVE` storage class at a
9357
- # specific period in the object's lifetime.
9372
+ # `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, or `DEEP_ARCHIVE`
9373
+ # storage class. If your bucket is versioning-enabled (or versioning is
9374
+ # suspended), you can set this action to request that Amazon S3
9375
+ # transition noncurrent object versions to the `STANDARD_IA`,
9376
+ # `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, or
9377
+ # `DEEP_ARCHIVE` storage class at a specific period in the object's
9378
+ # lifetime.
9358
9379
  #
9359
9380
  # @note When making an API call, you may pass NoncurrentVersionTransition
9360
9381
  # data as a hash:
9361
9382
  #
9362
9383
  # {
9363
9384
  # noncurrent_days: 1,
9364
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
9385
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
9365
9386
  # newer_noncurrent_versions: 1,
9366
9387
  # }
9367
9388
  #
@@ -9894,7 +9915,7 @@ module Aws::S3
9894
9915
  # value: "MetadataValue",
9895
9916
  # },
9896
9917
  # ],
9897
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
9918
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
9898
9919
  # },
9899
9920
  # }
9900
9921
  #
@@ -9981,7 +10002,7 @@ module Aws::S3
9981
10002
  # {
9982
10003
  # rules: [ # required
9983
10004
  # {
9984
- # object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter
10005
+ # object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced
9985
10006
  # },
9986
10007
  # ],
9987
10008
  # }
@@ -10004,7 +10025,7 @@ module Aws::S3
10004
10025
  # data as a hash:
10005
10026
  #
10006
10027
  # {
10007
- # object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter
10028
+ # object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced
10008
10029
  # }
10009
10030
  #
10010
10031
  # @!attribute [rw] object_ownership
@@ -10017,6 +10038,13 @@ module Aws::S3
10017
10038
  #
10018
10039
  # ObjectWriter - The uploading account will own the object if the
10019
10040
  # object is uploaded with the `bucket-owner-full-control` canned ACL.
10041
+ #
10042
+ # BucketOwnerEnforced - Access control lists (ACLs) are disabled and
10043
+ # no longer affect permissions. The bucket owner automatically owns
10044
+ # and has full control over every object in the bucket. The bucket
10045
+ # only accepts PUT requests that don't specify an ACL or bucket owner
10046
+ # full control ACLs, such as the `bucket-owner-full-control` canned
10047
+ # ACL or an equivalent form of this ACL expressed in the XML format.
10020
10048
  # @return [String]
10021
10049
  #
10022
10050
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/OwnershipControlsRule AWS API Documentation
@@ -10704,13 +10732,13 @@ module Aws::S3
10704
10732
  # {
10705
10733
  # date: Time.now,
10706
10734
  # days: 1,
10707
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
10735
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
10708
10736
  # },
10709
10737
  # ],
10710
10738
  # noncurrent_version_transitions: [
10711
10739
  # {
10712
10740
  # noncurrent_days: 1,
10713
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
10741
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
10714
10742
  # newer_noncurrent_versions: 1,
10715
10743
  # },
10716
10744
  # ],
@@ -10771,11 +10799,11 @@ module Aws::S3
10771
10799
  # transition: {
10772
10800
  # date: Time.now,
10773
10801
  # days: 1,
10774
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
10802
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
10775
10803
  # },
10776
10804
  # noncurrent_version_transition: {
10777
10805
  # noncurrent_days: 1,
10778
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
10806
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
10779
10807
  # newer_noncurrent_versions: 1,
10780
10808
  # },
10781
10809
  # noncurrent_version_expiration: {
@@ -11108,7 +11136,7 @@ module Aws::S3
11108
11136
  # ownership_controls: { # required
11109
11137
  # rules: [ # required
11110
11138
  # {
11111
- # object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter
11139
+ # object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced
11112
11140
  # },
11113
11141
  # ],
11114
11142
  # },
@@ -11134,8 +11162,8 @@ module Aws::S3
11134
11162
  # @return [String]
11135
11163
  #
11136
11164
  # @!attribute [rw] ownership_controls
11137
- # The `OwnershipControls` (BucketOwnerPreferred or ObjectWriter) that
11138
- # you want to apply to this Amazon S3 bucket.
11165
+ # The `OwnershipControls` (BucketOwnerEnforced, BucketOwnerPreferred,
11166
+ # or ObjectWriter) that you want to apply to this Amazon S3 bucket.
11139
11167
  # @return [Types::OwnershipControls]
11140
11168
  #
11141
11169
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketOwnershipControlsRequest AWS API Documentation
@@ -11243,7 +11271,7 @@ module Aws::S3
11243
11271
  # destination: { # required
11244
11272
  # bucket: "BucketName", # required
11245
11273
  # account: "AccountId",
11246
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
11274
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
11247
11275
  # access_control_translation: {
11248
11276
  # owner: "Destination", # required, accepts Destination
11249
11277
  # },
@@ -12053,7 +12081,7 @@ module Aws::S3
12053
12081
  # "MetadataKey" => "MetadataValue",
12054
12082
  # },
12055
12083
  # server_side_encryption: "AES256", # accepts AES256, aws:kms
12056
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
12084
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
12057
12085
  # website_redirect_location: "WebsiteRedirectLocation",
12058
12086
  # sse_customer_algorithm: "SSECustomerAlgorithm",
12059
12087
  # sse_customer_key: "SSECustomerKey",
@@ -12977,7 +13005,7 @@ module Aws::S3
12977
13005
  # destination: { # required
12978
13006
  # bucket: "BucketName", # required
12979
13007
  # account: "AccountId",
12980
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
13008
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
12981
13009
  # access_control_translation: {
12982
13010
  # owner: "Destination", # required, accepts Destination
12983
13011
  # },
@@ -13071,7 +13099,7 @@ module Aws::S3
13071
13099
  # destination: { # required
13072
13100
  # bucket: "BucketName", # required
13073
13101
  # account: "AccountId",
13074
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
13102
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
13075
13103
  # access_control_translation: {
13076
13104
  # owner: "Destination", # required, accepts Destination
13077
13105
  # },
@@ -13513,7 +13541,7 @@ module Aws::S3
13513
13541
  # value: "MetadataValue",
13514
13542
  # },
13515
13543
  # ],
13516
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
13544
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
13517
13545
  # },
13518
13546
  # },
13519
13547
  # },
@@ -13673,7 +13701,7 @@ module Aws::S3
13673
13701
  # value: "MetadataValue",
13674
13702
  # },
13675
13703
  # ],
13676
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
13704
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
13677
13705
  # },
13678
13706
  # },
13679
13707
  # }
@@ -13798,11 +13826,11 @@ module Aws::S3
13798
13826
  # transition: {
13799
13827
  # date: Time.now,
13800
13828
  # days: 1,
13801
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
13829
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
13802
13830
  # },
13803
13831
  # noncurrent_version_transition: {
13804
13832
  # noncurrent_days: 1,
13805
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
13833
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
13806
13834
  # newer_noncurrent_versions: 1,
13807
13835
  # },
13808
13836
  # noncurrent_version_expiration: {
@@ -13855,12 +13883,13 @@ module Aws::S3
13855
13883
  # @!attribute [rw] noncurrent_version_transition
13856
13884
  # Container for the transition rule that describes when noncurrent
13857
13885
  # objects transition to the `STANDARD_IA`, `ONEZONE_IA`,
13858
- # `INTELLIGENT_TIERING`, `GLACIER`, or `DEEP_ARCHIVE` storage class.
13859
- # If your bucket is versioning-enabled (or versioning is suspended),
13860
- # you can set this action to request that Amazon S3 transition
13861
- # noncurrent object versions to the `STANDARD_IA`, `ONEZONE_IA`,
13862
- # `INTELLIGENT_TIERING`, `GLACIER`, or `DEEP_ARCHIVE` storage class at
13863
- # a specific period in the object's lifetime.
13886
+ # `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, or `DEEP_ARCHIVE`
13887
+ # storage class. If your bucket is versioning-enabled (or versioning
13888
+ # is suspended), you can set this action to request that Amazon S3
13889
+ # transition noncurrent object versions to the `STANDARD_IA`,
13890
+ # `ONEZONE_IA`, `INTELLIGENT_TIERING`, `GLACIER_IR`, `GLACIER`, or
13891
+ # `DEEP_ARCHIVE` storage class at a specific period in the object's
13892
+ # lifetime.
13864
13893
  # @return [Types::NoncurrentVersionTransition]
13865
13894
  #
13866
13895
  # @!attribute [rw] noncurrent_version_expiration
@@ -13967,7 +13996,7 @@ module Aws::S3
13967
13996
  # value: "MetadataValue",
13968
13997
  # },
13969
13998
  # ],
13970
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
13999
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
13971
14000
  # }
13972
14001
  #
13973
14002
  # @!attribute [rw] bucket_name
@@ -14336,9 +14365,13 @@ module Aws::S3
14336
14365
 
14337
14366
  # Describes the default server-side encryption to apply to new objects
14338
14367
  # in the bucket. If a PUT Object request doesn't specify any
14339
- # server-side encryption, this default encryption will be applied. For
14340
- # more information, see [PUT Bucket encryption][1] in the *Amazon S3 API
14341
- # Reference*.
14368
+ # server-side encryption, this default encryption will be applied. If
14369
+ # you don't specify a customer managed key at configuration, Amazon S3
14370
+ # automatically creates an Amazon Web Services KMS key in your Amazon
14371
+ # Web Services account the first time that you add an object encrypted
14372
+ # with SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for
14373
+ # SSE-KMS. For more information, see [PUT Bucket encryption][1] in the
14374
+ # *Amazon S3 API Reference*.
14342
14375
  #
14343
14376
  #
14344
14377
  #
@@ -14363,9 +14396,10 @@ module Aws::S3
14363
14396
  # `aws:kms`.
14364
14397
  #
14365
14398
  # You can specify the key ID or the Amazon Resource Name (ARN) of the
14366
- # KMS key. However, if you are using encryption with cross-account
14367
- # operations, you must use a fully qualified KMS key ARN. For more
14368
- # information, see [Using encryption for cross-account operations][1].
14399
+ # KMS key. However, if you are using encryption with cross-account or
14400
+ # Amazon Web Services service operations you must use a fully
14401
+ # qualified KMS key ARN. For more information, see [Using encryption
14402
+ # for cross-account operations][1].
14369
14403
  #
14370
14404
  # **For example:**
14371
14405
  #
@@ -14704,6 +14738,15 @@ module Aws::S3
14704
14738
 
14705
14739
  # Container for granting information.
14706
14740
  #
14741
+ # Buckets that use the bucket owner enforced setting for Object
14742
+ # Ownership don't support target grants. For more information, see
14743
+ # [Permissions server access log delivery][1] in the *Amazon S3 User
14744
+ # Guide*.
14745
+ #
14746
+ #
14747
+ #
14748
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html#grant-log-delivery-permissions-general
14749
+ #
14707
14750
  # @note When making an API call, you may pass TargetGrant
14708
14751
  # data as a hash:
14709
14752
  #
@@ -14905,7 +14948,7 @@ module Aws::S3
14905
14948
  # {
14906
14949
  # date: Time.now,
14907
14950
  # days: 1,
14908
- # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
14951
+ # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
14909
14952
  # }
14910
14953
  #
14911
14954
  # @!attribute [rw] date
@@ -15543,7 +15586,7 @@ module Aws::S3
15543
15586
  # sse_customer_algorithm: "SSECustomerAlgorithm",
15544
15587
  # ssekms_key_id: "SSEKMSKeyId",
15545
15588
  # sse_customer_key_md5: "SSECustomerKeyMD5",
15546
- # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
15589
+ # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
15547
15590
  # tag_count: 1,
15548
15591
  # version_id: "ObjectVersionId",
15549
15592
  # bucket_key_enabled: false,
data/lib/aws-sdk-s3.rb CHANGED
@@ -69,6 +69,6 @@ require_relative 'aws-sdk-s3/event_streams'
69
69
  # @!group service
70
70
  module Aws::S3
71
71
 
72
- GEM_VERSION = '1.108.0'
72
+ GEM_VERSION = '1.111.1'
73
73
 
74
74
  end