Skip to content

Possibly old API use #176

@hgascon

Description

@hgascon

Hi, this didn't work for me:

but this did:

import boto3
bucket_name = 'mybucket'
s3 = boto3.resource('s3')
versioning = s3.BucketVersioning(bucket_name)
# check status
print(versioning.status)
# enable versioning
versioning.enable()
# disable versioning
versioning.suspend()

as described here and S3 Docs

The docs might need a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions