You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::S3::Types::ObjectLockRule

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ObjectLockRule as input to an Aws::Client method, you can use a vanilla Hash:

{
  default_retention: {
    mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
    days: 1,
    years: 1,
  },
}

The container element for an Object Lock rule.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#default_retentionTypes::DefaultRetention

The default retention period that you want to apply to new objects placed in the specified bucket.

Returns:

  • (Types::DefaultRetention)

    The default retention period that you want to apply to new objects placed in the specified bucket.