aws-sdk-s3 1.229.0 → 1.243.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +111 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-s3/bucket.rb +24 -0
  5. data/lib/aws-sdk-s3/bucket_notification.rb +3 -3
  6. data/lib/aws-sdk-s3/client.rb +144 -29
  7. data/lib/aws-sdk-s3/client_api.rb +26 -0
  8. data/lib/aws-sdk-s3/customizations/object.rb +40 -28
  9. data/lib/aws-sdk-s3/default_executor.rb +65 -19
  10. data/lib/aws-sdk-s3/directory_downloader.rb +9 -3
  11. data/lib/aws-sdk-s3/directory_uploader.rb +4 -0
  12. data/lib/aws-sdk-s3/express_credentials.rb +4 -1
  13. data/lib/aws-sdk-s3/express_credentials_provider.rb +23 -12
  14. data/lib/aws-sdk-s3/file_downloader.rb +21 -14
  15. data/lib/aws-sdk-s3/multipart_file_uploader.rb +22 -15
  16. data/lib/aws-sdk-s3/multipart_stream_uploader.rb +32 -17
  17. data/lib/aws-sdk-s3/multipart_upload_error.rb +1 -1
  18. data/lib/aws-sdk-s3/object.rb +105 -0
  19. data/lib/aws-sdk-s3/object_multipart_copier.rb +1 -0
  20. data/lib/aws-sdk-s3/object_summary.rb +72 -0
  21. data/lib/aws-sdk-s3/plugins/express_session_auth.rb +10 -2
  22. data/lib/aws-sdk-s3/presigned_post.rb +50 -1
  23. data/lib/aws-sdk-s3/presigner.rb +1 -1
  24. data/lib/aws-sdk-s3/transfer_manager.rb +57 -37
  25. data/lib/aws-sdk-s3/types.rb +211 -15
  26. data/lib/aws-sdk-s3.rb +1 -1
  27. data/sig/bucket.rbs +3 -0
  28. data/sig/bucket_notification.rbs +3 -3
  29. data/sig/client.rbs +37 -12
  30. data/sig/customizations/errors.rbs +17 -0
  31. data/sig/errors.rbs +20 -20
  32. data/sig/multipart_upload_error.rbs +9 -0
  33. data/sig/object.rbs +18 -0
  34. data/sig/object_summary.rbs +9 -0
  35. data/sig/resource.rbs +1 -0
  36. data/sig/transfer_manager.rbs +31 -0
  37. data/sig/types.rbs +34 -10
  38. metadata +6 -3
@@ -2974,6 +2974,33 @@ 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. You
2988
+ # cannot specify a duration in both days and years.
2989
+ #
2990
+ # <note markdown="1"> This functionality is not supported for directory buckets.
2991
+ #
2992
+ # </note>
2993
+ # @return [Integer]
2994
+ #
2995
+ # @!attribute [rw] object_lock_event_hold_duration_years
2996
+ # The event hold duration in years to apply to the object copy. You
2997
+ # cannot specify a duration in both days and years.
2998
+ #
2999
+ # <note markdown="1"> This functionality is not supported for directory buckets.
3000
+ #
3001
+ # </note>
3002
+ # @return [Integer]
3003
+ #
2977
3004
  # @!attribute [rw] expected_bucket_owner
2978
3005
  # The account ID of the expected destination bucket owner. If the
2979
3006
  # account ID that you provide does not match the actual owner of the
@@ -3033,6 +3060,9 @@ module Aws::S3
3033
3060
  :object_lock_mode,
3034
3061
  :object_lock_retain_until_date,
3035
3062
  :object_lock_legal_hold_status,
3063
+ :object_lock_event_hold,
3064
+ :object_lock_event_hold_duration_days,
3065
+ :object_lock_event_hold_duration_years,
3036
3066
  :expected_bucket_owner,
3037
3067
  :expected_source_bucket_owner)
3038
3068
  SENSITIVE = [:sse_customer_key, :ssekms_key_id, :ssekms_encryption_context, :copy_source_sse_customer_key]
@@ -3062,9 +3092,9 @@ module Aws::S3
3062
3092
  #
3063
3093
  # @!attribute [rw] checksum_crc32
3064
3094
  # 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*.
3095
+ # checksum is only present if the checksum was uploaded with the
3096
+ # object. For more information, see [ Checking object integrity][1] in
3097
+ # the *Amazon S3 User Guide*.
3068
3098
  #
3069
3099
  #
3070
3100
  #
@@ -4463,6 +4493,33 @@ module Aws::S3
4463
4493
  # </note>
4464
4494
  # @return [String]
4465
4495
  #
4496
+ # @!attribute [rw] object_lock_event_hold
4497
+ # Specifies the event hold status to apply to the uploaded object. Set
4498
+ # to `ON` to enable or `OFF` to disable.
4499
+ #
4500
+ # <note markdown="1"> This functionality is not supported for directory buckets.
4501
+ #
4502
+ # </note>
4503
+ # @return [String]
4504
+ #
4505
+ # @!attribute [rw] object_lock_event_hold_duration_days
4506
+ # Specifies the event hold duration in days to apply to the uploaded
4507
+ # object. You cannot specify a duration in both days and years.
4508
+ #
4509
+ # <note markdown="1"> This functionality is not supported for directory buckets.
4510
+ #
4511
+ # </note>
4512
+ # @return [Integer]
4513
+ #
4514
+ # @!attribute [rw] object_lock_event_hold_duration_years
4515
+ # Specifies the event hold duration in years to apply to the uploaded
4516
+ # object. You cannot specify a duration in both days and years.
4517
+ #
4518
+ # <note markdown="1"> This functionality is not supported for directory buckets.
4519
+ #
4520
+ # </note>
4521
+ # @return [Integer]
4522
+ #
4466
4523
  # @!attribute [rw] expected_bucket_owner
4467
4524
  # The account ID of the expected bucket owner. If the account ID that
4468
4525
  # you provide does not match the actual owner of the bucket, the
@@ -4521,6 +4578,9 @@ module Aws::S3
4521
4578
  :object_lock_mode,
4522
4579
  :object_lock_retain_until_date,
4523
4580
  :object_lock_legal_hold_status,
4581
+ :object_lock_event_hold,
4582
+ :object_lock_event_hold_duration_days,
4583
+ :object_lock_event_hold_duration_years,
4524
4584
  :expected_bucket_owner,
4525
4585
  :checksum_algorithm,
4526
4586
  :checksum_type)
@@ -4726,12 +4786,19 @@ module Aws::S3
4726
4786
  # retention period. Must be used with `Mode`.
4727
4787
  # @return [Integer]
4728
4788
  #
4789
+ # @!attribute [rw] default_event_hold
4790
+ # The default event hold duration to be applied to new objects placed
4791
+ # in the specified bucket. When configured, new objects will
4792
+ # automatically have an event hold enabled with this duration.
4793
+ # @return [Types::EventHoldDuration]
4794
+ #
4729
4795
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DefaultRetention AWS API Documentation
4730
4796
  #
4731
4797
  class DefaultRetention < Struct.new(
4732
4798
  :mode,
4733
4799
  :days,
4734
- :years)
4800
+ :years,
4801
+ :default_event_hold)
4735
4802
  SENSITIVE = []
4736
4803
  include Aws::Structure
4737
4804
  end
@@ -7144,6 +7211,28 @@ module Aws::S3
7144
7211
  #
7145
7212
  class EventBridgeConfiguration < Aws::EmptyStructure; end
7146
7213
 
7214
+ # Contains the event hold duration configuration, specified in either
7215
+ # days or years.
7216
+ #
7217
+ # @!attribute [rw] days
7218
+ # The number of days for the event hold duration. The minimum value is
7219
+ # 1 and the maximum value is 36,500.
7220
+ # @return [Integer]
7221
+ #
7222
+ # @!attribute [rw] years
7223
+ # The number of years for the event hold duration. The minimum value
7224
+ # is 1 and the maximum value is 100.
7225
+ # @return [Integer]
7226
+ #
7227
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/EventHoldDuration AWS API Documentation
7228
+ #
7229
+ class EventHoldDuration < Struct.new(
7230
+ :days,
7231
+ :years)
7232
+ SENSITIVE = []
7233
+ include Aws::Structure
7234
+ end
7235
+
7147
7236
  # Optional configuration to replicate existing source bucket objects.
7148
7237
  #
7149
7238
  # <note markdown="1"> This parameter is no longer supported. To replicate existing objects,
@@ -9120,9 +9209,9 @@ module Aws::S3
9120
9209
  #
9121
9210
  # @!attribute [rw] checksum_crc32
9122
9211
  # 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*.
9212
+ # checksum is only present if the checksum was uploaded with the
9213
+ # object. For more information, see [ Checking object integrity][1] in
9214
+ # the *Amazon S3 User Guide*.
9126
9215
  #
9127
9216
  #
9128
9217
  #
@@ -9430,6 +9519,33 @@ module Aws::S3
9430
9519
  # </note>
9431
9520
  # @return [String]
9432
9521
  #
9522
+ # @!attribute [rw] object_lock_event_hold
9523
+ # The event hold status for this object. This header is only returned
9524
+ # if the requester has the `s3:GetObjectRetention` permission.
9525
+ #
9526
+ # <note markdown="1"> This functionality is not supported for directory buckets.
9527
+ #
9528
+ # </note>
9529
+ # @return [String]
9530
+ #
9531
+ # @!attribute [rw] object_lock_event_hold_duration_days
9532
+ # The event hold duration in days for this object. Only returned when
9533
+ # the event hold is enabled.
9534
+ #
9535
+ # <note markdown="1"> This functionality is not supported for directory buckets.
9536
+ #
9537
+ # </note>
9538
+ # @return [Integer]
9539
+ #
9540
+ # @!attribute [rw] object_lock_event_hold_duration_years
9541
+ # The event hold duration in years for this object. Only returned when
9542
+ # the event hold is enabled.
9543
+ #
9544
+ # <note markdown="1"> This functionality is not supported for directory buckets.
9545
+ #
9546
+ # </note>
9547
+ # @return [Integer]
9548
+ #
9433
9549
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectOutput AWS API Documentation
9434
9550
  #
9435
9551
  class GetObjectOutput < Struct.new(
@@ -9476,7 +9592,10 @@ module Aws::S3
9476
9592
  :tag_count,
9477
9593
  :object_lock_mode,
9478
9594
  :object_lock_retain_until_date,
9479
- :object_lock_legal_hold_status)
9595
+ :object_lock_legal_hold_status,
9596
+ :object_lock_event_hold,
9597
+ :object_lock_event_hold_duration_days,
9598
+ :object_lock_event_hold_duration_years)
9480
9599
  SENSITIVE = [:ssekms_key_id]
9481
9600
  include Aws::Structure
9482
9601
  end
@@ -10786,6 +10905,33 @@ module Aws::S3
10786
10905
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
10787
10906
  # @return [String]
10788
10907
  #
10908
+ # @!attribute [rw] object_lock_event_hold
10909
+ # The event hold status for this object. This header is only returned
10910
+ # if the requester has the `s3:GetObjectRetention` permission.
10911
+ #
10912
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10913
+ #
10914
+ # </note>
10915
+ # @return [String]
10916
+ #
10917
+ # @!attribute [rw] object_lock_event_hold_duration_days
10918
+ # The event hold duration in days for this object. Only returned when
10919
+ # the event hold is enabled.
10920
+ #
10921
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10922
+ #
10923
+ # </note>
10924
+ # @return [Integer]
10925
+ #
10926
+ # @!attribute [rw] object_lock_event_hold_duration_years
10927
+ # The event hold duration in years for this object. Only returned when
10928
+ # the event hold is enabled.
10929
+ #
10930
+ # <note markdown="1"> This functionality is not supported for directory buckets.
10931
+ #
10932
+ # </note>
10933
+ # @return [Integer]
10934
+ #
10789
10935
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectOutput AWS API Documentation
10790
10936
  #
10791
10937
  class HeadObjectOutput < Struct.new(
@@ -10832,7 +10978,10 @@ module Aws::S3
10832
10978
  :tag_count,
10833
10979
  :object_lock_mode,
10834
10980
  :object_lock_retain_until_date,
10835
- :object_lock_legal_hold_status)
10981
+ :object_lock_legal_hold_status,
10982
+ :object_lock_event_hold,
10983
+ :object_lock_event_hold_duration_days,
10984
+ :object_lock_event_hold_duration_years)
10836
10985
  SENSITIVE = [:ssekms_key_id]
10837
10986
  include Aws::Structure
10838
10987
  end
@@ -15038,11 +15187,23 @@ module Aws::S3
15038
15187
  # The date on which this Object Lock Retention will expire.
15039
15188
  # @return [Time]
15040
15189
  #
15190
+ # @!attribute [rw] event_hold
15191
+ # The event hold status for the object. Set to `ON` to enable an event
15192
+ # hold or `OFF` to disable it.
15193
+ # @return [String]
15194
+ #
15195
+ # @!attribute [rw] event_hold_duration
15196
+ # The event hold duration for the object. Specifies how long the
15197
+ # object remains protected after the event hold is released.
15198
+ # @return [Types::EventHoldDuration]
15199
+ #
15041
15200
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectLockRetention AWS API Documentation
15042
15201
  #
15043
15202
  class ObjectLockRetention < Struct.new(
15044
15203
  :mode,
15045
- :retain_until_date)
15204
+ :retain_until_date,
15205
+ :event_hold,
15206
+ :event_hold_duration)
15046
15207
  SENSITIVE = []
15047
15208
  include Aws::Structure
15048
15209
  end
@@ -15050,11 +15211,16 @@ module Aws::S3
15050
15211
  # The container element for an Object Lock rule.
15051
15212
  #
15052
15213
  # @!attribute [rw] default_retention
15053
- # The default Object Lock retention mode and period that you want to
15054
- # apply to new objects placed in the specified bucket. Bucket settings
15055
- # require both a mode and a period. The period can be either `Days` or
15056
- # `Years` but you must select one. You cannot specify `Days` and
15057
- # `Years` at the same time.
15214
+ # The default Object Lock retention settings for new objects in this
15215
+ # bucket. You can specify:
15216
+ #
15217
+ # * A default retention period, by using `Days` or `Years`.
15218
+ #
15219
+ # * A default event hold duration, by using `DefaultEventHold`. This
15220
+ # setting also uses days or years.
15221
+ #
15222
+ # You can set one or both. You cannot use days and years in the same
15223
+ # setting.
15058
15224
  # @return [Types::DefaultRetention]
15059
15225
  #
15060
15226
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectLockRule AWS API Documentation
@@ -18733,6 +18899,33 @@ module Aws::S3
18733
18899
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
18734
18900
  # @return [String]
18735
18901
  #
18902
+ # @!attribute [rw] object_lock_event_hold
18903
+ # Specifies the event hold status to apply to this object. Set to `ON`
18904
+ # to enable or `OFF` to disable.
18905
+ #
18906
+ # <note markdown="1"> This functionality is not supported for directory buckets.
18907
+ #
18908
+ # </note>
18909
+ # @return [String]
18910
+ #
18911
+ # @!attribute [rw] object_lock_event_hold_duration_days
18912
+ # Specifies the event hold duration in days to apply to this object.
18913
+ # You cannot specify a duration in both days and years.
18914
+ #
18915
+ # <note markdown="1"> This functionality is not supported for directory buckets.
18916
+ #
18917
+ # </note>
18918
+ # @return [Integer]
18919
+ #
18920
+ # @!attribute [rw] object_lock_event_hold_duration_years
18921
+ # Specifies the event hold duration in years to apply to this object.
18922
+ # You cannot specify a duration in both days and years.
18923
+ #
18924
+ # <note markdown="1"> This functionality is not supported for directory buckets.
18925
+ #
18926
+ # </note>
18927
+ # @return [Integer]
18928
+ #
18736
18929
  # @!attribute [rw] expected_bucket_owner
18737
18930
  # The account ID of the expected bucket owner. If the account ID that
18738
18931
  # you provide does not match the actual owner of the bucket, the
@@ -18788,6 +18981,9 @@ module Aws::S3
18788
18981
  :object_lock_mode,
18789
18982
  :object_lock_retain_until_date,
18790
18983
  :object_lock_legal_hold_status,
18984
+ :object_lock_event_hold,
18985
+ :object_lock_event_hold_duration_days,
18986
+ :object_lock_event_hold_duration_years,
18791
18987
  :expected_bucket_owner)
18792
18988
  SENSITIVE = [:sse_customer_key, :ssekms_key_id, :ssekms_encryption_context]
18793
18989
  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.243.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[
data/sig/client.rbs CHANGED
@@ -30,6 +30,7 @@ module Aws
30
30
  ?convert_params: bool,
31
31
  ?correct_clock_skew: bool,
32
32
  ?defaults_mode: String,
33
+ ?disable_clock_skew_correction: bool,
33
34
  ?disable_host_prefix_injection: bool,
34
35
  ?disable_request_compression: bool,
35
36
  ?disable_s3_express_session_auth: bool,
@@ -235,6 +236,9 @@ module Aws
235
236
  ?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
236
237
  ?object_lock_retain_until_date: ::Time,
237
238
  ?object_lock_legal_hold_status: ("ON" | "OFF"),
239
+ ?object_lock_event_hold: ("ON" | "OFF"),
240
+ ?object_lock_event_hold_duration_days: ::Integer,
241
+ ?object_lock_event_hold_duration_years: ::Integer,
238
242
  ?expected_bucket_owner: ::String,
239
243
  ?expected_source_bucket_owner: ::String
240
244
  ) -> _CopyObjectResponseSuccess
@@ -375,6 +379,9 @@ module Aws
375
379
  ?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
376
380
  ?object_lock_retain_until_date: ::Time,
377
381
  ?object_lock_legal_hold_status: ("ON" | "OFF"),
382
+ ?object_lock_event_hold: ("ON" | "OFF"),
383
+ ?object_lock_event_hold_duration_days: ::Integer,
384
+ ?object_lock_event_hold_duration_years: ::Integer,
378
385
  ?expected_bucket_owner: ::String,
379
386
  ?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256" | "CRC64NVME" | "SHA512" | "MD5" | "XXHASH64" | "XXHASH3" | "XXHASH128"),
380
387
  ?checksum_type: ("COMPOSITE" | "FULL_OBJECT")
@@ -934,6 +941,9 @@ module Aws
934
941
  def object_lock_mode: () -> ("GOVERNANCE" | "COMPLIANCE")
935
942
  def object_lock_retain_until_date: () -> ::Time
936
943
  def object_lock_legal_hold_status: () -> ("ON" | "OFF")
944
+ def object_lock_event_hold: () -> ("ON" | "OFF")
945
+ def object_lock_event_hold_duration_days: () -> ::Integer
946
+ def object_lock_event_hold_duration_years: () -> ::Integer
937
947
  end
938
948
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#get_object-instance_method
939
949
  def get_object: (
@@ -1179,6 +1189,9 @@ module Aws
1179
1189
  def object_lock_mode: () -> ("GOVERNANCE" | "COMPLIANCE")
1180
1190
  def object_lock_retain_until_date: () -> ::Time
1181
1191
  def object_lock_legal_hold_status: () -> ("ON" | "OFF")
1192
+ def object_lock_event_hold: () -> ("ON" | "OFF")
1193
+ def object_lock_event_hold_duration_days: () -> ::Integer
1194
+ def object_lock_event_hold_duration_years: () -> ::Integer
1182
1195
  end
1183
1196
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#head_object-instance_method
1184
1197
  def head_object: (
@@ -1659,7 +1672,7 @@ module Aws
1659
1672
  }?,
1660
1673
  id: ::String,
1661
1674
  included_object_versions: ("All" | "Current"),
1662
- optional_fields: Array[("Size" | "LastModifiedDate" | "StorageClass" | "ETag" | "IsMultipartUploaded" | "ReplicationStatus" | "EncryptionStatus" | "ObjectLockRetainUntilDate" | "ObjectLockMode" | "ObjectLockLegalHoldStatus" | "IntelligentTieringAccessTier" | "BucketKeyStatus" | "ChecksumAlgorithm" | "ObjectAccessControlList" | "ObjectOwner" | "LifecycleExpirationDate")]?,
1675
+ optional_fields: Array[("Size" | "LastModifiedDate" | "StorageClass" | "ETag" | "IsMultipartUploaded" | "ReplicationStatus" | "EncryptionStatus" | "ObjectLockRetainUntilDate" | "ObjectLockMode" | "ObjectLockLegalHoldStatus" | "ObjectLockEventHoldStatus" | "ObjectLockEventHoldDuration" | "IntelligentTieringAccessTier" | "BucketKeyStatus" | "ChecksumAlgorithm" | "ObjectAccessControlList" | "ObjectOwner" | "LifecycleExpirationDate" | "IntelligentTieringReferenceDate")]?,
1663
1676
  schedule: {
1664
1677
  frequency: ("Daily" | "Weekly")
1665
1678
  }
@@ -1847,20 +1860,20 @@ module Aws
1847
1860
  notification_configuration: {
1848
1861
  topic_configuration: {
1849
1862
  id: ::String?,
1850
- 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")]?,
1851
- event: ("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")?,
1863
+ 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")]?,
1864
+ event: ("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")?,
1852
1865
  topic: ::String?
1853
1866
  }?,
1854
1867
  queue_configuration: {
1855
1868
  id: ::String?,
1856
- event: ("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")?,
1857
- 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")]?,
1869
+ event: ("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")?,
1870
+ 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")]?,
1858
1871
  queue: ::String?
1859
1872
  }?,
1860
1873
  cloud_function_configuration: {
1861
1874
  id: ::String?,
1862
- event: ("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")?,
1863
- 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")]?,
1875
+ event: ("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")?,
1876
+ 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")]?,
1864
1877
  cloud_function: ::String?,
1865
1878
  invocation_role: ::String?
1866
1879
  }?
@@ -1877,7 +1890,7 @@ module Aws
1877
1890
  {
1878
1891
  id: ::String?,
1879
1892
  topic_arn: ::String,
1880
- 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")],
1893
+ 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")],
1881
1894
  filter: Params::notification_configuration_filter?
1882
1895
  }
1883
1896
  ]?,
@@ -1885,7 +1898,7 @@ module Aws
1885
1898
  {
1886
1899
  id: ::String?,
1887
1900
  queue_arn: ::String,
1888
- 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")],
1901
+ 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")],
1889
1902
  filter: Params::notification_configuration_filter?
1890
1903
  }
1891
1904
  ]?,
@@ -1893,7 +1906,7 @@ module Aws
1893
1906
  {
1894
1907
  id: ::String?,
1895
1908
  lambda_function_arn: ::String,
1896
- 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")],
1909
+ 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")],
1897
1910
  filter: Params::notification_configuration_filter?
1898
1911
  }
1899
1912
  ]?,
@@ -2157,6 +2170,9 @@ module Aws
2157
2170
  ?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
2158
2171
  ?object_lock_retain_until_date: ::Time,
2159
2172
  ?object_lock_legal_hold_status: ("ON" | "OFF"),
2173
+ ?object_lock_event_hold: ("ON" | "OFF"),
2174
+ ?object_lock_event_hold_duration_days: ::Integer,
2175
+ ?object_lock_event_hold_duration_years: ::Integer,
2160
2176
  ?expected_bucket_owner: ::String
2161
2177
  ) -> _PutObjectResponseSuccess
2162
2178
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutObjectResponseSuccess
@@ -2261,7 +2277,11 @@ module Aws
2261
2277
  default_retention: {
2262
2278
  mode: ("GOVERNANCE" | "COMPLIANCE")?,
2263
2279
  days: ::Integer?,
2264
- years: ::Integer?
2280
+ years: ::Integer?,
2281
+ default_event_hold: {
2282
+ days: ::Integer?,
2283
+ years: ::Integer?
2284
+ }?
2265
2285
  }?
2266
2286
  }?
2267
2287
  },
@@ -2283,7 +2303,12 @@ module Aws
2283
2303
  key: ::String,
2284
2304
  ?retention: {
2285
2305
  mode: ("GOVERNANCE" | "COMPLIANCE")?,
2286
- retain_until_date: ::Time?
2306
+ retain_until_date: ::Time?,
2307
+ event_hold: ("ON" | "OFF")?,
2308
+ event_hold_duration: {
2309
+ days: ::Integer?,
2310
+ years: ::Integer?
2311
+ }?
2287
2312
  },
2288
2313
  ?request_payer: ("requester"),
2289
2314
  ?version_id: ::String,
@@ -0,0 +1,17 @@
1
+ module Aws
2
+ module S3
3
+ module Errors
4
+ # Not modeled in the API. Defined at runtime by Aws::Errors::DynamicErrors.
5
+
6
+ # Raised for a 404 response without an error body (e.g. HEAD requests).
7
+ # https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html
8
+ class NotFound < ServiceError
9
+ end
10
+
11
+ # Raised when S3 returns a 503 Slow Down response because the request rate is too high.
12
+ # https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ErrorCodeList
13
+ class SlowDown < ServiceError
14
+ end
15
+ end
16
+ end
17
+ end