def s3_location_constraint_for_region(region):
 region = _fix_region(region)
 if ((not region) or (region == _S3_REGION_WITH_NO_LOCATION_CONSTRAINT)):
  return ''
 else:
  return region

def s3_location_constraint_for_region ( region ) : region = _fix_region ( region ) if ( ( not region ) or ( region == _S3_REGION_WITH_NO_LOCATION_CONSTRAINT ) ) : return '' else : return region
get the location constraint an s3 bucket needs so that other aws services can connect to it in the given region .