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

Class: Aws::S3::Types::VersioningConfiguration

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

{
  mfa_delete: "Enabled", # accepts Enabled, Disabled
  status: "Enabled", # accepts Enabled, Suspended
}

Instance Attribute Summary collapse

Instance Attribute Details

#mfa_deleteString

Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.

Returns:

  • (String)


7635
7636
7637
7638
7639
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7635

class VersioningConfiguration < Struct.new(
  :mfa_delete,
  :status)
  include Aws::Structure
end

#statusString

The versioning state of the bucket.

Returns:

  • (String)


7635
7636
7637
7638
7639
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 7635

class VersioningConfiguration < Struct.new(
  :mfa_delete,
  :status)
  include Aws::Structure
end