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

Class: Aws::S3::Types::ObjectLockConfiguration

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

Overview

Note:

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

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

The container element for Object Lock configuration parameters.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#object_lock_enabledString

Indicates whether this bucket has an Object Lock configuration enabled.

Possible values:

  • Enabled

Returns:

  • (String)

    Indicates whether this bucket has an Object Lock configuration enabled.

#ruleTypes::ObjectLockRule

The Object Lock rule in place for the specified object.

Returns: