aws-sdk-s3 1.229.0 → 1.232.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +24 -0
- data/lib/aws-sdk-s3/bucket_notification.rb +3 -3
- data/lib/aws-sdk-s3/client.rb +129 -22
- data/lib/aws-sdk-s3/client_api.rb +26 -0
- data/lib/aws-sdk-s3/object.rb +105 -0
- data/lib/aws-sdk-s3/object_summary.rb +72 -0
- data/lib/aws-sdk-s3/types.rb +211 -15
- data/lib/aws-sdk-s3.rb +1 -1
- data/sig/bucket.rbs +3 -0
- data/sig/bucket_notification.rbs +3 -3
- data/sig/client.rbs +36 -12
- data/sig/object.rbs +18 -0
- data/sig/object_summary.rbs +9 -0
- data/sig/types.rbs +34 -10
- metadata +3 -3
|
@@ -215,6 +215,7 @@ module Aws::S3
|
|
|
215
215
|
Errors = Shapes::ListShape.new(name: 'Errors', flattened: true)
|
|
216
216
|
Event = Shapes::StringShape.new(name: 'Event')
|
|
217
217
|
EventBridgeConfiguration = Shapes::StructureShape.new(name: 'EventBridgeConfiguration')
|
|
218
|
+
EventHoldDuration = Shapes::StructureShape.new(name: 'EventHoldDuration')
|
|
218
219
|
EventList = Shapes::ListShape.new(name: 'EventList', flattened: true)
|
|
219
220
|
ExistingObjectReplication = Shapes::StructureShape.new(name: 'ExistingObjectReplication')
|
|
220
221
|
ExistingObjectReplicationStatus = Shapes::StringShape.new(name: 'ExistingObjectReplicationStatus')
|
|
@@ -490,6 +491,9 @@ module Aws::S3
|
|
|
490
491
|
ObjectLockConfiguration = Shapes::StructureShape.new(name: 'ObjectLockConfiguration')
|
|
491
492
|
ObjectLockEnabled = Shapes::StringShape.new(name: 'ObjectLockEnabled')
|
|
492
493
|
ObjectLockEnabledForBucket = Shapes::BooleanShape.new(name: 'ObjectLockEnabledForBucket')
|
|
494
|
+
ObjectLockEventHold = Shapes::StringShape.new(name: 'ObjectLockEventHold')
|
|
495
|
+
ObjectLockEventHoldDurationDays = Shapes::IntegerShape.new(name: 'ObjectLockEventHoldDurationDays')
|
|
496
|
+
ObjectLockEventHoldDurationYears = Shapes::IntegerShape.new(name: 'ObjectLockEventHoldDurationYears')
|
|
493
497
|
ObjectLockLegalHold = Shapes::StructureShape.new(name: 'ObjectLockLegalHold')
|
|
494
498
|
ObjectLockLegalHoldStatus = Shapes::StringShape.new(name: 'ObjectLockLegalHoldStatus')
|
|
495
499
|
ObjectLockMode = Shapes::StringShape.new(name: 'ObjectLockMode')
|
|
@@ -1039,6 +1043,9 @@ module Aws::S3
|
|
|
1039
1043
|
CopyObjectRequest.add_member(:object_lock_mode, Shapes::ShapeRef.new(shape: ObjectLockMode, location: "header", location_name: "x-amz-object-lock-mode"))
|
|
1040
1044
|
CopyObjectRequest.add_member(:object_lock_retain_until_date, Shapes::ShapeRef.new(shape: ObjectLockRetainUntilDate, location: "header", location_name: "x-amz-object-lock-retain-until-date"))
|
|
1041
1045
|
CopyObjectRequest.add_member(:object_lock_legal_hold_status, Shapes::ShapeRef.new(shape: ObjectLockLegalHoldStatus, location: "header", location_name: "x-amz-object-lock-legal-hold"))
|
|
1046
|
+
CopyObjectRequest.add_member(:object_lock_event_hold, Shapes::ShapeRef.new(shape: ObjectLockEventHold, location: "header", location_name: "x-amz-object-lock-event-hold"))
|
|
1047
|
+
CopyObjectRequest.add_member(:object_lock_event_hold_duration_days, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationDays, location: "header", location_name: "x-amz-object-lock-event-hold-duration-days"))
|
|
1048
|
+
CopyObjectRequest.add_member(:object_lock_event_hold_duration_years, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationYears, location: "header", location_name: "x-amz-object-lock-event-hold-duration-years"))
|
|
1042
1049
|
CopyObjectRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
|
1043
1050
|
CopyObjectRequest.add_member(:expected_source_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-source-expected-bucket-owner"))
|
|
1044
1051
|
CopyObjectRequest.struct_class = Types::CopyObjectRequest
|
|
@@ -1159,6 +1166,9 @@ module Aws::S3
|
|
|
1159
1166
|
CreateMultipartUploadRequest.add_member(:object_lock_mode, Shapes::ShapeRef.new(shape: ObjectLockMode, location: "header", location_name: "x-amz-object-lock-mode"))
|
|
1160
1167
|
CreateMultipartUploadRequest.add_member(:object_lock_retain_until_date, Shapes::ShapeRef.new(shape: ObjectLockRetainUntilDate, location: "header", location_name: "x-amz-object-lock-retain-until-date"))
|
|
1161
1168
|
CreateMultipartUploadRequest.add_member(:object_lock_legal_hold_status, Shapes::ShapeRef.new(shape: ObjectLockLegalHoldStatus, location: "header", location_name: "x-amz-object-lock-legal-hold"))
|
|
1169
|
+
CreateMultipartUploadRequest.add_member(:object_lock_event_hold, Shapes::ShapeRef.new(shape: ObjectLockEventHold, location: "header", location_name: "x-amz-object-lock-event-hold"))
|
|
1170
|
+
CreateMultipartUploadRequest.add_member(:object_lock_event_hold_duration_days, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationDays, location: "header", location_name: "x-amz-object-lock-event-hold-duration-days"))
|
|
1171
|
+
CreateMultipartUploadRequest.add_member(:object_lock_event_hold_duration_years, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationYears, location: "header", location_name: "x-amz-object-lock-event-hold-duration-years"))
|
|
1162
1172
|
CreateMultipartUploadRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
|
1163
1173
|
CreateMultipartUploadRequest.add_member(:checksum_algorithm, Shapes::ShapeRef.new(shape: ChecksumAlgorithm, location: "header", location_name: "x-amz-checksum-algorithm"))
|
|
1164
1174
|
CreateMultipartUploadRequest.add_member(:checksum_type, Shapes::ShapeRef.new(shape: ChecksumType, location: "header", location_name: "x-amz-checksum-type"))
|
|
@@ -1182,6 +1192,7 @@ module Aws::S3
|
|
|
1182
1192
|
DefaultRetention.add_member(:mode, Shapes::ShapeRef.new(shape: ObjectLockRetentionMode, location_name: "Mode"))
|
|
1183
1193
|
DefaultRetention.add_member(:days, Shapes::ShapeRef.new(shape: Days, location_name: "Days"))
|
|
1184
1194
|
DefaultRetention.add_member(:years, Shapes::ShapeRef.new(shape: Years, location_name: "Years"))
|
|
1195
|
+
DefaultRetention.add_member(:default_event_hold, Shapes::ShapeRef.new(shape: EventHoldDuration, location_name: "DefaultEventHold"))
|
|
1185
1196
|
DefaultRetention.struct_class = Types::DefaultRetention
|
|
1186
1197
|
|
|
1187
1198
|
Delete.add_member(:objects, Shapes::ShapeRef.new(shape: ObjectIdentifierList, required: true, location_name: "Object"))
|
|
@@ -1376,6 +1387,10 @@ module Aws::S3
|
|
|
1376
1387
|
|
|
1377
1388
|
EventBridgeConfiguration.struct_class = Types::EventBridgeConfiguration
|
|
1378
1389
|
|
|
1390
|
+
EventHoldDuration.add_member(:days, Shapes::ShapeRef.new(shape: Days, location_name: "Days"))
|
|
1391
|
+
EventHoldDuration.add_member(:years, Shapes::ShapeRef.new(shape: Years, location_name: "Years"))
|
|
1392
|
+
EventHoldDuration.struct_class = Types::EventHoldDuration
|
|
1393
|
+
|
|
1379
1394
|
EventList.member = Shapes::ShapeRef.new(shape: Event)
|
|
1380
1395
|
|
|
1381
1396
|
ExistingObjectReplication.add_member(:status, Shapes::ShapeRef.new(shape: ExistingObjectReplicationStatus, required: true, location_name: "Status"))
|
|
@@ -1739,6 +1754,9 @@ module Aws::S3
|
|
|
1739
1754
|
GetObjectOutput.add_member(:object_lock_mode, Shapes::ShapeRef.new(shape: ObjectLockMode, location: "header", location_name: "x-amz-object-lock-mode"))
|
|
1740
1755
|
GetObjectOutput.add_member(:object_lock_retain_until_date, Shapes::ShapeRef.new(shape: ObjectLockRetainUntilDate, location: "header", location_name: "x-amz-object-lock-retain-until-date"))
|
|
1741
1756
|
GetObjectOutput.add_member(:object_lock_legal_hold_status, Shapes::ShapeRef.new(shape: ObjectLockLegalHoldStatus, location: "header", location_name: "x-amz-object-lock-legal-hold"))
|
|
1757
|
+
GetObjectOutput.add_member(:object_lock_event_hold, Shapes::ShapeRef.new(shape: ObjectLockEventHold, location: "header", location_name: "x-amz-object-lock-event-hold"))
|
|
1758
|
+
GetObjectOutput.add_member(:object_lock_event_hold_duration_days, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationDays, location: "header", location_name: "x-amz-object-lock-event-hold-duration-days"))
|
|
1759
|
+
GetObjectOutput.add_member(:object_lock_event_hold_duration_years, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationYears, location: "header", location_name: "x-amz-object-lock-event-hold-duration-years"))
|
|
1742
1760
|
GetObjectOutput.struct_class = Types::GetObjectOutput
|
|
1743
1761
|
GetObjectOutput[:payload] = :body
|
|
1744
1762
|
GetObjectOutput[:payload_member] = GetObjectOutput.member(:body)
|
|
@@ -1881,6 +1899,9 @@ module Aws::S3
|
|
|
1881
1899
|
HeadObjectOutput.add_member(:object_lock_mode, Shapes::ShapeRef.new(shape: ObjectLockMode, location: "header", location_name: "x-amz-object-lock-mode"))
|
|
1882
1900
|
HeadObjectOutput.add_member(:object_lock_retain_until_date, Shapes::ShapeRef.new(shape: ObjectLockRetainUntilDate, location: "header", location_name: "x-amz-object-lock-retain-until-date"))
|
|
1883
1901
|
HeadObjectOutput.add_member(:object_lock_legal_hold_status, Shapes::ShapeRef.new(shape: ObjectLockLegalHoldStatus, location: "header", location_name: "x-amz-object-lock-legal-hold"))
|
|
1902
|
+
HeadObjectOutput.add_member(:object_lock_event_hold, Shapes::ShapeRef.new(shape: ObjectLockEventHold, location: "header", location_name: "x-amz-object-lock-event-hold"))
|
|
1903
|
+
HeadObjectOutput.add_member(:object_lock_event_hold_duration_days, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationDays, location: "header", location_name: "x-amz-object-lock-event-hold-duration-days"))
|
|
1904
|
+
HeadObjectOutput.add_member(:object_lock_event_hold_duration_years, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationYears, location: "header", location_name: "x-amz-object-lock-event-hold-duration-years"))
|
|
1884
1905
|
HeadObjectOutput.struct_class = Types::HeadObjectOutput
|
|
1885
1906
|
|
|
1886
1907
|
HeadObjectRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "Bucket", metadata: {"contextParam" => {"name" => "Bucket"}}))
|
|
@@ -2427,6 +2448,8 @@ module Aws::S3
|
|
|
2427
2448
|
|
|
2428
2449
|
ObjectLockRetention.add_member(:mode, Shapes::ShapeRef.new(shape: ObjectLockRetentionMode, location_name: "Mode"))
|
|
2429
2450
|
ObjectLockRetention.add_member(:retain_until_date, Shapes::ShapeRef.new(shape: Date, location_name: "RetainUntilDate"))
|
|
2451
|
+
ObjectLockRetention.add_member(:event_hold, Shapes::ShapeRef.new(shape: ObjectLockEventHold, location_name: "EventHold"))
|
|
2452
|
+
ObjectLockRetention.add_member(:event_hold_duration, Shapes::ShapeRef.new(shape: EventHoldDuration, location_name: "EventHoldDuration"))
|
|
2430
2453
|
ObjectLockRetention.struct_class = Types::ObjectLockRetention
|
|
2431
2454
|
|
|
2432
2455
|
ObjectLockRule.add_member(:default_retention, Shapes::ShapeRef.new(shape: DefaultRetention, location_name: "DefaultRetention"))
|
|
@@ -2883,6 +2906,9 @@ module Aws::S3
|
|
|
2883
2906
|
PutObjectRequest.add_member(:object_lock_mode, Shapes::ShapeRef.new(shape: ObjectLockMode, location: "header", location_name: "x-amz-object-lock-mode"))
|
|
2884
2907
|
PutObjectRequest.add_member(:object_lock_retain_until_date, Shapes::ShapeRef.new(shape: ObjectLockRetainUntilDate, location: "header", location_name: "x-amz-object-lock-retain-until-date"))
|
|
2885
2908
|
PutObjectRequest.add_member(:object_lock_legal_hold_status, Shapes::ShapeRef.new(shape: ObjectLockLegalHoldStatus, location: "header", location_name: "x-amz-object-lock-legal-hold"))
|
|
2909
|
+
PutObjectRequest.add_member(:object_lock_event_hold, Shapes::ShapeRef.new(shape: ObjectLockEventHold, location: "header", location_name: "x-amz-object-lock-event-hold"))
|
|
2910
|
+
PutObjectRequest.add_member(:object_lock_event_hold_duration_days, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationDays, location: "header", location_name: "x-amz-object-lock-event-hold-duration-days"))
|
|
2911
|
+
PutObjectRequest.add_member(:object_lock_event_hold_duration_years, Shapes::ShapeRef.new(shape: ObjectLockEventHoldDurationYears, location: "header", location_name: "x-amz-object-lock-event-hold-duration-years"))
|
|
2886
2912
|
PutObjectRequest.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-expected-bucket-owner"))
|
|
2887
2913
|
PutObjectRequest.struct_class = Types::PutObjectRequest
|
|
2888
2914
|
PutObjectRequest[:payload] = :body
|
data/lib/aws-sdk-s3/object.rb
CHANGED
|
@@ -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,27 @@ 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. You
|
|
1631
|
+
# cannot specify a duration in both days and years.
|
|
1632
|
+
#
|
|
1633
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
1634
|
+
#
|
|
1635
|
+
# </note>
|
|
1636
|
+
# @option options [Integer] :object_lock_event_hold_duration_years
|
|
1637
|
+
# The event hold duration in years to apply to the object copy. You
|
|
1638
|
+
# cannot specify a duration in both days and years.
|
|
1639
|
+
#
|
|
1640
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
1641
|
+
#
|
|
1642
|
+
# </note>
|
|
1586
1643
|
# @option options [String] :expected_bucket_owner
|
|
1587
1644
|
# The account ID of the expected destination bucket owner. If the
|
|
1588
1645
|
# account ID that you provide does not match the actual owner of the
|
|
@@ -1999,6 +2056,9 @@ module Aws::S3
|
|
|
1999
2056
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
|
2000
2057
|
# object_lock_retain_until_date: Time.now,
|
|
2001
2058
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
|
2059
|
+
# object_lock_event_hold: "ON", # accepts ON, OFF
|
|
2060
|
+
# object_lock_event_hold_duration_days: 1,
|
|
2061
|
+
# object_lock_event_hold_duration_years: 1,
|
|
2002
2062
|
# expected_bucket_owner: "AccountId",
|
|
2003
2063
|
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME, SHA512, MD5, XXHASH64, XXHASH3, XXHASH128
|
|
2004
2064
|
# checksum_type: "COMPOSITE", # accepts COMPOSITE, FULL_OBJECT
|
|
@@ -2520,6 +2580,27 @@ module Aws::S3
|
|
|
2520
2580
|
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2521
2581
|
#
|
|
2522
2582
|
# </note>
|
|
2583
|
+
# @option options [String] :object_lock_event_hold
|
|
2584
|
+
# Specifies the event hold status to apply to the uploaded object. Set
|
|
2585
|
+
# to `ON` to enable or `OFF` to disable.
|
|
2586
|
+
#
|
|
2587
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2588
|
+
#
|
|
2589
|
+
# </note>
|
|
2590
|
+
# @option options [Integer] :object_lock_event_hold_duration_days
|
|
2591
|
+
# Specifies the event hold duration in days to apply to the uploaded
|
|
2592
|
+
# object. You cannot specify a duration in both days and years.
|
|
2593
|
+
#
|
|
2594
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2595
|
+
#
|
|
2596
|
+
# </note>
|
|
2597
|
+
# @option options [Integer] :object_lock_event_hold_duration_years
|
|
2598
|
+
# Specifies the event hold duration in years to apply to the uploaded
|
|
2599
|
+
# object. You cannot specify a duration in both days and years.
|
|
2600
|
+
#
|
|
2601
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2602
|
+
#
|
|
2603
|
+
# </note>
|
|
2523
2604
|
# @option options [String] :expected_bucket_owner
|
|
2524
2605
|
# The account ID of the expected bucket owner. If the account ID that
|
|
2525
2606
|
# you provide does not match the actual owner of the bucket, the request
|
|
@@ -2605,6 +2686,9 @@ module Aws::S3
|
|
|
2605
2686
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
|
2606
2687
|
# object_lock_retain_until_date: Time.now,
|
|
2607
2688
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
|
2689
|
+
# object_lock_event_hold: "ON", # accepts ON, OFF
|
|
2690
|
+
# object_lock_event_hold_duration_days: 1,
|
|
2691
|
+
# object_lock_event_hold_duration_years: 1,
|
|
2608
2692
|
# expected_bucket_owner: "AccountId",
|
|
2609
2693
|
# })
|
|
2610
2694
|
# @param [Hash] options ({})
|
|
@@ -3230,6 +3314,27 @@ module Aws::S3
|
|
|
3230
3314
|
#
|
|
3231
3315
|
#
|
|
3232
3316
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
|
|
3317
|
+
# @option options [String] :object_lock_event_hold
|
|
3318
|
+
# Specifies the event hold status to apply to this object. Set to `ON`
|
|
3319
|
+
# to enable or `OFF` to disable.
|
|
3320
|
+
#
|
|
3321
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
3322
|
+
#
|
|
3323
|
+
# </note>
|
|
3324
|
+
# @option options [Integer] :object_lock_event_hold_duration_days
|
|
3325
|
+
# Specifies the event hold duration in days to apply to this object. You
|
|
3326
|
+
# cannot specify a duration in both days and years.
|
|
3327
|
+
#
|
|
3328
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
3329
|
+
#
|
|
3330
|
+
# </note>
|
|
3331
|
+
# @option options [Integer] :object_lock_event_hold_duration_years
|
|
3332
|
+
# Specifies the event hold duration in years to apply to this object.
|
|
3333
|
+
# You cannot specify a duration in both days and years.
|
|
3334
|
+
#
|
|
3335
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
3336
|
+
#
|
|
3337
|
+
# </note>
|
|
3233
3338
|
# @option options [String] :expected_bucket_owner
|
|
3234
3339
|
# The account ID of the expected bucket owner. If the account ID that
|
|
3235
3340
|
# 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,27 @@ 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. You
|
|
1135
|
+
# cannot specify a duration in both days and years.
|
|
1136
|
+
#
|
|
1137
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
1138
|
+
#
|
|
1139
|
+
# </note>
|
|
1140
|
+
# @option options [Integer] :object_lock_event_hold_duration_years
|
|
1141
|
+
# The event hold duration in years to apply to the object copy. You
|
|
1142
|
+
# cannot specify a duration in both days and years.
|
|
1143
|
+
#
|
|
1144
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
1145
|
+
#
|
|
1146
|
+
# </note>
|
|
1123
1147
|
# @option options [String] :expected_bucket_owner
|
|
1124
1148
|
# The account ID of the expected destination bucket owner. If the
|
|
1125
1149
|
# account ID that you provide does not match the actual owner of the
|
|
@@ -1536,6 +1560,9 @@ module Aws::S3
|
|
|
1536
1560
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
|
1537
1561
|
# object_lock_retain_until_date: Time.now,
|
|
1538
1562
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
|
1563
|
+
# object_lock_event_hold: "ON", # accepts ON, OFF
|
|
1564
|
+
# object_lock_event_hold_duration_days: 1,
|
|
1565
|
+
# object_lock_event_hold_duration_years: 1,
|
|
1539
1566
|
# expected_bucket_owner: "AccountId",
|
|
1540
1567
|
# checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME, SHA512, MD5, XXHASH64, XXHASH3, XXHASH128
|
|
1541
1568
|
# checksum_type: "COMPOSITE", # accepts COMPOSITE, FULL_OBJECT
|
|
@@ -2057,6 +2084,27 @@ module Aws::S3
|
|
|
2057
2084
|
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2058
2085
|
#
|
|
2059
2086
|
# </note>
|
|
2087
|
+
# @option options [String] :object_lock_event_hold
|
|
2088
|
+
# Specifies the event hold status to apply to the uploaded object. Set
|
|
2089
|
+
# to `ON` to enable or `OFF` to disable.
|
|
2090
|
+
#
|
|
2091
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2092
|
+
#
|
|
2093
|
+
# </note>
|
|
2094
|
+
# @option options [Integer] :object_lock_event_hold_duration_days
|
|
2095
|
+
# Specifies the event hold duration in days to apply to the uploaded
|
|
2096
|
+
# object. You cannot specify a duration in both days and years.
|
|
2097
|
+
#
|
|
2098
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2099
|
+
#
|
|
2100
|
+
# </note>
|
|
2101
|
+
# @option options [Integer] :object_lock_event_hold_duration_years
|
|
2102
|
+
# Specifies the event hold duration in years to apply to the uploaded
|
|
2103
|
+
# object. You cannot specify a duration in both days and years.
|
|
2104
|
+
#
|
|
2105
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2106
|
+
#
|
|
2107
|
+
# </note>
|
|
2060
2108
|
# @option options [String] :expected_bucket_owner
|
|
2061
2109
|
# The account ID of the expected bucket owner. If the account ID that
|
|
2062
2110
|
# you provide does not match the actual owner of the bucket, the request
|
|
@@ -2142,6 +2190,9 @@ module Aws::S3
|
|
|
2142
2190
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
|
2143
2191
|
# object_lock_retain_until_date: Time.now,
|
|
2144
2192
|
# object_lock_legal_hold_status: "ON", # accepts ON, OFF
|
|
2193
|
+
# object_lock_event_hold: "ON", # accepts ON, OFF
|
|
2194
|
+
# object_lock_event_hold_duration_days: 1,
|
|
2195
|
+
# object_lock_event_hold_duration_years: 1,
|
|
2145
2196
|
# expected_bucket_owner: "AccountId",
|
|
2146
2197
|
# })
|
|
2147
2198
|
# @param [Hash] options ({})
|
|
@@ -2767,6 +2818,27 @@ module Aws::S3
|
|
|
2767
2818
|
#
|
|
2768
2819
|
#
|
|
2769
2820
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
|
|
2821
|
+
# @option options [String] :object_lock_event_hold
|
|
2822
|
+
# Specifies the event hold status to apply to this object. Set to `ON`
|
|
2823
|
+
# to enable or `OFF` to disable.
|
|
2824
|
+
#
|
|
2825
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2826
|
+
#
|
|
2827
|
+
# </note>
|
|
2828
|
+
# @option options [Integer] :object_lock_event_hold_duration_days
|
|
2829
|
+
# Specifies the event hold duration in days to apply to this object. You
|
|
2830
|
+
# cannot specify a duration in both days and years.
|
|
2831
|
+
#
|
|
2832
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2833
|
+
#
|
|
2834
|
+
# </note>
|
|
2835
|
+
# @option options [Integer] :object_lock_event_hold_duration_years
|
|
2836
|
+
# Specifies the event hold duration in years to apply to this object.
|
|
2837
|
+
# You cannot specify a duration in both days and years.
|
|
2838
|
+
#
|
|
2839
|
+
# <note markdown="1"> This functionality is not supported for directory buckets.
|
|
2840
|
+
#
|
|
2841
|
+
# </note>
|
|
2770
2842
|
# @option options [String] :expected_bucket_owner
|
|
2771
2843
|
# The account ID of the expected bucket owner. If the account ID that
|
|
2772
2844
|
# you provide does not match the actual owner of the bucket, the request
|