Class: Aws::S3::Types::DefaultRetention

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 DefaultRetention data as a hash:

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

The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#daysInteger

The number of days that you want to specify for the default retention period.

Returns:

  • (Integer)


1969
1970
1971
1972
1973
1974
1975
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 1969

class DefaultRetention < Struct.new(
  :mode,
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end

#modeString

The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.

Returns:

  • (String)


1969
1970
1971
1972
1973
1974
1975
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 1969

class DefaultRetention < Struct.new(
  :mode,
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end

#yearsInteger

The number of years that you want to specify for the default retention period.

Returns:

  • (Integer)


1969
1970
1971
1972
1973
1974
1975
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 1969

class DefaultRetention < Struct.new(
  :mode,
  :days,
  :years)
  SENSITIVE = []
  include Aws::Structure
end