aws-sdk-s3 1.229.0 → 1.231.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.
@@ -600,6 +600,39 @@ module Aws::S3
600
600
  data[:object_lock_legal_hold_status]
601
601
  end
602
602
 
603
+ # The event hold status for this object. This header is only returned if
604
+ # the requester has the `s3:GetObjectRetention` permission.
605
+ #
606
+ # <note markdown="1"> This functionality is not supported for directory buckets.
607
+ #
608
+ # </note>
609
+ # @return [String]
610
+ def object_lock_event_hold
611
+ data[:object_lock_event_hold]
612
+ end
613
+
614
+ # The event hold duration in days for this object. Only returned when
615
+ # the event hold is enabled.
616
+ #
617
+ # <note markdown="1"> This functionality is not supported for directory buckets.
618
+ #
619
+ # </note>
620
+ # @return [Integer]
621
+ def object_lock_event_hold_duration_days
622
+ data[:object_lock_event_hold_duration_days]
623
+ end
624
+
625
+ # The event hold duration in years for this object. Only returned when
626
+ # the event hold is enabled.
627
+ #
628
+ # <note markdown="1"> This functionality is not supported for directory buckets.
629
+ #
630
+ # </note>
631
+ # @return [Integer]
632
+ def object_lock_event_hold_duration_years
633
+ data[:object_lock_event_hold_duration_years]
634
+ end
635
+
603
636
  # @!endgroup
604
637
 
605
638
  # @return [Client]
@@ -842,6 +875,9 @@ module Aws::S3
842
875
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
843
876
  # object_lock_retain_until_date: Time.now,
844
877
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
878
+ # object_lock_event_hold: "ON", # accepts ON, OFF
879
+ # object_lock_event_hold_duration_days: 1,
880
+ # object_lock_event_hold_duration_years: 1,
845
881
  # expected_bucket_owner: "AccountId",
846
882
  # expected_source_bucket_owner: "AccountId",
847
883
  # })
@@ -1583,6 +1619,25 @@ module Aws::S3
1583
1619
  # <note markdown="1"> This functionality is not supported for directory buckets.
1584
1620
  #
1585
1621
  # </note>
1622
+ # @option options [String] :object_lock_event_hold
1623
+ # The event hold status to apply to the object copy. Set to `ON` to
1624
+ # enable or `OFF` to disable.
1625
+ #
1626
+ # <note markdown="1"> This functionality is not supported for directory buckets.
1627
+ #
1628
+ # </note>
1629
+ # @option options [Integer] :object_lock_event_hold_duration_days
1630
+ # The event hold duration in days to apply to the object copy.
1631
+ #
1632
+ # <note markdown="1"> This functionality is not supported for directory buckets.
1633
+ #
1634
+ # </note>
1635
+ # @option options [Integer] :object_lock_event_hold_duration_years
1636
+ # The event hold duration in years to apply to the object copy.
1637
+ #
1638
+ # <note markdown="1"> This functionality is not supported for directory buckets.
1639
+ #
1640
+ # </note>
1586
1641
  # @option options [String] :expected_bucket_owner
1587
1642
  # The account ID of the expected destination bucket owner. If the
1588
1643
  # account ID that you provide does not match the actual owner of the
@@ -1999,6 +2054,9 @@ module Aws::S3
1999
2054
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
2000
2055
  # object_lock_retain_until_date: Time.now,
2001
2056
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
2057
+ # object_lock_event_hold: "ON", # accepts ON, OFF
2058
+ # object_lock_event_hold_duration_days: 1,
2059
+ # object_lock_event_hold_duration_years: 1,
2002
2060
  # expected_bucket_owner: "AccountId",
2003
2061
  # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME, SHA512, MD5, XXHASH64, XXHASH3, XXHASH128
2004
2062
  # checksum_type: "COMPOSITE", # accepts COMPOSITE, FULL_OBJECT
@@ -2520,6 +2578,27 @@ module Aws::S3
2520
2578
  # <note markdown="1"> This functionality is not supported for directory buckets.
2521
2579
  #
2522
2580
  # </note>
2581
+ # @option options [String] :object_lock_event_hold
2582
+ # Specifies the event hold status to apply to the uploaded object. Set
2583
+ # to `ON` to enable or `OFF` to disable.
2584
+ #
2585
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2586
+ #
2587
+ # </note>
2588
+ # @option options [Integer] :object_lock_event_hold_duration_days
2589
+ # Specifies the event hold duration in days to apply to the uploaded
2590
+ # object.
2591
+ #
2592
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2593
+ #
2594
+ # </note>
2595
+ # @option options [Integer] :object_lock_event_hold_duration_years
2596
+ # Specifies the event hold duration in years to apply to the uploaded
2597
+ # object.
2598
+ #
2599
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2600
+ #
2601
+ # </note>
2523
2602
  # @option options [String] :expected_bucket_owner
2524
2603
  # The account ID of the expected bucket owner. If the account ID that
2525
2604
  # you provide does not match the actual owner of the bucket, the request
@@ -2605,6 +2684,9 @@ module Aws::S3
2605
2684
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
2606
2685
  # object_lock_retain_until_date: Time.now,
2607
2686
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
2687
+ # object_lock_event_hold: "ON", # accepts ON, OFF
2688
+ # object_lock_event_hold_duration_days: 1,
2689
+ # object_lock_event_hold_duration_years: 1,
2608
2690
  # expected_bucket_owner: "AccountId",
2609
2691
  # })
2610
2692
  # @param [Hash] options ({})
@@ -3230,6 +3312,25 @@ module Aws::S3
3230
3312
  #
3231
3313
  #
3232
3314
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
3315
+ # @option options [String] :object_lock_event_hold
3316
+ # Specifies the event hold status to apply to this object. Set to `ON`
3317
+ # to enable or `OFF` to disable.
3318
+ #
3319
+ # <note markdown="1"> This functionality is not supported for directory buckets.
3320
+ #
3321
+ # </note>
3322
+ # @option options [Integer] :object_lock_event_hold_duration_days
3323
+ # Specifies the event hold duration in days to apply to this object.
3324
+ #
3325
+ # <note markdown="1"> This functionality is not supported for directory buckets.
3326
+ #
3327
+ # </note>
3328
+ # @option options [Integer] :object_lock_event_hold_duration_years
3329
+ # Specifies the event hold duration in years to apply to this object.
3330
+ #
3331
+ # <note markdown="1"> This functionality is not supported for directory buckets.
3332
+ #
3333
+ # </note>
3233
3334
  # @option options [String] :expected_bucket_owner
3234
3335
  # The account ID of the expected bucket owner. If the account ID that
3235
3336
  # you provide does not match the actual owner of the bucket, the request
@@ -379,6 +379,9 @@ module Aws::S3
379
379
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
380
380
  # object_lock_retain_until_date: Time.now,
381
381
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
382
+ # object_lock_event_hold: "ON", # accepts ON, OFF
383
+ # object_lock_event_hold_duration_days: 1,
384
+ # object_lock_event_hold_duration_years: 1,
382
385
  # expected_bucket_owner: "AccountId",
383
386
  # expected_source_bucket_owner: "AccountId",
384
387
  # })
@@ -1120,6 +1123,25 @@ module Aws::S3
1120
1123
  # <note markdown="1"> This functionality is not supported for directory buckets.
1121
1124
  #
1122
1125
  # </note>
1126
+ # @option options [String] :object_lock_event_hold
1127
+ # The event hold status to apply to the object copy. Set to `ON` to
1128
+ # enable or `OFF` to disable.
1129
+ #
1130
+ # <note markdown="1"> This functionality is not supported for directory buckets.
1131
+ #
1132
+ # </note>
1133
+ # @option options [Integer] :object_lock_event_hold_duration_days
1134
+ # The event hold duration in days to apply to the object copy.
1135
+ #
1136
+ # <note markdown="1"> This functionality is not supported for directory buckets.
1137
+ #
1138
+ # </note>
1139
+ # @option options [Integer] :object_lock_event_hold_duration_years
1140
+ # The event hold duration in years to apply to the object copy.
1141
+ #
1142
+ # <note markdown="1"> This functionality is not supported for directory buckets.
1143
+ #
1144
+ # </note>
1123
1145
  # @option options [String] :expected_bucket_owner
1124
1146
  # The account ID of the expected destination bucket owner. If the
1125
1147
  # account ID that you provide does not match the actual owner of the
@@ -1536,6 +1558,9 @@ module Aws::S3
1536
1558
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
1537
1559
  # object_lock_retain_until_date: Time.now,
1538
1560
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
1561
+ # object_lock_event_hold: "ON", # accepts ON, OFF
1562
+ # object_lock_event_hold_duration_days: 1,
1563
+ # object_lock_event_hold_duration_years: 1,
1539
1564
  # expected_bucket_owner: "AccountId",
1540
1565
  # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME, SHA512, MD5, XXHASH64, XXHASH3, XXHASH128
1541
1566
  # checksum_type: "COMPOSITE", # accepts COMPOSITE, FULL_OBJECT
@@ -2057,6 +2082,27 @@ module Aws::S3
2057
2082
  # <note markdown="1"> This functionality is not supported for directory buckets.
2058
2083
  #
2059
2084
  # </note>
2085
+ # @option options [String] :object_lock_event_hold
2086
+ # Specifies the event hold status to apply to the uploaded object. Set
2087
+ # to `ON` to enable or `OFF` to disable.
2088
+ #
2089
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2090
+ #
2091
+ # </note>
2092
+ # @option options [Integer] :object_lock_event_hold_duration_days
2093
+ # Specifies the event hold duration in days to apply to the uploaded
2094
+ # object.
2095
+ #
2096
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2097
+ #
2098
+ # </note>
2099
+ # @option options [Integer] :object_lock_event_hold_duration_years
2100
+ # Specifies the event hold duration in years to apply to the uploaded
2101
+ # object.
2102
+ #
2103
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2104
+ #
2105
+ # </note>
2060
2106
  # @option options [String] :expected_bucket_owner
2061
2107
  # The account ID of the expected bucket owner. If the account ID that
2062
2108
  # you provide does not match the actual owner of the bucket, the request
@@ -2142,6 +2188,9 @@ module Aws::S3
2142
2188
  # object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
2143
2189
  # object_lock_retain_until_date: Time.now,
2144
2190
  # object_lock_legal_hold_status: "ON", # accepts ON, OFF
2191
+ # object_lock_event_hold: "ON", # accepts ON, OFF
2192
+ # object_lock_event_hold_duration_days: 1,
2193
+ # object_lock_event_hold_duration_years: 1,
2145
2194
  # expected_bucket_owner: "AccountId",
2146
2195
  # })
2147
2196
  # @param [Hash] options ({})
@@ -2767,6 +2816,25 @@ module Aws::S3
2767
2816
  #
2768
2817
  #
2769
2818
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
2819
+ # @option options [String] :object_lock_event_hold
2820
+ # Specifies the event hold status to apply to this object. Set to `ON`
2821
+ # to enable or `OFF` to disable.
2822
+ #
2823
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2824
+ #
2825
+ # </note>
2826
+ # @option options [Integer] :object_lock_event_hold_duration_days
2827
+ # Specifies the event hold duration in days to apply to this object.
2828
+ #
2829
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2830
+ #
2831
+ # </note>
2832
+ # @option options [Integer] :object_lock_event_hold_duration_years
2833
+ # Specifies the event hold duration in years to apply to this object.
2834
+ #
2835
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2836
+ #
2837
+ # </note>
2770
2838
  # @option options [String] :expected_bucket_owner
2771
2839
  # The account ID of the expected bucket owner. If the account ID that
2772
2840
  # you provide does not match the actual owner of the bucket, the request
@@ -2974,6 +2974,31 @@ module Aws::S3
2974
2974
  # </note>
2975
2975
  # @return [String]
2976
2976
  #
2977
+ # @!attribute [rw] object_lock_event_hold
2978
+ # The event hold status to apply to the object copy. Set to `ON` to
2979
+ # enable or `OFF` to disable.
2980
+ #
2981
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2982
+ #
2983
+ # </note>
2984
+ # @return [String]
2985
+ #
2986
+ # @!attribute [rw] object_lock_event_hold_duration_days
2987
+ # The event hold duration in days to apply to the object copy.
2988
+ #
2989
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2990
+ #
2991
+ # </note>
2992
+ # @return [Integer]
2993
+ #
2994
+ # @!attribute [rw] object_lock_event_hold_duration_years
2995
+ # The event hold duration in years to apply to the object copy.
2996
+ #
2997
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2998
+ #
2999
+ # </note>
3000
+ # @return [Integer]
3001
+ #
2977
3002
  # @!attribute [rw] expected_bucket_owner
2978
3003
  # The account ID of the expected destination bucket owner. If the
2979
3004
  # account ID that you provide does not match the actual owner of the
@@ -3033,6 +3058,9 @@ module Aws::S3
3033
3058
  :object_lock_mode,
3034
3059
  :object_lock_retain_until_date,
3035
3060
  :object_lock_legal_hold_status,
3061
+ :object_lock_event_hold,
3062
+ :object_lock_event_hold_duration_days,
3063
+ :object_lock_event_hold_duration_years,
3036
3064
  :expected_bucket_owner,
3037
3065
  :expected_source_bucket_owner)
3038
3066
  SENSITIVE = [:sse_customer_key, :ssekms_key_id, :ssekms_encryption_context, :copy_source_sse_customer_key]
@@ -3062,9 +3090,9 @@ module Aws::S3
3062
3090
  #
3063
3091
  # @!attribute [rw] checksum_crc32
3064
3092
  # The Base64 encoded, 32-bit `CRC32` checksum of the object. This
3065
- # checksum is only present if the object was uploaded with the object.
3066
- # For more information, see [ Checking object integrity][1] in the
3067
- # *Amazon S3 User Guide*.
3093
+ # checksum is only present if the checksum was uploaded with the
3094
+ # object. For more information, see [ Checking object integrity][1] in
3095
+ # the *Amazon S3 User Guide*.
3068
3096
  #
3069
3097
  #
3070
3098
  #
@@ -4463,6 +4491,33 @@ module Aws::S3
4463
4491
  # </note>
4464
4492
  # @return [String]
4465
4493
  #
4494
+ # @!attribute [rw] object_lock_event_hold
4495
+ # Specifies the event hold status to apply to the uploaded object. Set
4496
+ # to `ON` to enable or `OFF` to disable.
4497
+ #
4498
+ # <note markdown="1"> This functionality is not supported for directory buckets.
4499
+ #
4500
+ # </note>
4501
+ # @return [String]
4502
+ #
4503
+ # @!attribute [rw] object_lock_event_hold_duration_days
4504
+ # Specifies the event hold duration in days to apply to the uploaded
4505
+ # object.
4506
+ #
4507
+ # <note markdown="1"> This functionality is not supported for directory buckets.
4508
+ #
4509
+ # </note>
4510
+ # @return [Integer]
4511
+ #
4512
+ # @!attribute [rw] object_lock_event_hold_duration_years
4513
+ # Specifies the event hold duration in years to apply to the uploaded
4514
+ # object.
4515
+ #
4516
+ # <note markdown="1"> This functionality is not supported for directory buckets.
4517
+ #
4518
+ # </note>
4519
+ # @return [Integer]
4520
+ #
4466
4521
  # @!attribute [rw] expected_bucket_owner
4467
4522
  # The account ID of the expected bucket owner. If the account ID that
4468
4523
  # you provide does not match the actual owner of the bucket, the
@@ -4521,6 +4576,9 @@ module Aws::S3
4521
4576
  :object_lock_mode,
4522
4577
  :object_lock_retain_until_date,
4523
4578
  :object_lock_legal_hold_status,
4579
+ :object_lock_event_hold,
4580
+ :object_lock_event_hold_duration_days,
4581
+ :object_lock_event_hold_duration_years,
4524
4582
  :expected_bucket_owner,
4525
4583
  :checksum_algorithm,
4526
4584
  :checksum_type)
@@ -4726,12 +4784,19 @@ module Aws::S3
4726
4784
  # retention period. Must be used with `Mode`.
4727
4785
  # @return [Integer]
4728
4786
  #
4787
+ # @!attribute [rw] default_event_hold
4788
+ # The default event hold duration to be applied to new objects placed
4789
+ # in the specified bucket. When configured, new objects will
4790
+ # automatically have an event hold enabled with this duration.
4791
+ # @return [Types::EventHoldDuration]
4792
+ #
4729
4793
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DefaultRetention AWS API Documentation
4730
4794
  #
4731
4795
  class DefaultRetention < Struct.new(
4732
4796
  :mode,
4733
4797
  :days,
4734
- :years)
4798
+ :years,
4799
+ :default_event_hold)
4735
4800
  SENSITIVE = []
4736
4801
  include Aws::Structure
4737
4802
  end
@@ -7144,6 +7209,28 @@ module Aws::S3
7144
7209
  #
7145
7210
  class EventBridgeConfiguration < Aws::EmptyStructure; end
7146
7211
 
7212
+ # Contains the event hold duration configuration, specified in either
7213
+ # days or years.
7214
+ #
7215
+ # @!attribute [rw] days
7216
+ # The number of days for the event hold duration. The minimum value is
7217
+ # 1 and the maximum value is 36,500.
7218
+ # @return [Integer]
7219
+ #
7220
+ # @!attribute [rw] years
7221
+ # The number of years for the event hold duration. The minimum value
7222
+ # is 1 and the maximum value is 100.
7223
+ # @return [Integer]
7224
+ #
7225
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/EventHoldDuration AWS API Documentation
7226
+ #
7227
+ class EventHoldDuration < Struct.new(
7228
+ :days,
7229
+ :years)
7230
+ SENSITIVE = []
7231
+ include Aws::Structure
7232
+ end
7233
+
7147
7234
  # Optional configuration to replicate existing source bucket objects.
7148
7235
  #
7149
7236
  # <note markdown="1"> This parameter is no longer supported. To replicate existing objects,
@@ -9120,9 +9207,9 @@ module Aws::S3
9120
9207
  #
9121
9208
  # @!attribute [rw] checksum_crc32
9122
9209
  # The Base64 encoded, 32-bit `CRC32` checksum of the object. This
9123
- # checksum is only present if the object was uploaded with the object.
9124
- # For more information, see [ Checking object integrity][1] in the
9125
- # *Amazon S3 User Guide*.
9210
+ # checksum is only present if the checksum was uploaded with the
9211
+ # object. For more information, see [ Checking object integrity][1] in
9212
+ # the *Amazon S3 User Guide*.
9126
9213
  #
9127
9214
  #
9128
9215
  #
@@ -9430,6 +9517,33 @@ module Aws::S3
9430
9517
  # </note>
9431
9518
  # @return [String]
9432
9519
  #
9520
+ # @!attribute [rw] object_lock_event_hold
9521
+ # The event hold status for this object. This header is only returned
9522
+ # if the requester has the `s3:GetObjectRetention` permission.
9523
+ #
9524
+ # <note markdown="1"> This functionality is not supported for directory buckets.
9525
+ #
9526
+ # </note>
9527
+ # @return [String]
9528
+ #
9529
+ # @!attribute [rw] object_lock_event_hold_duration_days
9530
+ # The event hold duration in days for this object. Only returned when
9531
+ # the event hold is enabled.
9532
+ #
9533
+ # <note markdown="1"> This functionality is not supported for directory buckets.
9534
+ #
9535
+ # </note>
9536
+ # @return [Integer]
9537
+ #
9538
+ # @!attribute [rw] object_lock_event_hold_duration_years
9539
+ # The event hold duration in years for this object. Only returned when
9540
+ # the event hold is enabled.
9541
+ #
9542
+ # <note markdown="1"> This functionality is not supported for directory buckets.
9543
+ #
9544
+ # </note>
9545
+ # @return [Integer]
9546
+ #
9433
9547
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectOutput AWS API Documentation
9434
9548
  #
9435
9549
  class GetObjectOutput < Struct.new(
@@ -9476,7 +9590,10 @@ module Aws::S3
9476
9590
  :tag_count,
9477
9591
  :object_lock_mode,
9478
9592
  :object_lock_retain_until_date,
9479
- :object_lock_legal_hold_status)
9593
+ :object_lock_legal_hold_status,
9594
+ :object_lock_event_hold,
9595
+ :object_lock_event_hold_duration_days,
9596
+ :object_lock_event_hold_duration_years)
9480
9597
  SENSITIVE = [:ssekms_key_id]
9481
9598
  include Aws::Structure
9482
9599
  end
@@ -10786,6 +10903,33 @@ module Aws::S3
10786
10903
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
10787
10904
  # @return [String]
10788
10905
  #
10906
+ # @!attribute [rw] object_lock_event_hold
10907
+ # The event hold status for this object. This header is only returned
10908
+ # if the requester has the `s3:GetObjectRetention` permission.
10909
+ #
10910
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10911
+ #
10912
+ # </note>
10913
+ # @return [String]
10914
+ #
10915
+ # @!attribute [rw] object_lock_event_hold_duration_days
10916
+ # The event hold duration in days for this object. Only returned when
10917
+ # the event hold is enabled.
10918
+ #
10919
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10920
+ #
10921
+ # </note>
10922
+ # @return [Integer]
10923
+ #
10924
+ # @!attribute [rw] object_lock_event_hold_duration_years
10925
+ # The event hold duration in years for this object. Only returned when
10926
+ # the event hold is enabled.
10927
+ #
10928
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10929
+ #
10930
+ # </note>
10931
+ # @return [Integer]
10932
+ #
10789
10933
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectOutput AWS API Documentation
10790
10934
  #
10791
10935
  class HeadObjectOutput < Struct.new(
@@ -10832,7 +10976,10 @@ module Aws::S3
10832
10976
  :tag_count,
10833
10977
  :object_lock_mode,
10834
10978
  :object_lock_retain_until_date,
10835
- :object_lock_legal_hold_status)
10979
+ :object_lock_legal_hold_status,
10980
+ :object_lock_event_hold,
10981
+ :object_lock_event_hold_duration_days,
10982
+ :object_lock_event_hold_duration_years)
10836
10983
  SENSITIVE = [:ssekms_key_id]
10837
10984
  include Aws::Structure
10838
10985
  end
@@ -15038,11 +15185,23 @@ module Aws::S3
15038
15185
  # The date on which this Object Lock Retention will expire.
15039
15186
  # @return [Time]
15040
15187
  #
15188
+ # @!attribute [rw] event_hold
15189
+ # The event hold status for the object. Set to `ON` to enable an event
15190
+ # hold or `OFF` to disable it.
15191
+ # @return [String]
15192
+ #
15193
+ # @!attribute [rw] event_hold_duration
15194
+ # The event hold duration for the object. Specifies how long the
15195
+ # object remains protected after the event hold is released.
15196
+ # @return [Types::EventHoldDuration]
15197
+ #
15041
15198
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectLockRetention AWS API Documentation
15042
15199
  #
15043
15200
  class ObjectLockRetention < Struct.new(
15044
15201
  :mode,
15045
- :retain_until_date)
15202
+ :retain_until_date,
15203
+ :event_hold,
15204
+ :event_hold_duration)
15046
15205
  SENSITIVE = []
15047
15206
  include Aws::Structure
15048
15207
  end
@@ -18733,6 +18892,31 @@ module Aws::S3
18733
18892
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
18734
18893
  # @return [String]
18735
18894
  #
18895
+ # @!attribute [rw] object_lock_event_hold
18896
+ # Specifies the event hold status to apply to this object. Set to `ON`
18897
+ # to enable or `OFF` to disable.
18898
+ #
18899
+ # <note markdown="1"> This functionality is not supported for directory buckets.
18900
+ #
18901
+ # </note>
18902
+ # @return [String]
18903
+ #
18904
+ # @!attribute [rw] object_lock_event_hold_duration_days
18905
+ # Specifies the event hold duration in days to apply to this object.
18906
+ #
18907
+ # <note markdown="1"> This functionality is not supported for directory buckets.
18908
+ #
18909
+ # </note>
18910
+ # @return [Integer]
18911
+ #
18912
+ # @!attribute [rw] object_lock_event_hold_duration_years
18913
+ # Specifies the event hold duration in years to apply to this object.
18914
+ #
18915
+ # <note markdown="1"> This functionality is not supported for directory buckets.
18916
+ #
18917
+ # </note>
18918
+ # @return [Integer]
18919
+ #
18736
18920
  # @!attribute [rw] expected_bucket_owner
18737
18921
  # The account ID of the expected bucket owner. If the account ID that
18738
18922
  # you provide does not match the actual owner of the bucket, the
@@ -18788,6 +18972,9 @@ module Aws::S3
18788
18972
  :object_lock_mode,
18789
18973
  :object_lock_retain_until_date,
18790
18974
  :object_lock_legal_hold_status,
18975
+ :object_lock_event_hold,
18976
+ :object_lock_event_hold_duration_days,
18977
+ :object_lock_event_hold_duration_years,
18791
18978
  :expected_bucket_owner)
18792
18979
  SENSITIVE = [:sse_customer_key, :ssekms_key_id, :ssekms_encryption_context]
18793
18980
  include Aws::Structure
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.229.0'
78
+ GEM_VERSION = '1.231.0'
79
79
 
80
80
  end
81
81
 
data/sig/bucket.rbs CHANGED
@@ -152,6 +152,9 @@ module Aws
152
152
  ?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
153
153
  ?object_lock_retain_until_date: ::Time,
154
154
  ?object_lock_legal_hold_status: ("ON" | "OFF"),
155
+ ?object_lock_event_hold: ("ON" | "OFF"),
156
+ ?object_lock_event_hold_duration_days: ::Integer,
157
+ ?object_lock_event_hold_duration_years: ::Integer,
155
158
  ?expected_bucket_owner: ::String
156
159
  ) -> Object
157
160
  | (?Hash[Symbol, untyped]) -> Object
@@ -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")],
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")],
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")],
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")],
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")],
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")],
87
87
  filter: {
88
88
  key: {
89
89
  filter_rules: Array[