def put_versioning(Bucket, Status, MFADelete=None, MFA=None, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  VersioningConfiguration = {'Status': Status}
  if (MFADelete is not None):
   VersioningConfiguration['MFADelete'] = MFADelete
  kwargs = {}
  if (MFA is not None):
   kwargs['MFA'] = MFA
  conn.put_bucket_versioning(Bucket=Bucket, VersioningConfiguration=VersioningConfiguration, **kwargs)
  return {'updated': True, 'name': Bucket}
 except ClientError as e:
  return {'updated': False, 'error': __utils__['boto3.get_error'](e)}

def put_versioning ( Bucket , Status , MFADelete = None , MFA = None , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) VersioningConfiguration = { 'Status' : Status } if ( MFADelete is not None ) : VersioningConfiguration [ 'MFADelete' ] = MFADelete kwargs = { } if ( MFA is not None ) : kwargs [ 'MFA' ] = MFA conn . put_bucket_versioning ( Bucket = Bucket , VersioningConfiguration = VersioningConfiguration , ** kwargs ) return { 'updated' : True , 'name' : Bucket } except ClientError as e : return { 'updated' : False , 'error' : __utils__ [ 'boto3.get_error' ] ( e ) }
given a valid config .