class Aws::S3Control::Types::S3Retention
Contains the S3 Object Lock retention mode to be applied to all objects in the S3 Batch Operations job. If you don't provide `Mode` and `RetainUntilDate` data types in your operation, you will remove the retention from your objects. For more information, see [Using S3 Object Lock retention with S3 Batch Operations] in the *Amazon S3 User Guide*.
[1]: docs.aws.amazon.com/AmazonS3/latest/dev/batch-ops-retention-date.html
@note When making an API call, you may pass S3Retention
data as a hash: { retain_until_date: Time.now, mode: "COMPLIANCE", # accepts COMPLIANCE, GOVERNANCE }
@!attribute [rw] retain_until_date
The date when the applied Object Lock retention will expire on all objects set by the Batch Operations job. @return [Time]
@!attribute [rw] mode
The Object Lock retention mode to be applied to all objects in the Batch Operations job. @return [String]
@see docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/S3Retention AWS API Documentation
Constants
- SENSITIVE