Interface CfnBucket.DefaultRetentionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnBucket.DefaultRetentionProperty extends
The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket.

  • The DefaultRetention settings require both a mode and a period.
  • The DefaultRetention period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 DefaultRetentionProperty defaultRetentionProperty = DefaultRetentionProperty.builder()

See Also: