VersioningEnabled Property
Controls whether versioning is enabled for the currently selected bucket.
Syntax
public var versioningEnabled: Bool {
get {...}
set {...} }
Default Value
False
Remarks
This property can be used to query and control whether the bucket currently selected by Bucket has versioning enabled.
Note that if Bucket is empty, or refers to a bucket that does not exist, this property will always return when queried, and any attempts to set it will fail.
Refer to Amazon's Versioning documentation for more information about versioning.