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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb

Overview

Note:

When making an API call, you may pass ObjectLockConfiguration data as a 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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#object_lock_enabledString

Indicates whether this bucket has an Object Lock configuration enabled.

Returns:

  • (String)


8739
8740
8741
8742
8743
8744
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8739

class ObjectLockConfiguration < Struct.new(
  :object_lock_enabled,
  :rule)
  SENSITIVE = []
  include Aws::Structure
end

#ruleTypes::ObjectLockRule

The Object Lock rule in place for the specified object.



8739
8740
8741
8742
8743
8744
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 8739

class ObjectLockConfiguration < Struct.new(
  :object_lock_enabled,
  :rule)
  SENSITIVE = []
  include Aws::Structure
end